[svn-buildpackage] Tagging suphp (0.6.2-1)
[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.2.
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.2'
427 PACKAGE_STRING='suPHP 0.6.2'
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 CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE 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 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 APR_CPPFLAGS 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.2 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.2:";;
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   --disable-dependency-tracking  speeds up one-time build
1031   --enable-dependency-tracking   do not reject slow dependency extractors
1032   --enable-shared[=PKGS]
1033                           build shared libraries [default=yes]
1034   --enable-static[=PKGS]
1035                           build static libraries [default=yes]
1036   --enable-fast-install[=PKGS]
1037                           optimize for fast installation [default=yes]
1038   --disable-libtool-lock  avoid locking (might break parallel builds)
1039   --enable-checkpath      Check if script resides in DOCUMENT_ROOT (default is
1040                           ENABLED)
1041
1042 Optional Packages:
1043   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1044   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1045   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1046   --with-pic              try to use only PIC/non-PIC objects [default=use
1047                           both]
1048   --with-tags[=TAGS]
1049                           include additional configurations [automatic]
1050   --with-apr=DIR|FILE     prefix for installed APR, path to APR build tree,
1051                           or the full path to apr-config
1052   --with-apxs=FILE        Build shared Apache module. FILE is the optional
1053                           pathname to the Apache apxs tool; defaults to
1054                           "apxs".
1055   --with-setid-mode=MODE  Mode to use for setting UID/GID. MODE can be on of
1056                           "owner", "config" or "paranoid"; defaults to
1057                           "paranoid".
1058   --with-min-uid=UID      Minimum UID, which is allowed to run scripts
1059                           (default=100)
1060   --with-min-gid=GID      Minimum GID, which is allowed to run scripts
1061                           (default=100)
1062   --with-apache-user=USERNAME
1063                           Name of the user Apache is running as (default is
1064                           "wwwrun"
1065   --with-logfile=FILE     Path to suPHP logfile (default is
1066                           "/var/log/httpd/suphp_log"
1067
1068 Some influential environment variables:
1069   CC          C compiler command
1070   CFLAGS      C compiler flags
1071   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1072               nonstandard directory <lib dir>
1073   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1074               headers in a nonstandard directory <include dir>
1075   CXX         C++ compiler command
1076   CXXFLAGS    C++ compiler flags
1077   CPP         C preprocessor
1078   CXXCPP      C++ preprocessor
1079   F77         Fortran 77 compiler command
1080   FFLAGS      Fortran 77 compiler flags
1081
1082 Use these variables to override the choices made by `configure' or to help
1083 it to find libraries and programs with nonstandard names/locations.
1084
1085 Report bugs to <sebastian.marsching@suphp.org>.
1086 _ACEOF
1087 fi
1088
1089 if test "$ac_init_help" = "recursive"; then
1090   # If there are subdirs, report their specific --help.
1091   ac_popdir=`pwd`
1092   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1093     test -d $ac_dir || continue
1094     ac_builddir=.
1095
1096 if test "$ac_dir" != .; then
1097   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1098   # A "../" for each directory in $ac_dir_suffix.
1099   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1100 else
1101   ac_dir_suffix= ac_top_builddir=
1102 fi
1103
1104 case $srcdir in
1105   .)  # No --srcdir option.  We are building in place.
1106     ac_srcdir=.
1107     if test -z "$ac_top_builddir"; then
1108        ac_top_srcdir=.
1109     else
1110        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1111     fi ;;
1112   [\\/]* | ?:[\\/]* )  # Absolute path.
1113     ac_srcdir=$srcdir$ac_dir_suffix;
1114     ac_top_srcdir=$srcdir ;;
1115   *) # Relative path.
1116     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1117     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1118 esac
1119
1120 # Do not use `cd foo && pwd` to compute absolute paths, because
1121 # the directories may not exist.
1122 case `pwd` in
1123 .) ac_abs_builddir="$ac_dir";;
1124 *)
1125   case "$ac_dir" in
1126   .) ac_abs_builddir=`pwd`;;
1127   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1128   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1129   esac;;
1130 esac
1131 case $ac_abs_builddir in
1132 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1133 *)
1134   case ${ac_top_builddir}. in
1135   .) ac_abs_top_builddir=$ac_abs_builddir;;
1136   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1137   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1138   esac;;
1139 esac
1140 case $ac_abs_builddir in
1141 .) ac_abs_srcdir=$ac_srcdir;;
1142 *)
1143   case $ac_srcdir in
1144   .) ac_abs_srcdir=$ac_abs_builddir;;
1145   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1146   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1147   esac;;
1148 esac
1149 case $ac_abs_builddir in
1150 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1151 *)
1152   case $ac_top_srcdir in
1153   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1154   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1155   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1156   esac;;
1157 esac
1158
1159     cd $ac_dir
1160     # Check for guested configure; otherwise get Cygnus style configure.
1161     if test -f $ac_srcdir/configure.gnu; then
1162       echo
1163       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1164     elif test -f $ac_srcdir/configure; then
1165       echo
1166       $SHELL $ac_srcdir/configure  --help=recursive
1167     elif test -f $ac_srcdir/configure.ac ||
1168            test -f $ac_srcdir/configure.in; then
1169       echo
1170       $ac_configure --help
1171     else
1172       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1173     fi
1174     cd $ac_popdir
1175   done
1176 fi
1177
1178 test -n "$ac_init_help" && exit 0
1179 if $ac_init_version; then
1180   cat <<\_ACEOF
1181 suPHP configure 0.6.2
1182 generated by GNU Autoconf 2.59
1183
1184 Copyright (C) 2003 Free Software Foundation, Inc.
1185 This configure script is free software; the Free Software Foundation
1186 gives unlimited permission to copy, distribute and modify it.
1187 _ACEOF
1188   exit 0
1189 fi
1190 exec 5>config.log
1191 cat >&5 <<_ACEOF
1192 This file contains any messages produced by compilers while
1193 running configure, to aid debugging if configure makes a mistake.
1194
1195 It was created by suPHP $as_me 0.6.2, which was
1196 generated by GNU Autoconf 2.59.  Invocation command line was
1197
1198   $ $0 $@
1199
1200 _ACEOF
1201 {
1202 cat <<_ASUNAME
1203 ## --------- ##
1204 ## Platform. ##
1205 ## --------- ##
1206
1207 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1208 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1209 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1210 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1211 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1212
1213 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1214 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1215
1216 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1217 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1218 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1219 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1220 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1221 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1222 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1223
1224 _ASUNAME
1225
1226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1227 for as_dir in $PATH
1228 do
1229   IFS=$as_save_IFS
1230   test -z "$as_dir" && as_dir=.
1231   echo "PATH: $as_dir"
1232 done
1233
1234 } >&5
1235
1236 cat >&5 <<_ACEOF
1237
1238
1239 ## ----------- ##
1240 ## Core tests. ##
1241 ## ----------- ##
1242
1243 _ACEOF
1244
1245
1246 # Keep a trace of the command line.
1247 # Strip out --no-create and --no-recursion so they do not pile up.
1248 # Strip out --silent because we don't want to record it for future runs.
1249 # Also quote any args containing shell meta-characters.
1250 # Make two passes to allow for proper duplicate-argument suppression.
1251 ac_configure_args=
1252 ac_configure_args0=
1253 ac_configure_args1=
1254 ac_sep=
1255 ac_must_keep_next=false
1256 for ac_pass in 1 2
1257 do
1258   for ac_arg
1259   do
1260     case $ac_arg in
1261     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1262     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1263     | -silent | --silent | --silen | --sile | --sil)
1264       continue ;;
1265     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1266       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1267     esac
1268     case $ac_pass in
1269     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1270     2)
1271       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1272       if test $ac_must_keep_next = true; then
1273         ac_must_keep_next=false # Got value, back to normal.
1274       else
1275         case $ac_arg in
1276           *=* | --config-cache | -C | -disable-* | --disable-* \
1277           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1278           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1279           | -with-* | --with-* | -without-* | --without-* | --x)
1280             case "$ac_configure_args0 " in
1281               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1282             esac
1283             ;;
1284           -* ) ac_must_keep_next=true ;;
1285         esac
1286       fi
1287       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1288       # Get rid of the leading space.
1289       ac_sep=" "
1290       ;;
1291     esac
1292   done
1293 done
1294 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1295 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1296
1297 # When interrupted or exit'd, cleanup temporary files, and complete
1298 # config.log.  We remove comments because anyway the quotes in there
1299 # would cause problems or look ugly.
1300 # WARNING: Be sure not to use single quotes in there, as some shells,
1301 # such as our DU 5.0 friend, will then `close' the trap.
1302 trap 'exit_status=$?
1303   # Save into config.log some information that might help in debugging.
1304   {
1305     echo
1306
1307     cat <<\_ASBOX
1308 ## ---------------- ##
1309 ## Cache variables. ##
1310 ## ---------------- ##
1311 _ASBOX
1312     echo
1313     # The following way of writing the cache mishandles newlines in values,
1314 {
1315   (set) 2>&1 |
1316     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1317     *ac_space=\ *)
1318       sed -n \
1319         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1320           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1321       ;;
1322     *)
1323       sed -n \
1324         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1325       ;;
1326     esac;
1327 }
1328     echo
1329
1330     cat <<\_ASBOX
1331 ## ----------------- ##
1332 ## Output variables. ##
1333 ## ----------------- ##
1334 _ASBOX
1335     echo
1336     for ac_var in $ac_subst_vars
1337     do
1338       eval ac_val=$`echo $ac_var`
1339       echo "$ac_var='"'"'$ac_val'"'"'"
1340     done | sort
1341     echo
1342
1343     if test -n "$ac_subst_files"; then
1344       cat <<\_ASBOX
1345 ## ------------- ##
1346 ## Output files. ##
1347 ## ------------- ##
1348 _ASBOX
1349       echo
1350       for ac_var in $ac_subst_files
1351       do
1352         eval ac_val=$`echo $ac_var`
1353         echo "$ac_var='"'"'$ac_val'"'"'"
1354       done | sort
1355       echo
1356     fi
1357
1358     if test -s confdefs.h; then
1359       cat <<\_ASBOX
1360 ## ----------- ##
1361 ## confdefs.h. ##
1362 ## ----------- ##
1363 _ASBOX
1364       echo
1365       sed "/^$/d" confdefs.h | sort
1366       echo
1367     fi
1368     test "$ac_signal" != 0 &&
1369       echo "$as_me: caught signal $ac_signal"
1370     echo "$as_me: exit $exit_status"
1371   } >&5
1372   rm -f core *.core &&
1373   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1374     exit $exit_status
1375      ' 0
1376 for ac_signal in 1 2 13 15; do
1377   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1378 done
1379 ac_signal=0
1380
1381 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1382 rm -rf conftest* confdefs.h
1383 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1384 echo >confdefs.h
1385
1386 # Predefined preprocessor variables.
1387
1388 cat >>confdefs.h <<_ACEOF
1389 #define PACKAGE_NAME "$PACKAGE_NAME"
1390 _ACEOF
1391
1392
1393 cat >>confdefs.h <<_ACEOF
1394 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1395 _ACEOF
1396
1397
1398 cat >>confdefs.h <<_ACEOF
1399 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1400 _ACEOF
1401
1402
1403 cat >>confdefs.h <<_ACEOF
1404 #define PACKAGE_STRING "$PACKAGE_STRING"
1405 _ACEOF
1406
1407
1408 cat >>confdefs.h <<_ACEOF
1409 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1410 _ACEOF
1411
1412
1413 # Let the site file select an alternate cache file if it wants to.
1414 # Prefer explicitly selected file to automatically selected ones.
1415 if test -z "$CONFIG_SITE"; then
1416   if test "x$prefix" != xNONE; then
1417     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1418   else
1419     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1420   fi
1421 fi
1422 for ac_site_file in $CONFIG_SITE; do
1423   if test -r "$ac_site_file"; then
1424     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1425 echo "$as_me: loading site script $ac_site_file" >&6;}
1426     sed 's/^/| /' "$ac_site_file" >&5
1427     . "$ac_site_file"
1428   fi
1429 done
1430
1431 if test -r "$cache_file"; then
1432   # Some versions of bash will fail to source /dev/null (special
1433   # files actually), so we avoid doing that.
1434   if test -f "$cache_file"; then
1435     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1436 echo "$as_me: loading cache $cache_file" >&6;}
1437     case $cache_file in
1438       [\\/]* | ?:[\\/]* ) . $cache_file;;
1439       *)                      . ./$cache_file;;
1440     esac
1441   fi
1442 else
1443   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1444 echo "$as_me: creating cache $cache_file" >&6;}
1445   >$cache_file
1446 fi
1447
1448 # Check that the precious variables saved in the cache have kept the same
1449 # value.
1450 ac_cache_corrupted=false
1451 for ac_var in `(set) 2>&1 |
1452                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1453   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1454   eval ac_new_set=\$ac_env_${ac_var}_set
1455   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1456   eval ac_new_val="\$ac_env_${ac_var}_value"
1457   case $ac_old_set,$ac_new_set in
1458     set,)
1459       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1460 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1461       ac_cache_corrupted=: ;;
1462     ,set)
1463       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1464 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1465       ac_cache_corrupted=: ;;
1466     ,);;
1467     *)
1468       if test "x$ac_old_val" != "x$ac_new_val"; then
1469         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1470 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1471         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1472 echo "$as_me:   former value:  $ac_old_val" >&2;}
1473         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1474 echo "$as_me:   current value: $ac_new_val" >&2;}
1475         ac_cache_corrupted=:
1476       fi;;
1477   esac
1478   # Pass precious variables to config.status.
1479   if test "$ac_new_set" = set; then
1480     case $ac_new_val in
1481     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1482       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1483     *) ac_arg=$ac_var=$ac_new_val ;;
1484     esac
1485     case " $ac_configure_args " in
1486       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1487       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1488     esac
1489   fi
1490 done
1491 if $ac_cache_corrupted; then
1492   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1493 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1494   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1495 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1496    { (exit 1); exit 1; }; }
1497 fi
1498
1499 ac_ext=c
1500 ac_cpp='$CPP $CPPFLAGS'
1501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1531
1532 # Auxiliary tools
1533 ac_aux_dir=
1534 for ac_dir in config $srcdir/config; do
1535   if test -f $ac_dir/install-sh; then
1536     ac_aux_dir=$ac_dir
1537     ac_install_sh="$ac_aux_dir/install-sh -c"
1538     break
1539   elif test -f $ac_dir/install.sh; then
1540     ac_aux_dir=$ac_dir
1541     ac_install_sh="$ac_aux_dir/install.sh -c"
1542     break
1543   elif test -f $ac_dir/shtool; then
1544     ac_aux_dir=$ac_dir
1545     ac_install_sh="$ac_aux_dir/shtool install -c"
1546     break
1547   fi
1548 done
1549 if test -z "$ac_aux_dir"; then
1550   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1551 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1552    { (exit 1); exit 1; }; }
1553 fi
1554 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1555 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1556 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1557
1558
1559 am__api_version="1.9"
1560 # Find a good install program.  We prefer a C program (faster),
1561 # so one script is as good as another.  But avoid the broken or
1562 # incompatible versions:
1563 # SysV /etc/install, /usr/sbin/install
1564 # SunOS /usr/etc/install
1565 # IRIX /sbin/install
1566 # AIX /bin/install
1567 # AmigaOS /C/install, which installs bootblocks on floppy discs
1568 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1569 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1570 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1571 # OS/2's system install, which has a completely different semantic
1572 # ./install, which can be erroneously created by make from ./install.sh.
1573 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1574 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1575 if test -z "$INSTALL"; then
1576 if test "${ac_cv_path_install+set}" = set; then
1577   echo $ECHO_N "(cached) $ECHO_C" >&6
1578 else
1579   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1580 for as_dir in $PATH
1581 do
1582   IFS=$as_save_IFS
1583   test -z "$as_dir" && as_dir=.
1584   # Account for people who put trailing slashes in PATH elements.
1585 case $as_dir/ in
1586   ./ | .// | /cC/* | \
1587   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1588   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1589   /usr/ucb/* ) ;;
1590   *)
1591     # OSF1 and SCO ODT 3.0 have their own names for install.
1592     # Don't use installbsd from OSF since it installs stuff as root
1593     # by default.
1594     for ac_prog in ginstall scoinst install; do
1595       for ac_exec_ext in '' $ac_executable_extensions; do
1596         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1597           if test $ac_prog = install &&
1598             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1599             # AIX install.  It has an incompatible calling convention.
1600             :
1601           elif test $ac_prog = install &&
1602             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1603             # program-specific install script used by HP pwplus--don't use.
1604             :
1605           else
1606             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1607             break 3
1608           fi
1609         fi
1610       done
1611     done
1612     ;;
1613 esac
1614 done
1615
1616
1617 fi
1618   if test "${ac_cv_path_install+set}" = set; then
1619     INSTALL=$ac_cv_path_install
1620   else
1621     # As a last resort, use the slow shell script.  We don't cache a
1622     # path for INSTALL within a source directory, because that will
1623     # break other packages using the cache if that directory is
1624     # removed, or if the path is relative.
1625     INSTALL=$ac_install_sh
1626   fi
1627 fi
1628 echo "$as_me:$LINENO: result: $INSTALL" >&5
1629 echo "${ECHO_T}$INSTALL" >&6
1630
1631 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1632 # It thinks the first close brace ends the variable substitution.
1633 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1634
1635 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1636
1637 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1638
1639 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1640 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1641 # Just in case
1642 sleep 1
1643 echo timestamp > conftest.file
1644 # Do `set' in a subshell so we don't clobber the current shell's
1645 # arguments.  Must try -L first in case configure is actually a
1646 # symlink; some systems play weird games with the mod time of symlinks
1647 # (eg FreeBSD returns the mod time of the symlink's containing
1648 # directory).
1649 if (
1650    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1651    if test "$*" = "X"; then
1652       # -L didn't work.
1653       set X `ls -t $srcdir/configure conftest.file`
1654    fi
1655    rm -f conftest.file
1656    if test "$*" != "X $srcdir/configure conftest.file" \
1657       && test "$*" != "X conftest.file $srcdir/configure"; then
1658
1659       # If neither matched, then we have a broken ls.  This can happen
1660       # if, for instance, CONFIG_SHELL is bash and it inherits a
1661       # broken ls alias from the environment.  This has actually
1662       # happened.  Such a system could not be considered "sane".
1663       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1664 alias in your environment" >&5
1665 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1666 alias in your environment" >&2;}
1667    { (exit 1); exit 1; }; }
1668    fi
1669
1670    test "$2" = conftest.file
1671    )
1672 then
1673    # Ok.
1674    :
1675 else
1676    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1677 Check your system clock" >&5
1678 echo "$as_me: error: newly created file is older than distributed files!
1679 Check your system clock" >&2;}
1680    { (exit 1); exit 1; }; }
1681 fi
1682 echo "$as_me:$LINENO: result: yes" >&5
1683 echo "${ECHO_T}yes" >&6
1684 test "$program_prefix" != NONE &&
1685   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1686 # Use a double $ so make ignores it.
1687 test "$program_suffix" != NONE &&
1688   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1689 # Double any \ or $.  echo might interpret backslashes.
1690 # By default was `s,x,x', remove it if useless.
1691 cat <<\_ACEOF >conftest.sed
1692 s/[\\$]/&&/g;s/;s,x,x,$//
1693 _ACEOF
1694 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1695 rm conftest.sed
1696
1697 # expand $ac_aux_dir to an absolute path
1698 am_aux_dir=`cd $ac_aux_dir && pwd`
1699
1700 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1701 # Use eval to expand $SHELL
1702 if eval "$MISSING --run true"; then
1703   am_missing_run="$MISSING --run "
1704 else
1705   am_missing_run=
1706   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1707 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1708 fi
1709
1710 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1711   # We used to keeping the `.' as first argument, in order to
1712   # allow $(mkdir_p) to be used without argument.  As in
1713   #   $(mkdir_p) $(somedir)
1714   # where $(somedir) is conditionally defined.  However this is wrong
1715   # for two reasons:
1716   #  1. if the package is installed by a user who cannot write `.'
1717   #     make install will fail,
1718   #  2. the above comment should most certainly read
1719   #     $(mkdir_p) $(DESTDIR)$(somedir)
1720   #     so it does not work when $(somedir) is undefined and
1721   #     $(DESTDIR) is not.
1722   #  To support the latter case, we have to write
1723   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1724   #  so the `.' trick is pointless.
1725   mkdir_p='mkdir -p --'
1726 else
1727   # On NextStep and OpenStep, the `mkdir' command does not
1728   # recognize any option.  It will interpret all options as
1729   # directories to create, and then abort because `.' already
1730   # exists.
1731   for d in ./-p ./--version;
1732   do
1733     test -d $d && rmdir $d
1734   done
1735   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1736   if test -f "$ac_aux_dir/mkinstalldirs"; then
1737     mkdir_p='$(mkinstalldirs)'
1738   else
1739     mkdir_p='$(install_sh) -d'
1740   fi
1741 fi
1742
1743 for ac_prog in gawk mawk nawk awk
1744 do
1745   # Extract the first word of "$ac_prog", so it can be a program name with args.
1746 set dummy $ac_prog; ac_word=$2
1747 echo "$as_me:$LINENO: checking for $ac_word" >&5
1748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1749 if test "${ac_cv_prog_AWK+set}" = set; then
1750   echo $ECHO_N "(cached) $ECHO_C" >&6
1751 else
1752   if test -n "$AWK"; then
1753   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1754 else
1755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1756 for as_dir in $PATH
1757 do
1758   IFS=$as_save_IFS
1759   test -z "$as_dir" && as_dir=.
1760   for ac_exec_ext in '' $ac_executable_extensions; do
1761   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1762     ac_cv_prog_AWK="$ac_prog"
1763     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1764     break 2
1765   fi
1766 done
1767 done
1768
1769 fi
1770 fi
1771 AWK=$ac_cv_prog_AWK
1772 if test -n "$AWK"; then
1773   echo "$as_me:$LINENO: result: $AWK" >&5
1774 echo "${ECHO_T}$AWK" >&6
1775 else
1776   echo "$as_me:$LINENO: result: no" >&5
1777 echo "${ECHO_T}no" >&6
1778 fi
1779
1780   test -n "$AWK" && break
1781 done
1782
1783 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1784 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1785 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1786 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1787   echo $ECHO_N "(cached) $ECHO_C" >&6
1788 else
1789   cat >conftest.make <<\_ACEOF
1790 all:
1791         @echo 'ac_maketemp="$(MAKE)"'
1792 _ACEOF
1793 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1794 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1795 if test -n "$ac_maketemp"; then
1796   eval ac_cv_prog_make_${ac_make}_set=yes
1797 else
1798   eval ac_cv_prog_make_${ac_make}_set=no
1799 fi
1800 rm -f conftest.make
1801 fi
1802 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1803   echo "$as_me:$LINENO: result: yes" >&5
1804 echo "${ECHO_T}yes" >&6
1805   SET_MAKE=
1806 else
1807   echo "$as_me:$LINENO: result: no" >&5
1808 echo "${ECHO_T}no" >&6
1809   SET_MAKE="MAKE=${MAKE-make}"
1810 fi
1811
1812 rm -rf .tst 2>/dev/null
1813 mkdir .tst 2>/dev/null
1814 if test -d .tst; then
1815   am__leading_dot=.
1816 else
1817   am__leading_dot=_
1818 fi
1819 rmdir .tst 2>/dev/null
1820
1821 # test to see if srcdir already configured
1822 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1823    test -f $srcdir/config.status; then
1824   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1825 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1826    { (exit 1); exit 1; }; }
1827 fi
1828
1829 # test whether we have cygpath
1830 if test -z "$CYGPATH_W"; then
1831   if (cygpath --version) >/dev/null 2>/dev/null; then
1832     CYGPATH_W='cygpath -w'
1833   else
1834     CYGPATH_W=echo
1835   fi
1836 fi
1837
1838
1839 # Define the identity of the package.
1840  PACKAGE=suPHP
1841  VERSION=0.6.0-pre1
1842
1843
1844 cat >>confdefs.h <<_ACEOF
1845 #define PACKAGE "$PACKAGE"
1846 _ACEOF
1847
1848
1849 cat >>confdefs.h <<_ACEOF
1850 #define VERSION "$VERSION"
1851 _ACEOF
1852
1853 # Some tools Automake needs.
1854
1855 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1856
1857
1858 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1859
1860
1861 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1862
1863
1864 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1865
1866
1867 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1868
1869 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1870
1871 # Installed binaries are usually stripped using `strip' when the user
1872 # run `make install-strip'.  However `strip' might not be the right
1873 # tool to use in cross-compilation environments, therefore Automake
1874 # will honor the `STRIP' environment variable to overrule this program.
1875 if test "$cross_compiling" != no; then
1876   if test -n "$ac_tool_prefix"; then
1877   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1878 set dummy ${ac_tool_prefix}strip; ac_word=$2
1879 echo "$as_me:$LINENO: checking for $ac_word" >&5
1880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1881 if test "${ac_cv_prog_STRIP+set}" = set; then
1882   echo $ECHO_N "(cached) $ECHO_C" >&6
1883 else
1884   if test -n "$STRIP"; then
1885   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1886 else
1887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1888 for as_dir in $PATH
1889 do
1890   IFS=$as_save_IFS
1891   test -z "$as_dir" && as_dir=.
1892   for ac_exec_ext in '' $ac_executable_extensions; do
1893   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1894     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1895     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1896     break 2
1897   fi
1898 done
1899 done
1900
1901 fi
1902 fi
1903 STRIP=$ac_cv_prog_STRIP
1904 if test -n "$STRIP"; then
1905   echo "$as_me:$LINENO: result: $STRIP" >&5
1906 echo "${ECHO_T}$STRIP" >&6
1907 else
1908   echo "$as_me:$LINENO: result: no" >&5
1909 echo "${ECHO_T}no" >&6
1910 fi
1911
1912 fi
1913 if test -z "$ac_cv_prog_STRIP"; then
1914   ac_ct_STRIP=$STRIP
1915   # Extract the first word of "strip", so it can be a program name with args.
1916 set dummy strip; ac_word=$2
1917 echo "$as_me:$LINENO: checking for $ac_word" >&5
1918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1919 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1920   echo $ECHO_N "(cached) $ECHO_C" >&6
1921 else
1922   if test -n "$ac_ct_STRIP"; then
1923   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1924 else
1925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1926 for as_dir in $PATH
1927 do
1928   IFS=$as_save_IFS
1929   test -z "$as_dir" && as_dir=.
1930   for ac_exec_ext in '' $ac_executable_extensions; do
1931   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1932     ac_cv_prog_ac_ct_STRIP="strip"
1933     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1934     break 2
1935   fi
1936 done
1937 done
1938
1939   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1940 fi
1941 fi
1942 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1943 if test -n "$ac_ct_STRIP"; then
1944   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1945 echo "${ECHO_T}$ac_ct_STRIP" >&6
1946 else
1947   echo "$as_me:$LINENO: result: no" >&5
1948 echo "${ECHO_T}no" >&6
1949 fi
1950
1951   STRIP=$ac_ct_STRIP
1952 else
1953   STRIP="$ac_cv_prog_STRIP"
1954 fi
1955
1956 fi
1957 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1958
1959 # We need awk for the "check" target.  The system "awk" is bad on
1960 # some platforms.
1961 # Always define AMTAR for backward compatibility.
1962
1963 AMTAR=${AMTAR-"${am_missing_run}tar"}
1964
1965 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1966
1967
1968
1969
1970
1971 # Check for right directory
1972
1973 # Config headers for automake
1974           ac_config_headers="$ac_config_headers src/config.h"
1975
1976
1977 # Build time sanity check
1978 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1979 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1980 # Just in case
1981 sleep 1
1982 echo timestamp > conftest.file
1983 # Do `set' in a subshell so we don't clobber the current shell's
1984 # arguments.  Must try -L first in case configure is actually a
1985 # symlink; some systems play weird games with the mod time of symlinks
1986 # (eg FreeBSD returns the mod time of the symlink's containing
1987 # directory).
1988 if (
1989    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1990    if test "$*" = "X"; then
1991       # -L didn't work.
1992       set X `ls -t $srcdir/configure conftest.file`
1993    fi
1994    rm -f conftest.file
1995    if test "$*" != "X $srcdir/configure conftest.file" \
1996       && test "$*" != "X conftest.file $srcdir/configure"; then
1997
1998       # If neither matched, then we have a broken ls.  This can happen
1999       # if, for instance, CONFIG_SHELL is bash and it inherits a
2000       # broken ls alias from the environment.  This has actually
2001       # happened.  Such a system could not be considered "sane".
2002       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2003 alias in your environment" >&5
2004 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2005 alias in your environment" >&2;}
2006    { (exit 1); exit 1; }; }
2007    fi
2008
2009    test "$2" = conftest.file
2010    )
2011 then
2012    # Ok.
2013    :
2014 else
2015    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2016 Check your system clock" >&5
2017 echo "$as_me: error: newly created file is older than distributed files!
2018 Check your system clock" >&2;}
2019    { (exit 1); exit 1; }; }
2020 fi
2021 echo "$as_me:$LINENO: result: yes" >&5
2022 echo "${ECHO_T}yes" >&6
2023
2024 # Look for install program
2025 # Find a good install program.  We prefer a C program (faster),
2026 # so one script is as good as another.  But avoid the broken or
2027 # incompatible versions:
2028 # SysV /etc/install, /usr/sbin/install
2029 # SunOS /usr/etc/install
2030 # IRIX /sbin/install
2031 # AIX /bin/install
2032 # AmigaOS /C/install, which installs bootblocks on floppy discs
2033 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2034 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2035 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2036 # OS/2's system install, which has a completely different semantic
2037 # ./install, which can be erroneously created by make from ./install.sh.
2038 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2039 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2040 if test -z "$INSTALL"; then
2041 if test "${ac_cv_path_install+set}" = set; then
2042   echo $ECHO_N "(cached) $ECHO_C" >&6
2043 else
2044   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2045 for as_dir in $PATH
2046 do
2047   IFS=$as_save_IFS
2048   test -z "$as_dir" && as_dir=.
2049   # Account for people who put trailing slashes in PATH elements.
2050 case $as_dir/ in
2051   ./ | .// | /cC/* | \
2052   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2053   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2054   /usr/ucb/* ) ;;
2055   *)
2056     # OSF1 and SCO ODT 3.0 have their own names for install.
2057     # Don't use installbsd from OSF since it installs stuff as root
2058     # by default.
2059     for ac_prog in ginstall scoinst install; do
2060       for ac_exec_ext in '' $ac_executable_extensions; do
2061         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2062           if test $ac_prog = install &&
2063             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2064             # AIX install.  It has an incompatible calling convention.
2065             :
2066           elif test $ac_prog = install &&
2067             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2068             # program-specific install script used by HP pwplus--don't use.
2069             :
2070           else
2071             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2072             break 3
2073           fi
2074         fi
2075       done
2076     done
2077     ;;
2078 esac
2079 done
2080
2081
2082 fi
2083   if test "${ac_cv_path_install+set}" = set; then
2084     INSTALL=$ac_cv_path_install
2085   else
2086     # As a last resort, use the slow shell script.  We don't cache a
2087     # path for INSTALL within a source directory, because that will
2088     # break other packages using the cache if that directory is
2089     # removed, or if the path is relative.
2090     INSTALL=$ac_install_sh
2091   fi
2092 fi
2093 echo "$as_me:$LINENO: result: $INSTALL" >&5
2094 echo "${ECHO_T}$INSTALL" >&6
2095
2096 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2097 # It thinks the first close brace ends the variable substitution.
2098 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2099
2100 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2101
2102 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2103
2104
2105 # Look for compiler
2106 ac_ext=c
2107 ac_cpp='$CPP $CPPFLAGS'
2108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2111 if test -n "$ac_tool_prefix"; then
2112   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2113 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2114 echo "$as_me:$LINENO: checking for $ac_word" >&5
2115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2116 if test "${ac_cv_prog_CC+set}" = set; then
2117   echo $ECHO_N "(cached) $ECHO_C" >&6
2118 else
2119   if test -n "$CC"; then
2120   ac_cv_prog_CC="$CC" # Let the user override the test.
2121 else
2122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2123 for as_dir in $PATH
2124 do
2125   IFS=$as_save_IFS
2126   test -z "$as_dir" && as_dir=.
2127   for ac_exec_ext in '' $ac_executable_extensions; do
2128   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2129     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2130     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2131     break 2
2132   fi
2133 done
2134 done
2135
2136 fi
2137 fi
2138 CC=$ac_cv_prog_CC
2139 if test -n "$CC"; then
2140   echo "$as_me:$LINENO: result: $CC" >&5
2141 echo "${ECHO_T}$CC" >&6
2142 else
2143   echo "$as_me:$LINENO: result: no" >&5
2144 echo "${ECHO_T}no" >&6
2145 fi
2146
2147 fi
2148 if test -z "$ac_cv_prog_CC"; then
2149   ac_ct_CC=$CC
2150   # Extract the first word of "gcc", so it can be a program name with args.
2151 set dummy gcc; ac_word=$2
2152 echo "$as_me:$LINENO: checking for $ac_word" >&5
2153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2154 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2155   echo $ECHO_N "(cached) $ECHO_C" >&6
2156 else
2157   if test -n "$ac_ct_CC"; then
2158   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2159 else
2160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2161 for as_dir in $PATH
2162 do
2163   IFS=$as_save_IFS
2164   test -z "$as_dir" && as_dir=.
2165   for ac_exec_ext in '' $ac_executable_extensions; do
2166   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2167     ac_cv_prog_ac_ct_CC="gcc"
2168     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2169     break 2
2170   fi
2171 done
2172 done
2173
2174 fi
2175 fi
2176 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2177 if test -n "$ac_ct_CC"; then
2178   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2179 echo "${ECHO_T}$ac_ct_CC" >&6
2180 else
2181   echo "$as_me:$LINENO: result: no" >&5
2182 echo "${ECHO_T}no" >&6
2183 fi
2184
2185   CC=$ac_ct_CC
2186 else
2187   CC="$ac_cv_prog_CC"
2188 fi
2189
2190 if test -z "$CC"; then
2191   if test -n "$ac_tool_prefix"; then
2192   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2193 set dummy ${ac_tool_prefix}cc; ac_word=$2
2194 echo "$as_me:$LINENO: checking for $ac_word" >&5
2195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2196 if test "${ac_cv_prog_CC+set}" = set; then
2197   echo $ECHO_N "(cached) $ECHO_C" >&6
2198 else
2199   if test -n "$CC"; then
2200   ac_cv_prog_CC="$CC" # Let the user override the test.
2201 else
2202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2203 for as_dir in $PATH
2204 do
2205   IFS=$as_save_IFS
2206   test -z "$as_dir" && as_dir=.
2207   for ac_exec_ext in '' $ac_executable_extensions; do
2208   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2209     ac_cv_prog_CC="${ac_tool_prefix}cc"
2210     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2211     break 2
2212   fi
2213 done
2214 done
2215
2216 fi
2217 fi
2218 CC=$ac_cv_prog_CC
2219 if test -n "$CC"; then
2220   echo "$as_me:$LINENO: result: $CC" >&5
2221 echo "${ECHO_T}$CC" >&6
2222 else
2223   echo "$as_me:$LINENO: result: no" >&5
2224 echo "${ECHO_T}no" >&6
2225 fi
2226
2227 fi
2228 if test -z "$ac_cv_prog_CC"; then
2229   ac_ct_CC=$CC
2230   # Extract the first word of "cc", so it can be a program name with args.
2231 set dummy cc; ac_word=$2
2232 echo "$as_me:$LINENO: checking for $ac_word" >&5
2233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2234 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2235   echo $ECHO_N "(cached) $ECHO_C" >&6
2236 else
2237   if test -n "$ac_ct_CC"; then
2238   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2239 else
2240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241 for as_dir in $PATH
2242 do
2243   IFS=$as_save_IFS
2244   test -z "$as_dir" && as_dir=.
2245   for ac_exec_ext in '' $ac_executable_extensions; do
2246   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2247     ac_cv_prog_ac_ct_CC="cc"
2248     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2249     break 2
2250   fi
2251 done
2252 done
2253
2254 fi
2255 fi
2256 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2257 if test -n "$ac_ct_CC"; then
2258   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2259 echo "${ECHO_T}$ac_ct_CC" >&6
2260 else
2261   echo "$as_me:$LINENO: result: no" >&5
2262 echo "${ECHO_T}no" >&6
2263 fi
2264
2265   CC=$ac_ct_CC
2266 else
2267   CC="$ac_cv_prog_CC"
2268 fi
2269
2270 fi
2271 if test -z "$CC"; then
2272   # Extract the first word of "cc", so it can be a program name with args.
2273 set dummy cc; ac_word=$2
2274 echo "$as_me:$LINENO: checking for $ac_word" >&5
2275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2276 if test "${ac_cv_prog_CC+set}" = set; then
2277   echo $ECHO_N "(cached) $ECHO_C" >&6
2278 else
2279   if test -n "$CC"; then
2280   ac_cv_prog_CC="$CC" # Let the user override the test.
2281 else
2282   ac_prog_rejected=no
2283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284 for as_dir in $PATH
2285 do
2286   IFS=$as_save_IFS
2287   test -z "$as_dir" && as_dir=.
2288   for ac_exec_ext in '' $ac_executable_extensions; do
2289   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2290     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2291        ac_prog_rejected=yes
2292        continue
2293      fi
2294     ac_cv_prog_CC="cc"
2295     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2296     break 2
2297   fi
2298 done
2299 done
2300
2301 if test $ac_prog_rejected = yes; then
2302   # We found a bogon in the path, so make sure we never use it.
2303   set dummy $ac_cv_prog_CC
2304   shift
2305   if test $# != 0; then
2306     # We chose a different compiler from the bogus one.
2307     # However, it has the same basename, so the bogon will be chosen
2308     # first if we set CC to just the basename; use the full file name.
2309     shift
2310     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2311   fi
2312 fi
2313 fi
2314 fi
2315 CC=$ac_cv_prog_CC
2316 if test -n "$CC"; then
2317   echo "$as_me:$LINENO: result: $CC" >&5
2318 echo "${ECHO_T}$CC" >&6
2319 else
2320   echo "$as_me:$LINENO: result: no" >&5
2321 echo "${ECHO_T}no" >&6
2322 fi
2323
2324 fi
2325 if test -z "$CC"; then
2326   if test -n "$ac_tool_prefix"; then
2327   for ac_prog in cl
2328   do
2329     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2330 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2331 echo "$as_me:$LINENO: checking for $ac_word" >&5
2332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2333 if test "${ac_cv_prog_CC+set}" = set; then
2334   echo $ECHO_N "(cached) $ECHO_C" >&6
2335 else
2336   if test -n "$CC"; then
2337   ac_cv_prog_CC="$CC" # Let the user override the test.
2338 else
2339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2340 for as_dir in $PATH
2341 do
2342   IFS=$as_save_IFS
2343   test -z "$as_dir" && as_dir=.
2344   for ac_exec_ext in '' $ac_executable_extensions; do
2345   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2346     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2347     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2348     break 2
2349   fi
2350 done
2351 done
2352
2353 fi
2354 fi
2355 CC=$ac_cv_prog_CC
2356 if test -n "$CC"; then
2357   echo "$as_me:$LINENO: result: $CC" >&5
2358 echo "${ECHO_T}$CC" >&6
2359 else
2360   echo "$as_me:$LINENO: result: no" >&5
2361 echo "${ECHO_T}no" >&6
2362 fi
2363
2364     test -n "$CC" && break
2365   done
2366 fi
2367 if test -z "$CC"; then
2368   ac_ct_CC=$CC
2369   for ac_prog in cl
2370 do
2371   # Extract the first word of "$ac_prog", so it can be a program name with args.
2372 set dummy $ac_prog; ac_word=$2
2373 echo "$as_me:$LINENO: checking for $ac_word" >&5
2374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2375 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2376   echo $ECHO_N "(cached) $ECHO_C" >&6
2377 else
2378   if test -n "$ac_ct_CC"; then
2379   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2380 else
2381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2382 for as_dir in $PATH
2383 do
2384   IFS=$as_save_IFS
2385   test -z "$as_dir" && as_dir=.
2386   for ac_exec_ext in '' $ac_executable_extensions; do
2387   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2388     ac_cv_prog_ac_ct_CC="$ac_prog"
2389     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2390     break 2
2391   fi
2392 done
2393 done
2394
2395 fi
2396 fi
2397 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2398 if test -n "$ac_ct_CC"; then
2399   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2400 echo "${ECHO_T}$ac_ct_CC" >&6
2401 else
2402   echo "$as_me:$LINENO: result: no" >&5
2403 echo "${ECHO_T}no" >&6
2404 fi
2405
2406   test -n "$ac_ct_CC" && break
2407 done
2408
2409   CC=$ac_ct_CC
2410 fi
2411
2412 fi
2413
2414
2415 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2416 See \`config.log' for more details." >&5
2417 echo "$as_me: error: no acceptable C compiler found in \$PATH
2418 See \`config.log' for more details." >&2;}
2419    { (exit 1); exit 1; }; }
2420
2421 # Provide some information about the compiler.
2422 echo "$as_me:$LINENO:" \
2423      "checking for C compiler version" >&5
2424 ac_compiler=`set X $ac_compile; echo $2`
2425 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2426   (eval $ac_compiler --version </dev/null >&5) 2>&5
2427   ac_status=$?
2428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429   (exit $ac_status); }
2430 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2431   (eval $ac_compiler -v </dev/null >&5) 2>&5
2432   ac_status=$?
2433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434   (exit $ac_status); }
2435 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2436   (eval $ac_compiler -V </dev/null >&5) 2>&5
2437   ac_status=$?
2438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439   (exit $ac_status); }
2440
2441 cat >conftest.$ac_ext <<_ACEOF
2442 /* confdefs.h.  */
2443 _ACEOF
2444 cat confdefs.h >>conftest.$ac_ext
2445 cat >>conftest.$ac_ext <<_ACEOF
2446 /* end confdefs.h.  */
2447
2448 int
2449 main ()
2450 {
2451
2452   ;
2453   return 0;
2454 }
2455 _ACEOF
2456 ac_clean_files_save=$ac_clean_files
2457 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2458 # Try to create an executable without -o first, disregard a.out.
2459 # It will help us diagnose broken compilers, and finding out an intuition
2460 # of exeext.
2461 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2462 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2463 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2464 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2465   (eval $ac_link_default) 2>&5
2466   ac_status=$?
2467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468   (exit $ac_status); }; then
2469   # Find the output, starting from the most likely.  This scheme is
2470 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2471 # resort.
2472
2473 # Be careful to initialize this variable, since it used to be cached.
2474 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2475 ac_cv_exeext=
2476 # b.out is created by i960 compilers.
2477 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2478 do
2479   test -f "$ac_file" || continue
2480   case $ac_file in
2481     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2482         ;;
2483     conftest.$ac_ext )
2484         # This is the source file.
2485         ;;
2486     [ab].out )
2487         # We found the default executable, but exeext='' is most
2488         # certainly right.
2489         break;;
2490     *.* )
2491         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2492         # FIXME: I believe we export ac_cv_exeext for Libtool,
2493         # but it would be cool to find out if it's true.  Does anybody
2494         # maintain Libtool? --akim.
2495         export ac_cv_exeext
2496         break;;
2497     * )
2498         break;;
2499   esac
2500 done
2501 else
2502   echo "$as_me: failed program was:" >&5
2503 sed 's/^/| /' conftest.$ac_ext >&5
2504
2505 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2506 See \`config.log' for more details." >&5
2507 echo "$as_me: error: C compiler cannot create executables
2508 See \`config.log' for more details." >&2;}
2509    { (exit 77); exit 77; }; }
2510 fi
2511
2512 ac_exeext=$ac_cv_exeext
2513 echo "$as_me:$LINENO: result: $ac_file" >&5
2514 echo "${ECHO_T}$ac_file" >&6
2515
2516 # Check the compiler produces executables we can run.  If not, either
2517 # the compiler is broken, or we cross compile.
2518 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2519 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2520 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2521 # If not cross compiling, check that we can run a simple program.
2522 if test "$cross_compiling" != yes; then
2523   if { ac_try='./$ac_file'
2524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2525   (eval $ac_try) 2>&5
2526   ac_status=$?
2527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528   (exit $ac_status); }; }; then
2529     cross_compiling=no
2530   else
2531     if test "$cross_compiling" = maybe; then
2532         cross_compiling=yes
2533     else
2534         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2535 If you meant to cross compile, use \`--host'.
2536 See \`config.log' for more details." >&5
2537 echo "$as_me: error: cannot run C compiled programs.
2538 If you meant to cross compile, use \`--host'.
2539 See \`config.log' for more details." >&2;}
2540    { (exit 1); exit 1; }; }
2541     fi
2542   fi
2543 fi
2544 echo "$as_me:$LINENO: result: yes" >&5
2545 echo "${ECHO_T}yes" >&6
2546
2547 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2548 ac_clean_files=$ac_clean_files_save
2549 # Check the compiler produces executables we can run.  If not, either
2550 # the compiler is broken, or we cross compile.
2551 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2552 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2553 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2554 echo "${ECHO_T}$cross_compiling" >&6
2555
2556 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2557 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2559   (eval $ac_link) 2>&5
2560   ac_status=$?
2561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562   (exit $ac_status); }; then
2563   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2564 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2565 # work properly (i.e., refer to `conftest.exe'), while it won't with
2566 # `rm'.
2567 for ac_file in conftest.exe conftest conftest.*; do
2568   test -f "$ac_file" || continue
2569   case $ac_file in
2570     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2571     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2572           export ac_cv_exeext
2573           break;;
2574     * ) break;;
2575   esac
2576 done
2577 else
2578   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2579 See \`config.log' for more details." >&5
2580 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2581 See \`config.log' for more details." >&2;}
2582    { (exit 1); exit 1; }; }
2583 fi
2584
2585 rm -f conftest$ac_cv_exeext
2586 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2587 echo "${ECHO_T}$ac_cv_exeext" >&6
2588
2589 rm -f conftest.$ac_ext
2590 EXEEXT=$ac_cv_exeext
2591 ac_exeext=$EXEEXT
2592 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2593 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2594 if test "${ac_cv_objext+set}" = set; then
2595   echo $ECHO_N "(cached) $ECHO_C" >&6
2596 else
2597   cat >conftest.$ac_ext <<_ACEOF
2598 /* confdefs.h.  */
2599 _ACEOF
2600 cat confdefs.h >>conftest.$ac_ext
2601 cat >>conftest.$ac_ext <<_ACEOF
2602 /* end confdefs.h.  */
2603
2604 int
2605 main ()
2606 {
2607
2608   ;
2609   return 0;
2610 }
2611 _ACEOF
2612 rm -f conftest.o conftest.obj
2613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2614   (eval $ac_compile) 2>&5
2615   ac_status=$?
2616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617   (exit $ac_status); }; then
2618   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2619   case $ac_file in
2620     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2621     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2622        break;;
2623   esac
2624 done
2625 else
2626   echo "$as_me: failed program was:" >&5
2627 sed 's/^/| /' conftest.$ac_ext >&5
2628
2629 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2630 See \`config.log' for more details." >&5
2631 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2632 See \`config.log' for more details." >&2;}
2633    { (exit 1); exit 1; }; }
2634 fi
2635
2636 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2637 fi
2638 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2639 echo "${ECHO_T}$ac_cv_objext" >&6
2640 OBJEXT=$ac_cv_objext
2641 ac_objext=$OBJEXT
2642 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2643 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2644 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2645   echo $ECHO_N "(cached) $ECHO_C" >&6
2646 else
2647   cat >conftest.$ac_ext <<_ACEOF
2648 /* confdefs.h.  */
2649 _ACEOF
2650 cat confdefs.h >>conftest.$ac_ext
2651 cat >>conftest.$ac_ext <<_ACEOF
2652 /* end confdefs.h.  */
2653
2654 int
2655 main ()
2656 {
2657 #ifndef __GNUC__
2658        choke me
2659 #endif
2660
2661   ;
2662   return 0;
2663 }
2664 _ACEOF
2665 rm -f conftest.$ac_objext
2666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2667   (eval $ac_compile) 2>conftest.er1
2668   ac_status=$?
2669   grep -v '^ *+' conftest.er1 >conftest.err
2670   rm -f conftest.er1
2671   cat conftest.err >&5
2672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673   (exit $ac_status); } &&
2674          { ac_try='test -z "$ac_c_werror_flag"
2675                          || test ! -s conftest.err'
2676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677   (eval $ac_try) 2>&5
2678   ac_status=$?
2679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680   (exit $ac_status); }; } &&
2681          { ac_try='test -s conftest.$ac_objext'
2682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2683   (eval $ac_try) 2>&5
2684   ac_status=$?
2685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686   (exit $ac_status); }; }; then
2687   ac_compiler_gnu=yes
2688 else
2689   echo "$as_me: failed program was:" >&5
2690 sed 's/^/| /' conftest.$ac_ext >&5
2691
2692 ac_compiler_gnu=no
2693 fi
2694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2695 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2696
2697 fi
2698 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2699 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2700 GCC=`test $ac_compiler_gnu = yes && echo yes`
2701 ac_test_CFLAGS=${CFLAGS+set}
2702 ac_save_CFLAGS=$CFLAGS
2703 CFLAGS="-g"
2704 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2705 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2706 if test "${ac_cv_prog_cc_g+set}" = set; then
2707   echo $ECHO_N "(cached) $ECHO_C" >&6
2708 else
2709   cat >conftest.$ac_ext <<_ACEOF
2710 /* confdefs.h.  */
2711 _ACEOF
2712 cat confdefs.h >>conftest.$ac_ext
2713 cat >>conftest.$ac_ext <<_ACEOF
2714 /* end confdefs.h.  */
2715
2716 int
2717 main ()
2718 {
2719
2720   ;
2721   return 0;
2722 }
2723 _ACEOF
2724 rm -f conftest.$ac_objext
2725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2726   (eval $ac_compile) 2>conftest.er1
2727   ac_status=$?
2728   grep -v '^ *+' conftest.er1 >conftest.err
2729   rm -f conftest.er1
2730   cat conftest.err >&5
2731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732   (exit $ac_status); } &&
2733          { ac_try='test -z "$ac_c_werror_flag"
2734                          || test ! -s conftest.err'
2735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2736   (eval $ac_try) 2>&5
2737   ac_status=$?
2738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739   (exit $ac_status); }; } &&
2740          { ac_try='test -s conftest.$ac_objext'
2741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2742   (eval $ac_try) 2>&5
2743   ac_status=$?
2744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745   (exit $ac_status); }; }; then
2746   ac_cv_prog_cc_g=yes
2747 else
2748   echo "$as_me: failed program was:" >&5
2749 sed 's/^/| /' conftest.$ac_ext >&5
2750
2751 ac_cv_prog_cc_g=no
2752 fi
2753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2754 fi
2755 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2756 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2757 if test "$ac_test_CFLAGS" = set; then
2758   CFLAGS=$ac_save_CFLAGS
2759 elif test $ac_cv_prog_cc_g = yes; then
2760   if test "$GCC" = yes; then
2761     CFLAGS="-g -O2"
2762   else
2763     CFLAGS="-g"
2764   fi
2765 else
2766   if test "$GCC" = yes; then
2767     CFLAGS="-O2"
2768   else
2769     CFLAGS=
2770   fi
2771 fi
2772 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2773 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2774 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2775   echo $ECHO_N "(cached) $ECHO_C" >&6
2776 else
2777   ac_cv_prog_cc_stdc=no
2778 ac_save_CC=$CC
2779 cat >conftest.$ac_ext <<_ACEOF
2780 /* confdefs.h.  */
2781 _ACEOF
2782 cat confdefs.h >>conftest.$ac_ext
2783 cat >>conftest.$ac_ext <<_ACEOF
2784 /* end confdefs.h.  */
2785 #include <stdarg.h>
2786 #include <stdio.h>
2787 #include <sys/types.h>
2788 #include <sys/stat.h>
2789 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2790 struct buf { int x; };
2791 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2792 static char *e (p, i)
2793      char **p;
2794      int i;
2795 {
2796   return p[i];
2797 }
2798 static char *f (char * (*g) (char **, int), char **p, ...)
2799 {
2800   char *s;
2801   va_list v;
2802   va_start (v,p);
2803   s = g (p, va_arg (v,int));
2804   va_end (v);
2805   return s;
2806 }
2807
2808 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2809    function prototypes and stuff, but not '\xHH' hex character constants.
2810    These don't provoke an error unfortunately, instead are silently treated
2811    as 'x'.  The following induces an error, until -std1 is added to get
2812    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2813    array size at least.  It's necessary to write '\x00'==0 to get something
2814    that's true only with -std1.  */
2815 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2816
2817 int test (int i, double x);
2818 struct s1 {int (*f) (int a);};
2819 struct s2 {int (*f) (double a);};
2820 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2821 int argc;
2822 char **argv;
2823 int
2824 main ()
2825 {
2826 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2827   ;
2828   return 0;
2829 }
2830 _ACEOF
2831 # Don't try gcc -ansi; that turns off useful extensions and
2832 # breaks some systems' header files.
2833 # AIX                   -qlanglvl=ansi
2834 # Ultrix and OSF/1      -std1
2835 # HP-UX 10.20 and later -Ae
2836 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2837 # SVR4                  -Xc -D__EXTENSIONS__
2838 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2839 do
2840   CC="$ac_save_CC $ac_arg"
2841   rm -f conftest.$ac_objext
2842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2843   (eval $ac_compile) 2>conftest.er1
2844   ac_status=$?
2845   grep -v '^ *+' conftest.er1 >conftest.err
2846   rm -f conftest.er1
2847   cat conftest.err >&5
2848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849   (exit $ac_status); } &&
2850          { ac_try='test -z "$ac_c_werror_flag"
2851                          || test ! -s conftest.err'
2852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853   (eval $ac_try) 2>&5
2854   ac_status=$?
2855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856   (exit $ac_status); }; } &&
2857          { ac_try='test -s conftest.$ac_objext'
2858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2859   (eval $ac_try) 2>&5
2860   ac_status=$?
2861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862   (exit $ac_status); }; }; then
2863   ac_cv_prog_cc_stdc=$ac_arg
2864 break
2865 else
2866   echo "$as_me: failed program was:" >&5
2867 sed 's/^/| /' conftest.$ac_ext >&5
2868
2869 fi
2870 rm -f conftest.err conftest.$ac_objext
2871 done
2872 rm -f conftest.$ac_ext conftest.$ac_objext
2873 CC=$ac_save_CC
2874
2875 fi
2876
2877 case "x$ac_cv_prog_cc_stdc" in
2878   x|xno)
2879     echo "$as_me:$LINENO: result: none needed" >&5
2880 echo "${ECHO_T}none needed" >&6 ;;
2881   *)
2882     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2883 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2884     CC="$CC $ac_cv_prog_cc_stdc" ;;
2885 esac
2886
2887 # Some people use a C++ compiler to compile C.  Since we use `exit',
2888 # in C++ we need to declare it.  In case someone uses the same compiler
2889 # for both compiling C and C++ we need to have the C++ compiler decide
2890 # the declaration of exit, since it's the most demanding environment.
2891 cat >conftest.$ac_ext <<_ACEOF
2892 #ifndef __cplusplus
2893   choke me
2894 #endif
2895 _ACEOF
2896 rm -f conftest.$ac_objext
2897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2898   (eval $ac_compile) 2>conftest.er1
2899   ac_status=$?
2900   grep -v '^ *+' conftest.er1 >conftest.err
2901   rm -f conftest.er1
2902   cat conftest.err >&5
2903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904   (exit $ac_status); } &&
2905          { ac_try='test -z "$ac_c_werror_flag"
2906                          || test ! -s conftest.err'
2907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2908   (eval $ac_try) 2>&5
2909   ac_status=$?
2910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911   (exit $ac_status); }; } &&
2912          { ac_try='test -s conftest.$ac_objext'
2913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2914   (eval $ac_try) 2>&5
2915   ac_status=$?
2916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917   (exit $ac_status); }; }; then
2918   for ac_declaration in \
2919    '' \
2920    'extern "C" void std::exit (int) throw (); using std::exit;' \
2921    'extern "C" void std::exit (int); using std::exit;' \
2922    'extern "C" void exit (int) throw ();' \
2923    'extern "C" void exit (int);' \
2924    'void exit (int);'
2925 do
2926   cat >conftest.$ac_ext <<_ACEOF
2927 /* confdefs.h.  */
2928 _ACEOF
2929 cat confdefs.h >>conftest.$ac_ext
2930 cat >>conftest.$ac_ext <<_ACEOF
2931 /* end confdefs.h.  */
2932 $ac_declaration
2933 #include <stdlib.h>
2934 int
2935 main ()
2936 {
2937 exit (42);
2938   ;
2939   return 0;
2940 }
2941 _ACEOF
2942 rm -f conftest.$ac_objext
2943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2944   (eval $ac_compile) 2>conftest.er1
2945   ac_status=$?
2946   grep -v '^ *+' conftest.er1 >conftest.err
2947   rm -f conftest.er1
2948   cat conftest.err >&5
2949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950   (exit $ac_status); } &&
2951          { ac_try='test -z "$ac_c_werror_flag"
2952                          || test ! -s conftest.err'
2953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2954   (eval $ac_try) 2>&5
2955   ac_status=$?
2956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957   (exit $ac_status); }; } &&
2958          { ac_try='test -s conftest.$ac_objext'
2959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2960   (eval $ac_try) 2>&5
2961   ac_status=$?
2962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963   (exit $ac_status); }; }; then
2964   :
2965 else
2966   echo "$as_me: failed program was:" >&5
2967 sed 's/^/| /' conftest.$ac_ext >&5
2968
2969 continue
2970 fi
2971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2972   cat >conftest.$ac_ext <<_ACEOF
2973 /* confdefs.h.  */
2974 _ACEOF
2975 cat confdefs.h >>conftest.$ac_ext
2976 cat >>conftest.$ac_ext <<_ACEOF
2977 /* end confdefs.h.  */
2978 $ac_declaration
2979 int
2980 main ()
2981 {
2982 exit (42);
2983   ;
2984   return 0;
2985 }
2986 _ACEOF
2987 rm -f conftest.$ac_objext
2988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2989   (eval $ac_compile) 2>conftest.er1
2990   ac_status=$?
2991   grep -v '^ *+' conftest.er1 >conftest.err
2992   rm -f conftest.er1
2993   cat conftest.err >&5
2994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995   (exit $ac_status); } &&
2996          { ac_try='test -z "$ac_c_werror_flag"
2997                          || test ! -s conftest.err'
2998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2999   (eval $ac_try) 2>&5
3000   ac_status=$?
3001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002   (exit $ac_status); }; } &&
3003          { ac_try='test -s conftest.$ac_objext'
3004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3005   (eval $ac_try) 2>&5
3006   ac_status=$?
3007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008   (exit $ac_status); }; }; then
3009   break
3010 else
3011   echo "$as_me: failed program was:" >&5
3012 sed 's/^/| /' conftest.$ac_ext >&5
3013
3014 fi
3015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3016 done
3017 rm -f conftest*
3018 if test -n "$ac_declaration"; then
3019   echo '#ifdef __cplusplus' >>confdefs.h
3020   echo $ac_declaration      >>confdefs.h
3021   echo '#endif'             >>confdefs.h
3022 fi
3023
3024 else
3025   echo "$as_me: failed program was:" >&5
3026 sed 's/^/| /' conftest.$ac_ext >&5
3027
3028 fi
3029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3030 ac_ext=c
3031 ac_cpp='$CPP $CPPFLAGS'
3032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3035 DEPDIR="${am__leading_dot}deps"
3036
3037           ac_config_commands="$ac_config_commands depfiles"
3038
3039
3040 am_make=${MAKE-make}
3041 cat > confinc << 'END'
3042 am__doit:
3043         @echo done
3044 .PHONY: am__doit
3045 END
3046 # If we don't find an include directive, just comment out the code.
3047 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3048 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3049 am__include="#"
3050 am__quote=
3051 _am_result=none
3052 # First try GNU make style include.
3053 echo "include confinc" > confmf
3054 # We grep out `Entering directory' and `Leaving directory'
3055 # messages which can occur if `w' ends up in MAKEFLAGS.
3056 # In particular we don't look at `^make:' because GNU make might
3057 # be invoked under some other name (usually "gmake"), in which
3058 # case it prints its new name instead of `make'.
3059 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3060    am__include=include
3061    am__quote=
3062    _am_result=GNU
3063 fi
3064 # Now try BSD make style include.
3065 if test "$am__include" = "#"; then
3066    echo '.include "confinc"' > confmf
3067    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3068       am__include=.include
3069       am__quote="\""
3070       _am_result=BSD
3071    fi
3072 fi
3073
3074
3075 echo "$as_me:$LINENO: result: $_am_result" >&5
3076 echo "${ECHO_T}$_am_result" >&6
3077 rm -f confinc confmf
3078
3079 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3080 if test "${enable_dependency_tracking+set}" = set; then
3081   enableval="$enable_dependency_tracking"
3082
3083 fi;
3084 if test "x$enable_dependency_tracking" != xno; then
3085   am_depcomp="$ac_aux_dir/depcomp"
3086   AMDEPBACKSLASH='\'
3087 fi
3088
3089
3090 if test "x$enable_dependency_tracking" != xno; then
3091   AMDEP_TRUE=
3092   AMDEP_FALSE='#'
3093 else
3094   AMDEP_TRUE='#'
3095   AMDEP_FALSE=
3096 fi
3097
3098
3099
3100
3101 depcc="$CC"   am_compiler_list=
3102
3103 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3104 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3105 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3106   echo $ECHO_N "(cached) $ECHO_C" >&6
3107 else
3108   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3109   # We make a subdir and do the tests there.  Otherwise we can end up
3110   # making bogus files that we don't know about and never remove.  For
3111   # instance it was reported that on HP-UX the gcc test will end up
3112   # making a dummy file named `D' -- because `-MD' means `put the output
3113   # in D'.
3114   mkdir conftest.dir
3115   # Copy depcomp to subdir because otherwise we won't find it if we're
3116   # using a relative directory.
3117   cp "$am_depcomp" conftest.dir
3118   cd conftest.dir
3119   # We will build objects and dependencies in a subdirectory because
3120   # it helps to detect inapplicable dependency modes.  For instance
3121   # both Tru64's cc and ICC support -MD to output dependencies as a
3122   # side effect of compilation, but ICC will put the dependencies in
3123   # the current directory while Tru64 will put them in the object
3124   # directory.
3125   mkdir sub
3126
3127   am_cv_CC_dependencies_compiler_type=none
3128   if test "$am_compiler_list" = ""; then
3129      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3130   fi
3131   for depmode in $am_compiler_list; do
3132     # Setup a source with many dependencies, because some compilers
3133     # like to wrap large dependency lists on column 80 (with \), and
3134     # we should not choose a depcomp mode which is confused by this.
3135     #
3136     # We need to recreate these files for each test, as the compiler may
3137     # overwrite some of them when testing with obscure command lines.
3138     # This happens at least with the AIX C compiler.
3139     : > sub/conftest.c
3140     for i in 1 2 3 4 5 6; do
3141       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3142       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3143       # Solaris 8's {/usr,}/bin/sh.
3144       touch sub/conftst$i.h
3145     done
3146     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3147
3148     case $depmode in
3149     nosideeffect)
3150       # after this tag, mechanisms are not by side-effect, so they'll
3151       # only be used when explicitly requested
3152       if test "x$enable_dependency_tracking" = xyes; then
3153         continue
3154       else
3155         break
3156       fi
3157       ;;
3158     none) break ;;
3159     esac
3160     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3161     # mode.  It turns out that the SunPro C++ compiler does not properly
3162     # handle `-M -o', and we need to detect this.
3163     if depmode=$depmode \
3164        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3165        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3166        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3167          >/dev/null 2>conftest.err &&
3168        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3169        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3170        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3171       # icc doesn't choke on unknown options, it will just issue warnings
3172       # or remarks (even with -Werror).  So we grep stderr for any message
3173       # that says an option was ignored or not supported.
3174       # When given -MP, icc 7.0 and 7.1 complain thusly:
3175       #   icc: Command line warning: ignoring option '-M'; no argument required
3176       # The diagnosis changed in icc 8.0:
3177       #   icc: Command line remark: option '-MP' not supported
3178       if (grep 'ignoring option' conftest.err ||
3179           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3180         am_cv_CC_dependencies_compiler_type=$depmode
3181         break
3182       fi
3183     fi
3184   done
3185
3186   cd ..
3187   rm -rf conftest.dir
3188 else
3189   am_cv_CC_dependencies_compiler_type=none
3190 fi
3191
3192 fi
3193 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3194 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3195 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3196
3197
3198
3199 if
3200   test "x$enable_dependency_tracking" != xno \
3201   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3202   am__fastdepCC_TRUE=
3203   am__fastdepCC_FALSE='#'
3204 else
3205   am__fastdepCC_TRUE='#'
3206   am__fastdepCC_FALSE=
3207 fi
3208
3209
3210 ac_ext=cc
3211 ac_cpp='$CXXCPP $CPPFLAGS'
3212 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3215 if test -n "$ac_tool_prefix"; then
3216   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3217   do
3218     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3219 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3220 echo "$as_me:$LINENO: checking for $ac_word" >&5
3221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3222 if test "${ac_cv_prog_CXX+set}" = set; then
3223   echo $ECHO_N "(cached) $ECHO_C" >&6
3224 else
3225   if test -n "$CXX"; then
3226   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3227 else
3228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229 for as_dir in $PATH
3230 do
3231   IFS=$as_save_IFS
3232   test -z "$as_dir" && as_dir=.
3233   for ac_exec_ext in '' $ac_executable_extensions; do
3234   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3235     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3236     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3237     break 2
3238   fi
3239 done
3240 done
3241
3242 fi
3243 fi
3244 CXX=$ac_cv_prog_CXX
3245 if test -n "$CXX"; then
3246   echo "$as_me:$LINENO: result: $CXX" >&5
3247 echo "${ECHO_T}$CXX" >&6
3248 else
3249   echo "$as_me:$LINENO: result: no" >&5
3250 echo "${ECHO_T}no" >&6
3251 fi
3252
3253     test -n "$CXX" && break
3254   done
3255 fi
3256 if test -z "$CXX"; then
3257   ac_ct_CXX=$CXX
3258   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3259 do
3260   # Extract the first word of "$ac_prog", so it can be a program name with args.
3261 set dummy $ac_prog; ac_word=$2
3262 echo "$as_me:$LINENO: checking for $ac_word" >&5
3263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3264 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3265   echo $ECHO_N "(cached) $ECHO_C" >&6
3266 else
3267   if test -n "$ac_ct_CXX"; then
3268   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3269 else
3270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3271 for as_dir in $PATH
3272 do
3273   IFS=$as_save_IFS
3274   test -z "$as_dir" && as_dir=.
3275   for ac_exec_ext in '' $ac_executable_extensions; do
3276   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3277     ac_cv_prog_ac_ct_CXX="$ac_prog"
3278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3279     break 2
3280   fi
3281 done
3282 done
3283
3284 fi
3285 fi
3286 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3287 if test -n "$ac_ct_CXX"; then
3288   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3289 echo "${ECHO_T}$ac_ct_CXX" >&6
3290 else
3291   echo "$as_me:$LINENO: result: no" >&5
3292 echo "${ECHO_T}no" >&6
3293 fi
3294
3295   test -n "$ac_ct_CXX" && break
3296 done
3297 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3298
3299   CXX=$ac_ct_CXX
3300 fi
3301
3302
3303 # Provide some information about the compiler.
3304 echo "$as_me:$LINENO:" \
3305      "checking for C++ compiler version" >&5
3306 ac_compiler=`set X $ac_compile; echo $2`
3307 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3308   (eval $ac_compiler --version </dev/null >&5) 2>&5
3309   ac_status=$?
3310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311   (exit $ac_status); }
3312 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3313   (eval $ac_compiler -v </dev/null >&5) 2>&5
3314   ac_status=$?
3315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316   (exit $ac_status); }
3317 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3318   (eval $ac_compiler -V </dev/null >&5) 2>&5
3319   ac_status=$?
3320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321   (exit $ac_status); }
3322
3323 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3324 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3325 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3326   echo $ECHO_N "(cached) $ECHO_C" >&6
3327 else
3328   cat >conftest.$ac_ext <<_ACEOF
3329 /* confdefs.h.  */
3330 _ACEOF
3331 cat confdefs.h >>conftest.$ac_ext
3332 cat >>conftest.$ac_ext <<_ACEOF
3333 /* end confdefs.h.  */
3334
3335 int
3336 main ()
3337 {
3338 #ifndef __GNUC__
3339        choke me
3340 #endif
3341
3342   ;
3343   return 0;
3344 }
3345 _ACEOF
3346 rm -f conftest.$ac_objext
3347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3348   (eval $ac_compile) 2>conftest.er1
3349   ac_status=$?
3350   grep -v '^ *+' conftest.er1 >conftest.err
3351   rm -f conftest.er1
3352   cat conftest.err >&5
3353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354   (exit $ac_status); } &&
3355          { ac_try='test -z "$ac_cxx_werror_flag"
3356                          || test ! -s conftest.err'
3357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3358   (eval $ac_try) 2>&5
3359   ac_status=$?
3360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361   (exit $ac_status); }; } &&
3362          { ac_try='test -s conftest.$ac_objext'
3363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3364   (eval $ac_try) 2>&5
3365   ac_status=$?
3366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367   (exit $ac_status); }; }; then
3368   ac_compiler_gnu=yes
3369 else
3370   echo "$as_me: failed program was:" >&5
3371 sed 's/^/| /' conftest.$ac_ext >&5
3372
3373 ac_compiler_gnu=no
3374 fi
3375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3376 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3377
3378 fi
3379 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3380 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3381 GXX=`test $ac_compiler_gnu = yes && echo yes`
3382 ac_test_CXXFLAGS=${CXXFLAGS+set}
3383 ac_save_CXXFLAGS=$CXXFLAGS
3384 CXXFLAGS="-g"
3385 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3386 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3387 if test "${ac_cv_prog_cxx_g+set}" = set; then
3388   echo $ECHO_N "(cached) $ECHO_C" >&6
3389 else
3390   cat >conftest.$ac_ext <<_ACEOF
3391 /* confdefs.h.  */
3392 _ACEOF
3393 cat confdefs.h >>conftest.$ac_ext
3394 cat >>conftest.$ac_ext <<_ACEOF
3395 /* end confdefs.h.  */
3396
3397 int
3398 main ()
3399 {
3400
3401   ;
3402   return 0;
3403 }
3404 _ACEOF
3405 rm -f conftest.$ac_objext
3406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3407   (eval $ac_compile) 2>conftest.er1
3408   ac_status=$?
3409   grep -v '^ *+' conftest.er1 >conftest.err
3410   rm -f conftest.er1
3411   cat conftest.err >&5
3412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413   (exit $ac_status); } &&
3414          { ac_try='test -z "$ac_cxx_werror_flag"
3415                          || test ! -s conftest.err'
3416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3417   (eval $ac_try) 2>&5
3418   ac_status=$?
3419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420   (exit $ac_status); }; } &&
3421          { ac_try='test -s conftest.$ac_objext'
3422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3423   (eval $ac_try) 2>&5
3424   ac_status=$?
3425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426   (exit $ac_status); }; }; then
3427   ac_cv_prog_cxx_g=yes
3428 else
3429   echo "$as_me: failed program was:" >&5
3430 sed 's/^/| /' conftest.$ac_ext >&5
3431
3432 ac_cv_prog_cxx_g=no
3433 fi
3434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3435 fi
3436 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3437 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3438 if test "$ac_test_CXXFLAGS" = set; then
3439   CXXFLAGS=$ac_save_CXXFLAGS
3440 elif test $ac_cv_prog_cxx_g = yes; then
3441   if test "$GXX" = yes; then
3442     CXXFLAGS="-g -O2"
3443   else
3444     CXXFLAGS="-g"
3445   fi
3446 else
3447   if test "$GXX" = yes; then
3448     CXXFLAGS="-O2"
3449   else
3450     CXXFLAGS=
3451   fi
3452 fi
3453 for ac_declaration in \
3454    '' \
3455    'extern "C" void std::exit (int) throw (); using std::exit;' \
3456    'extern "C" void std::exit (int); using std::exit;' \
3457    'extern "C" void exit (int) throw ();' \
3458    'extern "C" void exit (int);' \
3459    'void exit (int);'
3460 do
3461   cat >conftest.$ac_ext <<_ACEOF
3462 /* confdefs.h.  */
3463 _ACEOF
3464 cat confdefs.h >>conftest.$ac_ext
3465 cat >>conftest.$ac_ext <<_ACEOF
3466 /* end confdefs.h.  */
3467 $ac_declaration
3468 #include <stdlib.h>
3469 int
3470 main ()
3471 {
3472 exit (42);
3473   ;
3474   return 0;
3475 }
3476 _ACEOF
3477 rm -f conftest.$ac_objext
3478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3479   (eval $ac_compile) 2>conftest.er1
3480   ac_status=$?
3481   grep -v '^ *+' conftest.er1 >conftest.err
3482   rm -f conftest.er1
3483   cat conftest.err >&5
3484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485   (exit $ac_status); } &&
3486          { ac_try='test -z "$ac_cxx_werror_flag"
3487                          || test ! -s conftest.err'
3488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3489   (eval $ac_try) 2>&5
3490   ac_status=$?
3491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492   (exit $ac_status); }; } &&
3493          { ac_try='test -s conftest.$ac_objext'
3494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3495   (eval $ac_try) 2>&5
3496   ac_status=$?
3497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498   (exit $ac_status); }; }; then
3499   :
3500 else
3501   echo "$as_me: failed program was:" >&5
3502 sed 's/^/| /' conftest.$ac_ext >&5
3503
3504 continue
3505 fi
3506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3507   cat >conftest.$ac_ext <<_ACEOF
3508 /* confdefs.h.  */
3509 _ACEOF
3510 cat confdefs.h >>conftest.$ac_ext
3511 cat >>conftest.$ac_ext <<_ACEOF
3512 /* end confdefs.h.  */
3513 $ac_declaration
3514 int
3515 main ()
3516 {
3517 exit (42);
3518   ;
3519   return 0;
3520 }
3521 _ACEOF
3522 rm -f conftest.$ac_objext
3523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3524   (eval $ac_compile) 2>conftest.er1
3525   ac_status=$?
3526   grep -v '^ *+' conftest.er1 >conftest.err
3527   rm -f conftest.er1
3528   cat conftest.err >&5
3529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530   (exit $ac_status); } &&
3531          { ac_try='test -z "$ac_cxx_werror_flag"
3532                          || test ! -s conftest.err'
3533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3534   (eval $ac_try) 2>&5
3535   ac_status=$?
3536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537   (exit $ac_status); }; } &&
3538          { ac_try='test -s conftest.$ac_objext'
3539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3540   (eval $ac_try) 2>&5
3541   ac_status=$?
3542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543   (exit $ac_status); }; }; then
3544   break
3545 else
3546   echo "$as_me: failed program was:" >&5
3547 sed 's/^/| /' conftest.$ac_ext >&5
3548
3549 fi
3550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3551 done
3552 rm -f conftest*
3553 if test -n "$ac_declaration"; then
3554   echo '#ifdef __cplusplus' >>confdefs.h
3555   echo $ac_declaration      >>confdefs.h
3556   echo '#endif'             >>confdefs.h
3557 fi
3558
3559 ac_ext=c
3560 ac_cpp='$CPP $CPPFLAGS'
3561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3564
3565 depcc="$CXX"  am_compiler_list=
3566
3567 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3568 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3569 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3570   echo $ECHO_N "(cached) $ECHO_C" >&6
3571 else
3572   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3573   # We make a subdir and do the tests there.  Otherwise we can end up
3574   # making bogus files that we don't know about and never remove.  For
3575   # instance it was reported that on HP-UX the gcc test will end up
3576   # making a dummy file named `D' -- because `-MD' means `put the output
3577   # in D'.
3578   mkdir conftest.dir
3579   # Copy depcomp to subdir because otherwise we won't find it if we're
3580   # using a relative directory.
3581   cp "$am_depcomp" conftest.dir
3582   cd conftest.dir
3583   # We will build objects and dependencies in a subdirectory because
3584   # it helps to detect inapplicable dependency modes.  For instance
3585   # both Tru64's cc and ICC support -MD to output dependencies as a
3586   # side effect of compilation, but ICC will put the dependencies in
3587   # the current directory while Tru64 will put them in the object
3588   # directory.
3589   mkdir sub
3590
3591   am_cv_CXX_dependencies_compiler_type=none
3592   if test "$am_compiler_list" = ""; then
3593      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3594   fi
3595   for depmode in $am_compiler_list; do
3596     # Setup a source with many dependencies, because some compilers
3597     # like to wrap large dependency lists on column 80 (with \), and
3598     # we should not choose a depcomp mode which is confused by this.
3599     #
3600     # We need to recreate these files for each test, as the compiler may
3601     # overwrite some of them when testing with obscure command lines.
3602     # This happens at least with the AIX C compiler.
3603     : > sub/conftest.c
3604     for i in 1 2 3 4 5 6; do
3605       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3606       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3607       # Solaris 8's {/usr,}/bin/sh.
3608       touch sub/conftst$i.h
3609     done
3610     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3611
3612     case $depmode in
3613     nosideeffect)
3614       # after this tag, mechanisms are not by side-effect, so they'll
3615       # only be used when explicitly requested
3616       if test "x$enable_dependency_tracking" = xyes; then
3617         continue
3618       else
3619         break
3620       fi
3621       ;;
3622     none) break ;;
3623     esac
3624     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3625     # mode.  It turns out that the SunPro C++ compiler does not properly
3626     # handle `-M -o', and we need to detect this.
3627     if depmode=$depmode \
3628        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3629        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3630        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3631          >/dev/null 2>conftest.err &&
3632        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3633        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3634        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3635       # icc doesn't choke on unknown options, it will just issue warnings
3636       # or remarks (even with -Werror).  So we grep stderr for any message
3637       # that says an option was ignored or not supported.
3638       # When given -MP, icc 7.0 and 7.1 complain thusly:
3639       #   icc: Command line warning: ignoring option '-M'; no argument required
3640       # The diagnosis changed in icc 8.0:
3641       #   icc: Command line remark: option '-MP' not supported
3642       if (grep 'ignoring option' conftest.err ||
3643           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3644         am_cv_CXX_dependencies_compiler_type=$depmode
3645         break
3646       fi
3647     fi
3648   done
3649
3650   cd ..
3651   rm -rf conftest.dir
3652 else
3653   am_cv_CXX_dependencies_compiler_type=none
3654 fi
3655
3656 fi
3657 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3658 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3659 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3660
3661
3662
3663 if
3664   test "x$enable_dependency_tracking" != xno \
3665   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3666   am__fastdepCXX_TRUE=
3667   am__fastdepCXX_FALSE='#'
3668 else
3669   am__fastdepCXX_TRUE='#'
3670   am__fastdepCXX_FALSE=
3671 fi
3672
3673
3674 # Check whether --enable-shared or --disable-shared was given.
3675 if test "${enable_shared+set}" = set; then
3676   enableval="$enable_shared"
3677   p=${PACKAGE-default}
3678     case $enableval in
3679     yes) enable_shared=yes ;;
3680     no) enable_shared=no ;;
3681     *)
3682       enable_shared=no
3683       # Look at the argument we got.  We use all the common list separators.
3684       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3685       for pkg in $enableval; do
3686         IFS="$lt_save_ifs"
3687         if test "X$pkg" = "X$p"; then
3688           enable_shared=yes
3689         fi
3690       done
3691       IFS="$lt_save_ifs"
3692       ;;
3693     esac
3694 else
3695   enable_shared=yes
3696 fi;
3697
3698 # Check whether --enable-static or --disable-static was given.
3699 if test "${enable_static+set}" = set; then
3700   enableval="$enable_static"
3701   p=${PACKAGE-default}
3702     case $enableval in
3703     yes) enable_static=yes ;;
3704     no) enable_static=no ;;
3705     *)
3706      enable_static=no
3707       # Look at the argument we got.  We use all the common list separators.
3708       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3709       for pkg in $enableval; do
3710         IFS="$lt_save_ifs"
3711         if test "X$pkg" = "X$p"; then
3712           enable_static=yes
3713         fi
3714       done
3715       IFS="$lt_save_ifs"
3716       ;;
3717     esac
3718 else
3719   enable_static=yes
3720 fi;
3721
3722 # Check whether --enable-fast-install or --disable-fast-install was given.
3723 if test "${enable_fast_install+set}" = set; then
3724   enableval="$enable_fast_install"
3725   p=${PACKAGE-default}
3726     case $enableval in
3727     yes) enable_fast_install=yes ;;
3728     no) enable_fast_install=no ;;
3729     *)
3730       enable_fast_install=no
3731       # Look at the argument we got.  We use all the common list separators.
3732       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3733       for pkg in $enableval; do
3734         IFS="$lt_save_ifs"
3735         if test "X$pkg" = "X$p"; then
3736           enable_fast_install=yes
3737         fi
3738       done
3739       IFS="$lt_save_ifs"
3740       ;;
3741     esac
3742 else
3743   enable_fast_install=yes
3744 fi;
3745
3746 # Make sure we can run config.sub.
3747 $ac_config_sub sun4 >/dev/null 2>&1 ||
3748   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3749 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3750    { (exit 1); exit 1; }; }
3751
3752 echo "$as_me:$LINENO: checking build system type" >&5
3753 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3754 if test "${ac_cv_build+set}" = set; then
3755   echo $ECHO_N "(cached) $ECHO_C" >&6
3756 else
3757   ac_cv_build_alias=$build_alias
3758 test -z "$ac_cv_build_alias" &&
3759   ac_cv_build_alias=`$ac_config_guess`
3760 test -z "$ac_cv_build_alias" &&
3761   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3762 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3763    { (exit 1); exit 1; }; }
3764 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3765   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3766 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3767    { (exit 1); exit 1; }; }
3768
3769 fi
3770 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3771 echo "${ECHO_T}$ac_cv_build" >&6
3772 build=$ac_cv_build
3773 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3774 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3775 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3776
3777
3778 echo "$as_me:$LINENO: checking host system type" >&5
3779 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3780 if test "${ac_cv_host+set}" = set; then
3781   echo $ECHO_N "(cached) $ECHO_C" >&6
3782 else
3783   ac_cv_host_alias=$host_alias
3784 test -z "$ac_cv_host_alias" &&
3785   ac_cv_host_alias=$ac_cv_build_alias
3786 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3787   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3788 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3789    { (exit 1); exit 1; }; }
3790
3791 fi
3792 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3793 echo "${ECHO_T}$ac_cv_host" >&6
3794 host=$ac_cv_host
3795 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3796 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3797 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3798
3799
3800 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3801 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3802 if test "${lt_cv_path_SED+set}" = set; then
3803   echo $ECHO_N "(cached) $ECHO_C" >&6
3804 else
3805   # Loop through the user's path and test for sed and gsed.
3806 # Then use that list of sed's as ones to test for truncation.
3807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808 for as_dir in $PATH
3809 do
3810   IFS=$as_save_IFS
3811   test -z "$as_dir" && as_dir=.
3812   for lt_ac_prog in sed gsed; do
3813     for ac_exec_ext in '' $ac_executable_extensions; do
3814       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3815         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3816       fi
3817     done
3818   done
3819 done
3820 lt_ac_max=0
3821 lt_ac_count=0
3822 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3823 # along with /bin/sed that truncates output.
3824 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3825   test ! -f $lt_ac_sed && continue
3826   cat /dev/null > conftest.in
3827   lt_ac_count=0
3828   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3829   # Check for GNU sed and select it if it is found.
3830   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3831     lt_cv_path_SED=$lt_ac_sed
3832     break
3833   fi
3834   while true; do
3835     cat conftest.in conftest.in >conftest.tmp
3836     mv conftest.tmp conftest.in
3837     cp conftest.in conftest.nl
3838     echo >>conftest.nl
3839     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3840     cmp -s conftest.out conftest.nl || break
3841     # 10000 chars as input seems more than enough
3842     test $lt_ac_count -gt 10 && break
3843     lt_ac_count=`expr $lt_ac_count + 1`
3844     if test $lt_ac_count -gt $lt_ac_max; then
3845       lt_ac_max=$lt_ac_count
3846       lt_cv_path_SED=$lt_ac_sed
3847     fi
3848   done
3849 done
3850
3851 fi
3852
3853 SED=$lt_cv_path_SED
3854 echo "$as_me:$LINENO: result: $SED" >&5
3855 echo "${ECHO_T}$SED" >&6
3856
3857 echo "$as_me:$LINENO: checking for egrep" >&5
3858 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3859 if test "${ac_cv_prog_egrep+set}" = set; then
3860   echo $ECHO_N "(cached) $ECHO_C" >&6
3861 else
3862   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3863     then ac_cv_prog_egrep='grep -E'
3864     else ac_cv_prog_egrep='egrep'
3865     fi
3866 fi
3867 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3868 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3869  EGREP=$ac_cv_prog_egrep
3870
3871
3872
3873 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3874 if test "${with_gnu_ld+set}" = set; then
3875   withval="$with_gnu_ld"
3876   test "$withval" = no || with_gnu_ld=yes
3877 else
3878   with_gnu_ld=no
3879 fi;
3880 ac_prog=ld
3881 if test "$GCC" = yes; then
3882   # Check if gcc -print-prog-name=ld gives a path.
3883   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3884 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3885   case $host in
3886   *-*-mingw*)
3887     # gcc leaves a trailing carriage return which upsets mingw
3888     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3889   *)
3890     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3891   esac
3892   case $ac_prog in
3893     # Accept absolute paths.
3894     [\\/]* | ?:[\\/]*)
3895       re_direlt='/[^/][^/]*/\.\./'
3896       # Canonicalize the pathname of ld
3897       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3898       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3899         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3900       done
3901       test -z "$LD" && LD="$ac_prog"
3902       ;;
3903   "")
3904     # If it fails, then pretend we aren't using GCC.
3905     ac_prog=ld
3906     ;;
3907   *)
3908     # If it is relative, then search for the first ld in PATH.
3909     with_gnu_ld=unknown
3910     ;;
3911   esac
3912 elif test "$with_gnu_ld" = yes; then
3913   echo "$as_me:$LINENO: checking for GNU ld" >&5
3914 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3915 else
3916   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3917 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3918 fi
3919 if test "${lt_cv_path_LD+set}" = set; then
3920   echo $ECHO_N "(cached) $ECHO_C" >&6
3921 else
3922   if test -z "$LD"; then
3923   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3924   for ac_dir in $PATH; do
3925     IFS="$lt_save_ifs"
3926     test -z "$ac_dir" && ac_dir=.
3927     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3928       lt_cv_path_LD="$ac_dir/$ac_prog"
3929       # Check to see if the program is GNU ld.  I'd rather use --version,
3930       # but apparently some variants of GNU ld only accept -v.
3931       # Break only if it was the GNU/non-GNU ld that we prefer.
3932       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3933       *GNU* | *'with BFD'*)
3934         test "$with_gnu_ld" != no && break
3935         ;;
3936       *)
3937         test "$with_gnu_ld" != yes && break
3938         ;;
3939       esac
3940     fi
3941   done
3942   IFS="$lt_save_ifs"
3943 else
3944   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3945 fi
3946 fi
3947
3948 LD="$lt_cv_path_LD"
3949 if test -n "$LD"; then
3950   echo "$as_me:$LINENO: result: $LD" >&5
3951 echo "${ECHO_T}$LD" >&6
3952 else
3953   echo "$as_me:$LINENO: result: no" >&5
3954 echo "${ECHO_T}no" >&6
3955 fi
3956 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3957 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3958    { (exit 1); exit 1; }; }
3959 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3960 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3961 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3962   echo $ECHO_N "(cached) $ECHO_C" >&6
3963 else
3964   # I'd rather use --version here, but apparently some GNU lds only accept -v.
3965 case `$LD -v 2>&1 </dev/null` in
3966 *GNU* | *'with BFD'*)
3967   lt_cv_prog_gnu_ld=yes
3968   ;;
3969 *)
3970   lt_cv_prog_gnu_ld=no
3971   ;;
3972 esac
3973 fi
3974 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3975 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3976 with_gnu_ld=$lt_cv_prog_gnu_ld
3977
3978
3979 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3980 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3981 if test "${lt_cv_ld_reload_flag+set}" = set; then
3982   echo $ECHO_N "(cached) $ECHO_C" >&6
3983 else
3984   lt_cv_ld_reload_flag='-r'
3985 fi
3986 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3987 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3988 reload_flag=$lt_cv_ld_reload_flag
3989 case $reload_flag in
3990 "" | " "*) ;;
3991 *) reload_flag=" $reload_flag" ;;
3992 esac
3993 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3994 case $host_os in
3995   darwin*)
3996     if test "$GCC" = yes; then
3997       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3998     else
3999       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4000     fi
4001     ;;
4002 esac
4003
4004 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4005 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4006 if test "${lt_cv_path_NM+set}" = set; then
4007   echo $ECHO_N "(cached) $ECHO_C" >&6
4008 else
4009   if test -n "$NM"; then
4010   # Let the user override the test.
4011   lt_cv_path_NM="$NM"
4012 else
4013   lt_nm_to_check="${ac_tool_prefix}nm"
4014   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4015     lt_nm_to_check="$lt_nm_to_check nm"
4016   fi
4017   for lt_tmp_nm in $lt_nm_to_check; do
4018     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4019     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4020       IFS="$lt_save_ifs"
4021       test -z "$ac_dir" && ac_dir=.
4022       tmp_nm="$ac_dir/$lt_tmp_nm"
4023       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4024         # Check to see if the nm accepts a BSD-compat flag.
4025         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4026         #   nm: unknown option "B" ignored
4027         # Tru64's nm complains that /dev/null is an invalid object file
4028         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4029         */dev/null* | *'Invalid file or object type'*)
4030           lt_cv_path_NM="$tmp_nm -B"
4031           break
4032           ;;
4033         *)
4034           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4035           */dev/null*)
4036             lt_cv_path_NM="$tmp_nm -p"
4037             break
4038             ;;
4039           *)
4040             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4041             continue # so that we can try to find one that supports BSD flags
4042             ;;
4043           esac
4044           ;;
4045         esac
4046       fi
4047     done
4048     IFS="$lt_save_ifs"
4049   done
4050   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4051 fi
4052 fi
4053 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4054 echo "${ECHO_T}$lt_cv_path_NM" >&6
4055 NM="$lt_cv_path_NM"
4056
4057 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4058 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4059 LN_S=$as_ln_s
4060 if test "$LN_S" = "ln -s"; then
4061   echo "$as_me:$LINENO: result: yes" >&5
4062 echo "${ECHO_T}yes" >&6
4063 else
4064   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4065 echo "${ECHO_T}no, using $LN_S" >&6
4066 fi
4067
4068 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4069 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4070 if test "${lt_cv_deplibs_check_method+set}" = set; then
4071   echo $ECHO_N "(cached) $ECHO_C" >&6
4072 else
4073   lt_cv_file_magic_cmd='$MAGIC_CMD'
4074 lt_cv_file_magic_test_file=
4075 lt_cv_deplibs_check_method='unknown'
4076 # Need to set the preceding variable on all platforms that support
4077 # interlibrary dependencies.
4078 # 'none' -- dependencies not supported.
4079 # `unknown' -- same as none, but documents that we really don't know.
4080 # 'pass_all' -- all dependencies passed with no checks.
4081 # 'test_compile' -- check by making test program.
4082 # 'file_magic [[regex]]' -- check by looking for files in library path
4083 # which responds to the $file_magic_cmd with a given extended regex.
4084 # If you have `file' or equivalent on your system and you're not sure
4085 # whether `pass_all' will *always* work, you probably want this one.
4086
4087 case $host_os in
4088 aix4* | aix5*)
4089   lt_cv_deplibs_check_method=pass_all
4090   ;;
4091
4092 beos*)
4093   lt_cv_deplibs_check_method=pass_all
4094   ;;
4095
4096 bsdi[45]*)
4097   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4098   lt_cv_file_magic_cmd='/usr/bin/file -L'
4099   lt_cv_file_magic_test_file=/shlib/libc.so
4100   ;;
4101
4102 cygwin*)
4103   # func_win32_libid is a shell function defined in ltmain.sh
4104   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4105   lt_cv_file_magic_cmd='func_win32_libid'
4106   ;;
4107
4108 mingw* | pw32*)
4109   # Base MSYS/MinGW do not provide the 'file' command needed by
4110   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4111   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4112   lt_cv_file_magic_cmd='$OBJDUMP -f'
4113   ;;
4114
4115 darwin* | rhapsody*)
4116   lt_cv_deplibs_check_method=pass_all
4117   ;;
4118
4119 freebsd* | kfreebsd*-gnu | dragonfly*)
4120   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4121     case $host_cpu in
4122     i*86 )
4123       # Not sure whether the presence of OpenBSD here was a mistake.
4124       # Let's accept both of them until this is cleared up.
4125       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4126       lt_cv_file_magic_cmd=/usr/bin/file
4127       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4128       ;;
4129     esac
4130   else
4131     lt_cv_deplibs_check_method=pass_all
4132   fi
4133   ;;
4134
4135 gnu*)
4136   lt_cv_deplibs_check_method=pass_all
4137   ;;
4138
4139 hpux10.20* | hpux11*)
4140   lt_cv_file_magic_cmd=/usr/bin/file
4141   case $host_cpu in
4142   ia64*)
4143     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4144     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4145     ;;
4146   hppa*64*)
4147     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]'
4148     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4149     ;;
4150   *)
4151     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4152     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4153     ;;
4154   esac
4155   ;;
4156
4157 interix3*)
4158   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4159   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4160   ;;
4161
4162 irix5* | irix6* | nonstopux*)
4163   case $LD in
4164   *-32|*"-32 ") libmagic=32-bit;;
4165   *-n32|*"-n32 ") libmagic=N32;;
4166   *-64|*"-64 ") libmagic=64-bit;;
4167   *) libmagic=never-match;;
4168   esac
4169   lt_cv_deplibs_check_method=pass_all
4170   ;;
4171
4172 # This must be Linux ELF.
4173 linux*)
4174   lt_cv_deplibs_check_method=pass_all
4175   ;;
4176
4177 netbsd*)
4178   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4179     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4180   else
4181     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4182   fi
4183   ;;
4184
4185 newos6*)
4186   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4187   lt_cv_file_magic_cmd=/usr/bin/file
4188   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4189   ;;
4190
4191 nto-qnx*)
4192   lt_cv_deplibs_check_method=unknown
4193   ;;
4194
4195 openbsd*)
4196   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4197     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4198   else
4199     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4200   fi
4201   ;;
4202
4203 osf3* | osf4* | osf5*)
4204   lt_cv_deplibs_check_method=pass_all
4205   ;;
4206
4207 solaris*)
4208   lt_cv_deplibs_check_method=pass_all
4209   ;;
4210
4211 sysv4 | sysv4.3*)
4212   case $host_vendor in
4213   motorola)
4214     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]'
4215     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4216     ;;
4217   ncr)
4218     lt_cv_deplibs_check_method=pass_all
4219     ;;
4220   sequent)
4221     lt_cv_file_magic_cmd='/bin/file'
4222     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4223     ;;
4224   sni)
4225     lt_cv_file_magic_cmd='/bin/file'
4226     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4227     lt_cv_file_magic_test_file=/lib/libc.so
4228     ;;
4229   siemens)
4230     lt_cv_deplibs_check_method=pass_all
4231     ;;
4232   pc)
4233     lt_cv_deplibs_check_method=pass_all
4234     ;;
4235   esac
4236   ;;
4237
4238 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4239   lt_cv_deplibs_check_method=pass_all
4240   ;;
4241 esac
4242
4243 fi
4244 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4245 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4246 file_magic_cmd=$lt_cv_file_magic_cmd
4247 deplibs_check_method=$lt_cv_deplibs_check_method
4248 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4249
4250
4251
4252
4253 # If no C compiler was specified, use CC.
4254 LTCC=${LTCC-"$CC"}
4255
4256 # If no C compiler flags were specified, use CFLAGS.
4257 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4258
4259 # Allow CC to be a program name with arguments.
4260 compiler=$CC
4261
4262
4263 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4264 if test "${enable_libtool_lock+set}" = set; then
4265   enableval="$enable_libtool_lock"
4266
4267 fi;
4268 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4269
4270 # Some flags need to be propagated to the compiler or linker for good
4271 # libtool support.
4272 case $host in
4273 ia64-*-hpux*)
4274   # Find out which ABI we are using.
4275   echo 'int i;' > conftest.$ac_ext
4276   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4277   (eval $ac_compile) 2>&5
4278   ac_status=$?
4279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280   (exit $ac_status); }; then
4281     case `/usr/bin/file conftest.$ac_objext` in
4282     *ELF-32*)
4283       HPUX_IA64_MODE="32"
4284       ;;
4285     *ELF-64*)
4286       HPUX_IA64_MODE="64"
4287       ;;
4288     esac
4289   fi
4290   rm -rf conftest*
4291   ;;
4292 *-*-irix6*)
4293   # Find out which ABI we are using.
4294   echo '#line 4294 "configure"' > conftest.$ac_ext
4295   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4296   (eval $ac_compile) 2>&5
4297   ac_status=$?
4298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299   (exit $ac_status); }; then
4300    if test "$lt_cv_prog_gnu_ld" = yes; then
4301     case `/usr/bin/file conftest.$ac_objext` in
4302     *32-bit*)
4303       LD="${LD-ld} -melf32bsmip"
4304       ;;
4305     *N32*)
4306       LD="${LD-ld} -melf32bmipn32"
4307       ;;
4308     *64-bit*)
4309       LD="${LD-ld} -melf64bmip"
4310       ;;
4311     esac
4312    else
4313     case `/usr/bin/file conftest.$ac_objext` in
4314     *32-bit*)
4315       LD="${LD-ld} -32"
4316       ;;
4317     *N32*)
4318       LD="${LD-ld} -n32"
4319       ;;
4320     *64-bit*)
4321       LD="${LD-ld} -64"
4322       ;;
4323     esac
4324    fi
4325   fi
4326   rm -rf conftest*
4327   ;;
4328
4329 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4330   # Find out which ABI we are using.
4331   echo 'int i;' > conftest.$ac_ext
4332   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4333   (eval $ac_compile) 2>&5
4334   ac_status=$?
4335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336   (exit $ac_status); }; then
4337     case `/usr/bin/file conftest.o` in
4338     *32-bit*)
4339       case $host in
4340         x86_64-*linux*)
4341           LD="${LD-ld} -m elf_i386"
4342           ;;
4343         ppc64-*linux*|powerpc64-*linux*)
4344           LD="${LD-ld} -m elf32ppclinux"
4345           ;;
4346         s390x-*linux*)
4347           LD="${LD-ld} -m elf_s390"
4348           ;;
4349         sparc64-*linux*)
4350           LD="${LD-ld} -m elf32_sparc"
4351           ;;
4352       esac
4353       ;;
4354     *64-bit*)
4355       case $host in
4356         x86_64-*linux*)
4357           LD="${LD-ld} -m elf_x86_64"
4358           ;;
4359         ppc*-*linux*|powerpc*-*linux*)
4360           LD="${LD-ld} -m elf64ppc"
4361           ;;
4362         s390*-*linux*)
4363           LD="${LD-ld} -m elf64_s390"
4364           ;;
4365         sparc*-*linux*)
4366           LD="${LD-ld} -m elf64_sparc"
4367           ;;
4368       esac
4369       ;;
4370     esac
4371   fi
4372   rm -rf conftest*
4373   ;;
4374
4375 *-*-sco3.2v5*)
4376   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4377   SAVE_CFLAGS="$CFLAGS"
4378   CFLAGS="$CFLAGS -belf"
4379   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4380 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4381 if test "${lt_cv_cc_needs_belf+set}" = set; then
4382   echo $ECHO_N "(cached) $ECHO_C" >&6
4383 else
4384   ac_ext=c
4385 ac_cpp='$CPP $CPPFLAGS'
4386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4389
4390      cat >conftest.$ac_ext <<_ACEOF
4391 /* confdefs.h.  */
4392 _ACEOF
4393 cat confdefs.h >>conftest.$ac_ext
4394 cat >>conftest.$ac_ext <<_ACEOF
4395 /* end confdefs.h.  */
4396
4397 int
4398 main ()
4399 {
4400
4401   ;
4402   return 0;
4403 }
4404 _ACEOF
4405 rm -f conftest.$ac_objext conftest$ac_exeext
4406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4407   (eval $ac_link) 2>conftest.er1
4408   ac_status=$?
4409   grep -v '^ *+' conftest.er1 >conftest.err
4410   rm -f conftest.er1
4411   cat conftest.err >&5
4412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413   (exit $ac_status); } &&
4414          { ac_try='test -z "$ac_c_werror_flag"
4415                          || test ! -s conftest.err'
4416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4417   (eval $ac_try) 2>&5
4418   ac_status=$?
4419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420   (exit $ac_status); }; } &&
4421          { ac_try='test -s conftest$ac_exeext'
4422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4423   (eval $ac_try) 2>&5
4424   ac_status=$?
4425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426   (exit $ac_status); }; }; then
4427   lt_cv_cc_needs_belf=yes
4428 else
4429   echo "$as_me: failed program was:" >&5
4430 sed 's/^/| /' conftest.$ac_ext >&5
4431
4432 lt_cv_cc_needs_belf=no
4433 fi
4434 rm -f conftest.err conftest.$ac_objext \
4435       conftest$ac_exeext conftest.$ac_ext
4436      ac_ext=c
4437 ac_cpp='$CPP $CPPFLAGS'
4438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4441
4442 fi
4443 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4444 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4445   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4446     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4447     CFLAGS="$SAVE_CFLAGS"
4448   fi
4449   ;;
4450 sparc*-*solaris*)
4451   # Find out which ABI we are using.
4452   echo 'int i;' > conftest.$ac_ext
4453   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4454   (eval $ac_compile) 2>&5
4455   ac_status=$?
4456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457   (exit $ac_status); }; then
4458     case `/usr/bin/file conftest.o` in
4459     *64-bit*)
4460       case $lt_cv_prog_gnu_ld in
4461       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4462       *)    LD="${LD-ld} -64" ;;
4463       esac
4464       ;;
4465     esac
4466   fi
4467   rm -rf conftest*
4468   ;;
4469
4470
4471 esac
4472
4473 need_locks="$enable_libtool_lock"
4474
4475
4476 ac_ext=c
4477 ac_cpp='$CPP $CPPFLAGS'
4478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4481 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4482 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4483 # On Suns, sometimes $CPP names a directory.
4484 if test -n "$CPP" && test -d "$CPP"; then
4485   CPP=
4486 fi
4487 if test -z "$CPP"; then
4488   if test "${ac_cv_prog_CPP+set}" = set; then
4489   echo $ECHO_N "(cached) $ECHO_C" >&6
4490 else
4491       # Double quotes because CPP needs to be expanded
4492     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4493     do
4494       ac_preproc_ok=false
4495 for ac_c_preproc_warn_flag in '' yes
4496 do
4497   # Use a header file that comes with gcc, so configuring glibc
4498   # with a fresh cross-compiler works.
4499   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4500   # <limits.h> exists even on freestanding compilers.
4501   # On the NeXT, cc -E runs the code through the compiler's parser,
4502   # not just through cpp. "Syntax error" is here to catch this case.
4503   cat >conftest.$ac_ext <<_ACEOF
4504 /* confdefs.h.  */
4505 _ACEOF
4506 cat confdefs.h >>conftest.$ac_ext
4507 cat >>conftest.$ac_ext <<_ACEOF
4508 /* end confdefs.h.  */
4509 #ifdef __STDC__
4510 # include <limits.h>
4511 #else
4512 # include <assert.h>
4513 #endif
4514                      Syntax error
4515 _ACEOF
4516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4517   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4518   ac_status=$?
4519   grep -v '^ *+' conftest.er1 >conftest.err
4520   rm -f conftest.er1
4521   cat conftest.err >&5
4522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523   (exit $ac_status); } >/dev/null; then
4524   if test -s conftest.err; then
4525     ac_cpp_err=$ac_c_preproc_warn_flag
4526     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4527   else
4528     ac_cpp_err=
4529   fi
4530 else
4531   ac_cpp_err=yes
4532 fi
4533 if test -z "$ac_cpp_err"; then
4534   :
4535 else
4536   echo "$as_me: failed program was:" >&5
4537 sed 's/^/| /' conftest.$ac_ext >&5
4538
4539   # Broken: fails on valid input.
4540 continue
4541 fi
4542 rm -f conftest.err conftest.$ac_ext
4543
4544   # OK, works on sane cases.  Now check whether non-existent headers
4545   # can be detected and how.
4546   cat >conftest.$ac_ext <<_ACEOF
4547 /* confdefs.h.  */
4548 _ACEOF
4549 cat confdefs.h >>conftest.$ac_ext
4550 cat >>conftest.$ac_ext <<_ACEOF
4551 /* end confdefs.h.  */
4552 #include <ac_nonexistent.h>
4553 _ACEOF
4554 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4555   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4556   ac_status=$?
4557   grep -v '^ *+' conftest.er1 >conftest.err
4558   rm -f conftest.er1
4559   cat conftest.err >&5
4560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561   (exit $ac_status); } >/dev/null; then
4562   if test -s conftest.err; then
4563     ac_cpp_err=$ac_c_preproc_warn_flag
4564     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4565   else
4566     ac_cpp_err=
4567   fi
4568 else
4569   ac_cpp_err=yes
4570 fi
4571 if test -z "$ac_cpp_err"; then
4572   # Broken: success on invalid input.
4573 continue
4574 else
4575   echo "$as_me: failed program was:" >&5
4576 sed 's/^/| /' conftest.$ac_ext >&5
4577
4578   # Passes both tests.
4579 ac_preproc_ok=:
4580 break
4581 fi
4582 rm -f conftest.err conftest.$ac_ext
4583
4584 done
4585 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4586 rm -f conftest.err conftest.$ac_ext
4587 if $ac_preproc_ok; then
4588   break
4589 fi
4590
4591     done
4592     ac_cv_prog_CPP=$CPP
4593
4594 fi
4595   CPP=$ac_cv_prog_CPP
4596 else
4597   ac_cv_prog_CPP=$CPP
4598 fi
4599 echo "$as_me:$LINENO: result: $CPP" >&5
4600 echo "${ECHO_T}$CPP" >&6
4601 ac_preproc_ok=false
4602 for ac_c_preproc_warn_flag in '' yes
4603 do
4604   # Use a header file that comes with gcc, so configuring glibc
4605   # with a fresh cross-compiler works.
4606   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4607   # <limits.h> exists even on freestanding compilers.
4608   # On the NeXT, cc -E runs the code through the compiler's parser,
4609   # not just through cpp. "Syntax error" is here to catch this case.
4610   cat >conftest.$ac_ext <<_ACEOF
4611 /* confdefs.h.  */
4612 _ACEOF
4613 cat confdefs.h >>conftest.$ac_ext
4614 cat >>conftest.$ac_ext <<_ACEOF
4615 /* end confdefs.h.  */
4616 #ifdef __STDC__
4617 # include <limits.h>
4618 #else
4619 # include <assert.h>
4620 #endif
4621                      Syntax error
4622 _ACEOF
4623 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4624   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4625   ac_status=$?
4626   grep -v '^ *+' conftest.er1 >conftest.err
4627   rm -f conftest.er1
4628   cat conftest.err >&5
4629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630   (exit $ac_status); } >/dev/null; then
4631   if test -s conftest.err; then
4632     ac_cpp_err=$ac_c_preproc_warn_flag
4633     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4634   else
4635     ac_cpp_err=
4636   fi
4637 else
4638   ac_cpp_err=yes
4639 fi
4640 if test -z "$ac_cpp_err"; then
4641   :
4642 else
4643   echo "$as_me: failed program was:" >&5
4644 sed 's/^/| /' conftest.$ac_ext >&5
4645
4646   # Broken: fails on valid input.
4647 continue
4648 fi
4649 rm -f conftest.err conftest.$ac_ext
4650
4651   # OK, works on sane cases.  Now check whether non-existent headers
4652   # can be detected and how.
4653   cat >conftest.$ac_ext <<_ACEOF
4654 /* confdefs.h.  */
4655 _ACEOF
4656 cat confdefs.h >>conftest.$ac_ext
4657 cat >>conftest.$ac_ext <<_ACEOF
4658 /* end confdefs.h.  */
4659 #include <ac_nonexistent.h>
4660 _ACEOF
4661 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4662   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4663   ac_status=$?
4664   grep -v '^ *+' conftest.er1 >conftest.err
4665   rm -f conftest.er1
4666   cat conftest.err >&5
4667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668   (exit $ac_status); } >/dev/null; then
4669   if test -s conftest.err; then
4670     ac_cpp_err=$ac_c_preproc_warn_flag
4671     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4672   else
4673     ac_cpp_err=
4674   fi
4675 else
4676   ac_cpp_err=yes
4677 fi
4678 if test -z "$ac_cpp_err"; then
4679   # Broken: success on invalid input.
4680 continue
4681 else
4682   echo "$as_me: failed program was:" >&5
4683 sed 's/^/| /' conftest.$ac_ext >&5
4684
4685   # Passes both tests.
4686 ac_preproc_ok=:
4687 break
4688 fi
4689 rm -f conftest.err conftest.$ac_ext
4690
4691 done
4692 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4693 rm -f conftest.err conftest.$ac_ext
4694 if $ac_preproc_ok; then
4695   :
4696 else
4697   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4698 See \`config.log' for more details." >&5
4699 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4700 See \`config.log' for more details." >&2;}
4701    { (exit 1); exit 1; }; }
4702 fi
4703
4704 ac_ext=c
4705 ac_cpp='$CPP $CPPFLAGS'
4706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4709
4710
4711 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4712 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4713 if test "${ac_cv_header_stdc+set}" = set; then
4714   echo $ECHO_N "(cached) $ECHO_C" >&6
4715 else
4716   cat >conftest.$ac_ext <<_ACEOF
4717 /* confdefs.h.  */
4718 _ACEOF
4719 cat confdefs.h >>conftest.$ac_ext
4720 cat >>conftest.$ac_ext <<_ACEOF
4721 /* end confdefs.h.  */
4722 #include <stdlib.h>
4723 #include <stdarg.h>
4724 #include <string.h>
4725 #include <float.h>
4726
4727 int
4728 main ()
4729 {
4730
4731   ;
4732   return 0;
4733 }
4734 _ACEOF
4735 rm -f conftest.$ac_objext
4736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4737   (eval $ac_compile) 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); } &&
4744          { ac_try='test -z "$ac_c_werror_flag"
4745                          || test ! -s conftest.err'
4746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4747   (eval $ac_try) 2>&5
4748   ac_status=$?
4749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750   (exit $ac_status); }; } &&
4751          { ac_try='test -s conftest.$ac_objext'
4752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4753   (eval $ac_try) 2>&5
4754   ac_status=$?
4755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756   (exit $ac_status); }; }; then
4757   ac_cv_header_stdc=yes
4758 else
4759   echo "$as_me: failed program was:" >&5
4760 sed 's/^/| /' conftest.$ac_ext >&5
4761
4762 ac_cv_header_stdc=no
4763 fi
4764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4765
4766 if test $ac_cv_header_stdc = yes; then
4767   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4768   cat >conftest.$ac_ext <<_ACEOF
4769 /* confdefs.h.  */
4770 _ACEOF
4771 cat confdefs.h >>conftest.$ac_ext
4772 cat >>conftest.$ac_ext <<_ACEOF
4773 /* end confdefs.h.  */
4774 #include <string.h>
4775
4776 _ACEOF
4777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4778   $EGREP "memchr" >/dev/null 2>&1; then
4779   :
4780 else
4781   ac_cv_header_stdc=no
4782 fi
4783 rm -f conftest*
4784
4785 fi
4786
4787 if test $ac_cv_header_stdc = yes; then
4788   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4789   cat >conftest.$ac_ext <<_ACEOF
4790 /* confdefs.h.  */
4791 _ACEOF
4792 cat confdefs.h >>conftest.$ac_ext
4793 cat >>conftest.$ac_ext <<_ACEOF
4794 /* end confdefs.h.  */
4795 #include <stdlib.h>
4796
4797 _ACEOF
4798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4799   $EGREP "free" >/dev/null 2>&1; then
4800   :
4801 else
4802   ac_cv_header_stdc=no
4803 fi
4804 rm -f conftest*
4805
4806 fi
4807
4808 if test $ac_cv_header_stdc = yes; then
4809   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4810   if test "$cross_compiling" = yes; then
4811   :
4812 else
4813   cat >conftest.$ac_ext <<_ACEOF
4814 /* confdefs.h.  */
4815 _ACEOF
4816 cat confdefs.h >>conftest.$ac_ext
4817 cat >>conftest.$ac_ext <<_ACEOF
4818 /* end confdefs.h.  */
4819 #include <ctype.h>
4820 #if ((' ' & 0x0FF) == 0x020)
4821 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4822 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4823 #else
4824 # define ISLOWER(c) \
4825                    (('a' <= (c) && (c) <= 'i') \
4826                      || ('j' <= (c) && (c) <= 'r') \
4827                      || ('s' <= (c) && (c) <= 'z'))
4828 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4829 #endif
4830
4831 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4832 int
4833 main ()
4834 {
4835   int i;
4836   for (i = 0; i < 256; i++)
4837     if (XOR (islower (i), ISLOWER (i))
4838         || toupper (i) != TOUPPER (i))
4839       exit(2);
4840   exit (0);
4841 }
4842 _ACEOF
4843 rm -f conftest$ac_exeext
4844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4845   (eval $ac_link) 2>&5
4846   ac_status=$?
4847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4850   (eval $ac_try) 2>&5
4851   ac_status=$?
4852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853   (exit $ac_status); }; }; then
4854   :
4855 else
4856   echo "$as_me: program exited with status $ac_status" >&5
4857 echo "$as_me: failed program was:" >&5
4858 sed 's/^/| /' conftest.$ac_ext >&5
4859
4860 ( exit $ac_status )
4861 ac_cv_header_stdc=no
4862 fi
4863 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4864 fi
4865 fi
4866 fi
4867 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4868 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4869 if test $ac_cv_header_stdc = yes; then
4870
4871 cat >>confdefs.h <<\_ACEOF
4872 #define STDC_HEADERS 1
4873 _ACEOF
4874
4875 fi
4876
4877 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4888                   inttypes.h stdint.h unistd.h
4889 do
4890 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4891 echo "$as_me:$LINENO: checking for $ac_header" >&5
4892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4893 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4894   echo $ECHO_N "(cached) $ECHO_C" >&6
4895 else
4896   cat >conftest.$ac_ext <<_ACEOF
4897 /* confdefs.h.  */
4898 _ACEOF
4899 cat confdefs.h >>conftest.$ac_ext
4900 cat >>conftest.$ac_ext <<_ACEOF
4901 /* end confdefs.h.  */
4902 $ac_includes_default
4903
4904 #include <$ac_header>
4905 _ACEOF
4906 rm -f conftest.$ac_objext
4907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4908   (eval $ac_compile) 2>conftest.er1
4909   ac_status=$?
4910   grep -v '^ *+' conftest.er1 >conftest.err
4911   rm -f conftest.er1
4912   cat conftest.err >&5
4913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914   (exit $ac_status); } &&
4915          { ac_try='test -z "$ac_c_werror_flag"
4916                          || test ! -s conftest.err'
4917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4918   (eval $ac_try) 2>&5
4919   ac_status=$?
4920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921   (exit $ac_status); }; } &&
4922          { ac_try='test -s conftest.$ac_objext'
4923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4924   (eval $ac_try) 2>&5
4925   ac_status=$?
4926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927   (exit $ac_status); }; }; then
4928   eval "$as_ac_Header=yes"
4929 else
4930   echo "$as_me: failed program was:" >&5
4931 sed 's/^/| /' conftest.$ac_ext >&5
4932
4933 eval "$as_ac_Header=no"
4934 fi
4935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4936 fi
4937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4939 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4940   cat >>confdefs.h <<_ACEOF
4941 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4942 _ACEOF
4943
4944 fi
4945
4946 done
4947
4948
4949
4950 for ac_header in dlfcn.h
4951 do
4952 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4954   echo "$as_me:$LINENO: checking for $ac_header" >&5
4955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4957   echo $ECHO_N "(cached) $ECHO_C" >&6
4958 fi
4959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4960 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4961 else
4962   # Is the header compilable?
4963 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4964 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4965 cat >conftest.$ac_ext <<_ACEOF
4966 /* confdefs.h.  */
4967 _ACEOF
4968 cat confdefs.h >>conftest.$ac_ext
4969 cat >>conftest.$ac_ext <<_ACEOF
4970 /* end confdefs.h.  */
4971 $ac_includes_default
4972 #include <$ac_header>
4973 _ACEOF
4974 rm -f conftest.$ac_objext
4975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4976   (eval $ac_compile) 2>conftest.er1
4977   ac_status=$?
4978   grep -v '^ *+' conftest.er1 >conftest.err
4979   rm -f conftest.er1
4980   cat conftest.err >&5
4981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982   (exit $ac_status); } &&
4983          { ac_try='test -z "$ac_c_werror_flag"
4984                          || test ! -s conftest.err'
4985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4986   (eval $ac_try) 2>&5
4987   ac_status=$?
4988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989   (exit $ac_status); }; } &&
4990          { ac_try='test -s conftest.$ac_objext'
4991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4992   (eval $ac_try) 2>&5
4993   ac_status=$?
4994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995   (exit $ac_status); }; }; then
4996   ac_header_compiler=yes
4997 else
4998   echo "$as_me: failed program was:" >&5
4999 sed 's/^/| /' conftest.$ac_ext >&5
5000
5001 ac_header_compiler=no
5002 fi
5003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5004 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5005 echo "${ECHO_T}$ac_header_compiler" >&6
5006
5007 # Is the header present?
5008 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5010 cat >conftest.$ac_ext <<_ACEOF
5011 /* confdefs.h.  */
5012 _ACEOF
5013 cat confdefs.h >>conftest.$ac_ext
5014 cat >>conftest.$ac_ext <<_ACEOF
5015 /* end confdefs.h.  */
5016 #include <$ac_header>
5017 _ACEOF
5018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5019   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5020   ac_status=$?
5021   grep -v '^ *+' conftest.er1 >conftest.err
5022   rm -f conftest.er1
5023   cat conftest.err >&5
5024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025   (exit $ac_status); } >/dev/null; then
5026   if test -s conftest.err; then
5027     ac_cpp_err=$ac_c_preproc_warn_flag
5028     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5029   else
5030     ac_cpp_err=
5031   fi
5032 else
5033   ac_cpp_err=yes
5034 fi
5035 if test -z "$ac_cpp_err"; then
5036   ac_header_preproc=yes
5037 else
5038   echo "$as_me: failed program was:" >&5
5039 sed 's/^/| /' conftest.$ac_ext >&5
5040
5041   ac_header_preproc=no
5042 fi
5043 rm -f conftest.err conftest.$ac_ext
5044 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5045 echo "${ECHO_T}$ac_header_preproc" >&6
5046
5047 # So?  What about this header?
5048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5049   yes:no: )
5050     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5051 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5052     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5053 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5054     ac_header_preproc=yes
5055     ;;
5056   no:yes:* )
5057     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5058 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5059     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5060 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5061     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5062 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5063     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5064 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5065     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5066 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5067     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5068 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5069     (
5070       cat <<\_ASBOX
5071 ## -------------------------------------------- ##
5072 ## Report this to sebastian.marsching@suphp.org ##
5073 ## -------------------------------------------- ##
5074 _ASBOX
5075     ) |
5076       sed "s/^/$as_me: WARNING:     /" >&2
5077     ;;
5078 esac
5079 echo "$as_me:$LINENO: checking for $ac_header" >&5
5080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5082   echo $ECHO_N "(cached) $ECHO_C" >&6
5083 else
5084   eval "$as_ac_Header=\$ac_header_preproc"
5085 fi
5086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5088
5089 fi
5090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5091   cat >>confdefs.h <<_ACEOF
5092 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5093 _ACEOF
5094
5095 fi
5096
5097 done
5098
5099
5100
5101 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5102     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5103     (test "X$CXX" != "Xg++"))) ; then
5104   ac_ext=cc
5105 ac_cpp='$CXXCPP $CPPFLAGS'
5106 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5107 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5108 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5109 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5110 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5111 if test -z "$CXXCPP"; then
5112   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5113   echo $ECHO_N "(cached) $ECHO_C" >&6
5114 else
5115       # Double quotes because CXXCPP needs to be expanded
5116     for CXXCPP in "$CXX -E" "/lib/cpp"
5117     do
5118       ac_preproc_ok=false
5119 for ac_cxx_preproc_warn_flag in '' yes
5120 do
5121   # Use a header file that comes with gcc, so configuring glibc
5122   # with a fresh cross-compiler works.
5123   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5124   # <limits.h> exists even on freestanding compilers.
5125   # On the NeXT, cc -E runs the code through the compiler's parser,
5126   # not just through cpp. "Syntax error" is here to catch this case.
5127   cat >conftest.$ac_ext <<_ACEOF
5128 /* confdefs.h.  */
5129 _ACEOF
5130 cat confdefs.h >>conftest.$ac_ext
5131 cat >>conftest.$ac_ext <<_ACEOF
5132 /* end confdefs.h.  */
5133 #ifdef __STDC__
5134 # include <limits.h>
5135 #else
5136 # include <assert.h>
5137 #endif
5138                      Syntax error
5139 _ACEOF
5140 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5141   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5142   ac_status=$?
5143   grep -v '^ *+' conftest.er1 >conftest.err
5144   rm -f conftest.er1
5145   cat conftest.err >&5
5146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147   (exit $ac_status); } >/dev/null; then
5148   if test -s conftest.err; then
5149     ac_cpp_err=$ac_cxx_preproc_warn_flag
5150     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5151   else
5152     ac_cpp_err=
5153   fi
5154 else
5155   ac_cpp_err=yes
5156 fi
5157 if test -z "$ac_cpp_err"; then
5158   :
5159 else
5160   echo "$as_me: failed program was:" >&5
5161 sed 's/^/| /' conftest.$ac_ext >&5
5162
5163   # Broken: fails on valid input.
5164 continue
5165 fi
5166 rm -f conftest.err conftest.$ac_ext
5167
5168   # OK, works on sane cases.  Now check whether non-existent headers
5169   # can be detected and how.
5170   cat >conftest.$ac_ext <<_ACEOF
5171 /* confdefs.h.  */
5172 _ACEOF
5173 cat confdefs.h >>conftest.$ac_ext
5174 cat >>conftest.$ac_ext <<_ACEOF
5175 /* end confdefs.h.  */
5176 #include <ac_nonexistent.h>
5177 _ACEOF
5178 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5179   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5180   ac_status=$?
5181   grep -v '^ *+' conftest.er1 >conftest.err
5182   rm -f conftest.er1
5183   cat conftest.err >&5
5184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185   (exit $ac_status); } >/dev/null; then
5186   if test -s conftest.err; then
5187     ac_cpp_err=$ac_cxx_preproc_warn_flag
5188     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5189   else
5190     ac_cpp_err=
5191   fi
5192 else
5193   ac_cpp_err=yes
5194 fi
5195 if test -z "$ac_cpp_err"; then
5196   # Broken: success on invalid input.
5197 continue
5198 else
5199   echo "$as_me: failed program was:" >&5
5200 sed 's/^/| /' conftest.$ac_ext >&5
5201
5202   # Passes both tests.
5203 ac_preproc_ok=:
5204 break
5205 fi
5206 rm -f conftest.err conftest.$ac_ext
5207
5208 done
5209 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5210 rm -f conftest.err conftest.$ac_ext
5211 if $ac_preproc_ok; then
5212   break
5213 fi
5214
5215     done
5216     ac_cv_prog_CXXCPP=$CXXCPP
5217
5218 fi
5219   CXXCPP=$ac_cv_prog_CXXCPP
5220 else
5221   ac_cv_prog_CXXCPP=$CXXCPP
5222 fi
5223 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5224 echo "${ECHO_T}$CXXCPP" >&6
5225 ac_preproc_ok=false
5226 for ac_cxx_preproc_warn_flag in '' yes
5227 do
5228   # Use a header file that comes with gcc, so configuring glibc
5229   # with a fresh cross-compiler works.
5230   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5231   # <limits.h> exists even on freestanding compilers.
5232   # On the NeXT, cc -E runs the code through the compiler's parser,
5233   # not just through cpp. "Syntax error" is here to catch this case.
5234   cat >conftest.$ac_ext <<_ACEOF
5235 /* confdefs.h.  */
5236 _ACEOF
5237 cat confdefs.h >>conftest.$ac_ext
5238 cat >>conftest.$ac_ext <<_ACEOF
5239 /* end confdefs.h.  */
5240 #ifdef __STDC__
5241 # include <limits.h>
5242 #else
5243 # include <assert.h>
5244 #endif
5245                      Syntax error
5246 _ACEOF
5247 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5248   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5249   ac_status=$?
5250   grep -v '^ *+' conftest.er1 >conftest.err
5251   rm -f conftest.er1
5252   cat conftest.err >&5
5253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254   (exit $ac_status); } >/dev/null; then
5255   if test -s conftest.err; then
5256     ac_cpp_err=$ac_cxx_preproc_warn_flag
5257     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5258   else
5259     ac_cpp_err=
5260   fi
5261 else
5262   ac_cpp_err=yes
5263 fi
5264 if test -z "$ac_cpp_err"; then
5265   :
5266 else
5267   echo "$as_me: failed program was:" >&5
5268 sed 's/^/| /' conftest.$ac_ext >&5
5269
5270   # Broken: fails on valid input.
5271 continue
5272 fi
5273 rm -f conftest.err conftest.$ac_ext
5274
5275   # OK, works on sane cases.  Now check whether non-existent headers
5276   # can be detected and how.
5277   cat >conftest.$ac_ext <<_ACEOF
5278 /* confdefs.h.  */
5279 _ACEOF
5280 cat confdefs.h >>conftest.$ac_ext
5281 cat >>conftest.$ac_ext <<_ACEOF
5282 /* end confdefs.h.  */
5283 #include <ac_nonexistent.h>
5284 _ACEOF
5285 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5286   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5287   ac_status=$?
5288   grep -v '^ *+' conftest.er1 >conftest.err
5289   rm -f conftest.er1
5290   cat conftest.err >&5
5291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292   (exit $ac_status); } >/dev/null; then
5293   if test -s conftest.err; then
5294     ac_cpp_err=$ac_cxx_preproc_warn_flag
5295     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5296   else
5297     ac_cpp_err=
5298   fi
5299 else
5300   ac_cpp_err=yes
5301 fi
5302 if test -z "$ac_cpp_err"; then
5303   # Broken: success on invalid input.
5304 continue
5305 else
5306   echo "$as_me: failed program was:" >&5
5307 sed 's/^/| /' conftest.$ac_ext >&5
5308
5309   # Passes both tests.
5310 ac_preproc_ok=:
5311 break
5312 fi
5313 rm -f conftest.err conftest.$ac_ext
5314
5315 done
5316 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5317 rm -f conftest.err conftest.$ac_ext
5318 if $ac_preproc_ok; then
5319   :
5320 else
5321   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5322 See \`config.log' for more details." >&5
5323 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5324 See \`config.log' for more details." >&2;}
5325    { (exit 1); exit 1; }; }
5326 fi
5327
5328 ac_ext=cc
5329 ac_cpp='$CXXCPP $CPPFLAGS'
5330 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5331 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5332 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5333
5334 fi
5335
5336
5337 ac_ext=f
5338 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5339 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5340 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5341 if test -n "$ac_tool_prefix"; then
5342   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5343   do
5344     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5345 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5346 echo "$as_me:$LINENO: checking for $ac_word" >&5
5347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5348 if test "${ac_cv_prog_F77+set}" = set; then
5349   echo $ECHO_N "(cached) $ECHO_C" >&6
5350 else
5351   if test -n "$F77"; then
5352   ac_cv_prog_F77="$F77" # Let the user override the test.
5353 else
5354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5355 for as_dir in $PATH
5356 do
5357   IFS=$as_save_IFS
5358   test -z "$as_dir" && as_dir=.
5359   for ac_exec_ext in '' $ac_executable_extensions; do
5360   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5361     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5362     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5363     break 2
5364   fi
5365 done
5366 done
5367
5368 fi
5369 fi
5370 F77=$ac_cv_prog_F77
5371 if test -n "$F77"; then
5372   echo "$as_me:$LINENO: result: $F77" >&5
5373 echo "${ECHO_T}$F77" >&6
5374 else
5375   echo "$as_me:$LINENO: result: no" >&5
5376 echo "${ECHO_T}no" >&6
5377 fi
5378
5379     test -n "$F77" && break
5380   done
5381 fi
5382 if test -z "$F77"; then
5383   ac_ct_F77=$F77
5384   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5385 do
5386   # Extract the first word of "$ac_prog", so it can be a program name with args.
5387 set dummy $ac_prog; ac_word=$2
5388 echo "$as_me:$LINENO: checking for $ac_word" >&5
5389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5390 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5391   echo $ECHO_N "(cached) $ECHO_C" >&6
5392 else
5393   if test -n "$ac_ct_F77"; then
5394   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5395 else
5396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397 for as_dir in $PATH
5398 do
5399   IFS=$as_save_IFS
5400   test -z "$as_dir" && as_dir=.
5401   for ac_exec_ext in '' $ac_executable_extensions; do
5402   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5403     ac_cv_prog_ac_ct_F77="$ac_prog"
5404     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5405     break 2
5406   fi
5407 done
5408 done
5409
5410 fi
5411 fi
5412 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5413 if test -n "$ac_ct_F77"; then
5414   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5415 echo "${ECHO_T}$ac_ct_F77" >&6
5416 else
5417   echo "$as_me:$LINENO: result: no" >&5
5418 echo "${ECHO_T}no" >&6
5419 fi
5420
5421   test -n "$ac_ct_F77" && break
5422 done
5423
5424   F77=$ac_ct_F77
5425 fi
5426
5427
5428 # Provide some information about the compiler.
5429 echo "$as_me:5429:" \
5430      "checking for Fortran 77 compiler version" >&5
5431 ac_compiler=`set X $ac_compile; echo $2`
5432 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5433   (eval $ac_compiler --version </dev/null >&5) 2>&5
5434   ac_status=$?
5435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436   (exit $ac_status); }
5437 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5438   (eval $ac_compiler -v </dev/null >&5) 2>&5
5439   ac_status=$?
5440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441   (exit $ac_status); }
5442 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5443   (eval $ac_compiler -V </dev/null >&5) 2>&5
5444   ac_status=$?
5445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446   (exit $ac_status); }
5447 rm -f a.out
5448
5449 # If we don't use `.F' as extension, the preprocessor is not run on the
5450 # input file.  (Note that this only needs to work for GNU compilers.)
5451 ac_save_ext=$ac_ext
5452 ac_ext=F
5453 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5454 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5455 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5456   echo $ECHO_N "(cached) $ECHO_C" >&6
5457 else
5458   cat >conftest.$ac_ext <<_ACEOF
5459       program main
5460 #ifndef __GNUC__
5461        choke me
5462 #endif
5463
5464       end
5465 _ACEOF
5466 rm -f conftest.$ac_objext
5467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5468   (eval $ac_compile) 2>conftest.er1
5469   ac_status=$?
5470   grep -v '^ *+' conftest.er1 >conftest.err
5471   rm -f conftest.er1
5472   cat conftest.err >&5
5473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474   (exit $ac_status); } &&
5475          { ac_try='test -z "$ac_f77_werror_flag"
5476                          || test ! -s conftest.err'
5477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5478   (eval $ac_try) 2>&5
5479   ac_status=$?
5480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481   (exit $ac_status); }; } &&
5482          { ac_try='test -s conftest.$ac_objext'
5483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5484   (eval $ac_try) 2>&5
5485   ac_status=$?
5486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487   (exit $ac_status); }; }; then
5488   ac_compiler_gnu=yes
5489 else
5490   echo "$as_me: failed program was:" >&5
5491 sed 's/^/| /' conftest.$ac_ext >&5
5492
5493 ac_compiler_gnu=no
5494 fi
5495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5496 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5497
5498 fi
5499 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5500 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5501 ac_ext=$ac_save_ext
5502 ac_test_FFLAGS=${FFLAGS+set}
5503 ac_save_FFLAGS=$FFLAGS
5504 FFLAGS=
5505 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5506 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5507 if test "${ac_cv_prog_f77_g+set}" = set; then
5508   echo $ECHO_N "(cached) $ECHO_C" >&6
5509 else
5510   FFLAGS=-g
5511 cat >conftest.$ac_ext <<_ACEOF
5512       program main
5513
5514       end
5515 _ACEOF
5516 rm -f conftest.$ac_objext
5517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5518   (eval $ac_compile) 2>conftest.er1
5519   ac_status=$?
5520   grep -v '^ *+' conftest.er1 >conftest.err
5521   rm -f conftest.er1
5522   cat conftest.err >&5
5523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524   (exit $ac_status); } &&
5525          { ac_try='test -z "$ac_f77_werror_flag"
5526                          || test ! -s conftest.err'
5527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5528   (eval $ac_try) 2>&5
5529   ac_status=$?
5530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531   (exit $ac_status); }; } &&
5532          { ac_try='test -s conftest.$ac_objext'
5533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5534   (eval $ac_try) 2>&5
5535   ac_status=$?
5536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537   (exit $ac_status); }; }; then
5538   ac_cv_prog_f77_g=yes
5539 else
5540   echo "$as_me: failed program was:" >&5
5541 sed 's/^/| /' conftest.$ac_ext >&5
5542
5543 ac_cv_prog_f77_g=no
5544 fi
5545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5546
5547 fi
5548 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5549 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5550 if test "$ac_test_FFLAGS" = set; then
5551   FFLAGS=$ac_save_FFLAGS
5552 elif test $ac_cv_prog_f77_g = yes; then
5553   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5554     FFLAGS="-g -O2"
5555   else
5556     FFLAGS="-g"
5557   fi
5558 else
5559   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5560     FFLAGS="-O2"
5561   else
5562     FFLAGS=
5563   fi
5564 fi
5565
5566 G77=`test $ac_compiler_gnu = yes && echo yes`
5567 ac_ext=c
5568 ac_cpp='$CPP $CPPFLAGS'
5569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5572
5573
5574
5575 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5576
5577 # find the maximum length of command line arguments
5578 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5579 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5580 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5581   echo $ECHO_N "(cached) $ECHO_C" >&6
5582 else
5583     i=0
5584   teststring="ABCD"
5585
5586   case $build_os in
5587   msdosdjgpp*)
5588     # On DJGPP, this test can blow up pretty badly due to problems in libc
5589     # (any single argument exceeding 2000 bytes causes a buffer overrun
5590     # during glob expansion).  Even if it were fixed, the result of this
5591     # check would be larger than it should be.
5592     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5593     ;;
5594
5595   gnu*)
5596     # Under GNU Hurd, this test is not required because there is
5597     # no limit to the length of command line arguments.
5598     # Libtool will interpret -1 as no limit whatsoever
5599     lt_cv_sys_max_cmd_len=-1;
5600     ;;
5601
5602   cygwin* | mingw*)
5603     # On Win9x/ME, this test blows up -- it succeeds, but takes
5604     # about 5 minutes as the teststring grows exponentially.
5605     # Worse, since 9x/ME are not pre-emptively multitasking,
5606     # you end up with a "frozen" computer, even though with patience
5607     # the test eventually succeeds (with a max line length of 256k).
5608     # Instead, let's just punt: use the minimum linelength reported by
5609     # all of the supported platforms: 8192 (on NT/2K/XP).
5610     lt_cv_sys_max_cmd_len=8192;
5611     ;;
5612
5613   amigaos*)
5614     # On AmigaOS with pdksh, this test takes hours, literally.
5615     # So we just punt and use a minimum line length of 8192.
5616     lt_cv_sys_max_cmd_len=8192;
5617     ;;
5618
5619   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5620     # This has been around since 386BSD, at least.  Likely further.
5621     if test -x /sbin/sysctl; then
5622       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5623     elif test -x /usr/sbin/sysctl; then
5624       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5625     else
5626       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5627     fi
5628     # And add a safety zone
5629     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5630     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5631     ;;
5632
5633   interix*)
5634     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5635     lt_cv_sys_max_cmd_len=196608
5636     ;;
5637
5638   osf*)
5639     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5640     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5641     # nice to cause kernel panics so lets avoid the loop below.
5642     # First set a reasonable default.
5643     lt_cv_sys_max_cmd_len=16384
5644     #
5645     if test -x /sbin/sysconfig; then
5646       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5647         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5648       esac
5649     fi
5650     ;;
5651   sco3.2v5*)
5652     lt_cv_sys_max_cmd_len=102400
5653     ;;
5654   sysv5* | sco5v6* | sysv4.2uw2*)
5655     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5656     if test -n "$kargmax"; then
5657       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
5658     else
5659       lt_cv_sys_max_cmd_len=32768
5660     fi
5661     ;;
5662   *)
5663     # If test is not a shell built-in, we'll probably end up computing a
5664     # maximum length that is only half of the actual maximum length, but
5665     # we can't tell.
5666     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5667     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5668                = "XX$teststring") >/dev/null 2>&1 &&
5669             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5670             lt_cv_sys_max_cmd_len=$new_result &&
5671             test $i != 17 # 1/2 MB should be enough
5672     do
5673       i=`expr $i + 1`
5674       teststring=$teststring$teststring
5675     done
5676     teststring=
5677     # Add a significant safety factor because C++ compilers can tack on massive
5678     # amounts of additional arguments before passing them to the linker.
5679     # It appears as though 1/2 is a usable value.
5680     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5681     ;;
5682   esac
5683
5684 fi
5685
5686 if test -n $lt_cv_sys_max_cmd_len ; then
5687   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5688 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5689 else
5690   echo "$as_me:$LINENO: result: none" >&5
5691 echo "${ECHO_T}none" >&6
5692 fi
5693
5694
5695
5696
5697 # Check for command to grab the raw symbol name followed by C symbol from nm.
5698 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5699 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5700 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5701   echo $ECHO_N "(cached) $ECHO_C" >&6
5702 else
5703
5704 # These are sane defaults that work on at least a few old systems.
5705 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5706
5707 # Character class describing NM global symbol codes.
5708 symcode='[BCDEGRST]'
5709
5710 # Regexp to match symbols that can be accessed directly from C.
5711 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5712
5713 # Transform an extracted symbol line into a proper C declaration
5714 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5715
5716 # Transform an extracted symbol line into symbol name and symbol address
5717 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'"
5718
5719 # Define system-specific variables.
5720 case $host_os in
5721 aix*)
5722   symcode='[BCDT]'
5723   ;;
5724 cygwin* | mingw* | pw32*)
5725   symcode='[ABCDGISTW]'
5726   ;;
5727 hpux*) # Its linker distinguishes data from code symbols
5728   if test "$host_cpu" = ia64; then
5729     symcode='[ABCDEGRST]'
5730   fi
5731   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5732   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'"
5733   ;;
5734 linux*)
5735   if test "$host_cpu" = ia64; then
5736     symcode='[ABCDGIRSTW]'
5737     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5738     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'"
5739   fi
5740   ;;
5741 irix* | nonstopux*)
5742   symcode='[BCDEGRST]'
5743   ;;
5744 osf*)
5745   symcode='[BCDEGQRST]'
5746   ;;
5747 solaris*)
5748   symcode='[BDRT]'
5749   ;;
5750 sco3.2v5*)
5751   symcode='[DT]'
5752   ;;
5753 sysv4.2uw2*)
5754   symcode='[DT]'
5755   ;;
5756 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5757   symcode='[ABDT]'
5758   ;;
5759 sysv4)
5760   symcode='[DFNSTU]'
5761   ;;
5762 esac
5763
5764 # Handle CRLF in mingw tool chain
5765 opt_cr=
5766 case $build_os in
5767 mingw*)
5768   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5769   ;;
5770 esac
5771
5772 # If we're using GNU nm, then use its standard symbol codes.
5773 case `$NM -V 2>&1` in
5774 *GNU* | *'with BFD'*)
5775   symcode='[ABCDGIRSTW]' ;;
5776 esac
5777
5778 # Try without a prefix undercore, then with it.
5779 for ac_symprfx in "" "_"; do
5780
5781   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5782   symxfrm="\\1 $ac_symprfx\\2 \\2"
5783
5784   # Write the raw and C identifiers.
5785   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5786
5787   # Check to see that the pipe works correctly.
5788   pipe_works=no
5789
5790   rm -f conftest*
5791   cat > conftest.$ac_ext <<EOF
5792 #ifdef __cplusplus
5793 extern "C" {
5794 #endif
5795 char nm_test_var;
5796 void nm_test_func(){}
5797 #ifdef __cplusplus
5798 }
5799 #endif
5800 int main(){nm_test_var='a';nm_test_func();return(0);}
5801 EOF
5802
5803   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5804   (eval $ac_compile) 2>&5
5805   ac_status=$?
5806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807   (exit $ac_status); }; then
5808     # Now try to grab the symbols.
5809     nlist=conftest.nm
5810     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5811   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5812   ac_status=$?
5813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814   (exit $ac_status); } && test -s "$nlist"; then
5815       # Try sorting and uniquifying the output.
5816       if sort "$nlist" | uniq > "$nlist"T; then
5817         mv -f "$nlist"T "$nlist"
5818       else
5819         rm -f "$nlist"T
5820       fi
5821
5822       # Make sure that we snagged all the symbols we need.
5823       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5824         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5825           cat <<EOF > conftest.$ac_ext
5826 #ifdef __cplusplus
5827 extern "C" {
5828 #endif
5829
5830 EOF
5831           # Now generate the symbol file.
5832           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5833
5834           cat <<EOF >> conftest.$ac_ext
5835 #if defined (__STDC__) && __STDC__
5836 # define lt_ptr_t void *
5837 #else
5838 # define lt_ptr_t char *
5839 # define const
5840 #endif
5841
5842 /* The mapping between symbol names and symbols. */
5843 const struct {
5844   const char *name;
5845   lt_ptr_t address;
5846 }
5847 lt_preloaded_symbols[] =
5848 {
5849 EOF
5850           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5851           cat <<\EOF >> conftest.$ac_ext
5852   {0, (lt_ptr_t) 0}
5853 };
5854
5855 #ifdef __cplusplus
5856 }
5857 #endif
5858 EOF
5859           # Now try linking the two files.
5860           mv conftest.$ac_objext conftstm.$ac_objext
5861           lt_save_LIBS="$LIBS"
5862           lt_save_CFLAGS="$CFLAGS"
5863           LIBS="conftstm.$ac_objext"
5864           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5865           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5866   (eval $ac_link) 2>&5
5867   ac_status=$?
5868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5870             pipe_works=yes
5871           fi
5872           LIBS="$lt_save_LIBS"
5873           CFLAGS="$lt_save_CFLAGS"
5874         else
5875           echo "cannot find nm_test_func in $nlist" >&5
5876         fi
5877       else
5878         echo "cannot find nm_test_var in $nlist" >&5
5879       fi
5880     else
5881       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5882     fi
5883   else
5884     echo "$progname: failed program was:" >&5
5885     cat conftest.$ac_ext >&5
5886   fi
5887   rm -f conftest* conftst*
5888
5889   # Do not use the global_symbol_pipe unless it works.
5890   if test "$pipe_works" = yes; then
5891     break
5892   else
5893     lt_cv_sys_global_symbol_pipe=
5894   fi
5895 done
5896
5897 fi
5898
5899 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5900   lt_cv_sys_global_symbol_to_cdecl=
5901 fi
5902 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5903   echo "$as_me:$LINENO: result: failed" >&5
5904 echo "${ECHO_T}failed" >&6
5905 else
5906   echo "$as_me:$LINENO: result: ok" >&5
5907 echo "${ECHO_T}ok" >&6
5908 fi
5909
5910 echo "$as_me:$LINENO: checking for objdir" >&5
5911 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5912 if test "${lt_cv_objdir+set}" = set; then
5913   echo $ECHO_N "(cached) $ECHO_C" >&6
5914 else
5915   rm -f .libs 2>/dev/null
5916 mkdir .libs 2>/dev/null
5917 if test -d .libs; then
5918   lt_cv_objdir=.libs
5919 else
5920   # MS-DOS does not allow filenames that begin with a dot.
5921   lt_cv_objdir=_libs
5922 fi
5923 rmdir .libs 2>/dev/null
5924 fi
5925 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5926 echo "${ECHO_T}$lt_cv_objdir" >&6
5927 objdir=$lt_cv_objdir
5928
5929
5930
5931
5932
5933 case $host_os in
5934 aix3*)
5935   # AIX sometimes has problems with the GCC collect2 program.  For some
5936   # reason, if we set the COLLECT_NAMES environment variable, the problems
5937   # vanish in a puff of smoke.
5938   if test "X${COLLECT_NAMES+set}" != Xset; then
5939     COLLECT_NAMES=
5940     export COLLECT_NAMES
5941   fi
5942   ;;
5943 esac
5944
5945 # Sed substitution that helps us do robust quoting.  It backslashifies
5946 # metacharacters that are still active within double-quoted strings.
5947 Xsed='sed -e 1s/^X//'
5948 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5949
5950 # Same as above, but do not quote variable references.
5951 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5952
5953 # Sed substitution to delay expansion of an escaped shell variable in a
5954 # double_quote_subst'ed string.
5955 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5956
5957 # Sed substitution to avoid accidental globbing in evaled expressions
5958 no_glob_subst='s/\*/\\\*/g'
5959
5960 # Constants:
5961 rm="rm -f"
5962
5963 # Global variables:
5964 default_ofile=libtool
5965 can_build_shared=yes
5966
5967 # All known linkers require a `.a' archive for static linking (except MSVC,
5968 # which needs '.lib').
5969 libext=a
5970 ltmain="$ac_aux_dir/ltmain.sh"
5971 ofile="$default_ofile"
5972 with_gnu_ld="$lt_cv_prog_gnu_ld"
5973
5974 if test -n "$ac_tool_prefix"; then
5975   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5976 set dummy ${ac_tool_prefix}ar; ac_word=$2
5977 echo "$as_me:$LINENO: checking for $ac_word" >&5
5978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5979 if test "${ac_cv_prog_AR+set}" = set; then
5980   echo $ECHO_N "(cached) $ECHO_C" >&6
5981 else
5982   if test -n "$AR"; then
5983   ac_cv_prog_AR="$AR" # Let the user override the test.
5984 else
5985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5986 for as_dir in $PATH
5987 do
5988   IFS=$as_save_IFS
5989   test -z "$as_dir" && as_dir=.
5990   for ac_exec_ext in '' $ac_executable_extensions; do
5991   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5992     ac_cv_prog_AR="${ac_tool_prefix}ar"
5993     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5994     break 2
5995   fi
5996 done
5997 done
5998
5999 fi
6000 fi
6001 AR=$ac_cv_prog_AR
6002 if test -n "$AR"; then
6003   echo "$as_me:$LINENO: result: $AR" >&5
6004 echo "${ECHO_T}$AR" >&6
6005 else
6006   echo "$as_me:$LINENO: result: no" >&5
6007 echo "${ECHO_T}no" >&6
6008 fi
6009
6010 fi
6011 if test -z "$ac_cv_prog_AR"; then
6012   ac_ct_AR=$AR
6013   # Extract the first word of "ar", so it can be a program name with args.
6014 set dummy ar; ac_word=$2
6015 echo "$as_me:$LINENO: checking for $ac_word" >&5
6016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6017 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6018   echo $ECHO_N "(cached) $ECHO_C" >&6
6019 else
6020   if test -n "$ac_ct_AR"; then
6021   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6022 else
6023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024 for as_dir in $PATH
6025 do
6026   IFS=$as_save_IFS
6027   test -z "$as_dir" && as_dir=.
6028   for ac_exec_ext in '' $ac_executable_extensions; do
6029   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6030     ac_cv_prog_ac_ct_AR="ar"
6031     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6032     break 2
6033   fi
6034 done
6035 done
6036
6037   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6038 fi
6039 fi
6040 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6041 if test -n "$ac_ct_AR"; then
6042   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6043 echo "${ECHO_T}$ac_ct_AR" >&6
6044 else
6045   echo "$as_me:$LINENO: result: no" >&5
6046 echo "${ECHO_T}no" >&6
6047 fi
6048
6049   AR=$ac_ct_AR
6050 else
6051   AR="$ac_cv_prog_AR"
6052 fi
6053
6054 if test -n "$ac_tool_prefix"; then
6055   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6056 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6057 echo "$as_me:$LINENO: checking for $ac_word" >&5
6058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6059 if test "${ac_cv_prog_RANLIB+set}" = set; then
6060   echo $ECHO_N "(cached) $ECHO_C" >&6
6061 else
6062   if test -n "$RANLIB"; then
6063   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6064 else
6065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6066 for as_dir in $PATH
6067 do
6068   IFS=$as_save_IFS
6069   test -z "$as_dir" && as_dir=.
6070   for ac_exec_ext in '' $ac_executable_extensions; do
6071   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6072     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6073     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6074     break 2
6075   fi
6076 done
6077 done
6078
6079 fi
6080 fi
6081 RANLIB=$ac_cv_prog_RANLIB
6082 if test -n "$RANLIB"; then
6083   echo "$as_me:$LINENO: result: $RANLIB" >&5
6084 echo "${ECHO_T}$RANLIB" >&6
6085 else
6086   echo "$as_me:$LINENO: result: no" >&5
6087 echo "${ECHO_T}no" >&6
6088 fi
6089
6090 fi
6091 if test -z "$ac_cv_prog_RANLIB"; then
6092   ac_ct_RANLIB=$RANLIB
6093   # Extract the first word of "ranlib", so it can be a program name with args.
6094 set dummy ranlib; ac_word=$2
6095 echo "$as_me:$LINENO: checking for $ac_word" >&5
6096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6097 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6098   echo $ECHO_N "(cached) $ECHO_C" >&6
6099 else
6100   if test -n "$ac_ct_RANLIB"; then
6101   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6102 else
6103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6104 for as_dir in $PATH
6105 do
6106   IFS=$as_save_IFS
6107   test -z "$as_dir" && as_dir=.
6108   for ac_exec_ext in '' $ac_executable_extensions; do
6109   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6110     ac_cv_prog_ac_ct_RANLIB="ranlib"
6111     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6112     break 2
6113   fi
6114 done
6115 done
6116
6117   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6118 fi
6119 fi
6120 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6121 if test -n "$ac_ct_RANLIB"; then
6122   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6123 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6124 else
6125   echo "$as_me:$LINENO: result: no" >&5
6126 echo "${ECHO_T}no" >&6
6127 fi
6128
6129   RANLIB=$ac_ct_RANLIB
6130 else
6131   RANLIB="$ac_cv_prog_RANLIB"
6132 fi
6133
6134 if test -n "$ac_tool_prefix"; then
6135   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6136 set dummy ${ac_tool_prefix}strip; ac_word=$2
6137 echo "$as_me:$LINENO: checking for $ac_word" >&5
6138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6139 if test "${ac_cv_prog_STRIP+set}" = set; then
6140   echo $ECHO_N "(cached) $ECHO_C" >&6
6141 else
6142   if test -n "$STRIP"; then
6143   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6144 else
6145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6146 for as_dir in $PATH
6147 do
6148   IFS=$as_save_IFS
6149   test -z "$as_dir" && as_dir=.
6150   for ac_exec_ext in '' $ac_executable_extensions; do
6151   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6152     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6153     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6154     break 2
6155   fi
6156 done
6157 done
6158
6159 fi
6160 fi
6161 STRIP=$ac_cv_prog_STRIP
6162 if test -n "$STRIP"; then
6163   echo "$as_me:$LINENO: result: $STRIP" >&5
6164 echo "${ECHO_T}$STRIP" >&6
6165 else
6166   echo "$as_me:$LINENO: result: no" >&5
6167 echo "${ECHO_T}no" >&6
6168 fi
6169
6170 fi
6171 if test -z "$ac_cv_prog_STRIP"; then
6172   ac_ct_STRIP=$STRIP
6173   # Extract the first word of "strip", so it can be a program name with args.
6174 set dummy strip; ac_word=$2
6175 echo "$as_me:$LINENO: checking for $ac_word" >&5
6176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6177 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6178   echo $ECHO_N "(cached) $ECHO_C" >&6
6179 else
6180   if test -n "$ac_ct_STRIP"; then
6181   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6182 else
6183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6184 for as_dir in $PATH
6185 do
6186   IFS=$as_save_IFS
6187   test -z "$as_dir" && as_dir=.
6188   for ac_exec_ext in '' $ac_executable_extensions; do
6189   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6190     ac_cv_prog_ac_ct_STRIP="strip"
6191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6192     break 2
6193   fi
6194 done
6195 done
6196
6197   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6198 fi
6199 fi
6200 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6201 if test -n "$ac_ct_STRIP"; then
6202   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6203 echo "${ECHO_T}$ac_ct_STRIP" >&6
6204 else
6205   echo "$as_me:$LINENO: result: no" >&5
6206 echo "${ECHO_T}no" >&6
6207 fi
6208
6209   STRIP=$ac_ct_STRIP
6210 else
6211   STRIP="$ac_cv_prog_STRIP"
6212 fi
6213
6214
6215 old_CC="$CC"
6216 old_CFLAGS="$CFLAGS"
6217
6218 # Set sane defaults for various variables
6219 test -z "$AR" && AR=ar
6220 test -z "$AR_FLAGS" && AR_FLAGS=cru
6221 test -z "$AS" && AS=as
6222 test -z "$CC" && CC=cc
6223 test -z "$LTCC" && LTCC=$CC
6224 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6225 test -z "$DLLTOOL" && DLLTOOL=dlltool
6226 test -z "$LD" && LD=ld
6227 test -z "$LN_S" && LN_S="ln -s"
6228 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6229 test -z "$NM" && NM=nm
6230 test -z "$SED" && SED=sed
6231 test -z "$OBJDUMP" && OBJDUMP=objdump
6232 test -z "$RANLIB" && RANLIB=:
6233 test -z "$STRIP" && STRIP=:
6234 test -z "$ac_objext" && ac_objext=o
6235
6236 # Determine commands to create old-style static archives.
6237 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6238 old_postinstall_cmds='chmod 644 $oldlib'
6239 old_postuninstall_cmds=
6240
6241 if test -n "$RANLIB"; then
6242   case $host_os in
6243   openbsd*)
6244     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6245     ;;
6246   *)
6247     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6248     ;;
6249   esac
6250   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6251 fi
6252
6253 for cc_temp in $compiler""; do
6254   case $cc_temp in
6255     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6256     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6257     \-*) ;;
6258     *) break;;
6259   esac
6260 done
6261 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6262
6263
6264 # Only perform the check for file, if the check method requires it
6265 case $deplibs_check_method in
6266 file_magic*)
6267   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6268     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6269 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6270 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6271   echo $ECHO_N "(cached) $ECHO_C" >&6
6272 else
6273   case $MAGIC_CMD in
6274 [\\/*] |  ?:[\\/]*)
6275   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6276   ;;
6277 *)
6278   lt_save_MAGIC_CMD="$MAGIC_CMD"
6279   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6280   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6281   for ac_dir in $ac_dummy; do
6282     IFS="$lt_save_ifs"
6283     test -z "$ac_dir" && ac_dir=.
6284     if test -f $ac_dir/${ac_tool_prefix}file; then
6285       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6286       if test -n "$file_magic_test_file"; then
6287         case $deplibs_check_method in
6288         "file_magic "*)
6289           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6290           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6291           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6292             $EGREP "$file_magic_regex" > /dev/null; then
6293             :
6294           else
6295             cat <<EOF 1>&2
6296
6297 *** Warning: the command libtool uses to detect shared libraries,
6298 *** $file_magic_cmd, produces output that libtool cannot recognize.
6299 *** The result is that libtool may fail to recognize shared libraries
6300 *** as such.  This will affect the creation of libtool libraries that
6301 *** depend on shared libraries, but programs linked with such libtool
6302 *** libraries will work regardless of this problem.  Nevertheless, you
6303 *** may want to report the problem to your system manager and/or to
6304 *** bug-libtool@gnu.org
6305
6306 EOF
6307           fi ;;
6308         esac
6309       fi
6310       break
6311     fi
6312   done
6313   IFS="$lt_save_ifs"
6314   MAGIC_CMD="$lt_save_MAGIC_CMD"
6315   ;;
6316 esac
6317 fi
6318
6319 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6320 if test -n "$MAGIC_CMD"; then
6321   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6322 echo "${ECHO_T}$MAGIC_CMD" >&6
6323 else
6324   echo "$as_me:$LINENO: result: no" >&5
6325 echo "${ECHO_T}no" >&6
6326 fi
6327
6328 if test -z "$lt_cv_path_MAGIC_CMD"; then
6329   if test -n "$ac_tool_prefix"; then
6330     echo "$as_me:$LINENO: checking for file" >&5
6331 echo $ECHO_N "checking for file... $ECHO_C" >&6
6332 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6333   echo $ECHO_N "(cached) $ECHO_C" >&6
6334 else
6335   case $MAGIC_CMD in
6336 [\\/*] |  ?:[\\/]*)
6337   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6338   ;;
6339 *)
6340   lt_save_MAGIC_CMD="$MAGIC_CMD"
6341   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6342   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6343   for ac_dir in $ac_dummy; do
6344     IFS="$lt_save_ifs"
6345     test -z "$ac_dir" && ac_dir=.
6346     if test -f $ac_dir/file; then
6347       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6348       if test -n "$file_magic_test_file"; then
6349         case $deplibs_check_method in
6350         "file_magic "*)
6351           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6352           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6353           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6354             $EGREP "$file_magic_regex" > /dev/null; then
6355             :
6356           else
6357             cat <<EOF 1>&2
6358
6359 *** Warning: the command libtool uses to detect shared libraries,
6360 *** $file_magic_cmd, produces output that libtool cannot recognize.
6361 *** The result is that libtool may fail to recognize shared libraries
6362 *** as such.  This will affect the creation of libtool libraries that
6363 *** depend on shared libraries, but programs linked with such libtool
6364 *** libraries will work regardless of this problem.  Nevertheless, you
6365 *** may want to report the problem to your system manager and/or to
6366 *** bug-libtool@gnu.org
6367
6368 EOF
6369           fi ;;
6370         esac
6371       fi
6372       break
6373     fi
6374   done
6375   IFS="$lt_save_ifs"
6376   MAGIC_CMD="$lt_save_MAGIC_CMD"
6377   ;;
6378 esac
6379 fi
6380
6381 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6382 if test -n "$MAGIC_CMD"; then
6383   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6384 echo "${ECHO_T}$MAGIC_CMD" >&6
6385 else
6386   echo "$as_me:$LINENO: result: no" >&5
6387 echo "${ECHO_T}no" >&6
6388 fi
6389
6390   else
6391     MAGIC_CMD=:
6392   fi
6393 fi
6394
6395   fi
6396   ;;
6397 esac
6398
6399 enable_dlopen=no
6400 enable_win32_dll=no
6401
6402 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6403 if test "${enable_libtool_lock+set}" = set; then
6404   enableval="$enable_libtool_lock"
6405
6406 fi;
6407 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6408
6409
6410 # Check whether --with-pic or --without-pic was given.
6411 if test "${with_pic+set}" = set; then
6412   withval="$with_pic"
6413   pic_mode="$withval"
6414 else
6415   pic_mode=default
6416 fi;
6417 test -z "$pic_mode" && pic_mode=default
6418
6419 # Check if we have a version mismatch between libtool.m4 and ltmain.sh.
6420 #
6421 # Note:  This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
6422 #        We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
6423 #        calls AC_LIBTOOL_CONFIG and creates libtool.
6424 #
6425 echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5
6426 echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6
6427 if test "x$ltmain" = "x" ; then
6428   echo "$as_me:$LINENO: result: no" >&5
6429 echo "${ECHO_T}no" >&6
6430   { { echo "$as_me:$LINENO: error:
6431
6432 *** [Gentoo] sanity check failed! ***
6433 *** \$ltmain is not defined, please check the patch for consistency! ***
6434 " >&5
6435 echo "$as_me: error:
6436
6437 *** [Gentoo] sanity check failed! ***
6438 *** \$ltmain is not defined, please check the patch for consistency! ***
6439 " >&2;}
6440    { (exit 1); exit 1; }; }
6441 fi
6442 gentoo_lt_version="1.5.22"
6443 gentoo_ltmain_version=`sed -n '/^[      ]*VERSION=/{s/^[        ]*VERSION=//;p;q;}' "$ltmain"`
6444 if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
6445   echo "$as_me:$LINENO: result: no" >&5
6446 echo "${ECHO_T}no" >&6
6447   { { echo "$as_me:$LINENO: error:
6448
6449 *** [Gentoo] sanity check failed! ***
6450 *** libtool.m4 and ltmain.sh have a version mismatch! ***
6451 *** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
6452
6453 Please run:
6454
6455   libtoolize --copy --force
6456
6457 if appropriate, please contact the maintainer of this
6458 package (or your distribution) for help.
6459 " >&5
6460 echo "$as_me: error:
6461
6462 *** [Gentoo] sanity check failed! ***
6463 *** libtool.m4 and ltmain.sh have a version mismatch! ***
6464 *** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
6465
6466 Please run:
6467
6468   libtoolize --copy --force
6469
6470 if appropriate, please contact the maintainer of this
6471 package (or your distribution) for help.
6472 " >&2;}
6473    { (exit 1); exit 1; }; }
6474 else
6475   echo "$as_me:$LINENO: result: yes" >&5
6476 echo "${ECHO_T}yes" >&6
6477 fi
6478
6479
6480 # Use C for the default configuration in the libtool script
6481 tagname=
6482 lt_save_CC="$CC"
6483 ac_ext=c
6484 ac_cpp='$CPP $CPPFLAGS'
6485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6488
6489
6490 # Source file extension for C test sources.
6491 ac_ext=c
6492
6493 # Object file extension for compiled C test sources.
6494 objext=o
6495 objext=$objext
6496
6497 # Code to be used in simple compile tests
6498 lt_simple_compile_test_code="int some_variable = 0;\n"
6499
6500 # Code to be used in simple link tests
6501 lt_simple_link_test_code='int main(){return(0);}\n'
6502
6503
6504 # If no C compiler was specified, use CC.
6505 LTCC=${LTCC-"$CC"}
6506
6507 # If no C compiler flags were specified, use CFLAGS.
6508 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6509
6510 # Allow CC to be a program name with arguments.
6511 compiler=$CC
6512
6513
6514 # save warnings/boilerplate of simple test code
6515 ac_outfile=conftest.$ac_objext
6516 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6517 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6518 _lt_compiler_boilerplate=`cat conftest.err`
6519 $rm conftest*
6520
6521 ac_outfile=conftest.$ac_objext
6522 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6523 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6524 _lt_linker_boilerplate=`cat conftest.err`
6525 $rm conftest*
6526
6527
6528
6529 lt_prog_compiler_no_builtin_flag=
6530
6531 if test "$GCC" = yes; then
6532   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6533
6534
6535 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6536 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6537 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6538   echo $ECHO_N "(cached) $ECHO_C" >&6
6539 else
6540   lt_cv_prog_compiler_rtti_exceptions=no
6541   ac_outfile=conftest.$ac_objext
6542    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6543    lt_compiler_flag="-fno-rtti -fno-exceptions"
6544    # Insert the option either (1) after the last *FLAGS variable, or
6545    # (2) before a word containing "conftest.", or (3) at the end.
6546    # Note that $ac_compile itself does not contain backslashes and begins
6547    # with a dollar sign (not a hyphen), so the echo should work correctly.
6548    # The option is referenced via a variable to avoid confusing sed.
6549    lt_compile=`echo "$ac_compile" | $SED \
6550    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6551    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6552    -e 's:$: $lt_compiler_flag:'`
6553    (eval echo "\"\$as_me:6553: $lt_compile\"" >&5)
6554    (eval "$lt_compile" 2>conftest.err)
6555    ac_status=$?
6556    cat conftest.err >&5
6557    echo "$as_me:6557: \$? = $ac_status" >&5
6558    if (exit $ac_status) && test -s "$ac_outfile"; then
6559      # The compiler can only warn and ignore the option if not recognized
6560      # So say no if there are warnings other than the usual output.
6561      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6562      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6563      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6564        lt_cv_prog_compiler_rtti_exceptions=yes
6565      fi
6566    fi
6567    $rm conftest*
6568
6569 fi
6570 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6571 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6572
6573 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6574     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6575 else
6576     :
6577 fi
6578
6579 fi
6580
6581 lt_prog_compiler_wl=
6582 lt_prog_compiler_pic=
6583 lt_prog_compiler_static=
6584
6585 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6586 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6587
6588   if test "$GCC" = yes; then
6589     lt_prog_compiler_wl='-Wl,'
6590     lt_prog_compiler_static='-static'
6591
6592     case $host_os in
6593       aix*)
6594       # All AIX code is PIC.
6595       if test "$host_cpu" = ia64; then
6596         # AIX 5 now supports IA64 processor
6597         lt_prog_compiler_static='-Bstatic'
6598       fi
6599       ;;
6600
6601     amigaos*)
6602       # FIXME: we need at least 68020 code to build shared libraries, but
6603       # adding the `-m68020' flag to GCC prevents building anything better,
6604       # like `-m68040'.
6605       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6606       ;;
6607
6608     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6609       # PIC is the default for these OSes.
6610       ;;
6611
6612     mingw* | pw32* | os2*)
6613       # This hack is so that the source file can tell whether it is being
6614       # built for inclusion in a dll (and should export symbols for example).
6615       lt_prog_compiler_pic='-DDLL_EXPORT'
6616       ;;
6617
6618     darwin* | rhapsody*)
6619       # PIC is the default on this platform
6620       # Common symbols not allowed in MH_DYLIB files
6621       lt_prog_compiler_pic='-fno-common'
6622       ;;
6623
6624     interix3*)
6625       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6626       # Instead, we relocate shared libraries at runtime.
6627       ;;
6628
6629     msdosdjgpp*)
6630       # Just because we use GCC doesn't mean we suddenly get shared libraries
6631       # on systems that don't support them.
6632       lt_prog_compiler_can_build_shared=no
6633       enable_shared=no
6634       ;;
6635
6636     sysv4*MP*)
6637       if test -d /usr/nec; then
6638         lt_prog_compiler_pic=-Kconform_pic
6639       fi
6640       ;;
6641
6642     hpux*)
6643       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6644       # not for PA HP-UX.
6645       case $host_cpu in
6646       hppa*64*|ia64*)
6647         # +Z the default
6648         ;;
6649       *)
6650         lt_prog_compiler_pic='-fPIC'
6651         ;;
6652       esac
6653       ;;
6654
6655     *)
6656       lt_prog_compiler_pic='-fPIC'
6657       ;;
6658     esac
6659   else
6660     # PORTME Check for flag to pass linker flags through the system compiler.
6661     case $host_os in
6662     aix*)
6663       lt_prog_compiler_wl='-Wl,'
6664       if test "$host_cpu" = ia64; then
6665         # AIX 5 now supports IA64 processor
6666         lt_prog_compiler_static='-Bstatic'
6667       else
6668         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6669       fi
6670       ;;
6671       darwin*)
6672         # PIC is the default on this platform
6673         # Common symbols not allowed in MH_DYLIB files
6674        case $cc_basename in
6675          xlc*)
6676          lt_prog_compiler_pic='-qnocommon'
6677          lt_prog_compiler_wl='-Wl,'
6678          ;;
6679        esac
6680        ;;
6681
6682     mingw* | pw32* | os2*)
6683       # This hack is so that the source file can tell whether it is being
6684       # built for inclusion in a dll (and should export symbols for example).
6685       lt_prog_compiler_pic='-DDLL_EXPORT'
6686       ;;
6687
6688     hpux9* | hpux10* | hpux11*)
6689       lt_prog_compiler_wl='-Wl,'
6690       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6691       # not for PA HP-UX.
6692       case $host_cpu in
6693       hppa*64*|ia64*)
6694         # +Z the default
6695         ;;
6696       *)
6697         lt_prog_compiler_pic='+Z'
6698         ;;
6699       esac
6700       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6701       lt_prog_compiler_static='${wl}-a ${wl}archive'
6702       ;;
6703
6704     irix5* | irix6* | nonstopux*)
6705       lt_prog_compiler_wl='-Wl,'
6706       # PIC (with -KPIC) is the default.
6707       lt_prog_compiler_static='-non_shared'
6708       ;;
6709
6710     newsos6)
6711       lt_prog_compiler_pic='-KPIC'
6712       lt_prog_compiler_static='-Bstatic'
6713       ;;
6714
6715     linux*)
6716       case $cc_basename in
6717       icc* | ecc*)
6718         lt_prog_compiler_wl='-Wl,'
6719         lt_prog_compiler_pic='-KPIC'
6720         lt_prog_compiler_static='-static'
6721         ;;
6722       pgcc* | pgf77* | pgf90* | pgf95*)
6723         # Portland Group compilers (*not* the Pentium gcc compiler,
6724         # which looks to be a dead project)
6725         lt_prog_compiler_wl='-Wl,'
6726         lt_prog_compiler_pic='-fpic'
6727         lt_prog_compiler_static='-Bstatic'
6728         ;;
6729       ccc*)
6730         lt_prog_compiler_wl='-Wl,'
6731         # All Alpha code is PIC.
6732         lt_prog_compiler_static='-non_shared'
6733         ;;
6734       esac
6735       ;;
6736
6737     osf3* | osf4* | osf5*)
6738       lt_prog_compiler_wl='-Wl,'
6739       # All OSF/1 code is PIC.
6740       lt_prog_compiler_static='-non_shared'
6741       ;;
6742
6743     solaris*)
6744       lt_prog_compiler_pic='-KPIC'
6745       lt_prog_compiler_static='-Bstatic'
6746       case $cc_basename in
6747       f77* | f90* | f95*)
6748         lt_prog_compiler_wl='-Qoption ld ';;
6749       *)
6750         lt_prog_compiler_wl='-Wl,';;
6751       esac
6752       ;;
6753
6754     sunos4*)
6755       lt_prog_compiler_wl='-Qoption ld '
6756       lt_prog_compiler_pic='-PIC'
6757       lt_prog_compiler_static='-Bstatic'
6758       ;;
6759
6760     sysv4 | sysv4.2uw2* | sysv4.3*)
6761       lt_prog_compiler_wl='-Wl,'
6762       lt_prog_compiler_pic='-KPIC'
6763       lt_prog_compiler_static='-Bstatic'
6764       ;;
6765
6766     sysv4*MP*)
6767       if test -d /usr/nec ;then
6768         lt_prog_compiler_pic='-Kconform_pic'
6769         lt_prog_compiler_static='-Bstatic'
6770       fi
6771       ;;
6772
6773     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6774       lt_prog_compiler_wl='-Wl,'
6775       lt_prog_compiler_pic='-KPIC'
6776       lt_prog_compiler_static='-Bstatic'
6777       ;;
6778
6779     unicos*)
6780       lt_prog_compiler_wl='-Wl,'
6781       lt_prog_compiler_can_build_shared=no
6782       ;;
6783
6784     uts4*)
6785       lt_prog_compiler_pic='-pic'
6786       lt_prog_compiler_static='-Bstatic'
6787       ;;
6788
6789     *)
6790       lt_prog_compiler_can_build_shared=no
6791       ;;
6792     esac
6793   fi
6794
6795 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6796 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6797
6798 #
6799 # Check to make sure the PIC flag actually works.
6800 #
6801 if test -n "$lt_prog_compiler_pic"; then
6802
6803 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6804 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6805 if test "${lt_prog_compiler_pic_works+set}" = set; then
6806   echo $ECHO_N "(cached) $ECHO_C" >&6
6807 else
6808   lt_prog_compiler_pic_works=no
6809   ac_outfile=conftest.$ac_objext
6810    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6811    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6812    # Insert the option either (1) after the last *FLAGS variable, or
6813    # (2) before a word containing "conftest.", or (3) at the end.
6814    # Note that $ac_compile itself does not contain backslashes and begins
6815    # with a dollar sign (not a hyphen), so the echo should work correctly.
6816    # The option is referenced via a variable to avoid confusing sed.
6817    lt_compile=`echo "$ac_compile" | $SED \
6818    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6819    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6820    -e 's:$: $lt_compiler_flag:'`
6821    (eval echo "\"\$as_me:6821: $lt_compile\"" >&5)
6822    (eval "$lt_compile" 2>conftest.err)
6823    ac_status=$?
6824    cat conftest.err >&5
6825    echo "$as_me:6825: \$? = $ac_status" >&5
6826    if (exit $ac_status) && test -s "$ac_outfile"; then
6827      # The compiler can only warn and ignore the option if not recognized
6828      # So say no if there are warnings other than the usual output.
6829      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6830      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6831      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6832        lt_prog_compiler_pic_works=yes
6833      fi
6834    fi
6835    $rm conftest*
6836
6837 fi
6838 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6839 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6840
6841 if test x"$lt_prog_compiler_pic_works" = xyes; then
6842     case $lt_prog_compiler_pic in
6843      "" | " "*) ;;
6844      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6845      esac
6846 else
6847     lt_prog_compiler_pic=
6848      lt_prog_compiler_can_build_shared=no
6849 fi
6850
6851 fi
6852 case $host_os in
6853   # For platforms which do not support PIC, -DPIC is meaningless:
6854   *djgpp*)
6855     lt_prog_compiler_pic=
6856     ;;
6857   *)
6858     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6859     ;;
6860 esac
6861
6862 #
6863 # Check to make sure the static flag actually works.
6864 #
6865 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6866 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6867 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6868 if test "${lt_prog_compiler_static_works+set}" = set; then
6869   echo $ECHO_N "(cached) $ECHO_C" >&6
6870 else
6871   lt_prog_compiler_static_works=no
6872    save_LDFLAGS="$LDFLAGS"
6873    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6874    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6875    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6876      # The linker can only warn and ignore the option if not recognized
6877      # So say no if there are warnings
6878      if test -s conftest.err; then
6879        # Append any errors to the config.log.
6880        cat conftest.err 1>&5
6881        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6882        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6883        if diff conftest.exp conftest.er2 >/dev/null; then
6884          lt_prog_compiler_static_works=yes
6885        fi
6886      else
6887        lt_prog_compiler_static_works=yes
6888      fi
6889    fi
6890    $rm conftest*
6891    LDFLAGS="$save_LDFLAGS"
6892
6893 fi
6894 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6895 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6896
6897 if test x"$lt_prog_compiler_static_works" = xyes; then
6898     :
6899 else
6900     lt_prog_compiler_static=
6901 fi
6902
6903
6904 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6905 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6906 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6907   echo $ECHO_N "(cached) $ECHO_C" >&6
6908 else
6909   lt_cv_prog_compiler_c_o=no
6910    $rm -r conftest 2>/dev/null
6911    mkdir conftest
6912    cd conftest
6913    mkdir out
6914    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6915
6916    lt_compiler_flag="-o out/conftest2.$ac_objext"
6917    # Insert the option either (1) after the last *FLAGS variable, or
6918    # (2) before a word containing "conftest.", or (3) at the end.
6919    # Note that $ac_compile itself does not contain backslashes and begins
6920    # with a dollar sign (not a hyphen), so the echo should work correctly.
6921    lt_compile=`echo "$ac_compile" | $SED \
6922    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6923    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6924    -e 's:$: $lt_compiler_flag:'`
6925    (eval echo "\"\$as_me:6925: $lt_compile\"" >&5)
6926    (eval "$lt_compile" 2>out/conftest.err)
6927    ac_status=$?
6928    cat out/conftest.err >&5
6929    echo "$as_me:6929: \$? = $ac_status" >&5
6930    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6931    then
6932      # The compiler can only warn and ignore the option if not recognized
6933      # So say no if there are warnings
6934      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6935      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6936      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6937        lt_cv_prog_compiler_c_o=yes
6938      fi
6939    fi
6940    chmod u+w . 2>&5
6941    $rm conftest*
6942    # SGI C++ compiler will create directory out/ii_files/ for
6943    # template instantiation
6944    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6945    $rm out/* && rmdir out
6946    cd ..
6947    rmdir conftest
6948    $rm conftest*
6949
6950 fi
6951 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6952 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6953
6954
6955 hard_links="nottested"
6956 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6957   # do not overwrite the value of need_locks provided by the user
6958   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6959 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6960   hard_links=yes
6961   $rm conftest*
6962   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6963   touch conftest.a
6964   ln conftest.a conftest.b 2>&5 || hard_links=no
6965   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6966   echo "$as_me:$LINENO: result: $hard_links" >&5
6967 echo "${ECHO_T}$hard_links" >&6
6968   if test "$hard_links" = no; then
6969     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6970 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6971     need_locks=warn
6972   fi
6973 else
6974   need_locks=no
6975 fi
6976
6977 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6978 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6979
6980   runpath_var=
6981   allow_undefined_flag=
6982   enable_shared_with_static_runtimes=no
6983   archive_cmds=
6984   archive_expsym_cmds=
6985   old_archive_From_new_cmds=
6986   old_archive_from_expsyms_cmds=
6987   export_dynamic_flag_spec=
6988   whole_archive_flag_spec=
6989   thread_safe_flag_spec=
6990   hardcode_libdir_flag_spec=
6991   hardcode_libdir_flag_spec_ld=
6992   hardcode_libdir_separator=
6993   hardcode_direct=no
6994   hardcode_minus_L=no
6995   hardcode_shlibpath_var=unsupported
6996   link_all_deplibs=unknown
6997   hardcode_automatic=no
6998   module_cmds=
6999   module_expsym_cmds=
7000   always_export_symbols=no
7001   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7002   # include_expsyms should be a list of space-separated symbols to be *always*
7003   # included in the symbol list
7004   include_expsyms=
7005   # exclude_expsyms can be an extended regexp of symbols to exclude
7006   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7007   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7008   # as well as any symbol that contains `d'.
7009   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7010   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7011   # platforms (ab)use it in PIC code, but their linkers get confused if
7012   # the symbol is explicitly referenced.  Since portable code cannot
7013   # rely on this symbol name, it's probably fine to never include it in
7014   # preloaded symbol tables.
7015   extract_expsyms_cmds=
7016   # Just being paranoid about ensuring that cc_basename is set.
7017   for cc_temp in $compiler""; do
7018   case $cc_temp in
7019     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7020     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7021     \-*) ;;
7022     *) break;;
7023   esac
7024 done
7025 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7026
7027   case $host_os in
7028   cygwin* | mingw* | pw32*)
7029     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7030     # When not using gcc, we currently assume that we are using
7031     # Microsoft Visual C++.
7032     if test "$GCC" != yes; then
7033       with_gnu_ld=no
7034     fi
7035     ;;
7036   interix*)
7037     # we just hope/assume this is gcc and not c89 (= MSVC++)
7038     with_gnu_ld=yes
7039     ;;
7040   openbsd*)
7041     with_gnu_ld=no
7042     ;;
7043   esac
7044
7045   ld_shlibs=yes
7046   if test "$with_gnu_ld" = yes; then
7047     # If archive_cmds runs LD, not CC, wlarc should be empty
7048     wlarc='${wl}'
7049
7050     # Set some defaults for GNU ld with shared library support. These
7051     # are reset later if shared libraries are not supported. Putting them
7052     # here allows them to be overridden if necessary.
7053     runpath_var=LD_RUN_PATH
7054     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7055     export_dynamic_flag_spec='${wl}--export-dynamic'
7056     # ancient GNU ld didn't support --whole-archive et. al.
7057     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7058         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7059       else
7060         whole_archive_flag_spec=
7061     fi
7062     supports_anon_versioning=no
7063     case `$LD -v 2>/dev/null` in
7064       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7065       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7066       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7067       *\ 2.11.*) ;; # other 2.11 versions
7068       *) supports_anon_versioning=yes ;;
7069     esac
7070
7071     # See if GNU ld supports shared libraries.
7072     case $host_os in
7073     aix3* | aix4* | aix5*)
7074       # On AIX/PPC, the GNU linker is very broken
7075       if test "$host_cpu" != ia64; then
7076         ld_shlibs=no
7077         cat <<EOF 1>&2
7078
7079 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7080 *** to be unable to reliably create shared libraries on AIX.
7081 *** Therefore, libtool is disabling shared libraries support.  If you
7082 *** really care for shared libraries, you may want to modify your PATH
7083 *** so that a non-GNU linker is found, and then restart.
7084
7085 EOF
7086       fi
7087       ;;
7088
7089     amigaos*)
7090       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)'
7091       hardcode_libdir_flag_spec='-L$libdir'
7092       hardcode_minus_L=yes
7093
7094       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7095       # that the semantics of dynamic libraries on AmigaOS, at least up
7096       # to version 4, is to share data among multiple programs linked
7097       # with the same dynamic library.  Since this doesn't match the
7098       # behavior of shared libraries on other platforms, we can't use
7099       # them.
7100       ld_shlibs=no
7101       ;;
7102
7103     beos*)
7104       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7105         allow_undefined_flag=unsupported
7106         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7107         # support --undefined.  This deserves some investigation.  FIXME
7108         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7109       else
7110         ld_shlibs=no
7111       fi
7112       ;;
7113
7114     cygwin* | mingw* | pw32*)
7115       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7116       # as there is no search path for DLLs.
7117       hardcode_libdir_flag_spec='-L$libdir'
7118       allow_undefined_flag=unsupported
7119       always_export_symbols=no
7120       enable_shared_with_static_runtimes=yes
7121       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7122
7123       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7124         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7125         # If the export-symbols file already is a .def file (1st line
7126         # is EXPORTS), use it as is; otherwise, prepend...
7127         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7128           cp $export_symbols $output_objdir/$soname.def;
7129         else
7130           echo EXPORTS > $output_objdir/$soname.def;
7131           cat $export_symbols >> $output_objdir/$soname.def;
7132         fi~
7133         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7134       else
7135         ld_shlibs=no
7136       fi
7137       ;;
7138
7139     interix3*)
7140       hardcode_direct=no
7141       hardcode_shlibpath_var=no
7142       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7143       export_dynamic_flag_spec='${wl}-E'
7144       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7145       # Instead, shared libraries are loaded at an image base (0x10000000 by
7146       # default) and relocated if they conflict, which is a slow very memory
7147       # consuming and fragmenting process.  To avoid this, we pick a random,
7148       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7149       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7150       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7151       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'
7152       ;;
7153
7154     linux*)
7155       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7156         tmp_addflag=
7157         case $cc_basename,$host_cpu in
7158         pgcc*)                          # Portland Group C compiler
7159           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'
7160           tmp_addflag=' $pic_flag'
7161           ;;
7162         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7163           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'
7164           tmp_addflag=' $pic_flag -Mnomain' ;;
7165         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7166           tmp_addflag=' -i_dynamic' ;;
7167         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7168           tmp_addflag=' -i_dynamic -nofor_main' ;;
7169         ifc* | ifort*)                  # Intel Fortran compiler
7170           tmp_addflag=' -nofor_main' ;;
7171         esac
7172         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7173
7174         if test $supports_anon_versioning = yes; then
7175           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7176   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7177   $echo "local: *; };" >> $output_objdir/$libname.ver~
7178           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7179         fi
7180       else
7181         ld_shlibs=no
7182       fi
7183       ;;
7184
7185     netbsd*)
7186       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7187         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7188         wlarc=
7189       else
7190         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7191         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7192       fi
7193       ;;
7194
7195     solaris*)
7196       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7197         ld_shlibs=no
7198         cat <<EOF 1>&2
7199
7200 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7201 *** create shared libraries on Solaris systems.  Therefore, libtool
7202 *** is disabling shared libraries support.  We urge you to upgrade GNU
7203 *** binutils to release 2.9.1 or newer.  Another option is to modify
7204 *** your PATH or compiler configuration so that the native linker is
7205 *** used, and then restart.
7206
7207 EOF
7208       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7209         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7210         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7211       else
7212         ld_shlibs=no
7213       fi
7214       ;;
7215
7216     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7217       case `$LD -v 2>&1` in
7218         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7219         ld_shlibs=no
7220         cat <<_LT_EOF 1>&2
7221
7222 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7223 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7224 *** is disabling shared libraries support.  We urge you to upgrade GNU
7225 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7226 *** your PATH or compiler configuration so that the native linker is
7227 *** used, and then restart.
7228
7229 _LT_EOF
7230         ;;
7231         *)
7232           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7233             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7234             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7235             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7236           else
7237             ld_shlibs=no
7238           fi
7239         ;;
7240       esac
7241       ;;
7242
7243     sunos4*)
7244       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7245       wlarc=
7246       hardcode_direct=yes
7247       hardcode_shlibpath_var=no
7248       ;;
7249
7250     *)
7251       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7252         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7253         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7254       else
7255         ld_shlibs=no
7256       fi
7257       ;;
7258     esac
7259
7260     if test "$ld_shlibs" = no; then
7261       runpath_var=
7262       hardcode_libdir_flag_spec=
7263       export_dynamic_flag_spec=
7264       whole_archive_flag_spec=
7265     fi
7266   else
7267     # PORTME fill in a description of your system's linker (not GNU ld)
7268     case $host_os in
7269     aix3*)
7270       allow_undefined_flag=unsupported
7271       always_export_symbols=yes
7272       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'
7273       # Note: this linker hardcodes the directories in LIBPATH if there
7274       # are no directories specified by -L.
7275       hardcode_minus_L=yes
7276       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7277         # Neither direct hardcoding nor static linking is supported with a
7278         # broken collect2.
7279         hardcode_direct=unsupported
7280       fi
7281       ;;
7282
7283     aix4* | aix5*)
7284       if test "$host_cpu" = ia64; then
7285         # On IA64, the linker does run time linking by default, so we don't
7286         # have to do anything special.
7287         aix_use_runtimelinking=no
7288         exp_sym_flag='-Bexport'
7289         no_entry_flag=""
7290       else
7291         # If we're using GNU nm, then we don't want the "-C" option.
7292         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7293         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7294           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'
7295         else
7296           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'
7297         fi
7298         aix_use_runtimelinking=no
7299
7300         # Test if we are trying to use run time linking or normal
7301         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7302         # need to do runtime linking.
7303         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7304           for ld_flag in $LDFLAGS; do
7305           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7306             aix_use_runtimelinking=yes
7307             break
7308           fi
7309           done
7310           ;;
7311         esac
7312
7313         exp_sym_flag='-bexport'
7314         no_entry_flag='-bnoentry'
7315       fi
7316
7317       # When large executables or shared objects are built, AIX ld can
7318       # have problems creating the table of contents.  If linking a library
7319       # or program results in "error TOC overflow" add -mminimal-toc to
7320       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7321       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7322
7323       archive_cmds=''
7324       hardcode_direct=yes
7325       hardcode_libdir_separator=':'
7326       link_all_deplibs=yes
7327
7328       if test "$GCC" = yes; then
7329         case $host_os in aix4.[012]|aix4.[012].*)
7330         # We only want to do this on AIX 4.2 and lower, the check
7331         # below for broken collect2 doesn't work under 4.3+
7332           collect2name=`${CC} -print-prog-name=collect2`
7333           if test -f "$collect2name" && \
7334            strings "$collect2name" | grep resolve_lib_name >/dev/null
7335           then
7336           # We have reworked collect2
7337           hardcode_direct=yes
7338           else
7339           # We have old collect2
7340           hardcode_direct=unsupported
7341           # It fails to find uninstalled libraries when the uninstalled
7342           # path is not listed in the libpath.  Setting hardcode_minus_L
7343           # to unsupported forces relinking
7344           hardcode_minus_L=yes
7345           hardcode_libdir_flag_spec='-L$libdir'
7346           hardcode_libdir_separator=
7347           fi
7348           ;;
7349         esac
7350         shared_flag='-shared'
7351         if test "$aix_use_runtimelinking" = yes; then
7352           shared_flag="$shared_flag "'${wl}-G'
7353         fi
7354       else
7355         # not using gcc
7356         if test "$host_cpu" = ia64; then
7357         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7358         # chokes on -Wl,-G. The following line is correct:
7359           shared_flag='-G'
7360         else
7361           if test "$aix_use_runtimelinking" = yes; then
7362             shared_flag='${wl}-G'
7363           else
7364             shared_flag='${wl}-bM:SRE'
7365           fi
7366         fi
7367       fi
7368
7369       # It seems that -bexpall does not export symbols beginning with
7370       # underscore (_), so it is better to generate a list of symbols to export.
7371       always_export_symbols=yes
7372       if test "$aix_use_runtimelinking" = yes; then
7373         # Warning - without using the other runtime loading flags (-brtl),
7374         # -berok will link without error, but may produce a broken library.
7375         allow_undefined_flag='-berok'
7376        # Determine the default libpath from the value encoded in an empty executable.
7377        cat >conftest.$ac_ext <<_ACEOF
7378 /* confdefs.h.  */
7379 _ACEOF
7380 cat confdefs.h >>conftest.$ac_ext
7381 cat >>conftest.$ac_ext <<_ACEOF
7382 /* end confdefs.h.  */
7383
7384 int
7385 main ()
7386 {
7387
7388   ;
7389   return 0;
7390 }
7391 _ACEOF
7392 rm -f conftest.$ac_objext conftest$ac_exeext
7393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7394   (eval $ac_link) 2>conftest.er1
7395   ac_status=$?
7396   grep -v '^ *+' conftest.er1 >conftest.err
7397   rm -f conftest.er1
7398   cat conftest.err >&5
7399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7400   (exit $ac_status); } &&
7401          { ac_try='test -z "$ac_c_werror_flag"
7402                          || test ! -s conftest.err'
7403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7404   (eval $ac_try) 2>&5
7405   ac_status=$?
7406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407   (exit $ac_status); }; } &&
7408          { ac_try='test -s conftest$ac_exeext'
7409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7410   (eval $ac_try) 2>&5
7411   ac_status=$?
7412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413   (exit $ac_status); }; }; then
7414
7415 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7416 }'`
7417 # Check for a 64-bit object if we didn't find anything.
7418 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; }
7419 }'`; fi
7420 else
7421   echo "$as_me: failed program was:" >&5
7422 sed 's/^/| /' conftest.$ac_ext >&5
7423
7424 fi
7425 rm -f conftest.err conftest.$ac_objext \
7426       conftest$ac_exeext conftest.$ac_ext
7427 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7428
7429        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7430         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"
7431        else
7432         if test "$host_cpu" = ia64; then
7433           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7434           allow_undefined_flag="-z nodefs"
7435           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"
7436         else
7437          # Determine the default libpath from the value encoded in an empty executable.
7438          cat >conftest.$ac_ext <<_ACEOF
7439 /* confdefs.h.  */
7440 _ACEOF
7441 cat confdefs.h >>conftest.$ac_ext
7442 cat >>conftest.$ac_ext <<_ACEOF
7443 /* end confdefs.h.  */
7444
7445 int
7446 main ()
7447 {
7448
7449   ;
7450   return 0;
7451 }
7452 _ACEOF
7453 rm -f conftest.$ac_objext conftest$ac_exeext
7454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7455   (eval $ac_link) 2>conftest.er1
7456   ac_status=$?
7457   grep -v '^ *+' conftest.er1 >conftest.err
7458   rm -f conftest.er1
7459   cat conftest.err >&5
7460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461   (exit $ac_status); } &&
7462          { ac_try='test -z "$ac_c_werror_flag"
7463                          || test ! -s conftest.err'
7464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7465   (eval $ac_try) 2>&5
7466   ac_status=$?
7467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468   (exit $ac_status); }; } &&
7469          { ac_try='test -s conftest$ac_exeext'
7470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7471   (eval $ac_try) 2>&5
7472   ac_status=$?
7473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474   (exit $ac_status); }; }; then
7475
7476 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7477 }'`
7478 # Check for a 64-bit object if we didn't find anything.
7479 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; }
7480 }'`; fi
7481 else
7482   echo "$as_me: failed program was:" >&5
7483 sed 's/^/| /' conftest.$ac_ext >&5
7484
7485 fi
7486 rm -f conftest.err conftest.$ac_objext \
7487       conftest$ac_exeext conftest.$ac_ext
7488 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7489
7490          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7491           # Warning - without using the other run time loading flags,
7492           # -berok will link without error, but may produce a broken library.
7493           no_undefined_flag=' ${wl}-bernotok'
7494           allow_undefined_flag=' ${wl}-berok'
7495           # Exported symbols can be pulled into shared objects from archives
7496           whole_archive_flag_spec='$convenience'
7497           archive_cmds_need_lc=yes
7498           # This is similar to how AIX traditionally builds its shared libraries.
7499           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'
7500         fi
7501       fi
7502       ;;
7503
7504     amigaos*)
7505       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)'
7506       hardcode_libdir_flag_spec='-L$libdir'
7507       hardcode_minus_L=yes
7508       # see comment about different semantics on the GNU ld section
7509       ld_shlibs=no
7510       ;;
7511
7512     bsdi[45]*)
7513       export_dynamic_flag_spec=-rdynamic
7514       ;;
7515
7516     cygwin* | mingw* | pw32*)
7517       # When not using gcc, we currently assume that we are using
7518       # Microsoft Visual C++.
7519       # hardcode_libdir_flag_spec is actually meaningless, as there is
7520       # no search path for DLLs.
7521       hardcode_libdir_flag_spec=' '
7522       allow_undefined_flag=unsupported
7523       # Tell ltmain to make .lib files, not .a files.
7524       libext=lib
7525       # Tell ltmain to make .dll files, not .so files.
7526       shrext_cmds=".dll"
7527       # FIXME: Setting linknames here is a bad hack.
7528       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7529       # The linker will automatically build a .lib file if we build a DLL.
7530       old_archive_From_new_cmds='true'
7531       # FIXME: Should let the user specify the lib program.
7532       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7533       fix_srcfile_path='`cygpath -w "$srcfile"`'
7534       enable_shared_with_static_runtimes=yes
7535       ;;
7536
7537     darwin* | rhapsody*)
7538       case $host_os in
7539         rhapsody* | darwin1.[012])
7540          allow_undefined_flag='${wl}-undefined ${wl}suppress'
7541          ;;
7542        *) # Darwin 1.3 on
7543          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7544            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7545          else
7546            case ${MACOSX_DEPLOYMENT_TARGET} in
7547              10.[012])
7548                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7549                ;;
7550              10.*)
7551                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7552                ;;
7553            esac
7554          fi
7555          ;;
7556       esac
7557       archive_cmds_need_lc=no
7558       hardcode_direct=no
7559       hardcode_automatic=yes
7560       hardcode_shlibpath_var=unsupported
7561       whole_archive_flag_spec=''
7562       link_all_deplibs=yes
7563     if test "$GCC" = yes ; then
7564         output_verbose_link_cmd='echo'
7565         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7566       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7567       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7568       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}'
7569       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}'
7570     else
7571       case $cc_basename in
7572         xlc*)
7573          output_verbose_link_cmd='echo'
7574          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7575          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7576           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7577          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}'
7578           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}'
7579           ;;
7580        *)
7581          ld_shlibs=no
7582           ;;
7583       esac
7584     fi
7585       ;;
7586
7587     dgux*)
7588       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7589       hardcode_libdir_flag_spec='-L$libdir'
7590       hardcode_shlibpath_var=no
7591       ;;
7592
7593     freebsd1*)
7594       ld_shlibs=no
7595       ;;
7596
7597     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7598     # support.  Future versions do this automatically, but an explicit c++rt0.o
7599     # does not break anything, and helps significantly (at the cost of a little
7600     # extra space).
7601     freebsd2.2*)
7602       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7603       hardcode_libdir_flag_spec='-R$libdir'
7604       hardcode_direct=yes
7605       hardcode_shlibpath_var=no
7606       ;;
7607
7608     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7609     freebsd2*)
7610       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7611       hardcode_direct=yes
7612       hardcode_minus_L=yes
7613       hardcode_shlibpath_var=no
7614       ;;
7615
7616     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7617     freebsd* | kfreebsd*-gnu | dragonfly*)
7618       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7619       hardcode_libdir_flag_spec='-R$libdir'
7620       hardcode_direct=yes
7621       hardcode_shlibpath_var=no
7622       ;;
7623
7624     hpux9*)
7625       if test "$GCC" = yes; then
7626         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'
7627       else
7628         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'
7629       fi
7630       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7631       hardcode_libdir_separator=:
7632       hardcode_direct=yes
7633
7634       # hardcode_minus_L: Not really in the search PATH,
7635       # but as the default location of the library.
7636       hardcode_minus_L=yes
7637       export_dynamic_flag_spec='${wl}-E'
7638       ;;
7639
7640     hpux10*)
7641       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7642         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7643       else
7644         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7645       fi
7646       if test "$with_gnu_ld" = no; then
7647         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7648         hardcode_libdir_separator=:
7649
7650         hardcode_direct=yes
7651         export_dynamic_flag_spec='${wl}-E'
7652
7653         # hardcode_minus_L: Not really in the search PATH,
7654         # but as the default location of the library.
7655         hardcode_minus_L=yes
7656       fi
7657       ;;
7658
7659     hpux11*)
7660       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7661         case $host_cpu in
7662         hppa*64*)
7663           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7664           ;;
7665         ia64*)
7666           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7667           ;;
7668         *)
7669           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7670           ;;
7671         esac
7672       else
7673         case $host_cpu in
7674         hppa*64*)
7675           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7676           ;;
7677         ia64*)
7678           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7679           ;;
7680         *)
7681           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7682           ;;
7683         esac
7684       fi
7685       if test "$with_gnu_ld" = no; then
7686         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7687         hardcode_libdir_separator=:
7688
7689         case $host_cpu in
7690         hppa*64*|ia64*)
7691           hardcode_libdir_flag_spec_ld='+b $libdir'
7692           hardcode_direct=no
7693           hardcode_shlibpath_var=no
7694           ;;
7695         *)
7696           hardcode_direct=yes
7697           export_dynamic_flag_spec='${wl}-E'
7698
7699           # hardcode_minus_L: Not really in the search PATH,
7700           # but as the default location of the library.
7701           hardcode_minus_L=yes
7702           ;;
7703         esac
7704       fi
7705       ;;
7706
7707     irix5* | irix6* | nonstopux*)
7708       if test "$GCC" = yes; then
7709         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'
7710       else
7711         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'
7712         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7713       fi
7714       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7715       hardcode_libdir_separator=:
7716       link_all_deplibs=yes
7717       ;;
7718
7719     netbsd*)
7720       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7721         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7722       else
7723         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7724       fi
7725       hardcode_libdir_flag_spec='-R$libdir'
7726       hardcode_direct=yes
7727       hardcode_shlibpath_var=no
7728       ;;
7729
7730     newsos6)
7731       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7732       hardcode_direct=yes
7733       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7734       hardcode_libdir_separator=:
7735       hardcode_shlibpath_var=no
7736       ;;
7737
7738     openbsd*)
7739       hardcode_direct=yes
7740       hardcode_shlibpath_var=no
7741       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7742         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7743         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7744         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7745         export_dynamic_flag_spec='${wl}-E'
7746       else
7747        case $host_os in
7748          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7749            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7750            hardcode_libdir_flag_spec='-R$libdir'
7751            ;;
7752          *)
7753            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7754            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7755            ;;
7756        esac
7757       fi
7758       ;;
7759
7760     os2*)
7761       hardcode_libdir_flag_spec='-L$libdir'
7762       hardcode_minus_L=yes
7763       allow_undefined_flag=unsupported
7764       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'
7765       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7766       ;;
7767
7768     osf3*)
7769       if test "$GCC" = yes; then
7770         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7771         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'
7772       else
7773         allow_undefined_flag=' -expect_unresolved \*'
7774         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'
7775       fi
7776       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7777       hardcode_libdir_separator=:
7778       ;;
7779
7780     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7781       if test "$GCC" = yes; then
7782         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7783         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'
7784         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7785       else
7786         allow_undefined_flag=' -expect_unresolved \*'
7787         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'
7788         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7789         $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'
7790
7791         # Both c and cxx compiler support -rpath directly
7792         hardcode_libdir_flag_spec='-rpath $libdir'
7793       fi
7794       hardcode_libdir_separator=:
7795       ;;
7796
7797     solaris*)
7798       no_undefined_flag=' -z text'
7799       if test "$GCC" = yes; then
7800         wlarc='${wl}'
7801         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7802         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7803           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7804       else
7805         wlarc=''
7806         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7807         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7808         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7809       fi
7810       hardcode_libdir_flag_spec='-R$libdir'
7811       hardcode_shlibpath_var=no
7812       case $host_os in
7813       solaris2.[0-5] | solaris2.[0-5].*) ;;
7814       *)
7815         # The compiler driver will combine linker options so we
7816         # cannot just pass the convience library names through
7817         # without $wl, iff we do not link with $LD.
7818         # Luckily, gcc supports the same syntax we need for Sun Studio.
7819         # Supported since Solaris 2.6 (maybe 2.5.1?)
7820         case $wlarc in
7821         '')
7822           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7823         *)
7824           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' ;;
7825         esac ;;
7826       esac
7827       link_all_deplibs=yes
7828       ;;
7829
7830     sunos4*)
7831       if test "x$host_vendor" = xsequent; then
7832         # Use $CC to link under sequent, because it throws in some extra .o
7833         # files that make .init and .fini sections work.
7834         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7835       else
7836         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7837       fi
7838       hardcode_libdir_flag_spec='-L$libdir'
7839       hardcode_direct=yes
7840       hardcode_minus_L=yes
7841       hardcode_shlibpath_var=no
7842       ;;
7843
7844     sysv4)
7845       case $host_vendor in
7846         sni)
7847           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7848           hardcode_direct=yes # is this really true???
7849         ;;
7850         siemens)
7851           ## LD is ld it makes a PLAMLIB
7852           ## CC just makes a GrossModule.
7853           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7854           reload_cmds='$CC -r -o $output$reload_objs'
7855           hardcode_direct=no
7856         ;;
7857         motorola)
7858           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7859           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7860         ;;
7861       esac
7862       runpath_var='LD_RUN_PATH'
7863       hardcode_shlibpath_var=no
7864       ;;
7865
7866     sysv4.3*)
7867       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7868       hardcode_shlibpath_var=no
7869       export_dynamic_flag_spec='-Bexport'
7870       ;;
7871
7872     sysv4*MP*)
7873       if test -d /usr/nec; then
7874         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7875         hardcode_shlibpath_var=no
7876         runpath_var=LD_RUN_PATH
7877         hardcode_runpath_var=yes
7878         ld_shlibs=yes
7879       fi
7880       ;;
7881
7882     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7883       no_undefined_flag='${wl}-z,text'
7884       archive_cmds_need_lc=no
7885       hardcode_shlibpath_var=no
7886       runpath_var='LD_RUN_PATH'
7887
7888       if test "$GCC" = yes; then
7889         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7890         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7891       else
7892         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7893         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7894       fi
7895       ;;
7896
7897     sysv5* | sco3.2v5* | sco5v6*)
7898       # Note: We can NOT use -z defs as we might desire, because we do not
7899       # link with -lc, and that would cause any symbols used from libc to
7900       # always be unresolved, which means just about no library would
7901       # ever link correctly.  If we're not using GNU ld we use -z text
7902       # though, which does catch some bad symbols but isn't as heavy-handed
7903       # as -z defs.
7904       no_undefined_flag='${wl}-z,text'
7905       allow_undefined_flag='${wl}-z,nodefs'
7906       archive_cmds_need_lc=no
7907       hardcode_shlibpath_var=no
7908       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7909       hardcode_libdir_separator=':'
7910       link_all_deplibs=yes
7911       export_dynamic_flag_spec='${wl}-Bexport'
7912       runpath_var='LD_RUN_PATH'
7913
7914       if test "$GCC" = yes; then
7915         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7916         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7917       else
7918         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7919         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7920       fi
7921       ;;
7922
7923     uts4*)
7924       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7925       hardcode_libdir_flag_spec='-L$libdir'
7926       hardcode_shlibpath_var=no
7927       ;;
7928
7929     *)
7930       ld_shlibs=no
7931       ;;
7932     esac
7933   fi
7934
7935 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7936 echo "${ECHO_T}$ld_shlibs" >&6
7937 test "$ld_shlibs" = no && can_build_shared=no
7938
7939 #
7940 # Do we need to explicitly link libc?
7941 #
7942 case "x$archive_cmds_need_lc" in
7943 x|xyes)
7944   # Assume -lc should be added
7945   archive_cmds_need_lc=yes
7946
7947   if test "$enable_shared" = yes && test "$GCC" = yes; then
7948     case $archive_cmds in
7949     *'~'*)
7950       # FIXME: we may have to deal with multi-command sequences.
7951       ;;
7952     '$CC '*)
7953       # Test whether the compiler implicitly links with -lc since on some
7954       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7955       # to ld, don't add -lc before -lgcc.
7956       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7957 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7958       $rm conftest*
7959       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7960
7961       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7962   (eval $ac_compile) 2>&5
7963   ac_status=$?
7964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965   (exit $ac_status); } 2>conftest.err; then
7966         soname=conftest
7967         lib=conftest
7968         libobjs=conftest.$ac_objext
7969         deplibs=
7970         wl=$lt_prog_compiler_wl
7971         pic_flag=$lt_prog_compiler_pic
7972         compiler_flags=-v
7973         linker_flags=-v
7974         verstring=
7975         output_objdir=.
7976         libname=conftest
7977         lt_save_allow_undefined_flag=$allow_undefined_flag
7978         allow_undefined_flag=
7979         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7980   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7981   ac_status=$?
7982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983   (exit $ac_status); }
7984         then
7985           archive_cmds_need_lc=no
7986         else
7987           archive_cmds_need_lc=yes
7988         fi
7989         allow_undefined_flag=$lt_save_allow_undefined_flag
7990       else
7991         cat conftest.err 1>&5
7992       fi
7993       $rm conftest*
7994       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7995 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7996       ;;
7997     esac
7998   fi
7999   ;;
8000 esac
8001
8002 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8003 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8004 library_names_spec=
8005 libname_spec='lib$name'
8006 soname_spec=
8007 shrext_cmds=".so"
8008 postinstall_cmds=
8009 postuninstall_cmds=
8010 finish_cmds=
8011 finish_eval=
8012 shlibpath_var=
8013 shlibpath_overrides_runpath=unknown
8014 version_type=none
8015 dynamic_linker="$host_os ld.so"
8016 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8017 if test "$GCC" = yes; then
8018   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8019   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8020     # if the path contains ";" then we assume it to be the separator
8021     # otherwise default to the standard path separator (i.e. ":") - it is
8022     # assumed that no part of a normal pathname contains ";" but that should
8023     # okay in the real world where ";" in dirpaths is itself problematic.
8024     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8025   else
8026     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8027   fi
8028 else
8029   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8030 fi
8031 need_lib_prefix=unknown
8032 hardcode_into_libs=no
8033
8034 # when you set need_version to no, make sure it does not cause -set_version
8035 # flags to be left without arguments
8036 need_version=unknown
8037
8038 case $host_os in
8039 aix3*)
8040   version_type=linux
8041   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8042   shlibpath_var=LIBPATH
8043
8044   # AIX 3 has no versioning support, so we append a major version to the name.
8045   soname_spec='${libname}${release}${shared_ext}$major'
8046   ;;
8047
8048 aix4* | aix5*)
8049   version_type=linux
8050   need_lib_prefix=no
8051   need_version=no
8052   hardcode_into_libs=yes
8053   if test "$host_cpu" = ia64; then
8054     # AIX 5 supports IA64
8055     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8056     shlibpath_var=LD_LIBRARY_PATH
8057   else
8058     # With GCC up to 2.95.x, collect2 would create an import file
8059     # for dependence libraries.  The import file would start with
8060     # the line `#! .'.  This would cause the generated library to
8061     # depend on `.', always an invalid library.  This was fixed in
8062     # development snapshots of GCC prior to 3.0.
8063     case $host_os in
8064       aix4 | aix4.[01] | aix4.[01].*)
8065       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8066            echo ' yes '
8067            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8068         :
8069       else
8070         can_build_shared=no
8071       fi
8072       ;;
8073     esac
8074     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8075     # soname into executable. Probably we can add versioning support to
8076     # collect2, so additional links can be useful in future.
8077     if test "$aix_use_runtimelinking" = yes; then
8078       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8079       # instead of lib<name>.a to let people know that these are not
8080       # typical AIX shared libraries.
8081       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8082     else
8083       # We preserve .a as extension for shared libraries through AIX4.2
8084       # and later when we are not doing run time linking.
8085       library_names_spec='${libname}${release}.a $libname.a'
8086       soname_spec='${libname}${release}${shared_ext}$major'
8087     fi
8088     shlibpath_var=LIBPATH
8089   fi
8090   ;;
8091
8092 amigaos*)
8093   library_names_spec='$libname.ixlibrary $libname.a'
8094   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8095   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'
8096   ;;
8097
8098 beos*)
8099   library_names_spec='${libname}${shared_ext}'
8100   dynamic_linker="$host_os ld.so"
8101   shlibpath_var=LIBRARY_PATH
8102   ;;
8103
8104 bsdi[45]*)
8105   version_type=linux
8106   need_version=no
8107   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8108   soname_spec='${libname}${release}${shared_ext}$major'
8109   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8110   shlibpath_var=LD_LIBRARY_PATH
8111   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8112   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8113   # the default ld.so.conf also contains /usr/contrib/lib and
8114   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8115   # libtool to hard-code these into programs
8116   ;;
8117
8118 cygwin* | mingw* | pw32*)
8119   version_type=windows
8120   shrext_cmds=".dll"
8121   need_version=no
8122   need_lib_prefix=no
8123
8124   case $GCC,$host_os in
8125   yes,cygwin* | yes,mingw* | yes,pw32*)
8126     library_names_spec='$libname.dll.a'
8127     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8128     postinstall_cmds='base_file=`basename \${file}`~
8129       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8130       dldir=$destdir/`dirname \$dlpath`~
8131       test -d \$dldir || mkdir -p \$dldir~
8132       $install_prog $dir/$dlname \$dldir/$dlname~
8133       chmod a+x \$dldir/$dlname'
8134     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8135       dlpath=$dir/\$dldll~
8136        $rm \$dlpath'
8137     shlibpath_overrides_runpath=yes
8138
8139     case $host_os in
8140     cygwin*)
8141       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8142       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8143       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8144       ;;
8145     mingw*)
8146       # MinGW DLLs use traditional 'lib' prefix
8147       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8148       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8149       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8150         # It is most probably a Windows format PATH printed by
8151         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8152         # path with ; separators, and with drive letters. We can handle the
8153         # drive letters (cygwin fileutils understands them), so leave them,
8154         # especially as we might pass files found there to a mingw objdump,
8155         # which wouldn't understand a cygwinified path. Ahh.
8156         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8157       else
8158         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8159       fi
8160       ;;
8161     pw32*)
8162       # pw32 DLLs use 'pw' prefix rather than 'lib'
8163       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8164       ;;
8165     esac
8166     ;;
8167
8168   linux*)
8169     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
8170       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8171       supports_anon_versioning=no
8172       case `$LD -v 2>/dev/null` in
8173         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8174         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8175         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8176         *\ 2.11.*) ;; # other 2.11 versions
8177         *) supports_anon_versioning=yes ;;
8178       esac
8179       if test $supports_anon_versioning = yes; then
8180         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8181 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8182 $echo "local: *; };" >> $output_objdir/$libname.ver~
8183         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8184       else
8185         $archive_expsym_cmds="$archive_cmds"
8186       fi
8187     else
8188       ld_shlibs=no
8189     fi
8190     ;;
8191
8192   *)
8193     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8194     ;;
8195   esac
8196   dynamic_linker='Win32 ld.exe'
8197   # FIXME: first we should search . and the directory the executable is in
8198   shlibpath_var=PATH
8199   ;;
8200
8201 darwin* | rhapsody*)
8202   dynamic_linker="$host_os dyld"
8203   version_type=darwin
8204   need_lib_prefix=no
8205   need_version=no
8206   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8207   soname_spec='${libname}${release}${major}$shared_ext'
8208   shlibpath_overrides_runpath=yes
8209   shlibpath_var=DYLD_LIBRARY_PATH
8210   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8211   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8212   if test "$GCC" = yes; then
8213     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"`
8214   else
8215     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8216   fi
8217   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8218   ;;
8219
8220 dgux*)
8221   version_type=linux
8222   need_lib_prefix=no
8223   need_version=no
8224   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8225   soname_spec='${libname}${release}${shared_ext}$major'
8226   shlibpath_var=LD_LIBRARY_PATH
8227   ;;
8228
8229 freebsd1*)
8230   dynamic_linker=no
8231   ;;
8232
8233 kfreebsd*-gnu)
8234   version_type=linux
8235   need_lib_prefix=no
8236   need_version=no
8237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8238   soname_spec='${libname}${release}${shared_ext}$major'
8239   shlibpath_var=LD_LIBRARY_PATH
8240   shlibpath_overrides_runpath=no
8241   hardcode_into_libs=yes
8242   dynamic_linker='GNU ld.so'
8243   ;;
8244
8245 freebsd* | dragonfly*)
8246   # DragonFly does not have aout.  When/if they implement a new
8247   # versioning mechanism, adjust this.
8248   if test -x /usr/bin/objformat; then
8249     objformat=`/usr/bin/objformat`
8250   else
8251     case $host_os in
8252     freebsd[123]*) objformat=aout ;;
8253     *) objformat=elf ;;
8254     esac
8255   fi
8256   # Handle Gentoo/FreeBSD as it was Linux
8257   case $host_vendor in
8258     gentoo)
8259       version_type=linux ;;
8260     *)
8261       version_type=freebsd-$objformat ;;
8262   esac
8263
8264   case $version_type in
8265     freebsd-elf*)
8266       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8267       need_version=no
8268       need_lib_prefix=no
8269       ;;
8270     freebsd-*)
8271       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8272       need_version=yes
8273       ;;
8274     linux)
8275       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8276       soname_spec='${libname}${release}${shared_ext}$major'
8277       need_lib_prefix=no
8278       need_version=no
8279       ;;
8280   esac
8281   shlibpath_var=LD_LIBRARY_PATH
8282   case $host_os in
8283   freebsd2*)
8284     shlibpath_overrides_runpath=yes
8285     ;;
8286   freebsd3.[01]* | freebsdelf3.[01]*)
8287     shlibpath_overrides_runpath=yes
8288     hardcode_into_libs=yes
8289     ;;
8290   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8291   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8292     shlibpath_overrides_runpath=no
8293     hardcode_into_libs=yes
8294     ;;
8295   freebsd*) # from 4.6 on
8296     shlibpath_overrides_runpath=yes
8297     hardcode_into_libs=yes
8298     ;;
8299   esac
8300   ;;
8301
8302 gnu*)
8303   version_type=linux
8304   need_lib_prefix=no
8305   need_version=no
8306   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8307   soname_spec='${libname}${release}${shared_ext}$major'
8308   shlibpath_var=LD_LIBRARY_PATH
8309   hardcode_into_libs=yes
8310   ;;
8311
8312 hpux9* | hpux10* | hpux11*)
8313   # Give a soname corresponding to the major version so that dld.sl refuses to
8314   # link against other versions.
8315   version_type=sunos
8316   need_lib_prefix=no
8317   need_version=no
8318   case $host_cpu in
8319   ia64*)
8320     shrext_cmds='.so'
8321     hardcode_into_libs=yes
8322     dynamic_linker="$host_os dld.so"
8323     shlibpath_var=LD_LIBRARY_PATH
8324     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8325     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8326     soname_spec='${libname}${release}${shared_ext}$major'
8327     if test "X$HPUX_IA64_MODE" = X32; then
8328       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8329     else
8330       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8331     fi
8332     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8333     ;;
8334    hppa*64*)
8335      shrext_cmds='.sl'
8336      hardcode_into_libs=yes
8337      dynamic_linker="$host_os dld.sl"
8338      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8339      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8340      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8341      soname_spec='${libname}${release}${shared_ext}$major'
8342      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8343      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8344      ;;
8345    *)
8346     shrext_cmds='.sl'
8347     dynamic_linker="$host_os dld.sl"
8348     shlibpath_var=SHLIB_PATH
8349     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8350     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8351     soname_spec='${libname}${release}${shared_ext}$major'
8352     ;;
8353   esac
8354   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8355   postinstall_cmds='chmod 555 $lib'
8356   ;;
8357
8358 interix3*)
8359   version_type=linux
8360   need_lib_prefix=no
8361   need_version=no
8362   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8363   soname_spec='${libname}${release}${shared_ext}$major'
8364   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8365   shlibpath_var=LD_LIBRARY_PATH
8366   shlibpath_overrides_runpath=no
8367   hardcode_into_libs=yes
8368   ;;
8369
8370 irix5* | irix6* | nonstopux*)
8371   case $host_os in
8372     nonstopux*) version_type=nonstopux ;;
8373     *)
8374         if test "$lt_cv_prog_gnu_ld" = yes; then
8375                 version_type=linux
8376         else
8377                 version_type=irix
8378         fi ;;
8379   esac
8380   need_lib_prefix=no
8381   need_version=no
8382   soname_spec='${libname}${release}${shared_ext}$major'
8383   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8384   case $host_os in
8385   irix5* | nonstopux*)
8386     libsuff= shlibsuff=
8387     ;;
8388   *)
8389     case $LD in # libtool.m4 will add one of these switches to LD
8390     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8391       libsuff= shlibsuff= libmagic=32-bit;;
8392     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8393       libsuff=32 shlibsuff=N32 libmagic=N32;;
8394     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8395       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8396     *) libsuff= shlibsuff= libmagic=never-match;;
8397     esac
8398     ;;
8399   esac
8400   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8401   shlibpath_overrides_runpath=no
8402   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8403   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8404   hardcode_into_libs=yes
8405   ;;
8406
8407 # No shared lib support for Linux oldld, aout, or coff.
8408 linux*oldld* | linux*aout* | linux*coff*)
8409   dynamic_linker=no
8410   ;;
8411
8412 # This must be Linux ELF.
8413 linux*)
8414   version_type=linux
8415   need_lib_prefix=no
8416   need_version=no
8417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8418   soname_spec='${libname}${release}${shared_ext}$major'
8419   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8420   shlibpath_var=LD_LIBRARY_PATH
8421   shlibpath_overrides_runpath=no
8422   # This implies no fast_install, which is unacceptable.
8423   # Some rework will be needed to allow for fast_install
8424   # before this can be enabled.
8425   hardcode_into_libs=yes
8426
8427   # Append ld.so.conf contents to the search path
8428   if test -f /etc/ld.so.conf; then
8429     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' ' '`
8430     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8431   fi
8432
8433   # We used to test for /lib/ld.so.1 and disable shared libraries on
8434   # powerpc, because MkLinux only supported shared libraries with the
8435   # GNU dynamic linker.  Since this was broken with cross compilers,
8436   # most powerpc-linux boxes support dynamic linking these days and
8437   # people can always --disable-shared, the test was removed, and we
8438   # assume the GNU/Linux dynamic linker is in use.
8439   dynamic_linker='GNU/Linux ld.so'
8440   ;;
8441
8442 knetbsd*-gnu)
8443   version_type=linux
8444   need_lib_prefix=no
8445   need_version=no
8446   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8447   soname_spec='${libname}${release}${shared_ext}$major'
8448   shlibpath_var=LD_LIBRARY_PATH
8449   shlibpath_overrides_runpath=no
8450   hardcode_into_libs=yes
8451   dynamic_linker='GNU ld.so'
8452   ;;
8453
8454 netbsd*)
8455   version_type=sunos
8456   need_lib_prefix=no
8457   need_version=no
8458   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8459     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8460     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8461     dynamic_linker='NetBSD (a.out) ld.so'
8462   else
8463     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8464     soname_spec='${libname}${release}${shared_ext}$major'
8465     dynamic_linker='NetBSD ld.elf_so'
8466   fi
8467   shlibpath_var=LD_LIBRARY_PATH
8468   shlibpath_overrides_runpath=yes
8469   hardcode_into_libs=yes
8470   ;;
8471
8472 newsos6)
8473   version_type=linux
8474   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8475   shlibpath_var=LD_LIBRARY_PATH
8476   shlibpath_overrides_runpath=yes
8477   ;;
8478
8479 nto-qnx*)
8480   version_type=linux
8481   need_lib_prefix=no
8482   need_version=no
8483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8484   soname_spec='${libname}${release}${shared_ext}$major'
8485   shlibpath_var=LD_LIBRARY_PATH
8486   shlibpath_overrides_runpath=yes
8487   ;;
8488
8489 openbsd*)
8490   version_type=sunos
8491   sys_lib_dlsearch_path_spec="/usr/lib"
8492   need_lib_prefix=no
8493   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8494   case $host_os in
8495     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8496     *)                         need_version=no  ;;
8497   esac
8498   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8499   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8500   shlibpath_var=LD_LIBRARY_PATH
8501   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8502     case $host_os in
8503       openbsd2.[89] | openbsd2.[89].*)
8504         shlibpath_overrides_runpath=no
8505         ;;
8506       *)
8507         shlibpath_overrides_runpath=yes
8508         ;;
8509       esac
8510   else
8511     shlibpath_overrides_runpath=yes
8512   fi
8513   ;;
8514
8515 os2*)
8516   libname_spec='$name'
8517   shrext_cmds=".dll"
8518   need_lib_prefix=no
8519   library_names_spec='$libname${shared_ext} $libname.a'
8520   dynamic_linker='OS/2 ld.exe'
8521   shlibpath_var=LIBPATH
8522   ;;
8523
8524 osf3* | osf4* | osf5*)
8525   version_type=osf
8526   need_lib_prefix=no
8527   need_version=no
8528   soname_spec='${libname}${release}${shared_ext}$major'
8529   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8530   shlibpath_var=LD_LIBRARY_PATH
8531   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8532   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8533   ;;
8534
8535 solaris*)
8536   version_type=linux
8537   need_lib_prefix=no
8538   need_version=no
8539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8540   soname_spec='${libname}${release}${shared_ext}$major'
8541   shlibpath_var=LD_LIBRARY_PATH
8542   shlibpath_overrides_runpath=yes
8543   hardcode_into_libs=yes
8544   # ldd complains unless libraries are executable
8545   postinstall_cmds='chmod +x $lib'
8546   ;;
8547
8548 sunos4*)
8549   version_type=sunos
8550   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8551   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8552   shlibpath_var=LD_LIBRARY_PATH
8553   shlibpath_overrides_runpath=yes
8554   if test "$with_gnu_ld" = yes; then
8555     need_lib_prefix=no
8556   fi
8557   need_version=yes
8558   ;;
8559
8560 sysv4 | sysv4.3*)
8561   version_type=linux
8562   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8563   soname_spec='${libname}${release}${shared_ext}$major'
8564   shlibpath_var=LD_LIBRARY_PATH
8565   case $host_vendor in
8566     sni)
8567       shlibpath_overrides_runpath=no
8568       need_lib_prefix=no
8569       export_dynamic_flag_spec='${wl}-Blargedynsym'
8570       runpath_var=LD_RUN_PATH
8571       ;;
8572     siemens)
8573       need_lib_prefix=no
8574       ;;
8575     motorola)
8576       need_lib_prefix=no
8577       need_version=no
8578       shlibpath_overrides_runpath=no
8579       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8580       ;;
8581   esac
8582   ;;
8583
8584 sysv4*MP*)
8585   if test -d /usr/nec ;then
8586     version_type=linux
8587     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8588     soname_spec='$libname${shared_ext}.$major'
8589     shlibpath_var=LD_LIBRARY_PATH
8590   fi
8591   ;;
8592
8593 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8594   version_type=freebsd-elf
8595   need_lib_prefix=no
8596   need_version=no
8597   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8598   soname_spec='${libname}${release}${shared_ext}$major'
8599   shlibpath_var=LD_LIBRARY_PATH
8600   hardcode_into_libs=yes
8601   if test "$with_gnu_ld" = yes; then
8602     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8603     shlibpath_overrides_runpath=no
8604   else
8605     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8606     shlibpath_overrides_runpath=yes
8607     case $host_os in
8608       sco3.2v5*)
8609         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8610         ;;
8611     esac
8612   fi
8613   sys_lib_dlsearch_path_spec='/usr/lib'
8614   ;;
8615
8616 uts4*)
8617   version_type=linux
8618   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8619   soname_spec='${libname}${release}${shared_ext}$major'
8620   shlibpath_var=LD_LIBRARY_PATH
8621   ;;
8622
8623 *)
8624   dynamic_linker=no
8625   ;;
8626 esac
8627 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8628 echo "${ECHO_T}$dynamic_linker" >&6
8629 test "$dynamic_linker" = no && can_build_shared=no
8630
8631 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8632 if test "$GCC" = yes; then
8633   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8634 fi
8635
8636 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8637 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8638 hardcode_action=
8639 if test -n "$hardcode_libdir_flag_spec" || \
8640    test -n "$runpath_var" || \
8641    test "X$hardcode_automatic" = "Xyes" ; then
8642
8643   # We can hardcode non-existant directories.
8644   if test "$hardcode_direct" != no &&
8645      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8646      # have to relink, otherwise we might link with an installed library
8647      # when we should be linking with a yet-to-be-installed one
8648      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8649      test "$hardcode_minus_L" != no; then
8650     # Linking always hardcodes the temporary library directory.
8651     hardcode_action=relink
8652   else
8653     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8654     hardcode_action=immediate
8655   fi
8656 else
8657   # We cannot hardcode anything, or else we can only hardcode existing
8658   # directories.
8659   hardcode_action=unsupported
8660 fi
8661 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8662 echo "${ECHO_T}$hardcode_action" >&6
8663
8664 if test "$hardcode_action" = relink; then
8665   # Fast installation is not supported
8666   enable_fast_install=no
8667 elif test "$shlibpath_overrides_runpath" = yes ||
8668      test "$enable_shared" = no; then
8669   # Fast installation is not necessary
8670   enable_fast_install=needless
8671 fi
8672
8673 striplib=
8674 old_striplib=
8675 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8676 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8677 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8678   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8679   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8680   echo "$as_me:$LINENO: result: yes" >&5
8681 echo "${ECHO_T}yes" >&6
8682 else
8683 # FIXME - insert some real tests, host_os isn't really good enough
8684   case $host_os in
8685    darwin*)
8686        if test -n "$STRIP" ; then
8687          striplib="$STRIP -x"
8688          echo "$as_me:$LINENO: result: yes" >&5
8689 echo "${ECHO_T}yes" >&6
8690        else
8691   echo "$as_me:$LINENO: result: no" >&5
8692 echo "${ECHO_T}no" >&6
8693 fi
8694        ;;
8695    *)
8696   echo "$as_me:$LINENO: result: no" >&5
8697 echo "${ECHO_T}no" >&6
8698     ;;
8699   esac
8700 fi
8701
8702 if test "x$enable_dlopen" != xyes; then
8703   enable_dlopen=unknown
8704   enable_dlopen_self=unknown
8705   enable_dlopen_self_static=unknown
8706 else
8707   lt_cv_dlopen=no
8708   lt_cv_dlopen_libs=
8709
8710   case $host_os in
8711   beos*)
8712     lt_cv_dlopen="load_add_on"
8713     lt_cv_dlopen_libs=
8714     lt_cv_dlopen_self=yes
8715     ;;
8716
8717   mingw* | pw32*)
8718     lt_cv_dlopen="LoadLibrary"
8719     lt_cv_dlopen_libs=
8720    ;;
8721
8722   cygwin*)
8723     lt_cv_dlopen="dlopen"
8724     lt_cv_dlopen_libs=
8725    ;;
8726
8727   darwin*)
8728   # if libdl is installed we need to link against it
8729     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8730 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8731 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8732   echo $ECHO_N "(cached) $ECHO_C" >&6
8733 else
8734   ac_check_lib_save_LIBS=$LIBS
8735 LIBS="-ldl  $LIBS"
8736 cat >conftest.$ac_ext <<_ACEOF
8737 /* confdefs.h.  */
8738 _ACEOF
8739 cat confdefs.h >>conftest.$ac_ext
8740 cat >>conftest.$ac_ext <<_ACEOF
8741 /* end confdefs.h.  */
8742
8743 /* Override any gcc2 internal prototype to avoid an error.  */
8744 #ifdef __cplusplus
8745 extern "C"
8746 #endif
8747 /* We use char because int might match the return type of a gcc2
8748    builtin and then its argument prototype would still apply.  */
8749 char dlopen ();
8750 int
8751 main ()
8752 {
8753 dlopen ();
8754   ;
8755   return 0;
8756 }
8757 _ACEOF
8758 rm -f conftest.$ac_objext conftest$ac_exeext
8759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8760   (eval $ac_link) 2>conftest.er1
8761   ac_status=$?
8762   grep -v '^ *+' conftest.er1 >conftest.err
8763   rm -f conftest.er1
8764   cat conftest.err >&5
8765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766   (exit $ac_status); } &&
8767          { ac_try='test -z "$ac_c_werror_flag"
8768                          || test ! -s conftest.err'
8769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8770   (eval $ac_try) 2>&5
8771   ac_status=$?
8772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773   (exit $ac_status); }; } &&
8774          { ac_try='test -s conftest$ac_exeext'
8775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8776   (eval $ac_try) 2>&5
8777   ac_status=$?
8778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779   (exit $ac_status); }; }; then
8780   ac_cv_lib_dl_dlopen=yes
8781 else
8782   echo "$as_me: failed program was:" >&5
8783 sed 's/^/| /' conftest.$ac_ext >&5
8784
8785 ac_cv_lib_dl_dlopen=no
8786 fi
8787 rm -f conftest.err conftest.$ac_objext \
8788       conftest$ac_exeext conftest.$ac_ext
8789 LIBS=$ac_check_lib_save_LIBS
8790 fi
8791 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8792 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8793 if test $ac_cv_lib_dl_dlopen = yes; then
8794   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8795 else
8796
8797     lt_cv_dlopen="dyld"
8798     lt_cv_dlopen_libs=
8799     lt_cv_dlopen_self=yes
8800
8801 fi
8802
8803    ;;
8804
8805   *)
8806     echo "$as_me:$LINENO: checking for shl_load" >&5
8807 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8808 if test "${ac_cv_func_shl_load+set}" = set; then
8809   echo $ECHO_N "(cached) $ECHO_C" >&6
8810 else
8811   cat >conftest.$ac_ext <<_ACEOF
8812 /* confdefs.h.  */
8813 _ACEOF
8814 cat confdefs.h >>conftest.$ac_ext
8815 cat >>conftest.$ac_ext <<_ACEOF
8816 /* end confdefs.h.  */
8817 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8818    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8819 #define shl_load innocuous_shl_load
8820
8821 /* System header to define __stub macros and hopefully few prototypes,
8822     which can conflict with char shl_load (); below.
8823     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8824     <limits.h> exists even on freestanding compilers.  */
8825
8826 #ifdef __STDC__
8827 # include <limits.h>
8828 #else
8829 # include <assert.h>
8830 #endif
8831
8832 #undef shl_load
8833
8834 /* Override any gcc2 internal prototype to avoid an error.  */
8835 #ifdef __cplusplus
8836 extern "C"
8837 {
8838 #endif
8839 /* We use char because int might match the return type of a gcc2
8840    builtin and then its argument prototype would still apply.  */
8841 char shl_load ();
8842 /* The GNU C library defines this for functions which it implements
8843     to always fail with ENOSYS.  Some functions are actually named
8844     something starting with __ and the normal name is an alias.  */
8845 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8846 choke me
8847 #else
8848 char (*f) () = shl_load;
8849 #endif
8850 #ifdef __cplusplus
8851 }
8852 #endif
8853
8854 int
8855 main ()
8856 {
8857 return f != shl_load;
8858   ;
8859   return 0;
8860 }
8861 _ACEOF
8862 rm -f conftest.$ac_objext conftest$ac_exeext
8863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8864   (eval $ac_link) 2>conftest.er1
8865   ac_status=$?
8866   grep -v '^ *+' conftest.er1 >conftest.err
8867   rm -f conftest.er1
8868   cat conftest.err >&5
8869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870   (exit $ac_status); } &&
8871          { ac_try='test -z "$ac_c_werror_flag"
8872                          || test ! -s conftest.err'
8873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8874   (eval $ac_try) 2>&5
8875   ac_status=$?
8876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877   (exit $ac_status); }; } &&
8878          { ac_try='test -s conftest$ac_exeext'
8879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8880   (eval $ac_try) 2>&5
8881   ac_status=$?
8882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883   (exit $ac_status); }; }; then
8884   ac_cv_func_shl_load=yes
8885 else
8886   echo "$as_me: failed program was:" >&5
8887 sed 's/^/| /' conftest.$ac_ext >&5
8888
8889 ac_cv_func_shl_load=no
8890 fi
8891 rm -f conftest.err conftest.$ac_objext \
8892       conftest$ac_exeext conftest.$ac_ext
8893 fi
8894 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8895 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8896 if test $ac_cv_func_shl_load = yes; then
8897   lt_cv_dlopen="shl_load"
8898 else
8899   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8900 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8901 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8902   echo $ECHO_N "(cached) $ECHO_C" >&6
8903 else
8904   ac_check_lib_save_LIBS=$LIBS
8905 LIBS="-ldld  $LIBS"
8906 cat >conftest.$ac_ext <<_ACEOF
8907 /* confdefs.h.  */
8908 _ACEOF
8909 cat confdefs.h >>conftest.$ac_ext
8910 cat >>conftest.$ac_ext <<_ACEOF
8911 /* end confdefs.h.  */
8912
8913 /* Override any gcc2 internal prototype to avoid an error.  */
8914 #ifdef __cplusplus
8915 extern "C"
8916 #endif
8917 /* We use char because int might match the return type of a gcc2
8918    builtin and then its argument prototype would still apply.  */
8919 char shl_load ();
8920 int
8921 main ()
8922 {
8923 shl_load ();
8924   ;
8925   return 0;
8926 }
8927 _ACEOF
8928 rm -f conftest.$ac_objext conftest$ac_exeext
8929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8930   (eval $ac_link) 2>conftest.er1
8931   ac_status=$?
8932   grep -v '^ *+' conftest.er1 >conftest.err
8933   rm -f conftest.er1
8934   cat conftest.err >&5
8935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936   (exit $ac_status); } &&
8937          { ac_try='test -z "$ac_c_werror_flag"
8938                          || test ! -s conftest.err'
8939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8940   (eval $ac_try) 2>&5
8941   ac_status=$?
8942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943   (exit $ac_status); }; } &&
8944          { ac_try='test -s conftest$ac_exeext'
8945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8946   (eval $ac_try) 2>&5
8947   ac_status=$?
8948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949   (exit $ac_status); }; }; then
8950   ac_cv_lib_dld_shl_load=yes
8951 else
8952   echo "$as_me: failed program was:" >&5
8953 sed 's/^/| /' conftest.$ac_ext >&5
8954
8955 ac_cv_lib_dld_shl_load=no
8956 fi
8957 rm -f conftest.err conftest.$ac_objext \
8958       conftest$ac_exeext conftest.$ac_ext
8959 LIBS=$ac_check_lib_save_LIBS
8960 fi
8961 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8962 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8963 if test $ac_cv_lib_dld_shl_load = yes; then
8964   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8965 else
8966   echo "$as_me:$LINENO: checking for dlopen" >&5
8967 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8968 if test "${ac_cv_func_dlopen+set}" = set; then
8969   echo $ECHO_N "(cached) $ECHO_C" >&6
8970 else
8971   cat >conftest.$ac_ext <<_ACEOF
8972 /* confdefs.h.  */
8973 _ACEOF
8974 cat confdefs.h >>conftest.$ac_ext
8975 cat >>conftest.$ac_ext <<_ACEOF
8976 /* end confdefs.h.  */
8977 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8978    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8979 #define dlopen innocuous_dlopen
8980
8981 /* System header to define __stub macros and hopefully few prototypes,
8982     which can conflict with char dlopen (); below.
8983     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8984     <limits.h> exists even on freestanding compilers.  */
8985
8986 #ifdef __STDC__
8987 # include <limits.h>
8988 #else
8989 # include <assert.h>
8990 #endif
8991
8992 #undef dlopen
8993
8994 /* Override any gcc2 internal prototype to avoid an error.  */
8995 #ifdef __cplusplus
8996 extern "C"
8997 {
8998 #endif
8999 /* We use char because int might match the return type of a gcc2
9000    builtin and then its argument prototype would still apply.  */
9001 char dlopen ();
9002 /* The GNU C library defines this for functions which it implements
9003     to always fail with ENOSYS.  Some functions are actually named
9004     something starting with __ and the normal name is an alias.  */
9005 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9006 choke me
9007 #else
9008 char (*f) () = dlopen;
9009 #endif
9010 #ifdef __cplusplus
9011 }
9012 #endif
9013
9014 int
9015 main ()
9016 {
9017 return f != dlopen;
9018   ;
9019   return 0;
9020 }
9021 _ACEOF
9022 rm -f conftest.$ac_objext conftest$ac_exeext
9023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9024   (eval $ac_link) 2>conftest.er1
9025   ac_status=$?
9026   grep -v '^ *+' conftest.er1 >conftest.err
9027   rm -f conftest.er1
9028   cat conftest.err >&5
9029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030   (exit $ac_status); } &&
9031          { ac_try='test -z "$ac_c_werror_flag"
9032                          || test ! -s conftest.err'
9033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9034   (eval $ac_try) 2>&5
9035   ac_status=$?
9036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037   (exit $ac_status); }; } &&
9038          { ac_try='test -s conftest$ac_exeext'
9039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9040   (eval $ac_try) 2>&5
9041   ac_status=$?
9042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043   (exit $ac_status); }; }; then
9044   ac_cv_func_dlopen=yes
9045 else
9046   echo "$as_me: failed program was:" >&5
9047 sed 's/^/| /' conftest.$ac_ext >&5
9048
9049 ac_cv_func_dlopen=no
9050 fi
9051 rm -f conftest.err conftest.$ac_objext \
9052       conftest$ac_exeext conftest.$ac_ext
9053 fi
9054 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9055 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9056 if test $ac_cv_func_dlopen = yes; then
9057   lt_cv_dlopen="dlopen"
9058 else
9059   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9060 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9061 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9062   echo $ECHO_N "(cached) $ECHO_C" >&6
9063 else
9064   ac_check_lib_save_LIBS=$LIBS
9065 LIBS="-ldl  $LIBS"
9066 cat >conftest.$ac_ext <<_ACEOF
9067 /* confdefs.h.  */
9068 _ACEOF
9069 cat confdefs.h >>conftest.$ac_ext
9070 cat >>conftest.$ac_ext <<_ACEOF
9071 /* end confdefs.h.  */
9072
9073 /* Override any gcc2 internal prototype to avoid an error.  */
9074 #ifdef __cplusplus
9075 extern "C"
9076 #endif
9077 /* We use char because int might match the return type of a gcc2
9078    builtin and then its argument prototype would still apply.  */
9079 char dlopen ();
9080 int
9081 main ()
9082 {
9083 dlopen ();
9084   ;
9085   return 0;
9086 }
9087 _ACEOF
9088 rm -f conftest.$ac_objext conftest$ac_exeext
9089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9090   (eval $ac_link) 2>conftest.er1
9091   ac_status=$?
9092   grep -v '^ *+' conftest.er1 >conftest.err
9093   rm -f conftest.er1
9094   cat conftest.err >&5
9095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096   (exit $ac_status); } &&
9097          { ac_try='test -z "$ac_c_werror_flag"
9098                          || test ! -s conftest.err'
9099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9100   (eval $ac_try) 2>&5
9101   ac_status=$?
9102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103   (exit $ac_status); }; } &&
9104          { ac_try='test -s conftest$ac_exeext'
9105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9106   (eval $ac_try) 2>&5
9107   ac_status=$?
9108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109   (exit $ac_status); }; }; then
9110   ac_cv_lib_dl_dlopen=yes
9111 else
9112   echo "$as_me: failed program was:" >&5
9113 sed 's/^/| /' conftest.$ac_ext >&5
9114
9115 ac_cv_lib_dl_dlopen=no
9116 fi
9117 rm -f conftest.err conftest.$ac_objext \
9118       conftest$ac_exeext conftest.$ac_ext
9119 LIBS=$ac_check_lib_save_LIBS
9120 fi
9121 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9122 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9123 if test $ac_cv_lib_dl_dlopen = yes; then
9124   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9125 else
9126   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9127 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9128 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9129   echo $ECHO_N "(cached) $ECHO_C" >&6
9130 else
9131   ac_check_lib_save_LIBS=$LIBS
9132 LIBS="-lsvld  $LIBS"
9133 cat >conftest.$ac_ext <<_ACEOF
9134 /* confdefs.h.  */
9135 _ACEOF
9136 cat confdefs.h >>conftest.$ac_ext
9137 cat >>conftest.$ac_ext <<_ACEOF
9138 /* end confdefs.h.  */
9139
9140 /* Override any gcc2 internal prototype to avoid an error.  */
9141 #ifdef __cplusplus
9142 extern "C"
9143 #endif
9144 /* We use char because int might match the return type of a gcc2
9145    builtin and then its argument prototype would still apply.  */
9146 char dlopen ();
9147 int
9148 main ()
9149 {
9150 dlopen ();
9151   ;
9152   return 0;
9153 }
9154 _ACEOF
9155 rm -f conftest.$ac_objext conftest$ac_exeext
9156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9157   (eval $ac_link) 2>conftest.er1
9158   ac_status=$?
9159   grep -v '^ *+' conftest.er1 >conftest.err
9160   rm -f conftest.er1
9161   cat conftest.err >&5
9162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163   (exit $ac_status); } &&
9164          { ac_try='test -z "$ac_c_werror_flag"
9165                          || test ! -s conftest.err'
9166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9167   (eval $ac_try) 2>&5
9168   ac_status=$?
9169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170   (exit $ac_status); }; } &&
9171          { ac_try='test -s conftest$ac_exeext'
9172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9173   (eval $ac_try) 2>&5
9174   ac_status=$?
9175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176   (exit $ac_status); }; }; then
9177   ac_cv_lib_svld_dlopen=yes
9178 else
9179   echo "$as_me: failed program was:" >&5
9180 sed 's/^/| /' conftest.$ac_ext >&5
9181
9182 ac_cv_lib_svld_dlopen=no
9183 fi
9184 rm -f conftest.err conftest.$ac_objext \
9185       conftest$ac_exeext conftest.$ac_ext
9186 LIBS=$ac_check_lib_save_LIBS
9187 fi
9188 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9189 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9190 if test $ac_cv_lib_svld_dlopen = yes; then
9191   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9192 else
9193   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9194 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9195 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9196   echo $ECHO_N "(cached) $ECHO_C" >&6
9197 else
9198   ac_check_lib_save_LIBS=$LIBS
9199 LIBS="-ldld  $LIBS"
9200 cat >conftest.$ac_ext <<_ACEOF
9201 /* confdefs.h.  */
9202 _ACEOF
9203 cat confdefs.h >>conftest.$ac_ext
9204 cat >>conftest.$ac_ext <<_ACEOF
9205 /* end confdefs.h.  */
9206
9207 /* Override any gcc2 internal prototype to avoid an error.  */
9208 #ifdef __cplusplus
9209 extern "C"
9210 #endif
9211 /* We use char because int might match the return type of a gcc2
9212    builtin and then its argument prototype would still apply.  */
9213 char dld_link ();
9214 int
9215 main ()
9216 {
9217 dld_link ();
9218   ;
9219   return 0;
9220 }
9221 _ACEOF
9222 rm -f conftest.$ac_objext conftest$ac_exeext
9223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9224   (eval $ac_link) 2>conftest.er1
9225   ac_status=$?
9226   grep -v '^ *+' conftest.er1 >conftest.err
9227   rm -f conftest.er1
9228   cat conftest.err >&5
9229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230   (exit $ac_status); } &&
9231          { ac_try='test -z "$ac_c_werror_flag"
9232                          || test ! -s conftest.err'
9233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9234   (eval $ac_try) 2>&5
9235   ac_status=$?
9236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237   (exit $ac_status); }; } &&
9238          { ac_try='test -s conftest$ac_exeext'
9239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9240   (eval $ac_try) 2>&5
9241   ac_status=$?
9242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243   (exit $ac_status); }; }; then
9244   ac_cv_lib_dld_dld_link=yes
9245 else
9246   echo "$as_me: failed program was:" >&5
9247 sed 's/^/| /' conftest.$ac_ext >&5
9248
9249 ac_cv_lib_dld_dld_link=no
9250 fi
9251 rm -f conftest.err conftest.$ac_objext \
9252       conftest$ac_exeext conftest.$ac_ext
9253 LIBS=$ac_check_lib_save_LIBS
9254 fi
9255 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9256 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9257 if test $ac_cv_lib_dld_dld_link = yes; then
9258   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9259 fi
9260
9261
9262 fi
9263
9264
9265 fi
9266
9267
9268 fi
9269
9270
9271 fi
9272
9273
9274 fi
9275
9276     ;;
9277   esac
9278
9279   if test "x$lt_cv_dlopen" != xno; then
9280     enable_dlopen=yes
9281   else
9282     enable_dlopen=no
9283   fi
9284
9285   case $lt_cv_dlopen in
9286   dlopen)
9287     save_CPPFLAGS="$CPPFLAGS"
9288     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9289
9290     save_LDFLAGS="$LDFLAGS"
9291     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9292
9293     save_LIBS="$LIBS"
9294     LIBS="$lt_cv_dlopen_libs $LIBS"
9295
9296     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9297 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9298 if test "${lt_cv_dlopen_self+set}" = set; then
9299   echo $ECHO_N "(cached) $ECHO_C" >&6
9300 else
9301           if test "$cross_compiling" = yes; then :
9302   lt_cv_dlopen_self=cross
9303 else
9304   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9305   lt_status=$lt_dlunknown
9306   cat > conftest.$ac_ext <<EOF
9307 #line 9307 "configure"
9308 #include "confdefs.h"
9309
9310 #if HAVE_DLFCN_H
9311 #include <dlfcn.h>
9312 #endif
9313
9314 #include <stdio.h>
9315
9316 #ifdef RTLD_GLOBAL
9317 #  define LT_DLGLOBAL           RTLD_GLOBAL
9318 #else
9319 #  ifdef DL_GLOBAL
9320 #    define LT_DLGLOBAL         DL_GLOBAL
9321 #  else
9322 #    define LT_DLGLOBAL         0
9323 #  endif
9324 #endif
9325
9326 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9327    find out it does not work in some platform. */
9328 #ifndef LT_DLLAZY_OR_NOW
9329 #  ifdef RTLD_LAZY
9330 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9331 #  else
9332 #    ifdef DL_LAZY
9333 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9334 #    else
9335 #      ifdef RTLD_NOW
9336 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9337 #      else
9338 #        ifdef DL_NOW
9339 #          define LT_DLLAZY_OR_NOW      DL_NOW
9340 #        else
9341 #          define LT_DLLAZY_OR_NOW      0
9342 #        endif
9343 #      endif
9344 #    endif
9345 #  endif
9346 #endif
9347
9348 #ifdef __cplusplus
9349 extern "C" void exit (int);
9350 #endif
9351
9352 void fnord() { int i=42;}
9353 int main ()
9354 {
9355   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9356   int status = $lt_dlunknown;
9357
9358   if (self)
9359     {
9360       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9361       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9362       /* dlclose (self); */
9363     }
9364   else
9365     puts (dlerror ());
9366
9367     exit (status);
9368 }
9369 EOF
9370   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9371   (eval $ac_link) 2>&5
9372   ac_status=$?
9373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9375     (./conftest; exit; ) >&5 2>/dev/null
9376     lt_status=$?
9377     case x$lt_status in
9378       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9379       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9380       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9381     esac
9382   else :
9383     # compilation failed
9384     lt_cv_dlopen_self=no
9385   fi
9386 fi
9387 rm -fr conftest*
9388
9389
9390 fi
9391 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9392 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9393
9394     if test "x$lt_cv_dlopen_self" = xyes; then
9395       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9396       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9397 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9398 if test "${lt_cv_dlopen_self_static+set}" = set; then
9399   echo $ECHO_N "(cached) $ECHO_C" >&6
9400 else
9401           if test "$cross_compiling" = yes; then :
9402   lt_cv_dlopen_self_static=cross
9403 else
9404   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9405   lt_status=$lt_dlunknown
9406   cat > conftest.$ac_ext <<EOF
9407 #line 9407 "configure"
9408 #include "confdefs.h"
9409
9410 #if HAVE_DLFCN_H
9411 #include <dlfcn.h>
9412 #endif
9413
9414 #include <stdio.h>
9415
9416 #ifdef RTLD_GLOBAL
9417 #  define LT_DLGLOBAL           RTLD_GLOBAL
9418 #else
9419 #  ifdef DL_GLOBAL
9420 #    define LT_DLGLOBAL         DL_GLOBAL
9421 #  else
9422 #    define LT_DLGLOBAL         0
9423 #  endif
9424 #endif
9425
9426 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9427    find out it does not work in some platform. */
9428 #ifndef LT_DLLAZY_OR_NOW
9429 #  ifdef RTLD_LAZY
9430 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9431 #  else
9432 #    ifdef DL_LAZY
9433 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9434 #    else
9435 #      ifdef RTLD_NOW
9436 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9437 #      else
9438 #        ifdef DL_NOW
9439 #          define LT_DLLAZY_OR_NOW      DL_NOW
9440 #        else
9441 #          define LT_DLLAZY_OR_NOW      0
9442 #        endif
9443 #      endif
9444 #    endif
9445 #  endif
9446 #endif
9447
9448 #ifdef __cplusplus
9449 extern "C" void exit (int);
9450 #endif
9451
9452 void fnord() { int i=42;}
9453 int main ()
9454 {
9455   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9456   int status = $lt_dlunknown;
9457
9458   if (self)
9459     {
9460       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9461       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9462       /* dlclose (self); */
9463     }
9464   else
9465     puts (dlerror ());
9466
9467     exit (status);
9468 }
9469 EOF
9470   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9471   (eval $ac_link) 2>&5
9472   ac_status=$?
9473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9475     (./conftest; exit; ) >&5 2>/dev/null
9476     lt_status=$?
9477     case x$lt_status in
9478       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9479       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9480       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9481     esac
9482   else :
9483     # compilation failed
9484     lt_cv_dlopen_self_static=no
9485   fi
9486 fi
9487 rm -fr conftest*
9488
9489
9490 fi
9491 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9492 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9493     fi
9494
9495     CPPFLAGS="$save_CPPFLAGS"
9496     LDFLAGS="$save_LDFLAGS"
9497     LIBS="$save_LIBS"
9498     ;;
9499   esac
9500
9501   case $lt_cv_dlopen_self in
9502   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9503   *) enable_dlopen_self=unknown ;;
9504   esac
9505
9506   case $lt_cv_dlopen_self_static in
9507   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9508   *) enable_dlopen_self_static=unknown ;;
9509   esac
9510 fi
9511
9512
9513 # Report which library types will actually be built
9514 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9515 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9516 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9517 echo "${ECHO_T}$can_build_shared" >&6
9518
9519 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9520 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9521 test "$can_build_shared" = "no" && enable_shared=no
9522
9523 # On AIX, shared libraries and static libraries use the same namespace, and
9524 # are all built from PIC.
9525 case $host_os in
9526 aix3*)
9527   test "$enable_shared" = yes && enable_static=no
9528   if test -n "$RANLIB"; then
9529     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9530     postinstall_cmds='$RANLIB $lib'
9531   fi
9532   ;;
9533
9534 aix4* | aix5*)
9535   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9536     test "$enable_shared" = yes && enable_static=no
9537   fi
9538     ;;
9539 esac
9540 echo "$as_me:$LINENO: result: $enable_shared" >&5
9541 echo "${ECHO_T}$enable_shared" >&6
9542
9543 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9544 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9545 # Make sure either enable_shared or enable_static is yes.
9546 test "$enable_shared" = yes || enable_static=yes
9547 echo "$as_me:$LINENO: result: $enable_static" >&5
9548 echo "${ECHO_T}$enable_static" >&6
9549
9550 # The else clause should only fire when bootstrapping the
9551 # libtool distribution, otherwise you forgot to ship ltmain.sh
9552 # with your package, and you will get complaints that there are
9553 # no rules to generate ltmain.sh.
9554 if test -f "$ltmain"; then
9555   # See if we are running on zsh, and set the options which allow our commands through
9556   # without removal of \ escapes.
9557   if test -n "${ZSH_VERSION+set}" ; then
9558     setopt NO_GLOB_SUBST
9559   fi
9560   # Now quote all the things that may contain metacharacters while being
9561   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9562   # variables and quote the copies for generation of the libtool script.
9563   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9564     SED SHELL STRIP \
9565     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9566     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9567     deplibs_check_method reload_flag reload_cmds need_locks \
9568     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9569     lt_cv_sys_global_symbol_to_c_name_address \
9570     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9571     old_postinstall_cmds old_postuninstall_cmds \
9572     compiler \
9573     CC \
9574     LD \
9575     lt_prog_compiler_wl \
9576     lt_prog_compiler_pic \
9577     lt_prog_compiler_static \
9578     lt_prog_compiler_no_builtin_flag \
9579     export_dynamic_flag_spec \
9580     thread_safe_flag_spec \
9581     whole_archive_flag_spec \
9582     enable_shared_with_static_runtimes \
9583     old_archive_cmds \
9584     old_archive_from_new_cmds \
9585     predep_objects \
9586     postdep_objects \
9587     predeps \
9588     postdeps \
9589     compiler_lib_search_path \
9590     archive_cmds \
9591     archive_expsym_cmds \
9592     postinstall_cmds \
9593     postuninstall_cmds \
9594     old_archive_from_expsyms_cmds \
9595     allow_undefined_flag \
9596     no_undefined_flag \
9597     export_symbols_cmds \
9598     hardcode_libdir_flag_spec \
9599     hardcode_libdir_flag_spec_ld \
9600     hardcode_libdir_separator \
9601     hardcode_automatic \
9602     module_cmds \
9603     module_expsym_cmds \
9604     lt_cv_prog_compiler_c_o \
9605     exclude_expsyms \
9606     include_expsyms; do
9607
9608     case $var in
9609     old_archive_cmds | \
9610     old_archive_from_new_cmds | \
9611     archive_cmds | \
9612     archive_expsym_cmds | \
9613     module_cmds | \
9614     module_expsym_cmds | \
9615     old_archive_from_expsyms_cmds | \
9616     export_symbols_cmds | \
9617     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9618     postinstall_cmds | postuninstall_cmds | \
9619     old_postinstall_cmds | old_postuninstall_cmds | \
9620     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9621       # Double-quote double-evaled strings.
9622       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9623       ;;
9624     *)
9625       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9626       ;;
9627     esac
9628   done
9629
9630   case $lt_echo in
9631   *'\$0 --fallback-echo"')
9632     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9633     ;;
9634   esac
9635
9636 cfgfile="${ofile}T"
9637   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9638   $rm -f "$cfgfile"
9639   { echo "$as_me:$LINENO: creating $ofile" >&5
9640 echo "$as_me: creating $ofile" >&6;}
9641
9642   cat <<__EOF__ >> "$cfgfile"
9643 #! $SHELL
9644
9645 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9646 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9647 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9648 #
9649 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9650 # Free Software Foundation, Inc.
9651 #
9652 # This file is part of GNU Libtool:
9653 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9654 #
9655 # This program is free software; you can redistribute it and/or modify
9656 # it under the terms of the GNU General Public License as published by
9657 # the Free Software Foundation; either version 2 of the License, or
9658 # (at your option) any later version.
9659 #
9660 # This program is distributed in the hope that it will be useful, but
9661 # WITHOUT ANY WARRANTY; without even the implied warranty of
9662 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9663 # General Public License for more details.
9664 #
9665 # You should have received a copy of the GNU General Public License
9666 # along with this program; if not, write to the Free Software
9667 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9668 #
9669 # As a special exception to the GNU General Public License, if you
9670 # distribute this file as part of a program that contains a
9671 # configuration script generated by Autoconf, you may include it under
9672 # the same distribution terms that you use for the rest of that program.
9673
9674 # A sed program that does not truncate output.
9675 SED=$lt_SED
9676
9677 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9678 Xsed="$SED -e 1s/^X//"
9679
9680 # The HP-UX ksh and POSIX shell print the target directory to stdout
9681 # if CDPATH is set.
9682 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9683
9684 # The names of the tagged configurations supported by this script.
9685 available_tags=
9686
9687 # ### BEGIN LIBTOOL CONFIG
9688
9689 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9690
9691 # Shell to use when invoking shell scripts.
9692 SHELL=$lt_SHELL
9693
9694 # Whether or not to build shared libraries.
9695 build_libtool_libs=$enable_shared
9696
9697 # Whether or not to build static libraries.
9698 build_old_libs=$enable_static
9699
9700 # Whether or not to add -lc for building shared libraries.
9701 build_libtool_need_lc=$archive_cmds_need_lc
9702
9703 # Whether or not to disallow shared libs when runtime libs are static
9704 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9705
9706 # Whether or not to optimize for fast installation.
9707 fast_install=$enable_fast_install
9708
9709 # The host system.
9710 host_alias=$host_alias
9711 host=$host
9712 host_os=$host_os
9713
9714 # The build system.
9715 build_alias=$build_alias
9716 build=$build
9717 build_os=$build_os
9718
9719 # An echo program that does not interpret backslashes.
9720 echo=$lt_echo
9721
9722 # The archiver.
9723 AR=$lt_AR
9724 AR_FLAGS=$lt_AR_FLAGS
9725
9726 # A C compiler.
9727 LTCC=$lt_LTCC
9728
9729 # LTCC compiler flags.
9730 LTCFLAGS=$lt_LTCFLAGS
9731
9732 # A language-specific compiler.
9733 CC=$lt_compiler
9734
9735 # Is the compiler the GNU C compiler?
9736 with_gcc=$GCC
9737
9738 # An ERE matcher.
9739 EGREP=$lt_EGREP
9740
9741 # The linker used to build libraries.
9742 LD=$lt_LD
9743
9744 # Whether we need hard or soft links.
9745 LN_S=$lt_LN_S
9746
9747 # A BSD-compatible nm program.
9748 NM=$lt_NM
9749
9750 # A symbol stripping program
9751 STRIP=$lt_STRIP
9752
9753 # Used to examine libraries when file_magic_cmd begins "file"
9754 MAGIC_CMD=$MAGIC_CMD
9755
9756 # Used on cygwin: DLL creation program.
9757 DLLTOOL="$DLLTOOL"
9758
9759 # Used on cygwin: object dumper.
9760 OBJDUMP="$OBJDUMP"
9761
9762 # Used on cygwin: assembler.
9763 AS="$AS"
9764
9765 # The name of the directory that contains temporary libtool files.
9766 objdir=$objdir
9767
9768 # How to create reloadable object files.
9769 reload_flag=$lt_reload_flag
9770 reload_cmds=$lt_reload_cmds
9771
9772 # How to pass a linker flag through the compiler.
9773 wl=$lt_lt_prog_compiler_wl
9774
9775 # Object file suffix (normally "o").
9776 objext="$ac_objext"
9777
9778 # Old archive suffix (normally "a").
9779 libext="$libext"
9780
9781 # Shared library suffix (normally ".so").
9782 shrext_cmds='$shrext_cmds'
9783
9784 # Executable file suffix (normally "").
9785 exeext="$exeext"
9786
9787 # Additional compiler flags for building library objects.
9788 pic_flag=$lt_lt_prog_compiler_pic
9789 pic_mode=$pic_mode
9790
9791 # What is the maximum length of a command?
9792 max_cmd_len=$lt_cv_sys_max_cmd_len
9793
9794 # Does compiler simultaneously support -c and -o options?
9795 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9796
9797 # Must we lock files when doing compilation?
9798 need_locks=$lt_need_locks
9799
9800 # Do we need the lib prefix for modules?
9801 need_lib_prefix=$need_lib_prefix
9802
9803 # Do we need a version for libraries?
9804 need_version=$need_version
9805
9806 # Whether dlopen is supported.
9807 dlopen_support=$enable_dlopen
9808
9809 # Whether dlopen of programs is supported.
9810 dlopen_self=$enable_dlopen_self
9811
9812 # Whether dlopen of statically linked programs is supported.
9813 dlopen_self_static=$enable_dlopen_self_static
9814
9815 # Compiler flag to prevent dynamic linking.
9816 link_static_flag=$lt_lt_prog_compiler_static
9817
9818 # Compiler flag to turn off builtin functions.
9819 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9820
9821 # Compiler flag to allow reflexive dlopens.
9822 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9823
9824 # Compiler flag to generate shared objects directly from archives.
9825 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9826
9827 # Compiler flag to generate thread-safe objects.
9828 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9829
9830 # Library versioning type.
9831 version_type=$version_type
9832
9833 # Format of library name prefix.
9834 libname_spec=$lt_libname_spec
9835
9836 # List of archive names.  First name is the real one, the rest are links.
9837 # The last name is the one that the linker finds with -lNAME.
9838 library_names_spec=$lt_library_names_spec
9839
9840 # The coded name of the library, if different from the real name.
9841 soname_spec=$lt_soname_spec
9842
9843 # Commands used to build and install an old-style archive.
9844 RANLIB=$lt_RANLIB
9845 old_archive_cmds=$lt_old_archive_cmds
9846 old_postinstall_cmds=$lt_old_postinstall_cmds
9847 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9848
9849 # Create an old-style archive from a shared archive.
9850 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9851
9852 # Create a temporary old-style archive to link instead of a shared archive.
9853 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9854
9855 # Commands used to build and install a shared archive.
9856 archive_cmds=$lt_archive_cmds
9857 archive_expsym_cmds=$lt_archive_expsym_cmds
9858 postinstall_cmds=$lt_postinstall_cmds
9859 postuninstall_cmds=$lt_postuninstall_cmds
9860
9861 # Commands used to build a loadable module (assumed same as above if empty)
9862 module_cmds=$lt_module_cmds
9863 module_expsym_cmds=$lt_module_expsym_cmds
9864
9865 # Commands to strip libraries.
9866 old_striplib=$lt_old_striplib
9867 striplib=$lt_striplib
9868
9869 # Dependencies to place before the objects being linked to create a
9870 # shared library.
9871 predep_objects=$lt_predep_objects
9872
9873 # Dependencies to place after the objects being linked to create a
9874 # shared library.
9875 postdep_objects=$lt_postdep_objects
9876
9877 # Dependencies to place before the objects being linked to create a
9878 # shared library.
9879 predeps=$lt_predeps
9880
9881 # Dependencies to place after the objects being linked to create a
9882 # shared library.
9883 postdeps=$lt_postdeps
9884
9885 # The library search path used internally by the compiler when linking
9886 # a shared library.
9887 compiler_lib_search_path=$lt_compiler_lib_search_path
9888
9889 # Method to check whether dependent libraries are shared objects.
9890 deplibs_check_method=$lt_deplibs_check_method
9891
9892 # Command to use when deplibs_check_method == file_magic.
9893 file_magic_cmd=$lt_file_magic_cmd
9894
9895 # Flag that allows shared libraries with undefined symbols to be built.
9896 allow_undefined_flag=$lt_allow_undefined_flag
9897
9898 # Flag that forces no undefined symbols.
9899 no_undefined_flag=$lt_no_undefined_flag
9900
9901 # Commands used to finish a libtool library installation in a directory.
9902 finish_cmds=$lt_finish_cmds
9903
9904 # Same as above, but a single script fragment to be evaled but not shown.
9905 finish_eval=$lt_finish_eval
9906
9907 # Take the output of nm and produce a listing of raw symbols and C names.
9908 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9909
9910 # Transform the output of nm in a proper C declaration
9911 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9912
9913 # Transform the output of nm in a C name address pair
9914 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9915
9916 # This is the shared library runtime path variable.
9917 runpath_var=$runpath_var
9918
9919 # This is the shared library path variable.
9920 shlibpath_var=$shlibpath_var
9921
9922 # Is shlibpath searched before the hard-coded library search path?
9923 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9924
9925 # How to hardcode a shared library path into an executable.
9926 hardcode_action=$hardcode_action
9927
9928 # Whether we should hardcode library paths into libraries.
9929 hardcode_into_libs=$hardcode_into_libs
9930
9931 # Flag to hardcode \$libdir into a binary during linking.
9932 # This must work even if \$libdir does not exist.
9933 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9934
9935 # If ld is used when linking, flag to hardcode \$libdir into
9936 # a binary during linking. This must work even if \$libdir does
9937 # not exist.
9938 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9939
9940 # Whether we need a single -rpath flag with a separated argument.
9941 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9942
9943 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9944 # resulting binary.
9945 hardcode_direct=$hardcode_direct
9946
9947 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9948 # resulting binary.
9949 hardcode_minus_L=$hardcode_minus_L
9950
9951 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9952 # the resulting binary.
9953 hardcode_shlibpath_var=$hardcode_shlibpath_var
9954
9955 # Set to yes if building a shared library automatically hardcodes DIR into the library
9956 # and all subsequent libraries and executables linked against it.
9957 hardcode_automatic=$hardcode_automatic
9958
9959 # Variables whose values should be saved in libtool wrapper scripts and
9960 # restored at relink time.
9961 variables_saved_for_relink="$variables_saved_for_relink"
9962
9963 # Whether libtool must link a program against all its dependency libraries.
9964 link_all_deplibs=$link_all_deplibs
9965
9966 # Compile-time system search path for libraries
9967 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9968
9969 # Run-time system search path for libraries
9970 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9971
9972 # Fix the shell variable \$srcfile for the compiler.
9973 fix_srcfile_path="$fix_srcfile_path"
9974
9975 # Set to yes if exported symbols are required.
9976 always_export_symbols=$always_export_symbols
9977
9978 # The commands to list exported symbols.
9979 export_symbols_cmds=$lt_export_symbols_cmds
9980
9981 # The commands to extract the exported symbol list from a shared archive.
9982 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9983
9984 # Symbols that should not be listed in the preloaded symbols.
9985 exclude_expsyms=$lt_exclude_expsyms
9986
9987 # Symbols that must always be exported.
9988 include_expsyms=$lt_include_expsyms
9989
9990 # ### END LIBTOOL CONFIG
9991
9992 __EOF__
9993
9994
9995   case $host_os in
9996   aix3*)
9997     cat <<\EOF >> "$cfgfile"
9998
9999 # AIX sometimes has problems with the GCC collect2 program.  For some
10000 # reason, if we set the COLLECT_NAMES environment variable, the problems
10001 # vanish in a puff of smoke.
10002 if test "X${COLLECT_NAMES+set}" != Xset; then
10003   COLLECT_NAMES=
10004   export COLLECT_NAMES
10005 fi
10006 EOF
10007     ;;
10008   esac
10009
10010   # We use sed instead of cat because bash on DJGPP gets confused if
10011   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10012   # text mode, it properly converts lines to CR/LF.  This bash problem
10013   # is reportedly fixed, but why not run on old versions too?
10014   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10015
10016   mv -f "$cfgfile" "$ofile" || \
10017     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10018   chmod +x "$ofile"
10019
10020 else
10021   # If there is no Makefile yet, we rely on a make rule to execute
10022   # `config.status --recheck' to rerun these tests and create the
10023   # libtool script then.
10024   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10025   if test -f "$ltmain_in"; then
10026     test -f Makefile && make "$ltmain"
10027   fi
10028 fi
10029
10030
10031 ac_ext=c
10032 ac_cpp='$CPP $CPPFLAGS'
10033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10036
10037 CC="$lt_save_CC"
10038
10039
10040 # Check whether --with-tags or --without-tags was given.
10041 if test "${with_tags+set}" = set; then
10042   withval="$with_tags"
10043   tagnames="$withval"
10044 fi;
10045
10046 if test -f "$ltmain" && test -n "$tagnames"; then
10047   if test ! -f "${ofile}"; then
10048     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10049 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10050   fi
10051
10052   if test -z "$LTCC"; then
10053     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10054     if test -z "$LTCC"; then
10055       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10056 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10057     else
10058       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10059 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10060     fi
10061   fi
10062   if test -z "$LTCFLAGS"; then
10063     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10064   fi
10065
10066   # Extract list of available tagged configurations in $ofile.
10067   # Note that this assumes the entire list is on one line.
10068   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10069
10070   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10071   for tagname in $tagnames; do
10072     IFS="$lt_save_ifs"
10073     # Check whether tagname contains only valid characters
10074     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10075     "") ;;
10076     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10077 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10078    { (exit 1); exit 1; }; }
10079         ;;
10080     esac
10081
10082     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10083     then
10084       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10085 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10086    { (exit 1); exit 1; }; }
10087     fi
10088
10089     # Update the list of available tags.
10090     if test -n "$tagname"; then
10091       echo appending configuration tag \"$tagname\" to $ofile
10092
10093       case $tagname in
10094       CXX)
10095         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10096             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10097             (test "X$CXX" != "Xg++"))) ; then
10098           ac_ext=cc
10099 ac_cpp='$CXXCPP $CPPFLAGS'
10100 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10101 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10102 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10103
10104
10105
10106
10107 archive_cmds_need_lc_CXX=no
10108 allow_undefined_flag_CXX=
10109 always_export_symbols_CXX=no
10110 archive_expsym_cmds_CXX=
10111 export_dynamic_flag_spec_CXX=
10112 hardcode_direct_CXX=no
10113 hardcode_libdir_flag_spec_CXX=
10114 hardcode_libdir_flag_spec_ld_CXX=
10115 hardcode_libdir_separator_CXX=
10116 hardcode_minus_L_CXX=no
10117 hardcode_shlibpath_var_CXX=unsupported
10118 hardcode_automatic_CXX=no
10119 module_cmds_CXX=
10120 module_expsym_cmds_CXX=
10121 link_all_deplibs_CXX=unknown
10122 old_archive_cmds_CXX=$old_archive_cmds
10123 no_undefined_flag_CXX=
10124 whole_archive_flag_spec_CXX=
10125 enable_shared_with_static_runtimes_CXX=no
10126
10127 # Dependencies to place before and after the object being linked:
10128 predep_objects_CXX=
10129 postdep_objects_CXX=
10130 predeps_CXX=
10131 postdeps_CXX=
10132 compiler_lib_search_path_CXX=
10133
10134 # Source file extension for C++ test sources.
10135 ac_ext=cpp
10136
10137 # Object file extension for compiled C++ test sources.
10138 objext=o
10139 objext_CXX=$objext
10140
10141 # Code to be used in simple compile tests
10142 lt_simple_compile_test_code="int some_variable = 0;\n"
10143
10144 # Code to be used in simple link tests
10145 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10146
10147 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10148
10149 # If no C compiler was specified, use CC.
10150 LTCC=${LTCC-"$CC"}
10151
10152 # If no C compiler flags were specified, use CFLAGS.
10153 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10154
10155 # Allow CC to be a program name with arguments.
10156 compiler=$CC
10157
10158
10159 # save warnings/boilerplate of simple test code
10160 ac_outfile=conftest.$ac_objext
10161 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10162 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10163 _lt_compiler_boilerplate=`cat conftest.err`
10164 $rm conftest*
10165
10166 ac_outfile=conftest.$ac_objext
10167 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10168 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10169 _lt_linker_boilerplate=`cat conftest.err`
10170 $rm conftest*
10171
10172
10173 # Allow CC to be a program name with arguments.
10174 lt_save_CC=$CC
10175 lt_save_LD=$LD
10176 lt_save_GCC=$GCC
10177 GCC=$GXX
10178 lt_save_with_gnu_ld=$with_gnu_ld
10179 lt_save_path_LD=$lt_cv_path_LD
10180 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10181   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10182 else
10183   $as_unset lt_cv_prog_gnu_ld
10184 fi
10185 if test -n "${lt_cv_path_LDCXX+set}"; then
10186   lt_cv_path_LD=$lt_cv_path_LDCXX
10187 else
10188   $as_unset lt_cv_path_LD
10189 fi
10190 test -z "${LDCXX+set}" || LD=$LDCXX
10191 CC=${CXX-"c++"}
10192 compiler=$CC
10193 compiler_CXX=$CC
10194 for cc_temp in $compiler""; do
10195   case $cc_temp in
10196     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10197     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10198     \-*) ;;
10199     *) break;;
10200   esac
10201 done
10202 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10203
10204
10205 # We don't want -fno-exception wen compiling C++ code, so set the
10206 # no_builtin_flag separately
10207 if test "$GXX" = yes; then
10208   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10209 else
10210   lt_prog_compiler_no_builtin_flag_CXX=
10211 fi
10212
10213 if test "$GXX" = yes; then
10214   # Set up default GNU C++ configuration
10215
10216
10217 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10218 if test "${with_gnu_ld+set}" = set; then
10219   withval="$with_gnu_ld"
10220   test "$withval" = no || with_gnu_ld=yes
10221 else
10222   with_gnu_ld=no
10223 fi;
10224 ac_prog=ld
10225 if test "$GCC" = yes; then
10226   # Check if gcc -print-prog-name=ld gives a path.
10227   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10228 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10229   case $host in
10230   *-*-mingw*)
10231     # gcc leaves a trailing carriage return which upsets mingw
10232     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10233   *)
10234     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10235   esac
10236   case $ac_prog in
10237     # Accept absolute paths.
10238     [\\/]* | ?:[\\/]*)
10239       re_direlt='/[^/][^/]*/\.\./'
10240       # Canonicalize the pathname of ld
10241       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10242       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10243         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10244       done
10245       test -z "$LD" && LD="$ac_prog"
10246       ;;
10247   "")
10248     # If it fails, then pretend we aren't using GCC.
10249     ac_prog=ld
10250     ;;
10251   *)
10252     # If it is relative, then search for the first ld in PATH.
10253     with_gnu_ld=unknown
10254     ;;
10255   esac
10256 elif test "$with_gnu_ld" = yes; then
10257   echo "$as_me:$LINENO: checking for GNU ld" >&5
10258 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10259 else
10260   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10261 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10262 fi
10263 if test "${lt_cv_path_LD+set}" = set; then
10264   echo $ECHO_N "(cached) $ECHO_C" >&6
10265 else
10266   if test -z "$LD"; then
10267   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10268   for ac_dir in $PATH; do
10269     IFS="$lt_save_ifs"
10270     test -z "$ac_dir" && ac_dir=.
10271     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10272       lt_cv_path_LD="$ac_dir/$ac_prog"
10273       # Check to see if the program is GNU ld.  I'd rather use --version,
10274       # but apparently some variants of GNU ld only accept -v.
10275       # Break only if it was the GNU/non-GNU ld that we prefer.
10276       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10277       *GNU* | *'with BFD'*)
10278         test "$with_gnu_ld" != no && break
10279         ;;
10280       *)
10281         test "$with_gnu_ld" != yes && break
10282         ;;
10283       esac
10284     fi
10285   done
10286   IFS="$lt_save_ifs"
10287 else
10288   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10289 fi
10290 fi
10291
10292 LD="$lt_cv_path_LD"
10293 if test -n "$LD"; then
10294   echo "$as_me:$LINENO: result: $LD" >&5
10295 echo "${ECHO_T}$LD" >&6
10296 else
10297   echo "$as_me:$LINENO: result: no" >&5
10298 echo "${ECHO_T}no" >&6
10299 fi
10300 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10301 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10302    { (exit 1); exit 1; }; }
10303 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10304 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10305 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10306   echo $ECHO_N "(cached) $ECHO_C" >&6
10307 else
10308   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10309 case `$LD -v 2>&1 </dev/null` in
10310 *GNU* | *'with BFD'*)
10311   lt_cv_prog_gnu_ld=yes
10312   ;;
10313 *)
10314   lt_cv_prog_gnu_ld=no
10315   ;;
10316 esac
10317 fi
10318 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10319 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10320 with_gnu_ld=$lt_cv_prog_gnu_ld
10321
10322
10323
10324   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10325   # archiving commands below assume that GNU ld is being used.
10326   if test "$with_gnu_ld" = yes; then
10327     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10328     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'
10329
10330     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10331     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10332
10333     # If archive_cmds runs LD, not CC, wlarc should be empty
10334     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10335     #     investigate it a little bit more. (MM)
10336     wlarc='${wl}'
10337
10338     # ancient GNU ld didn't support --whole-archive et. al.
10339     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10340         grep 'no-whole-archive' > /dev/null; then
10341       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10342     else
10343       whole_archive_flag_spec_CXX=
10344     fi
10345   else
10346     with_gnu_ld=no
10347     wlarc=
10348
10349     # A generic and very simple default shared library creation
10350     # command for GNU C++ for the case where it uses the native
10351     # linker, instead of GNU ld.  If possible, this setting should
10352     # overridden to take advantage of the native linker features on
10353     # the platform it is being used on.
10354     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10355   fi
10356
10357   # Commands to make compiler produce verbose output that lists
10358   # what "hidden" libraries, object files and flags are used when
10359   # linking a shared library.
10360   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10361
10362 else
10363   GXX=no
10364   with_gnu_ld=no
10365   wlarc=
10366 fi
10367
10368 # PORTME: fill in a description of your system's C++ link characteristics
10369 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10370 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10371 ld_shlibs_CXX=yes
10372 case $host_os in
10373   aix3*)
10374     # FIXME: insert proper C++ library support
10375     ld_shlibs_CXX=no
10376     ;;
10377   aix4* | aix5*)
10378     if test "$host_cpu" = ia64; then
10379       # On IA64, the linker does run time linking by default, so we don't
10380       # have to do anything special.
10381       aix_use_runtimelinking=no
10382       exp_sym_flag='-Bexport'
10383       no_entry_flag=""
10384     else
10385       aix_use_runtimelinking=no
10386
10387       # Test if we are trying to use run time linking or normal
10388       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10389       # need to do runtime linking.
10390       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10391         for ld_flag in $LDFLAGS; do
10392           case $ld_flag in
10393           *-brtl*)
10394             aix_use_runtimelinking=yes
10395             break
10396             ;;
10397           esac
10398         done
10399         ;;
10400       esac
10401
10402       exp_sym_flag='-bexport'
10403       no_entry_flag='-bnoentry'
10404     fi
10405
10406     # When large executables or shared objects are built, AIX ld can
10407     # have problems creating the table of contents.  If linking a library
10408     # or program results in "error TOC overflow" add -mminimal-toc to
10409     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10410     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10411
10412     archive_cmds_CXX=''
10413     hardcode_direct_CXX=yes
10414     hardcode_libdir_separator_CXX=':'
10415     link_all_deplibs_CXX=yes
10416
10417     if test "$GXX" = yes; then
10418       case $host_os in aix4.[012]|aix4.[012].*)
10419       # We only want to do this on AIX 4.2 and lower, the check
10420       # below for broken collect2 doesn't work under 4.3+
10421         collect2name=`${CC} -print-prog-name=collect2`
10422         if test -f "$collect2name" && \
10423            strings "$collect2name" | grep resolve_lib_name >/dev/null
10424         then
10425           # We have reworked collect2
10426           hardcode_direct_CXX=yes
10427         else
10428           # We have old collect2
10429           hardcode_direct_CXX=unsupported
10430           # It fails to find uninstalled libraries when the uninstalled
10431           # path is not listed in the libpath.  Setting hardcode_minus_L
10432           # to unsupported forces relinking
10433           hardcode_minus_L_CXX=yes
10434           hardcode_libdir_flag_spec_CXX='-L$libdir'
10435           hardcode_libdir_separator_CXX=
10436         fi
10437         ;;
10438       esac
10439       shared_flag='-shared'
10440       if test "$aix_use_runtimelinking" = yes; then
10441         shared_flag="$shared_flag "'${wl}-G'
10442       fi
10443     else
10444       # not using gcc
10445       if test "$host_cpu" = ia64; then
10446         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10447         # chokes on -Wl,-G. The following line is correct:
10448         shared_flag='-G'
10449       else
10450         if test "$aix_use_runtimelinking" = yes; then
10451           shared_flag='${wl}-G'
10452         else
10453           shared_flag='${wl}-bM:SRE'
10454         fi
10455       fi
10456     fi
10457
10458     # It seems that -bexpall does not export symbols beginning with
10459     # underscore (_), so it is better to generate a list of symbols to export.
10460     always_export_symbols_CXX=yes
10461     if test "$aix_use_runtimelinking" = yes; then
10462       # Warning - without using the other runtime loading flags (-brtl),
10463       # -berok will link without error, but may produce a broken library.
10464       allow_undefined_flag_CXX='-berok'
10465       # Determine the default libpath from the value encoded in an empty executable.
10466       cat >conftest.$ac_ext <<_ACEOF
10467 /* confdefs.h.  */
10468 _ACEOF
10469 cat confdefs.h >>conftest.$ac_ext
10470 cat >>conftest.$ac_ext <<_ACEOF
10471 /* end confdefs.h.  */
10472
10473 int
10474 main ()
10475 {
10476
10477   ;
10478   return 0;
10479 }
10480 _ACEOF
10481 rm -f conftest.$ac_objext conftest$ac_exeext
10482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10483   (eval $ac_link) 2>conftest.er1
10484   ac_status=$?
10485   grep -v '^ *+' conftest.er1 >conftest.err
10486   rm -f conftest.er1
10487   cat conftest.err >&5
10488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489   (exit $ac_status); } &&
10490          { ac_try='test -z "$ac_cxx_werror_flag"
10491                          || test ! -s conftest.err'
10492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10493   (eval $ac_try) 2>&5
10494   ac_status=$?
10495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496   (exit $ac_status); }; } &&
10497          { ac_try='test -s conftest$ac_exeext'
10498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10499   (eval $ac_try) 2>&5
10500   ac_status=$?
10501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502   (exit $ac_status); }; }; then
10503
10504 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10505 }'`
10506 # Check for a 64-bit object if we didn't find anything.
10507 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; }
10508 }'`; fi
10509 else
10510   echo "$as_me: failed program was:" >&5
10511 sed 's/^/| /' conftest.$ac_ext >&5
10512
10513 fi
10514 rm -f conftest.err conftest.$ac_objext \
10515       conftest$ac_exeext conftest.$ac_ext
10516 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10517
10518       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10519
10520       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"
10521      else
10522       if test "$host_cpu" = ia64; then
10523         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10524         allow_undefined_flag_CXX="-z nodefs"
10525         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"
10526       else
10527         # Determine the default libpath from the value encoded in an empty executable.
10528         cat >conftest.$ac_ext <<_ACEOF
10529 /* confdefs.h.  */
10530 _ACEOF
10531 cat confdefs.h >>conftest.$ac_ext
10532 cat >>conftest.$ac_ext <<_ACEOF
10533 /* end confdefs.h.  */
10534
10535 int
10536 main ()
10537 {
10538
10539   ;
10540   return 0;
10541 }
10542 _ACEOF
10543 rm -f conftest.$ac_objext conftest$ac_exeext
10544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10545   (eval $ac_link) 2>conftest.er1
10546   ac_status=$?
10547   grep -v '^ *+' conftest.er1 >conftest.err
10548   rm -f conftest.er1
10549   cat conftest.err >&5
10550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551   (exit $ac_status); } &&
10552          { ac_try='test -z "$ac_cxx_werror_flag"
10553                          || test ! -s conftest.err'
10554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10555   (eval $ac_try) 2>&5
10556   ac_status=$?
10557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558   (exit $ac_status); }; } &&
10559          { ac_try='test -s conftest$ac_exeext'
10560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10561   (eval $ac_try) 2>&5
10562   ac_status=$?
10563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564   (exit $ac_status); }; }; then
10565
10566 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10567 }'`
10568 # Check for a 64-bit object if we didn't find anything.
10569 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; }
10570 }'`; fi
10571 else
10572   echo "$as_me: failed program was:" >&5
10573 sed 's/^/| /' conftest.$ac_ext >&5
10574
10575 fi
10576 rm -f conftest.err conftest.$ac_objext \
10577       conftest$ac_exeext conftest.$ac_ext
10578 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10579
10580         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10581         # Warning - without using the other run time loading flags,
10582         # -berok will link without error, but may produce a broken library.
10583         no_undefined_flag_CXX=' ${wl}-bernotok'
10584         allow_undefined_flag_CXX=' ${wl}-berok'
10585         # Exported symbols can be pulled into shared objects from archives
10586         whole_archive_flag_spec_CXX='$convenience'
10587         archive_cmds_need_lc_CXX=yes
10588         # This is similar to how AIX traditionally builds its shared libraries.
10589         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'
10590       fi
10591     fi
10592     ;;
10593
10594   beos*)
10595     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10596       allow_undefined_flag_CXX=unsupported
10597       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10598       # support --undefined.  This deserves some investigation.  FIXME
10599       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10600     else
10601       ld_shlibs_CXX=no
10602     fi
10603     ;;
10604
10605   chorus*)
10606     case $cc_basename in
10607       *)
10608         # FIXME: insert proper C++ library support
10609         ld_shlibs_CXX=no
10610         ;;
10611     esac
10612     ;;
10613
10614   cygwin* | mingw* | pw32*)
10615     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10616     # as there is no search path for DLLs.
10617     hardcode_libdir_flag_spec_CXX='-L$libdir'
10618     allow_undefined_flag_CXX=unsupported
10619     always_export_symbols_CXX=no
10620     enable_shared_with_static_runtimes_CXX=yes
10621
10622     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10623       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'
10624       # If the export-symbols file already is a .def file (1st line
10625       # is EXPORTS), use it as is; otherwise, prepend...
10626       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10627         cp $export_symbols $output_objdir/$soname.def;
10628       else
10629         echo EXPORTS > $output_objdir/$soname.def;
10630         cat $export_symbols >> $output_objdir/$soname.def;
10631       fi~
10632       $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'
10633     else
10634       ld_shlibs_CXX=no
10635     fi
10636   ;;
10637       darwin* | rhapsody*)
10638         case $host_os in
10639         rhapsody* | darwin1.[012])
10640          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10641          ;;
10642        *) # Darwin 1.3 on
10643          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10644            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10645          else
10646            case ${MACOSX_DEPLOYMENT_TARGET} in
10647              10.[012])
10648                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10649                ;;
10650              10.*)
10651                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10652                ;;
10653            esac
10654          fi
10655          ;;
10656         esac
10657       archive_cmds_need_lc_CXX=no
10658       hardcode_direct_CXX=no
10659       hardcode_automatic_CXX=yes
10660       hardcode_shlibpath_var_CXX=unsupported
10661       whole_archive_flag_spec_CXX=''
10662       link_all_deplibs_CXX=yes
10663
10664     if test "$GXX" = yes ; then
10665       lt_int_apple_cc_single_mod=no
10666       output_verbose_link_cmd='echo'
10667       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10668        lt_int_apple_cc_single_mod=yes
10669       fi
10670       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10671        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10672       else
10673           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'
10674         fi
10675         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10676         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10677           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10678             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}'
10679           else
10680             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}'
10681           fi
10682             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}'
10683       else
10684       case $cc_basename in
10685         xlc*)
10686          output_verbose_link_cmd='echo'
10687           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'
10688           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10689           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10690           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}'
10691           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}'
10692           ;;
10693        *)
10694          ld_shlibs_CXX=no
10695           ;;
10696       esac
10697       fi
10698         ;;
10699
10700   dgux*)
10701     case $cc_basename in
10702       ec++*)
10703         # FIXME: insert proper C++ library support
10704         ld_shlibs_CXX=no
10705         ;;
10706       ghcx*)
10707         # Green Hills C++ Compiler
10708         # FIXME: insert proper C++ library support
10709         ld_shlibs_CXX=no
10710         ;;
10711       *)
10712         # FIXME: insert proper C++ library support
10713         ld_shlibs_CXX=no
10714         ;;
10715     esac
10716     ;;
10717   freebsd[12]*)
10718     # C++ shared libraries reported to be fairly broken before switch to ELF
10719     ld_shlibs_CXX=no
10720     ;;
10721   freebsd-elf*)
10722     archive_cmds_need_lc_CXX=no
10723     ;;
10724   freebsd* | kfreebsd*-gnu | dragonfly*)
10725     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10726     # conventions
10727     ld_shlibs_CXX=yes
10728     ;;
10729   gnu*)
10730     ;;
10731   hpux9*)
10732     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10733     hardcode_libdir_separator_CXX=:
10734     export_dynamic_flag_spec_CXX='${wl}-E'
10735     hardcode_direct_CXX=yes
10736     hardcode_minus_L_CXX=yes # Not in the search PATH,
10737                                 # but as the default
10738                                 # location of the library.
10739
10740     case $cc_basename in
10741     CC*)
10742       # FIXME: insert proper C++ library support
10743       ld_shlibs_CXX=no
10744       ;;
10745     aCC*)
10746       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'
10747       # Commands to make compiler produce verbose output that lists
10748       # what "hidden" libraries, object files and flags are used when
10749       # linking a shared library.
10750       #
10751       # There doesn't appear to be a way to prevent this compiler from
10752       # explicitly linking system object files so we need to strip them
10753       # from the output so that they don't get included in the library
10754       # dependencies.
10755       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'
10756       ;;
10757     *)
10758       if test "$GXX" = yes; then
10759         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'
10760       else
10761         # FIXME: insert proper C++ library support
10762         ld_shlibs_CXX=no
10763       fi
10764       ;;
10765     esac
10766     ;;
10767   hpux10*|hpux11*)
10768     if test $with_gnu_ld = no; then
10769       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10770       hardcode_libdir_separator_CXX=:
10771
10772       case $host_cpu in
10773       hppa*64*|ia64*)
10774         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10775         ;;
10776       *)
10777         export_dynamic_flag_spec_CXX='${wl}-E'
10778         ;;
10779       esac
10780     fi
10781     case $host_cpu in
10782     hppa*64*|ia64*)
10783       hardcode_direct_CXX=no
10784       hardcode_shlibpath_var_CXX=no
10785       ;;
10786     *)
10787       hardcode_direct_CXX=yes
10788       hardcode_minus_L_CXX=yes # Not in the search PATH,
10789                                               # but as the default
10790                                               # location of the library.
10791       ;;
10792     esac
10793
10794     case $cc_basename in
10795       CC*)
10796         # FIXME: insert proper C++ library support
10797         ld_shlibs_CXX=no
10798         ;;
10799       aCC*)
10800         case $host_cpu in
10801         hppa*64*)
10802           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10803           ;;
10804         ia64*)
10805           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10806           ;;
10807         *)
10808           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10809           ;;
10810         esac
10811         # Commands to make compiler produce verbose output that lists
10812         # what "hidden" libraries, object files and flags are used when
10813         # linking a shared library.
10814         #
10815         # There doesn't appear to be a way to prevent this compiler from
10816         # explicitly linking system object files so we need to strip them
10817         # from the output so that they don't get included in the library
10818         # dependencies.
10819         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'
10820         ;;
10821       *)
10822         if test "$GXX" = yes; then
10823           if test $with_gnu_ld = no; then
10824             case $host_cpu in
10825             hppa*64*)
10826               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10827               ;;
10828             ia64*)
10829               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10830               ;;
10831             *)
10832               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'
10833               ;;
10834             esac
10835           fi
10836         else
10837           # FIXME: insert proper C++ library support
10838           ld_shlibs_CXX=no
10839         fi
10840         ;;
10841     esac
10842     ;;
10843   interix3*)
10844     hardcode_direct_CXX=no
10845     hardcode_shlibpath_var_CXX=no
10846     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10847     export_dynamic_flag_spec_CXX='${wl}-E'
10848     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10849     # Instead, shared libraries are loaded at an image base (0x10000000 by
10850     # default) and relocated if they conflict, which is a slow very memory
10851     # consuming and fragmenting process.  To avoid this, we pick a random,
10852     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10853     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10854     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'
10855     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'
10856     ;;
10857   irix5* | irix6*)
10858     case $cc_basename in
10859       CC*)
10860         # SGI C++
10861         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'
10862
10863         # Archives containing C++ object files must be created using
10864         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10865         # necessary to make sure instantiated templates are included
10866         # in the archive.
10867         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10868         ;;
10869       *)
10870         if test "$GXX" = yes; then
10871           if test "$with_gnu_ld" = no; then
10872             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'
10873           else
10874             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'
10875           fi
10876         fi
10877         link_all_deplibs_CXX=yes
10878         ;;
10879     esac
10880     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10881     hardcode_libdir_separator_CXX=:
10882     ;;
10883   linux*)
10884     case $cc_basename in
10885       KCC*)
10886         # Kuck and Associates, Inc. (KAI) C++ Compiler
10887
10888         # KCC will only create a shared library if the output file
10889         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10890         # to its proper name (with version) after linking.
10891         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'
10892         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'
10893         # Commands to make compiler produce verbose output that lists
10894         # what "hidden" libraries, object files and flags are used when
10895         # linking a shared library.
10896         #
10897         # There doesn't appear to be a way to prevent this compiler from
10898         # explicitly linking system object files so we need to strip them
10899         # from the output so that they don't get included in the library
10900         # dependencies.
10901         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'
10902
10903         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10904         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10905
10906         # Archives containing C++ object files must be created using
10907         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10908         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10909         ;;
10910       icpc*)
10911         # Intel C++
10912         with_gnu_ld=yes
10913         # version 8.0 and above of icpc choke on multiply defined symbols
10914         # if we add $predep_objects and $postdep_objects, however 7.1 and
10915         # earlier do not add the objects themselves.
10916         case `$CC -V 2>&1` in
10917         *"Version 7."*)
10918           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10919           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'
10920           ;;
10921         *)  # Version 8.0 or newer
10922           tmp_idyn=
10923           case $host_cpu in
10924             ia64*) tmp_idyn=' -i_dynamic';;
10925           esac
10926           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10927           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'
10928           ;;
10929         esac
10930         archive_cmds_need_lc_CXX=no
10931         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10932         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10933         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10934         ;;
10935       pgCC*)
10936         # Portland Group C++ compiler
10937         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10938         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'
10939
10940         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10941         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10942         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'
10943         ;;
10944       cxx*)
10945         # Compaq C++
10946         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10947         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'
10948
10949         runpath_var=LD_RUN_PATH
10950         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10951         hardcode_libdir_separator_CXX=:
10952
10953         # Commands to make compiler produce verbose output that lists
10954         # what "hidden" libraries, object files and flags are used when
10955         # linking a shared library.
10956         #
10957         # There doesn't appear to be a way to prevent this compiler from
10958         # explicitly linking system object files so we need to strip them
10959         # from the output so that they don't get included in the library
10960         # dependencies.
10961         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'
10962         ;;
10963     esac
10964     ;;
10965   lynxos*)
10966     # FIXME: insert proper C++ library support
10967     ld_shlibs_CXX=no
10968     ;;
10969   m88k*)
10970     # FIXME: insert proper C++ library support
10971     ld_shlibs_CXX=no
10972     ;;
10973   mvs*)
10974     case $cc_basename in
10975       cxx*)
10976         # FIXME: insert proper C++ library support
10977         ld_shlibs_CXX=no
10978         ;;
10979       *)
10980         # FIXME: insert proper C++ library support
10981         ld_shlibs_CXX=no
10982         ;;
10983     esac
10984     ;;
10985   netbsd*)
10986     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10987       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10988       wlarc=
10989       hardcode_libdir_flag_spec_CXX='-R$libdir'
10990       hardcode_direct_CXX=yes
10991       hardcode_shlibpath_var_CXX=no
10992     fi
10993     # Workaround some broken pre-1.5 toolchains
10994     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10995     ;;
10996   openbsd2*)
10997     # C++ shared libraries are fairly broken
10998     ld_shlibs_CXX=no
10999     ;;
11000   openbsd*)
11001     hardcode_direct_CXX=yes
11002     hardcode_shlibpath_var_CXX=no
11003     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11004     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11005     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11006       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11007       export_dynamic_flag_spec_CXX='${wl}-E'
11008       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11009     fi
11010     output_verbose_link_cmd='echo'
11011     ;;
11012   osf3*)
11013     case $cc_basename in
11014       KCC*)
11015         # Kuck and Associates, Inc. (KAI) C++ Compiler
11016
11017         # KCC will only create a shared library if the output file
11018         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11019         # to its proper name (with version) after linking.
11020         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11021
11022         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11023         hardcode_libdir_separator_CXX=:
11024
11025         # Archives containing C++ object files must be created using
11026         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11027         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11028
11029         ;;
11030       RCC*)
11031         # Rational C++ 2.4.1
11032         # FIXME: insert proper C++ library support
11033         ld_shlibs_CXX=no
11034         ;;
11035       cxx*)
11036         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11037         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'
11038
11039         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11040         hardcode_libdir_separator_CXX=:
11041
11042         # Commands to make compiler produce verbose output that lists
11043         # what "hidden" libraries, object files and flags are used when
11044         # linking a shared library.
11045         #
11046         # There doesn't appear to be a way to prevent this compiler from
11047         # explicitly linking system object files so we need to strip them
11048         # from the output so that they don't get included in the library
11049         # dependencies.
11050         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'
11051         ;;
11052       *)
11053         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11054           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11055           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'
11056
11057           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11058           hardcode_libdir_separator_CXX=:
11059
11060           # Commands to make compiler produce verbose output that lists
11061           # what "hidden" libraries, object files and flags are used when
11062           # linking a shared library.
11063           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11064
11065         else
11066           # FIXME: insert proper C++ library support
11067           ld_shlibs_CXX=no
11068         fi
11069         ;;
11070     esac
11071     ;;
11072   osf4* | osf5*)
11073     case $cc_basename in
11074       KCC*)
11075         # Kuck and Associates, Inc. (KAI) C++ Compiler
11076
11077         # KCC will only create a shared library if the output file
11078         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11079         # to its proper name (with version) after linking.
11080         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'
11081
11082         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11083         hardcode_libdir_separator_CXX=:
11084
11085         # Archives containing C++ object files must be created using
11086         # the KAI C++ compiler.
11087         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11088         ;;
11089       RCC*)
11090         # Rational C++ 2.4.1
11091         # FIXME: insert proper C++ library support
11092         ld_shlibs_CXX=no
11093         ;;
11094       cxx*)
11095         allow_undefined_flag_CXX=' -expect_unresolved \*'
11096         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'
11097         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11098           echo "-hidden">> $lib.exp~
11099           $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~
11100           $rm $lib.exp'
11101
11102         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11103         hardcode_libdir_separator_CXX=:
11104
11105         # Commands to make compiler produce verbose output that lists
11106         # what "hidden" libraries, object files and flags are used when
11107         # linking a shared library.
11108         #
11109         # There doesn't appear to be a way to prevent this compiler from
11110         # explicitly linking system object files so we need to strip them
11111         # from the output so that they don't get included in the library
11112         # dependencies.
11113         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'
11114         ;;
11115       *)
11116         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11117           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11118          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'
11119
11120           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11121           hardcode_libdir_separator_CXX=:
11122
11123           # Commands to make compiler produce verbose output that lists
11124           # what "hidden" libraries, object files and flags are used when
11125           # linking a shared library.
11126           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11127
11128         else
11129           # FIXME: insert proper C++ library support
11130           ld_shlibs_CXX=no
11131         fi
11132         ;;
11133     esac
11134     ;;
11135   psos*)
11136     # FIXME: insert proper C++ library support
11137     ld_shlibs_CXX=no
11138     ;;
11139   sunos4*)
11140     case $cc_basename in
11141       CC*)
11142         # Sun C++ 4.x
11143         # FIXME: insert proper C++ library support
11144         ld_shlibs_CXX=no
11145         ;;
11146       lcc*)
11147         # Lucid
11148         # FIXME: insert proper C++ library support
11149         ld_shlibs_CXX=no
11150         ;;
11151       *)
11152         # FIXME: insert proper C++ library support
11153         ld_shlibs_CXX=no
11154         ;;
11155     esac
11156     ;;
11157   solaris*)
11158     case $cc_basename in
11159       CC*)
11160         # Sun C++ 4.2, 5.x and Centerline C++
11161         archive_cmds_need_lc_CXX=yes
11162         no_undefined_flag_CXX=' -zdefs'
11163         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11164         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11165         $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'
11166
11167         hardcode_libdir_flag_spec_CXX='-R$libdir'
11168         hardcode_shlibpath_var_CXX=no
11169         case $host_os in
11170           solaris2.[0-5] | solaris2.[0-5].*) ;;
11171           *)
11172             # The C++ compiler is used as linker so we must use $wl
11173             # flag to pass the commands to the underlying system
11174             # linker. We must also pass each convience library through
11175             # to the system linker between allextract/defaultextract.
11176             # The C++ compiler will combine linker options so we
11177             # cannot just pass the convience library names through
11178             # without $wl.
11179             # Supported since Solaris 2.6 (maybe 2.5.1?)
11180             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'
11181             ;;
11182         esac
11183         link_all_deplibs_CXX=yes
11184
11185         output_verbose_link_cmd='echo'
11186
11187         # Archives containing C++ object files must be created using
11188         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11189         # necessary to make sure instantiated templates are included
11190         # in the archive.
11191         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11192         ;;
11193       gcx*)
11194         # Green Hills C++ Compiler
11195         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11196
11197         # The C++ compiler must be used to create the archive.
11198         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11199         ;;
11200       *)
11201         # GNU C++ compiler with Solaris linker
11202         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11203           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11204           if $CC --version | grep -v '^2\.7' > /dev/null; then
11205             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11206             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11207                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11208
11209             # Commands to make compiler produce verbose output that lists
11210             # what "hidden" libraries, object files and flags are used when
11211             # linking a shared library.
11212             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11213           else
11214             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11215             # platform.
11216             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11217             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11218                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11219
11220             # Commands to make compiler produce verbose output that lists
11221             # what "hidden" libraries, object files and flags are used when
11222             # linking a shared library.
11223             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11224           fi
11225
11226           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11227         fi
11228         ;;
11229     esac
11230     ;;
11231   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11232     no_undefined_flag_CXX='${wl}-z,text'
11233     archive_cmds_need_lc_CXX=no
11234     hardcode_shlibpath_var_CXX=no
11235     runpath_var='LD_RUN_PATH'
11236
11237     case $cc_basename in
11238       CC*)
11239         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11240         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11241         ;;
11242       *)
11243         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11244         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11245         ;;
11246     esac
11247     ;;
11248   sysv5* | sco3.2v5* | sco5v6*)
11249     # Note: We can NOT use -z defs as we might desire, because we do not
11250     # link with -lc, and that would cause any symbols used from libc to
11251     # always be unresolved, which means just about no library would
11252     # ever link correctly.  If we're not using GNU ld we use -z text
11253     # though, which does catch some bad symbols but isn't as heavy-handed
11254     # as -z defs.
11255     # For security reasons, it is highly recommended that you always
11256     # use absolute paths for naming shared libraries, and exclude the
11257     # DT_RUNPATH tag from executables and libraries.  But doing so
11258     # requires that you compile everything twice, which is a pain.
11259     # So that behaviour is only enabled if SCOABSPATH is set to a
11260     # non-empty value in the environment.  Most likely only useful for
11261     # creating official distributions of packages.
11262     # This is a hack until libtool officially supports absolute path
11263     # names for shared libraries.
11264     no_undefined_flag_CXX='${wl}-z,text'
11265     allow_undefined_flag_CXX='${wl}-z,nodefs'
11266     archive_cmds_need_lc_CXX=no
11267     hardcode_shlibpath_var_CXX=no
11268     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11269     hardcode_libdir_separator_CXX=':'
11270     link_all_deplibs_CXX=yes
11271     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11272     runpath_var='LD_RUN_PATH'
11273
11274     case $cc_basename in
11275       CC*)
11276         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11277         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11278         ;;
11279       *)
11280         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11281         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11282         ;;
11283     esac
11284     ;;
11285   tandem*)
11286     case $cc_basename in
11287       NCC*)
11288         # NonStop-UX NCC 3.20
11289         # FIXME: insert proper C++ library support
11290         ld_shlibs_CXX=no
11291         ;;
11292       *)
11293         # FIXME: insert proper C++ library support
11294         ld_shlibs_CXX=no
11295         ;;
11296     esac
11297     ;;
11298   vxworks*)
11299     # FIXME: insert proper C++ library support
11300     ld_shlibs_CXX=no
11301     ;;
11302   *)
11303     # FIXME: insert proper C++ library support
11304     ld_shlibs_CXX=no
11305     ;;
11306 esac
11307 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11308 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11309 test "$ld_shlibs_CXX" = no && can_build_shared=no
11310
11311 GCC_CXX="$GXX"
11312 LD_CXX="$LD"
11313
11314
11315 cat > conftest.$ac_ext <<EOF
11316 class Foo
11317 {
11318 public:
11319   Foo (void) { a = 0; }
11320 private:
11321   int a;
11322 };
11323 EOF
11324
11325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11326   (eval $ac_compile) 2>&5
11327   ac_status=$?
11328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329   (exit $ac_status); }; then
11330   # Parse the compiler output and extract the necessary
11331   # objects, libraries and library flags.
11332
11333   # Sentinel used to keep track of whether or not we are before
11334   # the conftest object file.
11335   pre_test_object_deps_done=no
11336
11337   # The `*' in the case matches for architectures that use `case' in
11338   # $output_verbose_cmd can trigger glob expansion during the loop
11339   # eval without this substitution.
11340   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11341
11342   for p in `eval $output_verbose_link_cmd`; do
11343     case $p in
11344
11345     -L* | -R* | -l*)
11346        # Some compilers place space between "-{L,R}" and the path.
11347        # Remove the space.
11348        if test $p = "-L" \
11349           || test $p = "-R"; then
11350          prev=$p
11351          continue
11352        else
11353          prev=
11354        fi
11355
11356        if test "$pre_test_object_deps_done" = no; then
11357          case $p in
11358          -L* | -R*)
11359            # Internal compiler library paths should come after those
11360            # provided the user.  The postdeps already come after the
11361            # user supplied libs so there is no need to process them.
11362            if test -z "$compiler_lib_search_path_CXX"; then
11363              compiler_lib_search_path_CXX="${prev}${p}"
11364            else
11365              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11366            fi
11367            ;;
11368          # The "-l" case would never come before the object being
11369          # linked, so don't bother handling this case.
11370          esac
11371        else
11372          if test -z "$postdeps_CXX"; then
11373            postdeps_CXX="${prev}${p}"
11374          else
11375            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11376          fi
11377        fi
11378        ;;
11379
11380     *.$objext)
11381        # This assumes that the test object file only shows up
11382        # once in the compiler output.
11383        if test "$p" = "conftest.$objext"; then
11384          pre_test_object_deps_done=yes
11385          continue
11386        fi
11387
11388        if test "$pre_test_object_deps_done" = no; then
11389          if test -z "$predep_objects_CXX"; then
11390            predep_objects_CXX="$p"
11391          else
11392            predep_objects_CXX="$predep_objects_CXX $p"
11393          fi
11394        else
11395          if test -z "$postdep_objects_CXX"; then
11396            postdep_objects_CXX="$p"
11397          else
11398            postdep_objects_CXX="$postdep_objects_CXX $p"
11399          fi
11400        fi
11401        ;;
11402
11403     *) ;; # Ignore the rest.
11404
11405     esac
11406   done
11407
11408   # Clean up.
11409   rm -f a.out a.exe
11410 else
11411   echo "libtool.m4: error: problem compiling CXX test program"
11412 fi
11413
11414 $rm -f confest.$objext
11415
11416 # PORTME: override above test on systems where it is broken
11417 case $host_os in
11418 interix3*)
11419   # Interix 3.5 installs completely hosed .la files for C++, so rather than
11420   # hack all around it, let's just trust "g++" to DTRT.
11421   predep_objects_CXX=
11422   postdep_objects_CXX=
11423   postdeps_CXX=
11424   ;;
11425
11426 solaris*)
11427   case $cc_basename in
11428   CC*)
11429     # Adding this requires a known-good setup of shared libraries for
11430     # Sun compiler versions before 5.6, else PIC objects from an old
11431     # archive will be linked into the output, leading to subtle bugs.
11432     postdeps_CXX='-lCstd -lCrun'
11433     ;;
11434   esac
11435   ;;
11436 esac
11437
11438
11439 case " $postdeps_CXX " in
11440 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11441 esac
11442
11443 lt_prog_compiler_wl_CXX=
11444 lt_prog_compiler_pic_CXX=
11445 lt_prog_compiler_static_CXX=
11446
11447 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11448 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11449
11450   # C++ specific cases for pic, static, wl, etc.
11451   if test "$GXX" = yes; then
11452     lt_prog_compiler_wl_CXX='-Wl,'
11453     lt_prog_compiler_static_CXX='-static'
11454
11455     case $host_os in
11456     aix*)
11457       # All AIX code is PIC.
11458       if test "$host_cpu" = ia64; then
11459         # AIX 5 now supports IA64 processor
11460         lt_prog_compiler_static_CXX='-Bstatic'
11461       fi
11462       ;;
11463     amigaos*)
11464       # FIXME: we need at least 68020 code to build shared libraries, but
11465       # adding the `-m68020' flag to GCC prevents building anything better,
11466       # like `-m68040'.
11467       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11468       ;;
11469     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11470       # PIC is the default for these OSes.
11471       ;;
11472     mingw* | os2* | pw32*)
11473       # This hack is so that the source file can tell whether it is being
11474       # built for inclusion in a dll (and should export symbols for example).
11475       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11476       ;;
11477     darwin* | rhapsody*)
11478       # PIC is the default on this platform
11479       # Common symbols not allowed in MH_DYLIB files
11480       lt_prog_compiler_pic_CXX='-fno-common'
11481       ;;
11482     *djgpp*)
11483       # DJGPP does not support shared libraries at all
11484       lt_prog_compiler_pic_CXX=
11485       ;;
11486     interix3*)
11487       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11488       # Instead, we relocate shared libraries at runtime.
11489       ;;
11490     sysv4*MP*)
11491       if test -d /usr/nec; then
11492         lt_prog_compiler_pic_CXX=-Kconform_pic
11493       fi
11494       ;;
11495     hpux*)
11496       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11497       # not for PA HP-UX.
11498       case $host_cpu in
11499       hppa*64*|ia64*)
11500         ;;
11501       *)
11502         lt_prog_compiler_pic_CXX='-fPIC'
11503         ;;
11504       esac
11505       ;;
11506     *)
11507       lt_prog_compiler_pic_CXX='-fPIC'
11508       ;;
11509     esac
11510   else
11511     case $host_os in
11512       aix4* | aix5*)
11513         # All AIX code is PIC.
11514         if test "$host_cpu" = ia64; then
11515           # AIX 5 now supports IA64 processor
11516           lt_prog_compiler_static_CXX='-Bstatic'
11517         else
11518           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11519         fi
11520         ;;
11521       chorus*)
11522         case $cc_basename in
11523         cxch68*)
11524           # Green Hills C++ Compiler
11525           # _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"
11526           ;;
11527         esac
11528         ;;
11529        darwin*)
11530          # PIC is the default on this platform
11531          # Common symbols not allowed in MH_DYLIB files
11532          case $cc_basename in
11533            xlc*)
11534            lt_prog_compiler_pic_CXX='-qnocommon'
11535            lt_prog_compiler_wl_CXX='-Wl,'
11536            ;;
11537          esac
11538        ;;
11539       dgux*)
11540         case $cc_basename in
11541           ec++*)
11542             lt_prog_compiler_pic_CXX='-KPIC'
11543             ;;
11544           ghcx*)
11545             # Green Hills C++ Compiler
11546             lt_prog_compiler_pic_CXX='-pic'
11547             ;;
11548           *)
11549             ;;
11550         esac
11551         ;;
11552       freebsd* | kfreebsd*-gnu | dragonfly*)
11553         # FreeBSD uses GNU C++
11554         ;;
11555       hpux9* | hpux10* | hpux11*)
11556         case $cc_basename in
11557           CC*)
11558             lt_prog_compiler_wl_CXX='-Wl,'
11559             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11560             if test "$host_cpu" != ia64; then
11561               lt_prog_compiler_pic_CXX='+Z'
11562             fi
11563             ;;
11564           aCC*)
11565             lt_prog_compiler_wl_CXX='-Wl,'
11566             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11567             case $host_cpu in
11568             hppa*64*|ia64*)
11569               # +Z the default
11570               ;;
11571             *)
11572               lt_prog_compiler_pic_CXX='+Z'
11573               ;;
11574             esac
11575             ;;
11576           *)
11577             ;;
11578         esac
11579         ;;
11580       interix*)
11581         # This is c89, which is MS Visual C++ (no shared libs)
11582         # Anyone wants to do a port?
11583         ;;
11584       irix5* | irix6* | nonstopux*)
11585         case $cc_basename in
11586           CC*)
11587             lt_prog_compiler_wl_CXX='-Wl,'
11588             lt_prog_compiler_static_CXX='-non_shared'
11589             # CC pic flag -KPIC is the default.
11590             ;;
11591           *)
11592             ;;
11593         esac
11594         ;;
11595       linux*)
11596         case $cc_basename in
11597           KCC*)
11598             # KAI C++ Compiler
11599             lt_prog_compiler_wl_CXX='--backend -Wl,'
11600             lt_prog_compiler_pic_CXX='-fPIC'
11601             ;;
11602           icpc* | ecpc*)
11603             # Intel C++
11604             lt_prog_compiler_wl_CXX='-Wl,'
11605             lt_prog_compiler_pic_CXX='-KPIC'
11606             lt_prog_compiler_static_CXX='-static'
11607             ;;
11608           pgCC*)
11609             # Portland Group C++ compiler.
11610             lt_prog_compiler_wl_CXX='-Wl,'
11611             lt_prog_compiler_pic_CXX='-fpic'
11612             lt_prog_compiler_static_CXX='-Bstatic'
11613             ;;
11614           cxx*)
11615             # Compaq C++
11616             # Make sure the PIC flag is empty.  It appears that all Alpha
11617             # Linux and Compaq Tru64 Unix objects are PIC.
11618             lt_prog_compiler_pic_CXX=
11619             lt_prog_compiler_static_CXX='-non_shared'
11620             ;;
11621           *)
11622             ;;
11623         esac
11624         ;;
11625       lynxos*)
11626         ;;
11627       m88k*)
11628         ;;
11629       mvs*)
11630         case $cc_basename in
11631           cxx*)
11632             lt_prog_compiler_pic_CXX='-W c,exportall'
11633             ;;
11634           *)
11635             ;;
11636         esac
11637         ;;
11638       netbsd*)
11639         ;;
11640       osf3* | osf4* | osf5*)
11641         case $cc_basename in
11642           KCC*)
11643             lt_prog_compiler_wl_CXX='--backend -Wl,'
11644             ;;
11645           RCC*)
11646             # Rational C++ 2.4.1
11647             lt_prog_compiler_pic_CXX='-pic'
11648             ;;
11649           cxx*)
11650             # Digital/Compaq C++
11651             lt_prog_compiler_wl_CXX='-Wl,'
11652             # Make sure the PIC flag is empty.  It appears that all Alpha
11653             # Linux and Compaq Tru64 Unix objects are PIC.
11654             lt_prog_compiler_pic_CXX=
11655             lt_prog_compiler_static_CXX='-non_shared'
11656             ;;
11657           *)
11658             ;;
11659         esac
11660         ;;
11661       psos*)
11662         ;;
11663       solaris*)
11664         case $cc_basename in
11665           CC*)
11666             # Sun C++ 4.2, 5.x and Centerline C++
11667             lt_prog_compiler_pic_CXX='-KPIC'
11668             lt_prog_compiler_static_CXX='-Bstatic'
11669             lt_prog_compiler_wl_CXX='-Qoption ld '
11670             ;;
11671           gcx*)
11672             # Green Hills C++ Compiler
11673             lt_prog_compiler_pic_CXX='-PIC'
11674             ;;
11675           *)
11676             ;;
11677         esac
11678         ;;
11679       sunos4*)
11680         case $cc_basename in
11681           CC*)
11682             # Sun C++ 4.x
11683             lt_prog_compiler_pic_CXX='-pic'
11684             lt_prog_compiler_static_CXX='-Bstatic'
11685             ;;
11686           lcc*)
11687             # Lucid
11688             lt_prog_compiler_pic_CXX='-pic'
11689             ;;
11690           *)
11691             ;;
11692         esac
11693         ;;
11694       tandem*)
11695         case $cc_basename in
11696           NCC*)
11697             # NonStop-UX NCC 3.20
11698             lt_prog_compiler_pic_CXX='-KPIC'
11699             ;;
11700           *)
11701             ;;
11702         esac
11703         ;;
11704       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11705         case $cc_basename in
11706           CC*)
11707             lt_prog_compiler_wl_CXX='-Wl,'
11708             lt_prog_compiler_pic_CXX='-KPIC'
11709             lt_prog_compiler_static_CXX='-Bstatic'
11710             ;;
11711         esac
11712         ;;
11713       vxworks*)
11714         ;;
11715       *)
11716         lt_prog_compiler_can_build_shared_CXX=no
11717         ;;
11718     esac
11719   fi
11720
11721 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11722 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11723
11724 #
11725 # Check to make sure the PIC flag actually works.
11726 #
11727 if test -n "$lt_prog_compiler_pic_CXX"; then
11728
11729 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11730 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11731 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11732   echo $ECHO_N "(cached) $ECHO_C" >&6
11733 else
11734   lt_prog_compiler_pic_works_CXX=no
11735   ac_outfile=conftest.$ac_objext
11736    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11737    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11738    # Insert the option either (1) after the last *FLAGS variable, or
11739    # (2) before a word containing "conftest.", or (3) at the end.
11740    # Note that $ac_compile itself does not contain backslashes and begins
11741    # with a dollar sign (not a hyphen), so the echo should work correctly.
11742    # The option is referenced via a variable to avoid confusing sed.
11743    lt_compile=`echo "$ac_compile" | $SED \
11744    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11745    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11746    -e 's:$: $lt_compiler_flag:'`
11747    (eval echo "\"\$as_me:11747: $lt_compile\"" >&5)
11748    (eval "$lt_compile" 2>conftest.err)
11749    ac_status=$?
11750    cat conftest.err >&5
11751    echo "$as_me:11751: \$? = $ac_status" >&5
11752    if (exit $ac_status) && test -s "$ac_outfile"; then
11753      # The compiler can only warn and ignore the option if not recognized
11754      # So say no if there are warnings other than the usual output.
11755      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11756      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11757      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11758        lt_prog_compiler_pic_works_CXX=yes
11759      fi
11760    fi
11761    $rm conftest*
11762
11763 fi
11764 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11765 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11766
11767 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11768     case $lt_prog_compiler_pic_CXX in
11769      "" | " "*) ;;
11770      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11771      esac
11772 else
11773     lt_prog_compiler_pic_CXX=
11774      lt_prog_compiler_can_build_shared_CXX=no
11775 fi
11776
11777 fi
11778 case $host_os in
11779   # For platforms which do not support PIC, -DPIC is meaningless:
11780   *djgpp*)
11781     lt_prog_compiler_pic_CXX=
11782     ;;
11783   *)
11784     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11785     ;;
11786 esac
11787
11788 #
11789 # Check to make sure the static flag actually works.
11790 #
11791 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11792 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11793 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11794 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11795   echo $ECHO_N "(cached) $ECHO_C" >&6
11796 else
11797   lt_prog_compiler_static_works_CXX=no
11798    save_LDFLAGS="$LDFLAGS"
11799    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11800    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11801    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11802      # The linker can only warn and ignore the option if not recognized
11803      # So say no if there are warnings
11804      if test -s conftest.err; then
11805        # Append any errors to the config.log.
11806        cat conftest.err 1>&5
11807        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11808        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11809        if diff conftest.exp conftest.er2 >/dev/null; then
11810          lt_prog_compiler_static_works_CXX=yes
11811        fi
11812      else
11813        lt_prog_compiler_static_works_CXX=yes
11814      fi
11815    fi
11816    $rm conftest*
11817    LDFLAGS="$save_LDFLAGS"
11818
11819 fi
11820 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11821 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11822
11823 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11824     :
11825 else
11826     lt_prog_compiler_static_CXX=
11827 fi
11828
11829
11830 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11831 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11832 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11833   echo $ECHO_N "(cached) $ECHO_C" >&6
11834 else
11835   lt_cv_prog_compiler_c_o_CXX=no
11836    $rm -r conftest 2>/dev/null
11837    mkdir conftest
11838    cd conftest
11839    mkdir out
11840    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11841
11842    lt_compiler_flag="-o out/conftest2.$ac_objext"
11843    # Insert the option either (1) after the last *FLAGS variable, or
11844    # (2) before a word containing "conftest.", or (3) at the end.
11845    # Note that $ac_compile itself does not contain backslashes and begins
11846    # with a dollar sign (not a hyphen), so the echo should work correctly.
11847    lt_compile=`echo "$ac_compile" | $SED \
11848    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11849    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11850    -e 's:$: $lt_compiler_flag:'`
11851    (eval echo "\"\$as_me:11851: $lt_compile\"" >&5)
11852    (eval "$lt_compile" 2>out/conftest.err)
11853    ac_status=$?
11854    cat out/conftest.err >&5
11855    echo "$as_me:11855: \$? = $ac_status" >&5
11856    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11857    then
11858      # The compiler can only warn and ignore the option if not recognized
11859      # So say no if there are warnings
11860      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11861      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11862      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11863        lt_cv_prog_compiler_c_o_CXX=yes
11864      fi
11865    fi
11866    chmod u+w . 2>&5
11867    $rm conftest*
11868    # SGI C++ compiler will create directory out/ii_files/ for
11869    # template instantiation
11870    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11871    $rm out/* && rmdir out
11872    cd ..
11873    rmdir conftest
11874    $rm conftest*
11875
11876 fi
11877 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11878 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11879
11880
11881 hard_links="nottested"
11882 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11883   # do not overwrite the value of need_locks provided by the user
11884   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11885 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11886   hard_links=yes
11887   $rm conftest*
11888   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11889   touch conftest.a
11890   ln conftest.a conftest.b 2>&5 || hard_links=no
11891   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11892   echo "$as_me:$LINENO: result: $hard_links" >&5
11893 echo "${ECHO_T}$hard_links" >&6
11894   if test "$hard_links" = no; then
11895     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11896 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11897     need_locks=warn
11898   fi
11899 else
11900   need_locks=no
11901 fi
11902
11903 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11904 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11905
11906   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11907   case $host_os in
11908   aix4* | aix5*)
11909     # If we're using GNU nm, then we don't want the "-C" option.
11910     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11911     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11912       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'
11913     else
11914       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'
11915     fi
11916     ;;
11917   pw32*)
11918     export_symbols_cmds_CXX="$ltdll_cmds"
11919   ;;
11920   cygwin* | mingw*)
11921     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'
11922   ;;
11923   *)
11924     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11925   ;;
11926   esac
11927
11928 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11929 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11930 test "$ld_shlibs_CXX" = no && can_build_shared=no
11931
11932 #
11933 # Do we need to explicitly link libc?
11934 #
11935 case "x$archive_cmds_need_lc_CXX" in
11936 x|xyes)
11937   # Assume -lc should be added
11938   archive_cmds_need_lc_CXX=yes
11939
11940   if test "$enable_shared" = yes && test "$GCC" = yes; then
11941     case $archive_cmds_CXX in
11942     *'~'*)
11943       # FIXME: we may have to deal with multi-command sequences.
11944       ;;
11945     '$CC '*)
11946       # Test whether the compiler implicitly links with -lc since on some
11947       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11948       # to ld, don't add -lc before -lgcc.
11949       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11950 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11951       $rm conftest*
11952       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11953
11954       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11955   (eval $ac_compile) 2>&5
11956   ac_status=$?
11957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958   (exit $ac_status); } 2>conftest.err; then
11959         soname=conftest
11960         lib=conftest
11961         libobjs=conftest.$ac_objext
11962         deplibs=
11963         wl=$lt_prog_compiler_wl_CXX
11964         pic_flag=$lt_prog_compiler_pic_CXX
11965         compiler_flags=-v
11966         linker_flags=-v
11967         verstring=
11968         output_objdir=.
11969         libname=conftest
11970         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11971         allow_undefined_flag_CXX=
11972         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11973   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11974   ac_status=$?
11975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976   (exit $ac_status); }
11977         then
11978           archive_cmds_need_lc_CXX=no
11979         else
11980           archive_cmds_need_lc_CXX=yes
11981         fi
11982         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11983       else
11984         cat conftest.err 1>&5
11985       fi
11986       $rm conftest*
11987       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11988 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11989       ;;
11990     esac
11991   fi
11992   ;;
11993 esac
11994
11995 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11996 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11997 library_names_spec=
11998 libname_spec='lib$name'
11999 soname_spec=
12000 shrext_cmds=".so"
12001 postinstall_cmds=
12002 postuninstall_cmds=
12003 finish_cmds=
12004 finish_eval=
12005 shlibpath_var=
12006 shlibpath_overrides_runpath=unknown
12007 version_type=none
12008 dynamic_linker="$host_os ld.so"
12009 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12010 if test "$GCC" = yes; then
12011   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12012   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12013     # if the path contains ";" then we assume it to be the separator
12014     # otherwise default to the standard path separator (i.e. ":") - it is
12015     # assumed that no part of a normal pathname contains ";" but that should
12016     # okay in the real world where ";" in dirpaths is itself problematic.
12017     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12018   else
12019     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12020   fi
12021 else
12022   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12023 fi
12024 need_lib_prefix=unknown
12025 hardcode_into_libs=no
12026
12027 # when you set need_version to no, make sure it does not cause -set_version
12028 # flags to be left without arguments
12029 need_version=unknown
12030
12031 case $host_os in
12032 aix3*)
12033   version_type=linux
12034   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12035   shlibpath_var=LIBPATH
12036
12037   # AIX 3 has no versioning support, so we append a major version to the name.
12038   soname_spec='${libname}${release}${shared_ext}$major'
12039   ;;
12040
12041 aix4* | aix5*)
12042   version_type=linux
12043   need_lib_prefix=no
12044   need_version=no
12045   hardcode_into_libs=yes
12046   if test "$host_cpu" = ia64; then
12047     # AIX 5 supports IA64
12048     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12049     shlibpath_var=LD_LIBRARY_PATH
12050   else
12051     # With GCC up to 2.95.x, collect2 would create an import file
12052     # for dependence libraries.  The import file would start with
12053     # the line `#! .'.  This would cause the generated library to
12054     # depend on `.', always an invalid library.  This was fixed in
12055     # development snapshots of GCC prior to 3.0.
12056     case $host_os in
12057       aix4 | aix4.[01] | aix4.[01].*)
12058       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12059            echo ' yes '
12060            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12061         :
12062       else
12063         can_build_shared=no
12064       fi
12065       ;;
12066     esac
12067     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12068     # soname into executable. Probably we can add versioning support to
12069     # collect2, so additional links can be useful in future.
12070     if test "$aix_use_runtimelinking" = yes; then
12071       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12072       # instead of lib<name>.a to let people know that these are not
12073       # typical AIX shared libraries.
12074       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12075     else
12076       # We preserve .a as extension for shared libraries through AIX4.2
12077       # and later when we are not doing run time linking.
12078       library_names_spec='${libname}${release}.a $libname.a'
12079       soname_spec='${libname}${release}${shared_ext}$major'
12080     fi
12081     shlibpath_var=LIBPATH
12082   fi
12083   ;;
12084
12085 amigaos*)
12086   library_names_spec='$libname.ixlibrary $libname.a'
12087   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12088   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'
12089   ;;
12090
12091 beos*)
12092   library_names_spec='${libname}${shared_ext}'
12093   dynamic_linker="$host_os ld.so"
12094   shlibpath_var=LIBRARY_PATH
12095   ;;
12096
12097 bsdi[45]*)
12098   version_type=linux
12099   need_version=no
12100   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12101   soname_spec='${libname}${release}${shared_ext}$major'
12102   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12103   shlibpath_var=LD_LIBRARY_PATH
12104   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12105   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12106   # the default ld.so.conf also contains /usr/contrib/lib and
12107   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12108   # libtool to hard-code these into programs
12109   ;;
12110
12111 cygwin* | mingw* | pw32*)
12112   version_type=windows
12113   shrext_cmds=".dll"
12114   need_version=no
12115   need_lib_prefix=no
12116
12117   case $GCC,$host_os in
12118   yes,cygwin* | yes,mingw* | yes,pw32*)
12119     library_names_spec='$libname.dll.a'
12120     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12121     postinstall_cmds='base_file=`basename \${file}`~
12122       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12123       dldir=$destdir/`dirname \$dlpath`~
12124       test -d \$dldir || mkdir -p \$dldir~
12125       $install_prog $dir/$dlname \$dldir/$dlname~
12126       chmod a+x \$dldir/$dlname'
12127     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12128       dlpath=$dir/\$dldll~
12129        $rm \$dlpath'
12130     shlibpath_overrides_runpath=yes
12131
12132     case $host_os in
12133     cygwin*)
12134       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12135       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12136       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12137       ;;
12138     mingw*)
12139       # MinGW DLLs use traditional 'lib' prefix
12140       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12141       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12142       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12143         # It is most probably a Windows format PATH printed by
12144         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12145         # path with ; separators, and with drive letters. We can handle the
12146         # drive letters (cygwin fileutils understands them), so leave them,
12147         # especially as we might pass files found there to a mingw objdump,
12148         # which wouldn't understand a cygwinified path. Ahh.
12149         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12150       else
12151         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12152       fi
12153       ;;
12154     pw32*)
12155       # pw32 DLLs use 'pw' prefix rather than 'lib'
12156       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12157       ;;
12158     esac
12159     ;;
12160
12161   linux*)
12162     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12163       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12164       supports_anon_versioning=no
12165       case `$LD -v 2>/dev/null` in
12166         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12167         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12168         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12169         *\ 2.11.*) ;; # other 2.11 versions
12170         *) supports_anon_versioning=yes ;;
12171       esac
12172       if test $supports_anon_versioning = yes; then
12173         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12174 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12175 $echo "local: *; };" >> $output_objdir/$libname.ver~
12176         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12177       else
12178         $archive_expsym_cmds="$archive_cmds"
12179       fi
12180     else
12181       ld_shlibs=no
12182     fi
12183     ;;
12184
12185   *)
12186     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12187     ;;
12188   esac
12189   dynamic_linker='Win32 ld.exe'
12190   # FIXME: first we should search . and the directory the executable is in
12191   shlibpath_var=PATH
12192   ;;
12193
12194 darwin* | rhapsody*)
12195   dynamic_linker="$host_os dyld"
12196   version_type=darwin
12197   need_lib_prefix=no
12198   need_version=no
12199   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12200   soname_spec='${libname}${release}${major}$shared_ext'
12201   shlibpath_overrides_runpath=yes
12202   shlibpath_var=DYLD_LIBRARY_PATH
12203   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12204   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12205   if test "$GCC" = yes; then
12206     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"`
12207   else
12208     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12209   fi
12210   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12211   ;;
12212
12213 dgux*)
12214   version_type=linux
12215   need_lib_prefix=no
12216   need_version=no
12217   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12218   soname_spec='${libname}${release}${shared_ext}$major'
12219   shlibpath_var=LD_LIBRARY_PATH
12220   ;;
12221
12222 freebsd1*)
12223   dynamic_linker=no
12224   ;;
12225
12226 kfreebsd*-gnu)
12227   version_type=linux
12228   need_lib_prefix=no
12229   need_version=no
12230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12231   soname_spec='${libname}${release}${shared_ext}$major'
12232   shlibpath_var=LD_LIBRARY_PATH
12233   shlibpath_overrides_runpath=no
12234   hardcode_into_libs=yes
12235   dynamic_linker='GNU ld.so'
12236   ;;
12237
12238 freebsd* | dragonfly*)
12239   # DragonFly does not have aout.  When/if they implement a new
12240   # versioning mechanism, adjust this.
12241   if test -x /usr/bin/objformat; then
12242     objformat=`/usr/bin/objformat`
12243   else
12244     case $host_os in
12245     freebsd[123]*) objformat=aout ;;
12246     *) objformat=elf ;;
12247     esac
12248   fi
12249   # Handle Gentoo/FreeBSD as it was Linux
12250   case $host_vendor in
12251     gentoo)
12252       version_type=linux ;;
12253     *)
12254       version_type=freebsd-$objformat ;;
12255   esac
12256
12257   case $version_type in
12258     freebsd-elf*)
12259       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12260       need_version=no
12261       need_lib_prefix=no
12262       ;;
12263     freebsd-*)
12264       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12265       need_version=yes
12266       ;;
12267     linux)
12268       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12269       soname_spec='${libname}${release}${shared_ext}$major'
12270       need_lib_prefix=no
12271       need_version=no
12272       ;;
12273   esac
12274   shlibpath_var=LD_LIBRARY_PATH
12275   case $host_os in
12276   freebsd2*)
12277     shlibpath_overrides_runpath=yes
12278     ;;
12279   freebsd3.[01]* | freebsdelf3.[01]*)
12280     shlibpath_overrides_runpath=yes
12281     hardcode_into_libs=yes
12282     ;;
12283   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12284   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12285     shlibpath_overrides_runpath=no
12286     hardcode_into_libs=yes
12287     ;;
12288   freebsd*) # from 4.6 on
12289     shlibpath_overrides_runpath=yes
12290     hardcode_into_libs=yes
12291     ;;
12292   esac
12293   ;;
12294
12295 gnu*)
12296   version_type=linux
12297   need_lib_prefix=no
12298   need_version=no
12299   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12300   soname_spec='${libname}${release}${shared_ext}$major'
12301   shlibpath_var=LD_LIBRARY_PATH
12302   hardcode_into_libs=yes
12303   ;;
12304
12305 hpux9* | hpux10* | hpux11*)
12306   # Give a soname corresponding to the major version so that dld.sl refuses to
12307   # link against other versions.
12308   version_type=sunos
12309   need_lib_prefix=no
12310   need_version=no
12311   case $host_cpu in
12312   ia64*)
12313     shrext_cmds='.so'
12314     hardcode_into_libs=yes
12315     dynamic_linker="$host_os dld.so"
12316     shlibpath_var=LD_LIBRARY_PATH
12317     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12318     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12319     soname_spec='${libname}${release}${shared_ext}$major'
12320     if test "X$HPUX_IA64_MODE" = X32; then
12321       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12322     else
12323       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12324     fi
12325     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12326     ;;
12327    hppa*64*)
12328      shrext_cmds='.sl'
12329      hardcode_into_libs=yes
12330      dynamic_linker="$host_os dld.sl"
12331      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12332      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12333      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12334      soname_spec='${libname}${release}${shared_ext}$major'
12335      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12336      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12337      ;;
12338    *)
12339     shrext_cmds='.sl'
12340     dynamic_linker="$host_os dld.sl"
12341     shlibpath_var=SHLIB_PATH
12342     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12343     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12344     soname_spec='${libname}${release}${shared_ext}$major'
12345     ;;
12346   esac
12347   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12348   postinstall_cmds='chmod 555 $lib'
12349   ;;
12350
12351 interix3*)
12352   version_type=linux
12353   need_lib_prefix=no
12354   need_version=no
12355   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12356   soname_spec='${libname}${release}${shared_ext}$major'
12357   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12358   shlibpath_var=LD_LIBRARY_PATH
12359   shlibpath_overrides_runpath=no
12360   hardcode_into_libs=yes
12361   ;;
12362
12363 irix5* | irix6* | nonstopux*)
12364   case $host_os in
12365     nonstopux*) version_type=nonstopux ;;
12366     *)
12367         if test "$lt_cv_prog_gnu_ld" = yes; then
12368                 version_type=linux
12369         else
12370                 version_type=irix
12371         fi ;;
12372   esac
12373   need_lib_prefix=no
12374   need_version=no
12375   soname_spec='${libname}${release}${shared_ext}$major'
12376   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12377   case $host_os in
12378   irix5* | nonstopux*)
12379     libsuff= shlibsuff=
12380     ;;
12381   *)
12382     case $LD in # libtool.m4 will add one of these switches to LD
12383     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12384       libsuff= shlibsuff= libmagic=32-bit;;
12385     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12386       libsuff=32 shlibsuff=N32 libmagic=N32;;
12387     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12388       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12389     *) libsuff= shlibsuff= libmagic=never-match;;
12390     esac
12391     ;;
12392   esac
12393   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12394   shlibpath_overrides_runpath=no
12395   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12396   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12397   hardcode_into_libs=yes
12398   ;;
12399
12400 # No shared lib support for Linux oldld, aout, or coff.
12401 linux*oldld* | linux*aout* | linux*coff*)
12402   dynamic_linker=no
12403   ;;
12404
12405 # This must be Linux ELF.
12406 linux*)
12407   version_type=linux
12408   need_lib_prefix=no
12409   need_version=no
12410   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12411   soname_spec='${libname}${release}${shared_ext}$major'
12412   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12413   shlibpath_var=LD_LIBRARY_PATH
12414   shlibpath_overrides_runpath=no
12415   # This implies no fast_install, which is unacceptable.
12416   # Some rework will be needed to allow for fast_install
12417   # before this can be enabled.
12418   hardcode_into_libs=yes
12419
12420   # Append ld.so.conf contents to the search path
12421   if test -f /etc/ld.so.conf; then
12422     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' ' '`
12423     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12424   fi
12425
12426   # We used to test for /lib/ld.so.1 and disable shared libraries on
12427   # powerpc, because MkLinux only supported shared libraries with the
12428   # GNU dynamic linker.  Since this was broken with cross compilers,
12429   # most powerpc-linux boxes support dynamic linking these days and
12430   # people can always --disable-shared, the test was removed, and we
12431   # assume the GNU/Linux dynamic linker is in use.
12432   dynamic_linker='GNU/Linux ld.so'
12433   ;;
12434
12435 knetbsd*-gnu)
12436   version_type=linux
12437   need_lib_prefix=no
12438   need_version=no
12439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12440   soname_spec='${libname}${release}${shared_ext}$major'
12441   shlibpath_var=LD_LIBRARY_PATH
12442   shlibpath_overrides_runpath=no
12443   hardcode_into_libs=yes
12444   dynamic_linker='GNU ld.so'
12445   ;;
12446
12447 netbsd*)
12448   version_type=sunos
12449   need_lib_prefix=no
12450   need_version=no
12451   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12452     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12453     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12454     dynamic_linker='NetBSD (a.out) ld.so'
12455   else
12456     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12457     soname_spec='${libname}${release}${shared_ext}$major'
12458     dynamic_linker='NetBSD ld.elf_so'
12459   fi
12460   shlibpath_var=LD_LIBRARY_PATH
12461   shlibpath_overrides_runpath=yes
12462   hardcode_into_libs=yes
12463   ;;
12464
12465 newsos6)
12466   version_type=linux
12467   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12468   shlibpath_var=LD_LIBRARY_PATH
12469   shlibpath_overrides_runpath=yes
12470   ;;
12471
12472 nto-qnx*)
12473   version_type=linux
12474   need_lib_prefix=no
12475   need_version=no
12476   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12477   soname_spec='${libname}${release}${shared_ext}$major'
12478   shlibpath_var=LD_LIBRARY_PATH
12479   shlibpath_overrides_runpath=yes
12480   ;;
12481
12482 openbsd*)
12483   version_type=sunos
12484   sys_lib_dlsearch_path_spec="/usr/lib"
12485   need_lib_prefix=no
12486   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12487   case $host_os in
12488     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12489     *)                         need_version=no  ;;
12490   esac
12491   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12492   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12493   shlibpath_var=LD_LIBRARY_PATH
12494   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12495     case $host_os in
12496       openbsd2.[89] | openbsd2.[89].*)
12497         shlibpath_overrides_runpath=no
12498         ;;
12499       *)
12500         shlibpath_overrides_runpath=yes
12501         ;;
12502       esac
12503   else
12504     shlibpath_overrides_runpath=yes
12505   fi
12506   ;;
12507
12508 os2*)
12509   libname_spec='$name'
12510   shrext_cmds=".dll"
12511   need_lib_prefix=no
12512   library_names_spec='$libname${shared_ext} $libname.a'
12513   dynamic_linker='OS/2 ld.exe'
12514   shlibpath_var=LIBPATH
12515   ;;
12516
12517 osf3* | osf4* | osf5*)
12518   version_type=osf
12519   need_lib_prefix=no
12520   need_version=no
12521   soname_spec='${libname}${release}${shared_ext}$major'
12522   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12523   shlibpath_var=LD_LIBRARY_PATH
12524   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12525   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12526   ;;
12527
12528 solaris*)
12529   version_type=linux
12530   need_lib_prefix=no
12531   need_version=no
12532   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12533   soname_spec='${libname}${release}${shared_ext}$major'
12534   shlibpath_var=LD_LIBRARY_PATH
12535   shlibpath_overrides_runpath=yes
12536   hardcode_into_libs=yes
12537   # ldd complains unless libraries are executable
12538   postinstall_cmds='chmod +x $lib'
12539   ;;
12540
12541 sunos4*)
12542   version_type=sunos
12543   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12544   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12545   shlibpath_var=LD_LIBRARY_PATH
12546   shlibpath_overrides_runpath=yes
12547   if test "$with_gnu_ld" = yes; then
12548     need_lib_prefix=no
12549   fi
12550   need_version=yes
12551   ;;
12552
12553 sysv4 | sysv4.3*)
12554   version_type=linux
12555   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12556   soname_spec='${libname}${release}${shared_ext}$major'
12557   shlibpath_var=LD_LIBRARY_PATH
12558   case $host_vendor in
12559     sni)
12560       shlibpath_overrides_runpath=no
12561       need_lib_prefix=no
12562       export_dynamic_flag_spec='${wl}-Blargedynsym'
12563       runpath_var=LD_RUN_PATH
12564       ;;
12565     siemens)
12566       need_lib_prefix=no
12567       ;;
12568     motorola)
12569       need_lib_prefix=no
12570       need_version=no
12571       shlibpath_overrides_runpath=no
12572       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12573       ;;
12574   esac
12575   ;;
12576
12577 sysv4*MP*)
12578   if test -d /usr/nec ;then
12579     version_type=linux
12580     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12581     soname_spec='$libname${shared_ext}.$major'
12582     shlibpath_var=LD_LIBRARY_PATH
12583   fi
12584   ;;
12585
12586 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12587   version_type=freebsd-elf
12588   need_lib_prefix=no
12589   need_version=no
12590   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12591   soname_spec='${libname}${release}${shared_ext}$major'
12592   shlibpath_var=LD_LIBRARY_PATH
12593   hardcode_into_libs=yes
12594   if test "$with_gnu_ld" = yes; then
12595     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12596     shlibpath_overrides_runpath=no
12597   else
12598     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12599     shlibpath_overrides_runpath=yes
12600     case $host_os in
12601       sco3.2v5*)
12602         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12603         ;;
12604     esac
12605   fi
12606   sys_lib_dlsearch_path_spec='/usr/lib'
12607   ;;
12608
12609 uts4*)
12610   version_type=linux
12611   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12612   soname_spec='${libname}${release}${shared_ext}$major'
12613   shlibpath_var=LD_LIBRARY_PATH
12614   ;;
12615
12616 *)
12617   dynamic_linker=no
12618   ;;
12619 esac
12620 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12621 echo "${ECHO_T}$dynamic_linker" >&6
12622 test "$dynamic_linker" = no && can_build_shared=no
12623
12624 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12625 if test "$GCC" = yes; then
12626   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12627 fi
12628
12629 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12630 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12631 hardcode_action_CXX=
12632 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12633    test -n "$runpath_var_CXX" || \
12634    test "X$hardcode_automatic_CXX" = "Xyes" ; then
12635
12636   # We can hardcode non-existant directories.
12637   if test "$hardcode_direct_CXX" != no &&
12638      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12639      # have to relink, otherwise we might link with an installed library
12640      # when we should be linking with a yet-to-be-installed one
12641      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12642      test "$hardcode_minus_L_CXX" != no; then
12643     # Linking always hardcodes the temporary library directory.
12644     hardcode_action_CXX=relink
12645   else
12646     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12647     hardcode_action_CXX=immediate
12648   fi
12649 else
12650   # We cannot hardcode anything, or else we can only hardcode existing
12651   # directories.
12652   hardcode_action_CXX=unsupported
12653 fi
12654 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12655 echo "${ECHO_T}$hardcode_action_CXX" >&6
12656
12657 if test "$hardcode_action_CXX" = relink; then
12658   # Fast installation is not supported
12659   enable_fast_install=no
12660 elif test "$shlibpath_overrides_runpath" = yes ||
12661      test "$enable_shared" = no; then
12662   # Fast installation is not necessary
12663   enable_fast_install=needless
12664 fi
12665
12666
12667 # The else clause should only fire when bootstrapping the
12668 # libtool distribution, otherwise you forgot to ship ltmain.sh
12669 # with your package, and you will get complaints that there are
12670 # no rules to generate ltmain.sh.
12671 if test -f "$ltmain"; then
12672   # See if we are running on zsh, and set the options which allow our commands through
12673   # without removal of \ escapes.
12674   if test -n "${ZSH_VERSION+set}" ; then
12675     setopt NO_GLOB_SUBST
12676   fi
12677   # Now quote all the things that may contain metacharacters while being
12678   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12679   # variables and quote the copies for generation of the libtool script.
12680   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12681     SED SHELL STRIP \
12682     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12683     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12684     deplibs_check_method reload_flag reload_cmds need_locks \
12685     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12686     lt_cv_sys_global_symbol_to_c_name_address \
12687     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12688     old_postinstall_cmds old_postuninstall_cmds \
12689     compiler_CXX \
12690     CC_CXX \
12691     LD_CXX \
12692     lt_prog_compiler_wl_CXX \
12693     lt_prog_compiler_pic_CXX \
12694     lt_prog_compiler_static_CXX \
12695     lt_prog_compiler_no_builtin_flag_CXX \
12696     export_dynamic_flag_spec_CXX \
12697     thread_safe_flag_spec_CXX \
12698     whole_archive_flag_spec_CXX \
12699     enable_shared_with_static_runtimes_CXX \
12700     old_archive_cmds_CXX \
12701     old_archive_from_new_cmds_CXX \
12702     predep_objects_CXX \
12703     postdep_objects_CXX \
12704     predeps_CXX \
12705     postdeps_CXX \
12706     compiler_lib_search_path_CXX \
12707     archive_cmds_CXX \
12708     archive_expsym_cmds_CXX \
12709     postinstall_cmds_CXX \
12710     postuninstall_cmds_CXX \
12711     old_archive_from_expsyms_cmds_CXX \
12712     allow_undefined_flag_CXX \
12713     no_undefined_flag_CXX \
12714     export_symbols_cmds_CXX \
12715     hardcode_libdir_flag_spec_CXX \
12716     hardcode_libdir_flag_spec_ld_CXX \
12717     hardcode_libdir_separator_CXX \
12718     hardcode_automatic_CXX \
12719     module_cmds_CXX \
12720     module_expsym_cmds_CXX \
12721     lt_cv_prog_compiler_c_o_CXX \
12722     exclude_expsyms_CXX \
12723     include_expsyms_CXX; do
12724
12725     case $var in
12726     old_archive_cmds_CXX | \
12727     old_archive_from_new_cmds_CXX | \
12728     archive_cmds_CXX | \
12729     archive_expsym_cmds_CXX | \
12730     module_cmds_CXX | \
12731     module_expsym_cmds_CXX | \
12732     old_archive_from_expsyms_cmds_CXX | \
12733     export_symbols_cmds_CXX | \
12734     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12735     postinstall_cmds | postuninstall_cmds | \
12736     old_postinstall_cmds | old_postuninstall_cmds | \
12737     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12738       # Double-quote double-evaled strings.
12739       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12740       ;;
12741     *)
12742       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12743       ;;
12744     esac
12745   done
12746
12747   case $lt_echo in
12748   *'\$0 --fallback-echo"')
12749     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12750     ;;
12751   esac
12752
12753 cfgfile="$ofile"
12754
12755   cat <<__EOF__ >> "$cfgfile"
12756 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12757
12758 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12759
12760 # Shell to use when invoking shell scripts.
12761 SHELL=$lt_SHELL
12762
12763 # Whether or not to build shared libraries.
12764 build_libtool_libs=$enable_shared
12765
12766 # Whether or not to build static libraries.
12767 build_old_libs=$enable_static
12768
12769 # Whether or not to add -lc for building shared libraries.
12770 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12771
12772 # Whether or not to disallow shared libs when runtime libs are static
12773 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12774
12775 # Whether or not to optimize for fast installation.
12776 fast_install=$enable_fast_install
12777
12778 # The host system.
12779 host_alias=$host_alias
12780 host=$host
12781 host_os=$host_os
12782
12783 # The build system.
12784 build_alias=$build_alias
12785 build=$build
12786 build_os=$build_os
12787
12788 # An echo program that does not interpret backslashes.
12789 echo=$lt_echo
12790
12791 # The archiver.
12792 AR=$lt_AR
12793 AR_FLAGS=$lt_AR_FLAGS
12794
12795 # A C compiler.
12796 LTCC=$lt_LTCC
12797
12798 # LTCC compiler flags.
12799 LTCFLAGS=$lt_LTCFLAGS
12800
12801 # A language-specific compiler.
12802 CC=$lt_compiler_CXX
12803
12804 # Is the compiler the GNU C compiler?
12805 with_gcc=$GCC_CXX
12806
12807 # An ERE matcher.
12808 EGREP=$lt_EGREP
12809
12810 # The linker used to build libraries.
12811 LD=$lt_LD_CXX
12812
12813 # Whether we need hard or soft links.
12814 LN_S=$lt_LN_S
12815
12816 # A BSD-compatible nm program.
12817 NM=$lt_NM
12818
12819 # A symbol stripping program
12820 STRIP=$lt_STRIP
12821
12822 # Used to examine libraries when file_magic_cmd begins "file"
12823 MAGIC_CMD=$MAGIC_CMD
12824
12825 # Used on cygwin: DLL creation program.
12826 DLLTOOL="$DLLTOOL"
12827
12828 # Used on cygwin: object dumper.
12829 OBJDUMP="$OBJDUMP"
12830
12831 # Used on cygwin: assembler.
12832 AS="$AS"
12833
12834 # The name of the directory that contains temporary libtool files.
12835 objdir=$objdir
12836
12837 # How to create reloadable object files.
12838 reload_flag=$lt_reload_flag
12839 reload_cmds=$lt_reload_cmds
12840
12841 # How to pass a linker flag through the compiler.
12842 wl=$lt_lt_prog_compiler_wl_CXX
12843
12844 # Object file suffix (normally "o").
12845 objext="$ac_objext"
12846
12847 # Old archive suffix (normally "a").
12848 libext="$libext"
12849
12850 # Shared library suffix (normally ".so").
12851 shrext_cmds='$shrext_cmds'
12852
12853 # Executable file suffix (normally "").
12854 exeext="$exeext"
12855
12856 # Additional compiler flags for building library objects.
12857 pic_flag=$lt_lt_prog_compiler_pic_CXX
12858 pic_mode=$pic_mode
12859
12860 # What is the maximum length of a command?
12861 max_cmd_len=$lt_cv_sys_max_cmd_len
12862
12863 # Does compiler simultaneously support -c and -o options?
12864 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12865
12866 # Must we lock files when doing compilation?
12867 need_locks=$lt_need_locks
12868
12869 # Do we need the lib prefix for modules?
12870 need_lib_prefix=$need_lib_prefix
12871
12872 # Do we need a version for libraries?
12873 need_version=$need_version
12874
12875 # Whether dlopen is supported.
12876 dlopen_support=$enable_dlopen
12877
12878 # Whether dlopen of programs is supported.
12879 dlopen_self=$enable_dlopen_self
12880
12881 # Whether dlopen of statically linked programs is supported.
12882 dlopen_self_static=$enable_dlopen_self_static
12883
12884 # Compiler flag to prevent dynamic linking.
12885 link_static_flag=$lt_lt_prog_compiler_static_CXX
12886
12887 # Compiler flag to turn off builtin functions.
12888 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12889
12890 # Compiler flag to allow reflexive dlopens.
12891 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12892
12893 # Compiler flag to generate shared objects directly from archives.
12894 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12895
12896 # Compiler flag to generate thread-safe objects.
12897 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12898
12899 # Library versioning type.
12900 version_type=$version_type
12901
12902 # Format of library name prefix.
12903 libname_spec=$lt_libname_spec
12904
12905 # List of archive names.  First name is the real one, the rest are links.
12906 # The last name is the one that the linker finds with -lNAME.
12907 library_names_spec=$lt_library_names_spec
12908
12909 # The coded name of the library, if different from the real name.
12910 soname_spec=$lt_soname_spec
12911
12912 # Commands used to build and install an old-style archive.
12913 RANLIB=$lt_RANLIB
12914 old_archive_cmds=$lt_old_archive_cmds_CXX
12915 old_postinstall_cmds=$lt_old_postinstall_cmds
12916 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12917
12918 # Create an old-style archive from a shared archive.
12919 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12920
12921 # Create a temporary old-style archive to link instead of a shared archive.
12922 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12923
12924 # Commands used to build and install a shared archive.
12925 archive_cmds=$lt_archive_cmds_CXX
12926 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12927 postinstall_cmds=$lt_postinstall_cmds
12928 postuninstall_cmds=$lt_postuninstall_cmds
12929
12930 # Commands used to build a loadable module (assumed same as above if empty)
12931 module_cmds=$lt_module_cmds_CXX
12932 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12933
12934 # Commands to strip libraries.
12935 old_striplib=$lt_old_striplib
12936 striplib=$lt_striplib
12937
12938 # Dependencies to place before the objects being linked to create a
12939 # shared library.
12940 predep_objects=$lt_predep_objects_CXX
12941
12942 # Dependencies to place after the objects being linked to create a
12943 # shared library.
12944 postdep_objects=$lt_postdep_objects_CXX
12945
12946 # Dependencies to place before the objects being linked to create a
12947 # shared library.
12948 predeps=$lt_predeps_CXX
12949
12950 # Dependencies to place after the objects being linked to create a
12951 # shared library.
12952 postdeps=$lt_postdeps_CXX
12953
12954 # The library search path used internally by the compiler when linking
12955 # a shared library.
12956 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12957
12958 # Method to check whether dependent libraries are shared objects.
12959 deplibs_check_method=$lt_deplibs_check_method
12960
12961 # Command to use when deplibs_check_method == file_magic.
12962 file_magic_cmd=$lt_file_magic_cmd
12963
12964 # Flag that allows shared libraries with undefined symbols to be built.
12965 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12966
12967 # Flag that forces no undefined symbols.
12968 no_undefined_flag=$lt_no_undefined_flag_CXX
12969
12970 # Commands used to finish a libtool library installation in a directory.
12971 finish_cmds=$lt_finish_cmds
12972
12973 # Same as above, but a single script fragment to be evaled but not shown.
12974 finish_eval=$lt_finish_eval
12975
12976 # Take the output of nm and produce a listing of raw symbols and C names.
12977 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12978
12979 # Transform the output of nm in a proper C declaration
12980 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12981
12982 # Transform the output of nm in a C name address pair
12983 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12984
12985 # This is the shared library runtime path variable.
12986 runpath_var=$runpath_var
12987
12988 # This is the shared library path variable.
12989 shlibpath_var=$shlibpath_var
12990
12991 # Is shlibpath searched before the hard-coded library search path?
12992 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12993
12994 # How to hardcode a shared library path into an executable.
12995 hardcode_action=$hardcode_action_CXX
12996
12997 # Whether we should hardcode library paths into libraries.
12998 hardcode_into_libs=$hardcode_into_libs
12999
13000 # Flag to hardcode \$libdir into a binary during linking.
13001 # This must work even if \$libdir does not exist.
13002 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13003
13004 # If ld is used when linking, flag to hardcode \$libdir into
13005 # a binary during linking. This must work even if \$libdir does
13006 # not exist.
13007 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13008
13009 # Whether we need a single -rpath flag with a separated argument.
13010 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13011
13012 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13013 # resulting binary.
13014 hardcode_direct=$hardcode_direct_CXX
13015
13016 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13017 # resulting binary.
13018 hardcode_minus_L=$hardcode_minus_L_CXX
13019
13020 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13021 # the resulting binary.
13022 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13023
13024 # Set to yes if building a shared library automatically hardcodes DIR into the library
13025 # and all subsequent libraries and executables linked against it.
13026 hardcode_automatic=$hardcode_automatic_CXX
13027
13028 # Variables whose values should be saved in libtool wrapper scripts and
13029 # restored at relink time.
13030 variables_saved_for_relink="$variables_saved_for_relink"
13031
13032 # Whether libtool must link a program against all its dependency libraries.
13033 link_all_deplibs=$link_all_deplibs_CXX
13034
13035 # Compile-time system search path for libraries
13036 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13037
13038 # Run-time system search path for libraries
13039 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13040
13041 # Fix the shell variable \$srcfile for the compiler.
13042 fix_srcfile_path="$fix_srcfile_path_CXX"
13043
13044 # Set to yes if exported symbols are required.
13045 always_export_symbols=$always_export_symbols_CXX
13046
13047 # The commands to list exported symbols.
13048 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13049
13050 # The commands to extract the exported symbol list from a shared archive.
13051 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13052
13053 # Symbols that should not be listed in the preloaded symbols.
13054 exclude_expsyms=$lt_exclude_expsyms_CXX
13055
13056 # Symbols that must always be exported.
13057 include_expsyms=$lt_include_expsyms_CXX
13058
13059 # ### END LIBTOOL TAG CONFIG: $tagname
13060
13061 __EOF__
13062
13063
13064 else
13065   # If there is no Makefile yet, we rely on a make rule to execute
13066   # `config.status --recheck' to rerun these tests and create the
13067   # libtool script then.
13068   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13069   if test -f "$ltmain_in"; then
13070     test -f Makefile && make "$ltmain"
13071   fi
13072 fi
13073
13074
13075 ac_ext=c
13076 ac_cpp='$CPP $CPPFLAGS'
13077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13080
13081 CC=$lt_save_CC
13082 LDCXX=$LD
13083 LD=$lt_save_LD
13084 GCC=$lt_save_GCC
13085 with_gnu_ldcxx=$with_gnu_ld
13086 with_gnu_ld=$lt_save_with_gnu_ld
13087 lt_cv_path_LDCXX=$lt_cv_path_LD
13088 lt_cv_path_LD=$lt_save_path_LD
13089 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13090 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13091
13092         else
13093           tagname=""
13094         fi
13095         ;;
13096
13097       F77)
13098         if test -n "$F77" && test "X$F77" != "Xno"; then
13099
13100 ac_ext=f
13101 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13102 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13103 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13104
13105
13106 archive_cmds_need_lc_F77=no
13107 allow_undefined_flag_F77=
13108 always_export_symbols_F77=no
13109 archive_expsym_cmds_F77=
13110 export_dynamic_flag_spec_F77=
13111 hardcode_direct_F77=no
13112 hardcode_libdir_flag_spec_F77=
13113 hardcode_libdir_flag_spec_ld_F77=
13114 hardcode_libdir_separator_F77=
13115 hardcode_minus_L_F77=no
13116 hardcode_automatic_F77=no
13117 module_cmds_F77=
13118 module_expsym_cmds_F77=
13119 link_all_deplibs_F77=unknown
13120 old_archive_cmds_F77=$old_archive_cmds
13121 no_undefined_flag_F77=
13122 whole_archive_flag_spec_F77=
13123 enable_shared_with_static_runtimes_F77=no
13124
13125 # Source file extension for f77 test sources.
13126 ac_ext=f
13127
13128 # Object file extension for compiled f77 test sources.
13129 objext=o
13130 objext_F77=$objext
13131
13132 # Code to be used in simple compile tests
13133 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13134
13135 # Code to be used in simple link tests
13136 lt_simple_link_test_code="      program t\n      end\n"
13137
13138 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13139
13140 # If no C compiler was specified, use CC.
13141 LTCC=${LTCC-"$CC"}
13142
13143 # If no C compiler flags were specified, use CFLAGS.
13144 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13145
13146 # Allow CC to be a program name with arguments.
13147 compiler=$CC
13148
13149
13150 # save warnings/boilerplate of simple test code
13151 ac_outfile=conftest.$ac_objext
13152 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13153 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13154 _lt_compiler_boilerplate=`cat conftest.err`
13155 $rm conftest*
13156
13157 ac_outfile=conftest.$ac_objext
13158 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13159 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13160 _lt_linker_boilerplate=`cat conftest.err`
13161 $rm conftest*
13162
13163
13164 # Allow CC to be a program name with arguments.
13165 lt_save_CC="$CC"
13166 CC=${F77-"f77"}
13167 compiler=$CC
13168 compiler_F77=$CC
13169 for cc_temp in $compiler""; do
13170   case $cc_temp in
13171     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13172     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13173     \-*) ;;
13174     *) break;;
13175   esac
13176 done
13177 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13178
13179
13180 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13181 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13182 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13183 echo "${ECHO_T}$can_build_shared" >&6
13184
13185 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13186 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13187 test "$can_build_shared" = "no" && enable_shared=no
13188
13189 # On AIX, shared libraries and static libraries use the same namespace, and
13190 # are all built from PIC.
13191 case $host_os in
13192 aix3*)
13193   test "$enable_shared" = yes && enable_static=no
13194   if test -n "$RANLIB"; then
13195     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13196     postinstall_cmds='$RANLIB $lib'
13197   fi
13198   ;;
13199 aix4* | aix5*)
13200   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13201     test "$enable_shared" = yes && enable_static=no
13202   fi
13203   ;;
13204 esac
13205 echo "$as_me:$LINENO: result: $enable_shared" >&5
13206 echo "${ECHO_T}$enable_shared" >&6
13207
13208 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13209 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13210 # Make sure either enable_shared or enable_static is yes.
13211 test "$enable_shared" = yes || enable_static=yes
13212 echo "$as_me:$LINENO: result: $enable_static" >&5
13213 echo "${ECHO_T}$enable_static" >&6
13214
13215 GCC_F77="$G77"
13216 LD_F77="$LD"
13217
13218 lt_prog_compiler_wl_F77=
13219 lt_prog_compiler_pic_F77=
13220 lt_prog_compiler_static_F77=
13221
13222 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13223 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13224
13225   if test "$GCC" = yes; then
13226     lt_prog_compiler_wl_F77='-Wl,'
13227     lt_prog_compiler_static_F77='-static'
13228
13229     case $host_os in
13230       aix*)
13231       # All AIX code is PIC.
13232       if test "$host_cpu" = ia64; then
13233         # AIX 5 now supports IA64 processor
13234         lt_prog_compiler_static_F77='-Bstatic'
13235       fi
13236       ;;
13237
13238     amigaos*)
13239       # FIXME: we need at least 68020 code to build shared libraries, but
13240       # adding the `-m68020' flag to GCC prevents building anything better,
13241       # like `-m68040'.
13242       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13243       ;;
13244
13245     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13246       # PIC is the default for these OSes.
13247       ;;
13248
13249     mingw* | pw32* | os2*)
13250       # This hack is so that the source file can tell whether it is being
13251       # built for inclusion in a dll (and should export symbols for example).
13252       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13253       ;;
13254
13255     darwin* | rhapsody*)
13256       # PIC is the default on this platform
13257       # Common symbols not allowed in MH_DYLIB files
13258       lt_prog_compiler_pic_F77='-fno-common'
13259       ;;
13260
13261     interix3*)
13262       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13263       # Instead, we relocate shared libraries at runtime.
13264       ;;
13265
13266     msdosdjgpp*)
13267       # Just because we use GCC doesn't mean we suddenly get shared libraries
13268       # on systems that don't support them.
13269       lt_prog_compiler_can_build_shared_F77=no
13270       enable_shared=no
13271       ;;
13272
13273     sysv4*MP*)
13274       if test -d /usr/nec; then
13275         lt_prog_compiler_pic_F77=-Kconform_pic
13276       fi
13277       ;;
13278
13279     hpux*)
13280       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13281       # not for PA HP-UX.
13282       case $host_cpu in
13283       hppa*64*|ia64*)
13284         # +Z the default
13285         ;;
13286       *)
13287         lt_prog_compiler_pic_F77='-fPIC'
13288         ;;
13289       esac
13290       ;;
13291
13292     *)
13293       lt_prog_compiler_pic_F77='-fPIC'
13294       ;;
13295     esac
13296   else
13297     # PORTME Check for flag to pass linker flags through the system compiler.
13298     case $host_os in
13299     aix*)
13300       lt_prog_compiler_wl_F77='-Wl,'
13301       if test "$host_cpu" = ia64; then
13302         # AIX 5 now supports IA64 processor
13303         lt_prog_compiler_static_F77='-Bstatic'
13304       else
13305         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13306       fi
13307       ;;
13308       darwin*)
13309         # PIC is the default on this platform
13310         # Common symbols not allowed in MH_DYLIB files
13311        case $cc_basename in
13312          xlc*)
13313          lt_prog_compiler_pic_F77='-qnocommon'
13314          lt_prog_compiler_wl_F77='-Wl,'
13315          ;;
13316        esac
13317        ;;
13318
13319     mingw* | pw32* | os2*)
13320       # This hack is so that the source file can tell whether it is being
13321       # built for inclusion in a dll (and should export symbols for example).
13322       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13323       ;;
13324
13325     hpux9* | hpux10* | hpux11*)
13326       lt_prog_compiler_wl_F77='-Wl,'
13327       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13328       # not for PA HP-UX.
13329       case $host_cpu in
13330       hppa*64*|ia64*)
13331         # +Z the default
13332         ;;
13333       *)
13334         lt_prog_compiler_pic_F77='+Z'
13335         ;;
13336       esac
13337       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13338       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13339       ;;
13340
13341     irix5* | irix6* | nonstopux*)
13342       lt_prog_compiler_wl_F77='-Wl,'
13343       # PIC (with -KPIC) is the default.
13344       lt_prog_compiler_static_F77='-non_shared'
13345       ;;
13346
13347     newsos6)
13348       lt_prog_compiler_pic_F77='-KPIC'
13349       lt_prog_compiler_static_F77='-Bstatic'
13350       ;;
13351
13352     linux*)
13353       case $cc_basename in
13354       icc* | ecc*)
13355         lt_prog_compiler_wl_F77='-Wl,'
13356         lt_prog_compiler_pic_F77='-KPIC'
13357         lt_prog_compiler_static_F77='-static'
13358         ;;
13359       pgcc* | pgf77* | pgf90* | pgf95*)
13360         # Portland Group compilers (*not* the Pentium gcc compiler,
13361         # which looks to be a dead project)
13362         lt_prog_compiler_wl_F77='-Wl,'
13363         lt_prog_compiler_pic_F77='-fpic'
13364         lt_prog_compiler_static_F77='-Bstatic'
13365         ;;
13366       ccc*)
13367         lt_prog_compiler_wl_F77='-Wl,'
13368         # All Alpha code is PIC.
13369         lt_prog_compiler_static_F77='-non_shared'
13370         ;;
13371       esac
13372       ;;
13373
13374     osf3* | osf4* | osf5*)
13375       lt_prog_compiler_wl_F77='-Wl,'
13376       # All OSF/1 code is PIC.
13377       lt_prog_compiler_static_F77='-non_shared'
13378       ;;
13379
13380     solaris*)
13381       lt_prog_compiler_pic_F77='-KPIC'
13382       lt_prog_compiler_static_F77='-Bstatic'
13383       case $cc_basename in
13384       f77* | f90* | f95*)
13385         lt_prog_compiler_wl_F77='-Qoption ld ';;
13386       *)
13387         lt_prog_compiler_wl_F77='-Wl,';;
13388       esac
13389       ;;
13390
13391     sunos4*)
13392       lt_prog_compiler_wl_F77='-Qoption ld '
13393       lt_prog_compiler_pic_F77='-PIC'
13394       lt_prog_compiler_static_F77='-Bstatic'
13395       ;;
13396
13397     sysv4 | sysv4.2uw2* | sysv4.3*)
13398       lt_prog_compiler_wl_F77='-Wl,'
13399       lt_prog_compiler_pic_F77='-KPIC'
13400       lt_prog_compiler_static_F77='-Bstatic'
13401       ;;
13402
13403     sysv4*MP*)
13404       if test -d /usr/nec ;then
13405         lt_prog_compiler_pic_F77='-Kconform_pic'
13406         lt_prog_compiler_static_F77='-Bstatic'
13407       fi
13408       ;;
13409
13410     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13411       lt_prog_compiler_wl_F77='-Wl,'
13412       lt_prog_compiler_pic_F77='-KPIC'
13413       lt_prog_compiler_static_F77='-Bstatic'
13414       ;;
13415
13416     unicos*)
13417       lt_prog_compiler_wl_F77='-Wl,'
13418       lt_prog_compiler_can_build_shared_F77=no
13419       ;;
13420
13421     uts4*)
13422       lt_prog_compiler_pic_F77='-pic'
13423       lt_prog_compiler_static_F77='-Bstatic'
13424       ;;
13425
13426     *)
13427       lt_prog_compiler_can_build_shared_F77=no
13428       ;;
13429     esac
13430   fi
13431
13432 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13433 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13434
13435 #
13436 # Check to make sure the PIC flag actually works.
13437 #
13438 if test -n "$lt_prog_compiler_pic_F77"; then
13439
13440 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13441 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13442 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13443   echo $ECHO_N "(cached) $ECHO_C" >&6
13444 else
13445   lt_prog_compiler_pic_works_F77=no
13446   ac_outfile=conftest.$ac_objext
13447    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13448    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13449    # Insert the option either (1) after the last *FLAGS variable, or
13450    # (2) before a word containing "conftest.", or (3) at the end.
13451    # Note that $ac_compile itself does not contain backslashes and begins
13452    # with a dollar sign (not a hyphen), so the echo should work correctly.
13453    # The option is referenced via a variable to avoid confusing sed.
13454    lt_compile=`echo "$ac_compile" | $SED \
13455    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13456    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13457    -e 's:$: $lt_compiler_flag:'`
13458    (eval echo "\"\$as_me:13458: $lt_compile\"" >&5)
13459    (eval "$lt_compile" 2>conftest.err)
13460    ac_status=$?
13461    cat conftest.err >&5
13462    echo "$as_me:13462: \$? = $ac_status" >&5
13463    if (exit $ac_status) && test -s "$ac_outfile"; then
13464      # The compiler can only warn and ignore the option if not recognized
13465      # So say no if there are warnings other than the usual output.
13466      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13467      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13468      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13469        lt_prog_compiler_pic_works_F77=yes
13470      fi
13471    fi
13472    $rm conftest*
13473
13474 fi
13475 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13476 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13477
13478 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13479     case $lt_prog_compiler_pic_F77 in
13480      "" | " "*) ;;
13481      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13482      esac
13483 else
13484     lt_prog_compiler_pic_F77=
13485      lt_prog_compiler_can_build_shared_F77=no
13486 fi
13487
13488 fi
13489 case $host_os in
13490   # For platforms which do not support PIC, -DPIC is meaningless:
13491   *djgpp*)
13492     lt_prog_compiler_pic_F77=
13493     ;;
13494   *)
13495     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13496     ;;
13497 esac
13498
13499 #
13500 # Check to make sure the static flag actually works.
13501 #
13502 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13503 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13504 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13505 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13506   echo $ECHO_N "(cached) $ECHO_C" >&6
13507 else
13508   lt_prog_compiler_static_works_F77=no
13509    save_LDFLAGS="$LDFLAGS"
13510    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13511    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13512    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13513      # The linker can only warn and ignore the option if not recognized
13514      # So say no if there are warnings
13515      if test -s conftest.err; then
13516        # Append any errors to the config.log.
13517        cat conftest.err 1>&5
13518        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13519        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13520        if diff conftest.exp conftest.er2 >/dev/null; then
13521          lt_prog_compiler_static_works_F77=yes
13522        fi
13523      else
13524        lt_prog_compiler_static_works_F77=yes
13525      fi
13526    fi
13527    $rm conftest*
13528    LDFLAGS="$save_LDFLAGS"
13529
13530 fi
13531 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13532 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13533
13534 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13535     :
13536 else
13537     lt_prog_compiler_static_F77=
13538 fi
13539
13540
13541 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13542 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13543 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13544   echo $ECHO_N "(cached) $ECHO_C" >&6
13545 else
13546   lt_cv_prog_compiler_c_o_F77=no
13547    $rm -r conftest 2>/dev/null
13548    mkdir conftest
13549    cd conftest
13550    mkdir out
13551    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13552
13553    lt_compiler_flag="-o out/conftest2.$ac_objext"
13554    # Insert the option either (1) after the last *FLAGS variable, or
13555    # (2) before a word containing "conftest.", or (3) at the end.
13556    # Note that $ac_compile itself does not contain backslashes and begins
13557    # with a dollar sign (not a hyphen), so the echo should work correctly.
13558    lt_compile=`echo "$ac_compile" | $SED \
13559    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13560    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13561    -e 's:$: $lt_compiler_flag:'`
13562    (eval echo "\"\$as_me:13562: $lt_compile\"" >&5)
13563    (eval "$lt_compile" 2>out/conftest.err)
13564    ac_status=$?
13565    cat out/conftest.err >&5
13566    echo "$as_me:13566: \$? = $ac_status" >&5
13567    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13568    then
13569      # The compiler can only warn and ignore the option if not recognized
13570      # So say no if there are warnings
13571      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13572      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13573      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13574        lt_cv_prog_compiler_c_o_F77=yes
13575      fi
13576    fi
13577    chmod u+w . 2>&5
13578    $rm conftest*
13579    # SGI C++ compiler will create directory out/ii_files/ for
13580    # template instantiation
13581    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13582    $rm out/* && rmdir out
13583    cd ..
13584    rmdir conftest
13585    $rm conftest*
13586
13587 fi
13588 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13589 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13590
13591
13592 hard_links="nottested"
13593 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13594   # do not overwrite the value of need_locks provided by the user
13595   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13596 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13597   hard_links=yes
13598   $rm conftest*
13599   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13600   touch conftest.a
13601   ln conftest.a conftest.b 2>&5 || hard_links=no
13602   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13603   echo "$as_me:$LINENO: result: $hard_links" >&5
13604 echo "${ECHO_T}$hard_links" >&6
13605   if test "$hard_links" = no; then
13606     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13607 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13608     need_locks=warn
13609   fi
13610 else
13611   need_locks=no
13612 fi
13613
13614 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13615 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13616
13617   runpath_var=
13618   allow_undefined_flag_F77=
13619   enable_shared_with_static_runtimes_F77=no
13620   archive_cmds_F77=
13621   archive_expsym_cmds_F77=
13622   old_archive_From_new_cmds_F77=
13623   old_archive_from_expsyms_cmds_F77=
13624   export_dynamic_flag_spec_F77=
13625   whole_archive_flag_spec_F77=
13626   thread_safe_flag_spec_F77=
13627   hardcode_libdir_flag_spec_F77=
13628   hardcode_libdir_flag_spec_ld_F77=
13629   hardcode_libdir_separator_F77=
13630   hardcode_direct_F77=no
13631   hardcode_minus_L_F77=no
13632   hardcode_shlibpath_var_F77=unsupported
13633   link_all_deplibs_F77=unknown
13634   hardcode_automatic_F77=no
13635   module_cmds_F77=
13636   module_expsym_cmds_F77=
13637   always_export_symbols_F77=no
13638   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13639   # include_expsyms should be a list of space-separated symbols to be *always*
13640   # included in the symbol list
13641   include_expsyms_F77=
13642   # exclude_expsyms can be an extended regexp of symbols to exclude
13643   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13644   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13645   # as well as any symbol that contains `d'.
13646   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13647   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13648   # platforms (ab)use it in PIC code, but their linkers get confused if
13649   # the symbol is explicitly referenced.  Since portable code cannot
13650   # rely on this symbol name, it's probably fine to never include it in
13651   # preloaded symbol tables.
13652   extract_expsyms_cmds=
13653   # Just being paranoid about ensuring that cc_basename is set.
13654   for cc_temp in $compiler""; do
13655   case $cc_temp in
13656     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13657     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13658     \-*) ;;
13659     *) break;;
13660   esac
13661 done
13662 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13663
13664   case $host_os in
13665   cygwin* | mingw* | pw32*)
13666     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13667     # When not using gcc, we currently assume that we are using
13668     # Microsoft Visual C++.
13669     if test "$GCC" != yes; then
13670       with_gnu_ld=no
13671     fi
13672     ;;
13673   interix*)
13674     # we just hope/assume this is gcc and not c89 (= MSVC++)
13675     with_gnu_ld=yes
13676     ;;
13677   openbsd*)
13678     with_gnu_ld=no
13679     ;;
13680   esac
13681
13682   ld_shlibs_F77=yes
13683   if test "$with_gnu_ld" = yes; then
13684     # If archive_cmds runs LD, not CC, wlarc should be empty
13685     wlarc='${wl}'
13686
13687     # Set some defaults for GNU ld with shared library support. These
13688     # are reset later if shared libraries are not supported. Putting them
13689     # here allows them to be overridden if necessary.
13690     runpath_var=LD_RUN_PATH
13691     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13692     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13693     # ancient GNU ld didn't support --whole-archive et. al.
13694     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13695         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13696       else
13697         whole_archive_flag_spec_F77=
13698     fi
13699     supports_anon_versioning=no
13700     case `$LD -v 2>/dev/null` in
13701       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13702       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13703       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13704       *\ 2.11.*) ;; # other 2.11 versions
13705       *) supports_anon_versioning=yes ;;
13706     esac
13707
13708     # See if GNU ld supports shared libraries.
13709     case $host_os in
13710     aix3* | aix4* | aix5*)
13711       # On AIX/PPC, the GNU linker is very broken
13712       if test "$host_cpu" != ia64; then
13713         ld_shlibs_F77=no
13714         cat <<EOF 1>&2
13715
13716 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13717 *** to be unable to reliably create shared libraries on AIX.
13718 *** Therefore, libtool is disabling shared libraries support.  If you
13719 *** really care for shared libraries, you may want to modify your PATH
13720 *** so that a non-GNU linker is found, and then restart.
13721
13722 EOF
13723       fi
13724       ;;
13725
13726     amigaos*)
13727       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)'
13728       hardcode_libdir_flag_spec_F77='-L$libdir'
13729       hardcode_minus_L_F77=yes
13730
13731       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13732       # that the semantics of dynamic libraries on AmigaOS, at least up
13733       # to version 4, is to share data among multiple programs linked
13734       # with the same dynamic library.  Since this doesn't match the
13735       # behavior of shared libraries on other platforms, we can't use
13736       # them.
13737       ld_shlibs_F77=no
13738       ;;
13739
13740     beos*)
13741       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13742         allow_undefined_flag_F77=unsupported
13743         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13744         # support --undefined.  This deserves some investigation.  FIXME
13745         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13746       else
13747         ld_shlibs_F77=no
13748       fi
13749       ;;
13750
13751     cygwin* | mingw* | pw32*)
13752       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13753       # as there is no search path for DLLs.
13754       hardcode_libdir_flag_spec_F77='-L$libdir'
13755       allow_undefined_flag_F77=unsupported
13756       always_export_symbols_F77=no
13757       enable_shared_with_static_runtimes_F77=yes
13758       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13759
13760       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13761         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13762         # If the export-symbols file already is a .def file (1st line
13763         # is EXPORTS), use it as is; otherwise, prepend...
13764         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13765           cp $export_symbols $output_objdir/$soname.def;
13766         else
13767           echo EXPORTS > $output_objdir/$soname.def;
13768           cat $export_symbols >> $output_objdir/$soname.def;
13769         fi~
13770         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13771       else
13772         ld_shlibs_F77=no
13773       fi
13774       ;;
13775
13776     interix3*)
13777       hardcode_direct_F77=no
13778       hardcode_shlibpath_var_F77=no
13779       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13780       export_dynamic_flag_spec_F77='${wl}-E'
13781       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13782       # Instead, shared libraries are loaded at an image base (0x10000000 by
13783       # default) and relocated if they conflict, which is a slow very memory
13784       # consuming and fragmenting process.  To avoid this, we pick a random,
13785       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13786       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13787       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'
13788       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'
13789       ;;
13790
13791     linux*)
13792       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13793         tmp_addflag=
13794         case $cc_basename,$host_cpu in
13795         pgcc*)                          # Portland Group C compiler
13796           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'
13797           tmp_addflag=' $pic_flag'
13798           ;;
13799         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
13800           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'
13801           tmp_addflag=' $pic_flag -Mnomain' ;;
13802         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
13803           tmp_addflag=' -i_dynamic' ;;
13804         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13805           tmp_addflag=' -i_dynamic -nofor_main' ;;
13806         ifc* | ifort*)                  # Intel Fortran compiler
13807           tmp_addflag=' -nofor_main' ;;
13808         esac
13809         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13810
13811         if test $supports_anon_versioning = yes; then
13812           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13813   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13814   $echo "local: *; };" >> $output_objdir/$libname.ver~
13815           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13816         fi
13817       else
13818         ld_shlibs_F77=no
13819       fi
13820       ;;
13821
13822     netbsd*)
13823       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13824         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13825         wlarc=
13826       else
13827         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13828         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13829       fi
13830       ;;
13831
13832     solaris*)
13833       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13834         ld_shlibs_F77=no
13835         cat <<EOF 1>&2
13836
13837 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13838 *** create shared libraries on Solaris systems.  Therefore, libtool
13839 *** is disabling shared libraries support.  We urge you to upgrade GNU
13840 *** binutils to release 2.9.1 or newer.  Another option is to modify
13841 *** your PATH or compiler configuration so that the native linker is
13842 *** used, and then restart.
13843
13844 EOF
13845       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13846         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13847         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13848       else
13849         ld_shlibs_F77=no
13850       fi
13851       ;;
13852
13853     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13854       case `$LD -v 2>&1` in
13855         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13856         ld_shlibs_F77=no
13857         cat <<_LT_EOF 1>&2
13858
13859 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13860 *** reliably create shared libraries on SCO systems.  Therefore, libtool
13861 *** is disabling shared libraries support.  We urge you to upgrade GNU
13862 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13863 *** your PATH or compiler configuration so that the native linker is
13864 *** used, and then restart.
13865
13866 _LT_EOF
13867         ;;
13868         *)
13869           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13870             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13871             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13872             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13873           else
13874             ld_shlibs_F77=no
13875           fi
13876         ;;
13877       esac
13878       ;;
13879
13880     sunos4*)
13881       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13882       wlarc=
13883       hardcode_direct_F77=yes
13884       hardcode_shlibpath_var_F77=no
13885       ;;
13886
13887     *)
13888       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13889         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13890         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13891       else
13892         ld_shlibs_F77=no
13893       fi
13894       ;;
13895     esac
13896
13897     if test "$ld_shlibs_F77" = no; then
13898       runpath_var=
13899       hardcode_libdir_flag_spec_F77=
13900       export_dynamic_flag_spec_F77=
13901       whole_archive_flag_spec_F77=
13902     fi
13903   else
13904     # PORTME fill in a description of your system's linker (not GNU ld)
13905     case $host_os in
13906     aix3*)
13907       allow_undefined_flag_F77=unsupported
13908       always_export_symbols_F77=yes
13909       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'
13910       # Note: this linker hardcodes the directories in LIBPATH if there
13911       # are no directories specified by -L.
13912       hardcode_minus_L_F77=yes
13913       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13914         # Neither direct hardcoding nor static linking is supported with a
13915         # broken collect2.
13916         hardcode_direct_F77=unsupported
13917       fi
13918       ;;
13919
13920     aix4* | aix5*)
13921       if test "$host_cpu" = ia64; then
13922         # On IA64, the linker does run time linking by default, so we don't
13923         # have to do anything special.
13924         aix_use_runtimelinking=no
13925         exp_sym_flag='-Bexport'
13926         no_entry_flag=""
13927       else
13928         # If we're using GNU nm, then we don't want the "-C" option.
13929         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13930         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13931           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'
13932         else
13933           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'
13934         fi
13935         aix_use_runtimelinking=no
13936
13937         # Test if we are trying to use run time linking or normal
13938         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13939         # need to do runtime linking.
13940         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13941           for ld_flag in $LDFLAGS; do
13942           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13943             aix_use_runtimelinking=yes
13944             break
13945           fi
13946           done
13947           ;;
13948         esac
13949
13950         exp_sym_flag='-bexport'
13951         no_entry_flag='-bnoentry'
13952       fi
13953
13954       # When large executables or shared objects are built, AIX ld can
13955       # have problems creating the table of contents.  If linking a library
13956       # or program results in "error TOC overflow" add -mminimal-toc to
13957       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13958       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13959
13960       archive_cmds_F77=''
13961       hardcode_direct_F77=yes
13962       hardcode_libdir_separator_F77=':'
13963       link_all_deplibs_F77=yes
13964
13965       if test "$GCC" = yes; then
13966         case $host_os in aix4.[012]|aix4.[012].*)
13967         # We only want to do this on AIX 4.2 and lower, the check
13968         # below for broken collect2 doesn't work under 4.3+
13969           collect2name=`${CC} -print-prog-name=collect2`
13970           if test -f "$collect2name" && \
13971            strings "$collect2name" | grep resolve_lib_name >/dev/null
13972           then
13973           # We have reworked collect2
13974           hardcode_direct_F77=yes
13975           else
13976           # We have old collect2
13977           hardcode_direct_F77=unsupported
13978           # It fails to find uninstalled libraries when the uninstalled
13979           # path is not listed in the libpath.  Setting hardcode_minus_L
13980           # to unsupported forces relinking
13981           hardcode_minus_L_F77=yes
13982           hardcode_libdir_flag_spec_F77='-L$libdir'
13983           hardcode_libdir_separator_F77=
13984           fi
13985           ;;
13986         esac
13987         shared_flag='-shared'
13988         if test "$aix_use_runtimelinking" = yes; then
13989           shared_flag="$shared_flag "'${wl}-G'
13990         fi
13991       else
13992         # not using gcc
13993         if test "$host_cpu" = ia64; then
13994         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13995         # chokes on -Wl,-G. The following line is correct:
13996           shared_flag='-G'
13997         else
13998           if test "$aix_use_runtimelinking" = yes; then
13999             shared_flag='${wl}-G'
14000           else
14001             shared_flag='${wl}-bM:SRE'
14002           fi
14003         fi
14004       fi
14005
14006       # It seems that -bexpall does not export symbols beginning with
14007       # underscore (_), so it is better to generate a list of symbols to export.
14008       always_export_symbols_F77=yes
14009       if test "$aix_use_runtimelinking" = yes; then
14010         # Warning - without using the other runtime loading flags (-brtl),
14011         # -berok will link without error, but may produce a broken library.
14012         allow_undefined_flag_F77='-berok'
14013        # Determine the default libpath from the value encoded in an empty executable.
14014        cat >conftest.$ac_ext <<_ACEOF
14015       program main
14016
14017       end
14018 _ACEOF
14019 rm -f conftest.$ac_objext conftest$ac_exeext
14020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14021   (eval $ac_link) 2>conftest.er1
14022   ac_status=$?
14023   grep -v '^ *+' conftest.er1 >conftest.err
14024   rm -f conftest.er1
14025   cat conftest.err >&5
14026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027   (exit $ac_status); } &&
14028          { ac_try='test -z "$ac_f77_werror_flag"
14029                          || test ! -s conftest.err'
14030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14031   (eval $ac_try) 2>&5
14032   ac_status=$?
14033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034   (exit $ac_status); }; } &&
14035          { ac_try='test -s conftest$ac_exeext'
14036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14037   (eval $ac_try) 2>&5
14038   ac_status=$?
14039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040   (exit $ac_status); }; }; then
14041
14042 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14043 }'`
14044 # Check for a 64-bit object if we didn't find anything.
14045 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; }
14046 }'`; fi
14047 else
14048   echo "$as_me: failed program was:" >&5
14049 sed 's/^/| /' conftest.$ac_ext >&5
14050
14051 fi
14052 rm -f conftest.err conftest.$ac_objext \
14053       conftest$ac_exeext conftest.$ac_ext
14054 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14055
14056        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14057         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"
14058        else
14059         if test "$host_cpu" = ia64; then
14060           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14061           allow_undefined_flag_F77="-z nodefs"
14062           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"
14063         else
14064          # Determine the default libpath from the value encoded in an empty executable.
14065          cat >conftest.$ac_ext <<_ACEOF
14066       program main
14067
14068       end
14069 _ACEOF
14070 rm -f conftest.$ac_objext conftest$ac_exeext
14071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14072   (eval $ac_link) 2>conftest.er1
14073   ac_status=$?
14074   grep -v '^ *+' conftest.er1 >conftest.err
14075   rm -f conftest.er1
14076   cat conftest.err >&5
14077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078   (exit $ac_status); } &&
14079          { ac_try='test -z "$ac_f77_werror_flag"
14080                          || test ! -s conftest.err'
14081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14082   (eval $ac_try) 2>&5
14083   ac_status=$?
14084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085   (exit $ac_status); }; } &&
14086          { ac_try='test -s conftest$ac_exeext'
14087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14088   (eval $ac_try) 2>&5
14089   ac_status=$?
14090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091   (exit $ac_status); }; }; then
14092
14093 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14094 }'`
14095 # Check for a 64-bit object if we didn't find anything.
14096 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; }
14097 }'`; fi
14098 else
14099   echo "$as_me: failed program was:" >&5
14100 sed 's/^/| /' conftest.$ac_ext >&5
14101
14102 fi
14103 rm -f conftest.err conftest.$ac_objext \
14104       conftest$ac_exeext conftest.$ac_ext
14105 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14106
14107          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14108           # Warning - without using the other run time loading flags,
14109           # -berok will link without error, but may produce a broken library.
14110           no_undefined_flag_F77=' ${wl}-bernotok'
14111           allow_undefined_flag_F77=' ${wl}-berok'
14112           # Exported symbols can be pulled into shared objects from archives
14113           whole_archive_flag_spec_F77='$convenience'
14114           archive_cmds_need_lc_F77=yes
14115           # This is similar to how AIX traditionally builds its shared libraries.
14116           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'
14117         fi
14118       fi
14119       ;;
14120
14121     amigaos*)
14122       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)'
14123       hardcode_libdir_flag_spec_F77='-L$libdir'
14124       hardcode_minus_L_F77=yes
14125       # see comment about different semantics on the GNU ld section
14126       ld_shlibs_F77=no
14127       ;;
14128
14129     bsdi[45]*)
14130       export_dynamic_flag_spec_F77=-rdynamic
14131       ;;
14132
14133     cygwin* | mingw* | pw32*)
14134       # When not using gcc, we currently assume that we are using
14135       # Microsoft Visual C++.
14136       # hardcode_libdir_flag_spec is actually meaningless, as there is
14137       # no search path for DLLs.
14138       hardcode_libdir_flag_spec_F77=' '
14139       allow_undefined_flag_F77=unsupported
14140       # Tell ltmain to make .lib files, not .a files.
14141       libext=lib
14142       # Tell ltmain to make .dll files, not .so files.
14143       shrext_cmds=".dll"
14144       # FIXME: Setting linknames here is a bad hack.
14145       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14146       # The linker will automatically build a .lib file if we build a DLL.
14147       old_archive_From_new_cmds_F77='true'
14148       # FIXME: Should let the user specify the lib program.
14149       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14150       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14151       enable_shared_with_static_runtimes_F77=yes
14152       ;;
14153
14154     darwin* | rhapsody*)
14155       case $host_os in
14156         rhapsody* | darwin1.[012])
14157          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14158          ;;
14159        *) # Darwin 1.3 on
14160          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14161            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14162          else
14163            case ${MACOSX_DEPLOYMENT_TARGET} in
14164              10.[012])
14165                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14166                ;;
14167              10.*)
14168                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14169                ;;
14170            esac
14171          fi
14172          ;;
14173       esac
14174       archive_cmds_need_lc_F77=no
14175       hardcode_direct_F77=no
14176       hardcode_automatic_F77=yes
14177       hardcode_shlibpath_var_F77=unsupported
14178       whole_archive_flag_spec_F77=''
14179       link_all_deplibs_F77=yes
14180     if test "$GCC" = yes ; then
14181         output_verbose_link_cmd='echo'
14182         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14183       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14184       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14185       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}'
14186       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}'
14187     else
14188       case $cc_basename in
14189         xlc*)
14190          output_verbose_link_cmd='echo'
14191          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14192          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14193           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14194          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}'
14195           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}'
14196           ;;
14197        *)
14198          ld_shlibs_F77=no
14199           ;;
14200       esac
14201     fi
14202       ;;
14203
14204     dgux*)
14205       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14206       hardcode_libdir_flag_spec_F77='-L$libdir'
14207       hardcode_shlibpath_var_F77=no
14208       ;;
14209
14210     freebsd1*)
14211       ld_shlibs_F77=no
14212       ;;
14213
14214     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14215     # support.  Future versions do this automatically, but an explicit c++rt0.o
14216     # does not break anything, and helps significantly (at the cost of a little
14217     # extra space).
14218     freebsd2.2*)
14219       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14220       hardcode_libdir_flag_spec_F77='-R$libdir'
14221       hardcode_direct_F77=yes
14222       hardcode_shlibpath_var_F77=no
14223       ;;
14224
14225     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14226     freebsd2*)
14227       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14228       hardcode_direct_F77=yes
14229       hardcode_minus_L_F77=yes
14230       hardcode_shlibpath_var_F77=no
14231       ;;
14232
14233     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14234     freebsd* | kfreebsd*-gnu | dragonfly*)
14235       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14236       hardcode_libdir_flag_spec_F77='-R$libdir'
14237       hardcode_direct_F77=yes
14238       hardcode_shlibpath_var_F77=no
14239       ;;
14240
14241     hpux9*)
14242       if test "$GCC" = yes; then
14243         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'
14244       else
14245         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'
14246       fi
14247       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14248       hardcode_libdir_separator_F77=:
14249       hardcode_direct_F77=yes
14250
14251       # hardcode_minus_L: Not really in the search PATH,
14252       # but as the default location of the library.
14253       hardcode_minus_L_F77=yes
14254       export_dynamic_flag_spec_F77='${wl}-E'
14255       ;;
14256
14257     hpux10*)
14258       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14259         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14260       else
14261         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14262       fi
14263       if test "$with_gnu_ld" = no; then
14264         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14265         hardcode_libdir_separator_F77=:
14266
14267         hardcode_direct_F77=yes
14268         export_dynamic_flag_spec_F77='${wl}-E'
14269
14270         # hardcode_minus_L: Not really in the search PATH,
14271         # but as the default location of the library.
14272         hardcode_minus_L_F77=yes
14273       fi
14274       ;;
14275
14276     hpux11*)
14277       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14278         case $host_cpu in
14279         hppa*64*)
14280           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14281           ;;
14282         ia64*)
14283           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14284           ;;
14285         *)
14286           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14287           ;;
14288         esac
14289       else
14290         case $host_cpu in
14291         hppa*64*)
14292           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14293           ;;
14294         ia64*)
14295           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14296           ;;
14297         *)
14298           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14299           ;;
14300         esac
14301       fi
14302       if test "$with_gnu_ld" = no; then
14303         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14304         hardcode_libdir_separator_F77=:
14305
14306         case $host_cpu in
14307         hppa*64*|ia64*)
14308           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14309           hardcode_direct_F77=no
14310           hardcode_shlibpath_var_F77=no
14311           ;;
14312         *)
14313           hardcode_direct_F77=yes
14314           export_dynamic_flag_spec_F77='${wl}-E'
14315
14316           # hardcode_minus_L: Not really in the search PATH,
14317           # but as the default location of the library.
14318           hardcode_minus_L_F77=yes
14319           ;;
14320         esac
14321       fi
14322       ;;
14323
14324     irix5* | irix6* | nonstopux*)
14325       if test "$GCC" = yes; then
14326         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'
14327       else
14328         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'
14329         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14330       fi
14331       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14332       hardcode_libdir_separator_F77=:
14333       link_all_deplibs_F77=yes
14334       ;;
14335
14336     netbsd*)
14337       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14338         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14339       else
14340         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14341       fi
14342       hardcode_libdir_flag_spec_F77='-R$libdir'
14343       hardcode_direct_F77=yes
14344       hardcode_shlibpath_var_F77=no
14345       ;;
14346
14347     newsos6)
14348       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14349       hardcode_direct_F77=yes
14350       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14351       hardcode_libdir_separator_F77=:
14352       hardcode_shlibpath_var_F77=no
14353       ;;
14354
14355     openbsd*)
14356       hardcode_direct_F77=yes
14357       hardcode_shlibpath_var_F77=no
14358       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14359         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14360         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14361         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14362         export_dynamic_flag_spec_F77='${wl}-E'
14363       else
14364        case $host_os in
14365          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14366            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14367            hardcode_libdir_flag_spec_F77='-R$libdir'
14368            ;;
14369          *)
14370            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14371            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14372            ;;
14373        esac
14374       fi
14375       ;;
14376
14377     os2*)
14378       hardcode_libdir_flag_spec_F77='-L$libdir'
14379       hardcode_minus_L_F77=yes
14380       allow_undefined_flag_F77=unsupported
14381       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'
14382       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14383       ;;
14384
14385     osf3*)
14386       if test "$GCC" = yes; then
14387         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14388         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'
14389       else
14390         allow_undefined_flag_F77=' -expect_unresolved \*'
14391         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'
14392       fi
14393       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14394       hardcode_libdir_separator_F77=:
14395       ;;
14396
14397     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14398       if test "$GCC" = yes; then
14399         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14400         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'
14401         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14402       else
14403         allow_undefined_flag_F77=' -expect_unresolved \*'
14404         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'
14405         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~
14406         $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'
14407
14408         # Both c and cxx compiler support -rpath directly
14409         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14410       fi
14411       hardcode_libdir_separator_F77=:
14412       ;;
14413
14414     solaris*)
14415       no_undefined_flag_F77=' -z text'
14416       if test "$GCC" = yes; then
14417         wlarc='${wl}'
14418         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14419         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14420           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14421       else
14422         wlarc=''
14423         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14424         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14425         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14426       fi
14427       hardcode_libdir_flag_spec_F77='-R$libdir'
14428       hardcode_shlibpath_var_F77=no
14429       case $host_os in
14430       solaris2.[0-5] | solaris2.[0-5].*) ;;
14431       *)
14432         # The compiler driver will combine linker options so we
14433         # cannot just pass the convience library names through
14434         # without $wl, iff we do not link with $LD.
14435         # Luckily, gcc supports the same syntax we need for Sun Studio.
14436         # Supported since Solaris 2.6 (maybe 2.5.1?)
14437         case $wlarc in
14438         '')
14439           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14440         *)
14441           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' ;;
14442         esac ;;
14443       esac
14444       link_all_deplibs_F77=yes
14445       ;;
14446
14447     sunos4*)
14448       if test "x$host_vendor" = xsequent; then
14449         # Use $CC to link under sequent, because it throws in some extra .o
14450         # files that make .init and .fini sections work.
14451         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14452       else
14453         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14454       fi
14455       hardcode_libdir_flag_spec_F77='-L$libdir'
14456       hardcode_direct_F77=yes
14457       hardcode_minus_L_F77=yes
14458       hardcode_shlibpath_var_F77=no
14459       ;;
14460
14461     sysv4)
14462       case $host_vendor in
14463         sni)
14464           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14465           hardcode_direct_F77=yes # is this really true???
14466         ;;
14467         siemens)
14468           ## LD is ld it makes a PLAMLIB
14469           ## CC just makes a GrossModule.
14470           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14471           reload_cmds_F77='$CC -r -o $output$reload_objs'
14472           hardcode_direct_F77=no
14473         ;;
14474         motorola)
14475           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14476           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14477         ;;
14478       esac
14479       runpath_var='LD_RUN_PATH'
14480       hardcode_shlibpath_var_F77=no
14481       ;;
14482
14483     sysv4.3*)
14484       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14485       hardcode_shlibpath_var_F77=no
14486       export_dynamic_flag_spec_F77='-Bexport'
14487       ;;
14488
14489     sysv4*MP*)
14490       if test -d /usr/nec; then
14491         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14492         hardcode_shlibpath_var_F77=no
14493         runpath_var=LD_RUN_PATH
14494         hardcode_runpath_var=yes
14495         ld_shlibs_F77=yes
14496       fi
14497       ;;
14498
14499     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14500       no_undefined_flag_F77='${wl}-z,text'
14501       archive_cmds_need_lc_F77=no
14502       hardcode_shlibpath_var_F77=no
14503       runpath_var='LD_RUN_PATH'
14504
14505       if test "$GCC" = yes; then
14506         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14507         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14508       else
14509         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14510         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14511       fi
14512       ;;
14513
14514     sysv5* | sco3.2v5* | sco5v6*)
14515       # Note: We can NOT use -z defs as we might desire, because we do not
14516       # link with -lc, and that would cause any symbols used from libc to
14517       # always be unresolved, which means just about no library would
14518       # ever link correctly.  If we're not using GNU ld we use -z text
14519       # though, which does catch some bad symbols but isn't as heavy-handed
14520       # as -z defs.
14521       no_undefined_flag_F77='${wl}-z,text'
14522       allow_undefined_flag_F77='${wl}-z,nodefs'
14523       archive_cmds_need_lc_F77=no
14524       hardcode_shlibpath_var_F77=no
14525       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14526       hardcode_libdir_separator_F77=':'
14527       link_all_deplibs_F77=yes
14528       export_dynamic_flag_spec_F77='${wl}-Bexport'
14529       runpath_var='LD_RUN_PATH'
14530
14531       if test "$GCC" = yes; then
14532         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14533         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14534       else
14535         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14536         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14537       fi
14538       ;;
14539
14540     uts4*)
14541       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14542       hardcode_libdir_flag_spec_F77='-L$libdir'
14543       hardcode_shlibpath_var_F77=no
14544       ;;
14545
14546     *)
14547       ld_shlibs_F77=no
14548       ;;
14549     esac
14550   fi
14551
14552 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14553 echo "${ECHO_T}$ld_shlibs_F77" >&6
14554 test "$ld_shlibs_F77" = no && can_build_shared=no
14555
14556 #
14557 # Do we need to explicitly link libc?
14558 #
14559 case "x$archive_cmds_need_lc_F77" in
14560 x|xyes)
14561   # Assume -lc should be added
14562   archive_cmds_need_lc_F77=yes
14563
14564   if test "$enable_shared" = yes && test "$GCC" = yes; then
14565     case $archive_cmds_F77 in
14566     *'~'*)
14567       # FIXME: we may have to deal with multi-command sequences.
14568       ;;
14569     '$CC '*)
14570       # Test whether the compiler implicitly links with -lc since on some
14571       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14572       # to ld, don't add -lc before -lgcc.
14573       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14574 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14575       $rm conftest*
14576       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14577
14578       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14579   (eval $ac_compile) 2>&5
14580   ac_status=$?
14581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582   (exit $ac_status); } 2>conftest.err; then
14583         soname=conftest
14584         lib=conftest
14585         libobjs=conftest.$ac_objext
14586         deplibs=
14587         wl=$lt_prog_compiler_wl_F77
14588         pic_flag=$lt_prog_compiler_pic_F77
14589         compiler_flags=-v
14590         linker_flags=-v
14591         verstring=
14592         output_objdir=.
14593         libname=conftest
14594         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14595         allow_undefined_flag_F77=
14596         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14597   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14598   ac_status=$?
14599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14600   (exit $ac_status); }
14601         then
14602           archive_cmds_need_lc_F77=no
14603         else
14604           archive_cmds_need_lc_F77=yes
14605         fi
14606         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14607       else
14608         cat conftest.err 1>&5
14609       fi
14610       $rm conftest*
14611       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14612 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14613       ;;
14614     esac
14615   fi
14616   ;;
14617 esac
14618
14619 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14620 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14621 library_names_spec=
14622 libname_spec='lib$name'
14623 soname_spec=
14624 shrext_cmds=".so"
14625 postinstall_cmds=
14626 postuninstall_cmds=
14627 finish_cmds=
14628 finish_eval=
14629 shlibpath_var=
14630 shlibpath_overrides_runpath=unknown
14631 version_type=none
14632 dynamic_linker="$host_os ld.so"
14633 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14634 if test "$GCC" = yes; then
14635   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14636   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14637     # if the path contains ";" then we assume it to be the separator
14638     # otherwise default to the standard path separator (i.e. ":") - it is
14639     # assumed that no part of a normal pathname contains ";" but that should
14640     # okay in the real world where ";" in dirpaths is itself problematic.
14641     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14642   else
14643     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14644   fi
14645 else
14646   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14647 fi
14648 need_lib_prefix=unknown
14649 hardcode_into_libs=no
14650
14651 # when you set need_version to no, make sure it does not cause -set_version
14652 # flags to be left without arguments
14653 need_version=unknown
14654
14655 case $host_os in
14656 aix3*)
14657   version_type=linux
14658   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14659   shlibpath_var=LIBPATH
14660
14661   # AIX 3 has no versioning support, so we append a major version to the name.
14662   soname_spec='${libname}${release}${shared_ext}$major'
14663   ;;
14664
14665 aix4* | aix5*)
14666   version_type=linux
14667   need_lib_prefix=no
14668   need_version=no
14669   hardcode_into_libs=yes
14670   if test "$host_cpu" = ia64; then
14671     # AIX 5 supports IA64
14672     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14673     shlibpath_var=LD_LIBRARY_PATH
14674   else
14675     # With GCC up to 2.95.x, collect2 would create an import file
14676     # for dependence libraries.  The import file would start with
14677     # the line `#! .'.  This would cause the generated library to
14678     # depend on `.', always an invalid library.  This was fixed in
14679     # development snapshots of GCC prior to 3.0.
14680     case $host_os in
14681       aix4 | aix4.[01] | aix4.[01].*)
14682       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14683            echo ' yes '
14684            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14685         :
14686       else
14687         can_build_shared=no
14688       fi
14689       ;;
14690     esac
14691     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14692     # soname into executable. Probably we can add versioning support to
14693     # collect2, so additional links can be useful in future.
14694     if test "$aix_use_runtimelinking" = yes; then
14695       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14696       # instead of lib<name>.a to let people know that these are not
14697       # typical AIX shared libraries.
14698       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14699     else
14700       # We preserve .a as extension for shared libraries through AIX4.2
14701       # and later when we are not doing run time linking.
14702       library_names_spec='${libname}${release}.a $libname.a'
14703       soname_spec='${libname}${release}${shared_ext}$major'
14704     fi
14705     shlibpath_var=LIBPATH
14706   fi
14707   ;;
14708
14709 amigaos*)
14710   library_names_spec='$libname.ixlibrary $libname.a'
14711   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14712   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'
14713   ;;
14714
14715 beos*)
14716   library_names_spec='${libname}${shared_ext}'
14717   dynamic_linker="$host_os ld.so"
14718   shlibpath_var=LIBRARY_PATH
14719   ;;
14720
14721 bsdi[45]*)
14722   version_type=linux
14723   need_version=no
14724   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14725   soname_spec='${libname}${release}${shared_ext}$major'
14726   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14727   shlibpath_var=LD_LIBRARY_PATH
14728   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14729   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14730   # the default ld.so.conf also contains /usr/contrib/lib and
14731   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14732   # libtool to hard-code these into programs
14733   ;;
14734
14735 cygwin* | mingw* | pw32*)
14736   version_type=windows
14737   shrext_cmds=".dll"
14738   need_version=no
14739   need_lib_prefix=no
14740
14741   case $GCC,$host_os in
14742   yes,cygwin* | yes,mingw* | yes,pw32*)
14743     library_names_spec='$libname.dll.a'
14744     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14745     postinstall_cmds='base_file=`basename \${file}`~
14746       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14747       dldir=$destdir/`dirname \$dlpath`~
14748       test -d \$dldir || mkdir -p \$dldir~
14749       $install_prog $dir/$dlname \$dldir/$dlname~
14750       chmod a+x \$dldir/$dlname'
14751     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14752       dlpath=$dir/\$dldll~
14753        $rm \$dlpath'
14754     shlibpath_overrides_runpath=yes
14755
14756     case $host_os in
14757     cygwin*)
14758       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14759       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14760       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14761       ;;
14762     mingw*)
14763       # MinGW DLLs use traditional 'lib' prefix
14764       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14765       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14766       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14767         # It is most probably a Windows format PATH printed by
14768         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14769         # path with ; separators, and with drive letters. We can handle the
14770         # drive letters (cygwin fileutils understands them), so leave them,
14771         # especially as we might pass files found there to a mingw objdump,
14772         # which wouldn't understand a cygwinified path. Ahh.
14773         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14774       else
14775         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14776       fi
14777       ;;
14778     pw32*)
14779       # pw32 DLLs use 'pw' prefix rather than 'lib'
14780       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14781       ;;
14782     esac
14783     ;;
14784
14785   linux*)
14786     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14787       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14788       supports_anon_versioning=no
14789       case `$LD -v 2>/dev/null` in
14790         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14791         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14792         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14793         *\ 2.11.*) ;; # other 2.11 versions
14794         *) supports_anon_versioning=yes ;;
14795       esac
14796       if test $supports_anon_versioning = yes; then
14797         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14798 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14799 $echo "local: *; };" >> $output_objdir/$libname.ver~
14800         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14801       else
14802         $archive_expsym_cmds="$archive_cmds"
14803       fi
14804     else
14805       ld_shlibs=no
14806     fi
14807     ;;
14808
14809   *)
14810     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14811     ;;
14812   esac
14813   dynamic_linker='Win32 ld.exe'
14814   # FIXME: first we should search . and the directory the executable is in
14815   shlibpath_var=PATH
14816   ;;
14817
14818 darwin* | rhapsody*)
14819   dynamic_linker="$host_os dyld"
14820   version_type=darwin
14821   need_lib_prefix=no
14822   need_version=no
14823   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14824   soname_spec='${libname}${release}${major}$shared_ext'
14825   shlibpath_overrides_runpath=yes
14826   shlibpath_var=DYLD_LIBRARY_PATH
14827   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14828   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14829   if test "$GCC" = yes; then
14830     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"`
14831   else
14832     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14833   fi
14834   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14835   ;;
14836
14837 dgux*)
14838   version_type=linux
14839   need_lib_prefix=no
14840   need_version=no
14841   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14842   soname_spec='${libname}${release}${shared_ext}$major'
14843   shlibpath_var=LD_LIBRARY_PATH
14844   ;;
14845
14846 freebsd1*)
14847   dynamic_linker=no
14848   ;;
14849
14850 kfreebsd*-gnu)
14851   version_type=linux
14852   need_lib_prefix=no
14853   need_version=no
14854   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14855   soname_spec='${libname}${release}${shared_ext}$major'
14856   shlibpath_var=LD_LIBRARY_PATH
14857   shlibpath_overrides_runpath=no
14858   hardcode_into_libs=yes
14859   dynamic_linker='GNU ld.so'
14860   ;;
14861
14862 freebsd* | dragonfly*)
14863   # DragonFly does not have aout.  When/if they implement a new
14864   # versioning mechanism, adjust this.
14865   if test -x /usr/bin/objformat; then
14866     objformat=`/usr/bin/objformat`
14867   else
14868     case $host_os in
14869     freebsd[123]*) objformat=aout ;;
14870     *) objformat=elf ;;
14871     esac
14872   fi
14873   # Handle Gentoo/FreeBSD as it was Linux
14874   case $host_vendor in
14875     gentoo)
14876       version_type=linux ;;
14877     *)
14878       version_type=freebsd-$objformat ;;
14879   esac
14880
14881   case $version_type in
14882     freebsd-elf*)
14883       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14884       need_version=no
14885       need_lib_prefix=no
14886       ;;
14887     freebsd-*)
14888       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14889       need_version=yes
14890       ;;
14891     linux)
14892       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14893       soname_spec='${libname}${release}${shared_ext}$major'
14894       need_lib_prefix=no
14895       need_version=no
14896       ;;
14897   esac
14898   shlibpath_var=LD_LIBRARY_PATH
14899   case $host_os in
14900   freebsd2*)
14901     shlibpath_overrides_runpath=yes
14902     ;;
14903   freebsd3.[01]* | freebsdelf3.[01]*)
14904     shlibpath_overrides_runpath=yes
14905     hardcode_into_libs=yes
14906     ;;
14907   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14908   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14909     shlibpath_overrides_runpath=no
14910     hardcode_into_libs=yes
14911     ;;
14912   freebsd*) # from 4.6 on
14913     shlibpath_overrides_runpath=yes
14914     hardcode_into_libs=yes
14915     ;;
14916   esac
14917   ;;
14918
14919 gnu*)
14920   version_type=linux
14921   need_lib_prefix=no
14922   need_version=no
14923   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14924   soname_spec='${libname}${release}${shared_ext}$major'
14925   shlibpath_var=LD_LIBRARY_PATH
14926   hardcode_into_libs=yes
14927   ;;
14928
14929 hpux9* | hpux10* | hpux11*)
14930   # Give a soname corresponding to the major version so that dld.sl refuses to
14931   # link against other versions.
14932   version_type=sunos
14933   need_lib_prefix=no
14934   need_version=no
14935   case $host_cpu in
14936   ia64*)
14937     shrext_cmds='.so'
14938     hardcode_into_libs=yes
14939     dynamic_linker="$host_os dld.so"
14940     shlibpath_var=LD_LIBRARY_PATH
14941     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14942     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14943     soname_spec='${libname}${release}${shared_ext}$major'
14944     if test "X$HPUX_IA64_MODE" = X32; then
14945       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14946     else
14947       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14948     fi
14949     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14950     ;;
14951    hppa*64*)
14952      shrext_cmds='.sl'
14953      hardcode_into_libs=yes
14954      dynamic_linker="$host_os dld.sl"
14955      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14956      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14957      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14958      soname_spec='${libname}${release}${shared_ext}$major'
14959      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14960      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14961      ;;
14962    *)
14963     shrext_cmds='.sl'
14964     dynamic_linker="$host_os dld.sl"
14965     shlibpath_var=SHLIB_PATH
14966     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14967     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14968     soname_spec='${libname}${release}${shared_ext}$major'
14969     ;;
14970   esac
14971   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14972   postinstall_cmds='chmod 555 $lib'
14973   ;;
14974
14975 interix3*)
14976   version_type=linux
14977   need_lib_prefix=no
14978   need_version=no
14979   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14980   soname_spec='${libname}${release}${shared_ext}$major'
14981   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14982   shlibpath_var=LD_LIBRARY_PATH
14983   shlibpath_overrides_runpath=no
14984   hardcode_into_libs=yes
14985   ;;
14986
14987 irix5* | irix6* | nonstopux*)
14988   case $host_os in
14989     nonstopux*) version_type=nonstopux ;;
14990     *)
14991         if test "$lt_cv_prog_gnu_ld" = yes; then
14992                 version_type=linux
14993         else
14994                 version_type=irix
14995         fi ;;
14996   esac
14997   need_lib_prefix=no
14998   need_version=no
14999   soname_spec='${libname}${release}${shared_ext}$major'
15000   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15001   case $host_os in
15002   irix5* | nonstopux*)
15003     libsuff= shlibsuff=
15004     ;;
15005   *)
15006     case $LD in # libtool.m4 will add one of these switches to LD
15007     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15008       libsuff= shlibsuff= libmagic=32-bit;;
15009     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15010       libsuff=32 shlibsuff=N32 libmagic=N32;;
15011     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15012       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15013     *) libsuff= shlibsuff= libmagic=never-match;;
15014     esac
15015     ;;
15016   esac
15017   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15018   shlibpath_overrides_runpath=no
15019   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15020   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15021   hardcode_into_libs=yes
15022   ;;
15023
15024 # No shared lib support for Linux oldld, aout, or coff.
15025 linux*oldld* | linux*aout* | linux*coff*)
15026   dynamic_linker=no
15027   ;;
15028
15029 # This must be Linux ELF.
15030 linux*)
15031   version_type=linux
15032   need_lib_prefix=no
15033   need_version=no
15034   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15035   soname_spec='${libname}${release}${shared_ext}$major'
15036   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15037   shlibpath_var=LD_LIBRARY_PATH
15038   shlibpath_overrides_runpath=no
15039   # This implies no fast_install, which is unacceptable.
15040   # Some rework will be needed to allow for fast_install
15041   # before this can be enabled.
15042   hardcode_into_libs=yes
15043
15044   # Append ld.so.conf contents to the search path
15045   if test -f /etc/ld.so.conf; then
15046     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' ' '`
15047     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15048   fi
15049
15050   # We used to test for /lib/ld.so.1 and disable shared libraries on
15051   # powerpc, because MkLinux only supported shared libraries with the
15052   # GNU dynamic linker.  Since this was broken with cross compilers,
15053   # most powerpc-linux boxes support dynamic linking these days and
15054   # people can always --disable-shared, the test was removed, and we
15055   # assume the GNU/Linux dynamic linker is in use.
15056   dynamic_linker='GNU/Linux ld.so'
15057   ;;
15058
15059 knetbsd*-gnu)
15060   version_type=linux
15061   need_lib_prefix=no
15062   need_version=no
15063   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15064   soname_spec='${libname}${release}${shared_ext}$major'
15065   shlibpath_var=LD_LIBRARY_PATH
15066   shlibpath_overrides_runpath=no
15067   hardcode_into_libs=yes
15068   dynamic_linker='GNU ld.so'
15069   ;;
15070
15071 netbsd*)
15072   version_type=sunos
15073   need_lib_prefix=no
15074   need_version=no
15075   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15076     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15077     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15078     dynamic_linker='NetBSD (a.out) ld.so'
15079   else
15080     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15081     soname_spec='${libname}${release}${shared_ext}$major'
15082     dynamic_linker='NetBSD ld.elf_so'
15083   fi
15084   shlibpath_var=LD_LIBRARY_PATH
15085   shlibpath_overrides_runpath=yes
15086   hardcode_into_libs=yes
15087   ;;
15088
15089 newsos6)
15090   version_type=linux
15091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15092   shlibpath_var=LD_LIBRARY_PATH
15093   shlibpath_overrides_runpath=yes
15094   ;;
15095
15096 nto-qnx*)
15097   version_type=linux
15098   need_lib_prefix=no
15099   need_version=no
15100   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15101   soname_spec='${libname}${release}${shared_ext}$major'
15102   shlibpath_var=LD_LIBRARY_PATH
15103   shlibpath_overrides_runpath=yes
15104   ;;
15105
15106 openbsd*)
15107   version_type=sunos
15108   sys_lib_dlsearch_path_spec="/usr/lib"
15109   need_lib_prefix=no
15110   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15111   case $host_os in
15112     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15113     *)                         need_version=no  ;;
15114   esac
15115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15116   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15117   shlibpath_var=LD_LIBRARY_PATH
15118   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15119     case $host_os in
15120       openbsd2.[89] | openbsd2.[89].*)
15121         shlibpath_overrides_runpath=no
15122         ;;
15123       *)
15124         shlibpath_overrides_runpath=yes
15125         ;;
15126       esac
15127   else
15128     shlibpath_overrides_runpath=yes
15129   fi
15130   ;;
15131
15132 os2*)
15133   libname_spec='$name'
15134   shrext_cmds=".dll"
15135   need_lib_prefix=no
15136   library_names_spec='$libname${shared_ext} $libname.a'
15137   dynamic_linker='OS/2 ld.exe'
15138   shlibpath_var=LIBPATH
15139   ;;
15140
15141 osf3* | osf4* | osf5*)
15142   version_type=osf
15143   need_lib_prefix=no
15144   need_version=no
15145   soname_spec='${libname}${release}${shared_ext}$major'
15146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15147   shlibpath_var=LD_LIBRARY_PATH
15148   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15149   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15150   ;;
15151
15152 solaris*)
15153   version_type=linux
15154   need_lib_prefix=no
15155   need_version=no
15156   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15157   soname_spec='${libname}${release}${shared_ext}$major'
15158   shlibpath_var=LD_LIBRARY_PATH
15159   shlibpath_overrides_runpath=yes
15160   hardcode_into_libs=yes
15161   # ldd complains unless libraries are executable
15162   postinstall_cmds='chmod +x $lib'
15163   ;;
15164
15165 sunos4*)
15166   version_type=sunos
15167   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15168   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15169   shlibpath_var=LD_LIBRARY_PATH
15170   shlibpath_overrides_runpath=yes
15171   if test "$with_gnu_ld" = yes; then
15172     need_lib_prefix=no
15173   fi
15174   need_version=yes
15175   ;;
15176
15177 sysv4 | sysv4.3*)
15178   version_type=linux
15179   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15180   soname_spec='${libname}${release}${shared_ext}$major'
15181   shlibpath_var=LD_LIBRARY_PATH
15182   case $host_vendor in
15183     sni)
15184       shlibpath_overrides_runpath=no
15185       need_lib_prefix=no
15186       export_dynamic_flag_spec='${wl}-Blargedynsym'
15187       runpath_var=LD_RUN_PATH
15188       ;;
15189     siemens)
15190       need_lib_prefix=no
15191       ;;
15192     motorola)
15193       need_lib_prefix=no
15194       need_version=no
15195       shlibpath_overrides_runpath=no
15196       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15197       ;;
15198   esac
15199   ;;
15200
15201 sysv4*MP*)
15202   if test -d /usr/nec ;then
15203     version_type=linux
15204     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15205     soname_spec='$libname${shared_ext}.$major'
15206     shlibpath_var=LD_LIBRARY_PATH
15207   fi
15208   ;;
15209
15210 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15211   version_type=freebsd-elf
15212   need_lib_prefix=no
15213   need_version=no
15214   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15215   soname_spec='${libname}${release}${shared_ext}$major'
15216   shlibpath_var=LD_LIBRARY_PATH
15217   hardcode_into_libs=yes
15218   if test "$with_gnu_ld" = yes; then
15219     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15220     shlibpath_overrides_runpath=no
15221   else
15222     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15223     shlibpath_overrides_runpath=yes
15224     case $host_os in
15225       sco3.2v5*)
15226         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15227         ;;
15228     esac
15229   fi
15230   sys_lib_dlsearch_path_spec='/usr/lib'
15231   ;;
15232
15233 uts4*)
15234   version_type=linux
15235   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15236   soname_spec='${libname}${release}${shared_ext}$major'
15237   shlibpath_var=LD_LIBRARY_PATH
15238   ;;
15239
15240 *)
15241   dynamic_linker=no
15242   ;;
15243 esac
15244 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15245 echo "${ECHO_T}$dynamic_linker" >&6
15246 test "$dynamic_linker" = no && can_build_shared=no
15247
15248 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15249 if test "$GCC" = yes; then
15250   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15251 fi
15252
15253 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15254 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15255 hardcode_action_F77=
15256 if test -n "$hardcode_libdir_flag_spec_F77" || \
15257    test -n "$runpath_var_F77" || \
15258    test "X$hardcode_automatic_F77" = "Xyes" ; then
15259
15260   # We can hardcode non-existant directories.
15261   if test "$hardcode_direct_F77" != no &&
15262      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15263      # have to relink, otherwise we might link with an installed library
15264      # when we should be linking with a yet-to-be-installed one
15265      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15266      test "$hardcode_minus_L_F77" != no; then
15267     # Linking always hardcodes the temporary library directory.
15268     hardcode_action_F77=relink
15269   else
15270     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15271     hardcode_action_F77=immediate
15272   fi
15273 else
15274   # We cannot hardcode anything, or else we can only hardcode existing
15275   # directories.
15276   hardcode_action_F77=unsupported
15277 fi
15278 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15279 echo "${ECHO_T}$hardcode_action_F77" >&6
15280
15281 if test "$hardcode_action_F77" = relink; then
15282   # Fast installation is not supported
15283   enable_fast_install=no
15284 elif test "$shlibpath_overrides_runpath" = yes ||
15285      test "$enable_shared" = no; then
15286   # Fast installation is not necessary
15287   enable_fast_install=needless
15288 fi
15289
15290
15291 # The else clause should only fire when bootstrapping the
15292 # libtool distribution, otherwise you forgot to ship ltmain.sh
15293 # with your package, and you will get complaints that there are
15294 # no rules to generate ltmain.sh.
15295 if test -f "$ltmain"; then
15296   # See if we are running on zsh, and set the options which allow our commands through
15297   # without removal of \ escapes.
15298   if test -n "${ZSH_VERSION+set}" ; then
15299     setopt NO_GLOB_SUBST
15300   fi
15301   # Now quote all the things that may contain metacharacters while being
15302   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15303   # variables and quote the copies for generation of the libtool script.
15304   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15305     SED SHELL STRIP \
15306     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15307     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15308     deplibs_check_method reload_flag reload_cmds need_locks \
15309     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15310     lt_cv_sys_global_symbol_to_c_name_address \
15311     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15312     old_postinstall_cmds old_postuninstall_cmds \
15313     compiler_F77 \
15314     CC_F77 \
15315     LD_F77 \
15316     lt_prog_compiler_wl_F77 \
15317     lt_prog_compiler_pic_F77 \
15318     lt_prog_compiler_static_F77 \
15319     lt_prog_compiler_no_builtin_flag_F77 \
15320     export_dynamic_flag_spec_F77 \
15321     thread_safe_flag_spec_F77 \
15322     whole_archive_flag_spec_F77 \
15323     enable_shared_with_static_runtimes_F77 \
15324     old_archive_cmds_F77 \
15325     old_archive_from_new_cmds_F77 \
15326     predep_objects_F77 \
15327     postdep_objects_F77 \
15328     predeps_F77 \
15329     postdeps_F77 \
15330     compiler_lib_search_path_F77 \
15331     archive_cmds_F77 \
15332     archive_expsym_cmds_F77 \
15333     postinstall_cmds_F77 \
15334     postuninstall_cmds_F77 \
15335     old_archive_from_expsyms_cmds_F77 \
15336     allow_undefined_flag_F77 \
15337     no_undefined_flag_F77 \
15338     export_symbols_cmds_F77 \
15339     hardcode_libdir_flag_spec_F77 \
15340     hardcode_libdir_flag_spec_ld_F77 \
15341     hardcode_libdir_separator_F77 \
15342     hardcode_automatic_F77 \
15343     module_cmds_F77 \
15344     module_expsym_cmds_F77 \
15345     lt_cv_prog_compiler_c_o_F77 \
15346     exclude_expsyms_F77 \
15347     include_expsyms_F77; do
15348
15349     case $var in
15350     old_archive_cmds_F77 | \
15351     old_archive_from_new_cmds_F77 | \
15352     archive_cmds_F77 | \
15353     archive_expsym_cmds_F77 | \
15354     module_cmds_F77 | \
15355     module_expsym_cmds_F77 | \
15356     old_archive_from_expsyms_cmds_F77 | \
15357     export_symbols_cmds_F77 | \
15358     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15359     postinstall_cmds | postuninstall_cmds | \
15360     old_postinstall_cmds | old_postuninstall_cmds | \
15361     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15362       # Double-quote double-evaled strings.
15363       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15364       ;;
15365     *)
15366       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15367       ;;
15368     esac
15369   done
15370
15371   case $lt_echo in
15372   *'\$0 --fallback-echo"')
15373     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15374     ;;
15375   esac
15376
15377 cfgfile="$ofile"
15378
15379   cat <<__EOF__ >> "$cfgfile"
15380 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15381
15382 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15383
15384 # Shell to use when invoking shell scripts.
15385 SHELL=$lt_SHELL
15386
15387 # Whether or not to build shared libraries.
15388 build_libtool_libs=$enable_shared
15389
15390 # Whether or not to build static libraries.
15391 build_old_libs=$enable_static
15392
15393 # Whether or not to add -lc for building shared libraries.
15394 build_libtool_need_lc=$archive_cmds_need_lc_F77
15395
15396 # Whether or not to disallow shared libs when runtime libs are static
15397 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15398
15399 # Whether or not to optimize for fast installation.
15400 fast_install=$enable_fast_install
15401
15402 # The host system.
15403 host_alias=$host_alias
15404 host=$host
15405 host_os=$host_os
15406
15407 # The build system.
15408 build_alias=$build_alias
15409 build=$build
15410 build_os=$build_os
15411
15412 # An echo program that does not interpret backslashes.
15413 echo=$lt_echo
15414
15415 # The archiver.
15416 AR=$lt_AR
15417 AR_FLAGS=$lt_AR_FLAGS
15418
15419 # A C compiler.
15420 LTCC=$lt_LTCC
15421
15422 # LTCC compiler flags.
15423 LTCFLAGS=$lt_LTCFLAGS
15424
15425 # A language-specific compiler.
15426 CC=$lt_compiler_F77
15427
15428 # Is the compiler the GNU C compiler?
15429 with_gcc=$GCC_F77
15430
15431 # An ERE matcher.
15432 EGREP=$lt_EGREP
15433
15434 # The linker used to build libraries.
15435 LD=$lt_LD_F77
15436
15437 # Whether we need hard or soft links.
15438 LN_S=$lt_LN_S
15439
15440 # A BSD-compatible nm program.
15441 NM=$lt_NM
15442
15443 # A symbol stripping program
15444 STRIP=$lt_STRIP
15445
15446 # Used to examine libraries when file_magic_cmd begins "file"
15447 MAGIC_CMD=$MAGIC_CMD
15448
15449 # Used on cygwin: DLL creation program.
15450 DLLTOOL="$DLLTOOL"
15451
15452 # Used on cygwin: object dumper.
15453 OBJDUMP="$OBJDUMP"
15454
15455 # Used on cygwin: assembler.
15456 AS="$AS"
15457
15458 # The name of the directory that contains temporary libtool files.
15459 objdir=$objdir
15460
15461 # How to create reloadable object files.
15462 reload_flag=$lt_reload_flag
15463 reload_cmds=$lt_reload_cmds
15464
15465 # How to pass a linker flag through the compiler.
15466 wl=$lt_lt_prog_compiler_wl_F77
15467
15468 # Object file suffix (normally "o").
15469 objext="$ac_objext"
15470
15471 # Old archive suffix (normally "a").
15472 libext="$libext"
15473
15474 # Shared library suffix (normally ".so").
15475 shrext_cmds='$shrext_cmds'
15476
15477 # Executable file suffix (normally "").
15478 exeext="$exeext"
15479
15480 # Additional compiler flags for building library objects.
15481 pic_flag=$lt_lt_prog_compiler_pic_F77
15482 pic_mode=$pic_mode
15483
15484 # What is the maximum length of a command?
15485 max_cmd_len=$lt_cv_sys_max_cmd_len
15486
15487 # Does compiler simultaneously support -c and -o options?
15488 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15489
15490 # Must we lock files when doing compilation?
15491 need_locks=$lt_need_locks
15492
15493 # Do we need the lib prefix for modules?
15494 need_lib_prefix=$need_lib_prefix
15495
15496 # Do we need a version for libraries?
15497 need_version=$need_version
15498
15499 # Whether dlopen is supported.
15500 dlopen_support=$enable_dlopen
15501
15502 # Whether dlopen of programs is supported.
15503 dlopen_self=$enable_dlopen_self
15504
15505 # Whether dlopen of statically linked programs is supported.
15506 dlopen_self_static=$enable_dlopen_self_static
15507
15508 # Compiler flag to prevent dynamic linking.
15509 link_static_flag=$lt_lt_prog_compiler_static_F77
15510
15511 # Compiler flag to turn off builtin functions.
15512 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15513
15514 # Compiler flag to allow reflexive dlopens.
15515 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15516
15517 # Compiler flag to generate shared objects directly from archives.
15518 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15519
15520 # Compiler flag to generate thread-safe objects.
15521 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15522
15523 # Library versioning type.
15524 version_type=$version_type
15525
15526 # Format of library name prefix.
15527 libname_spec=$lt_libname_spec
15528
15529 # List of archive names.  First name is the real one, the rest are links.
15530 # The last name is the one that the linker finds with -lNAME.
15531 library_names_spec=$lt_library_names_spec
15532
15533 # The coded name of the library, if different from the real name.
15534 soname_spec=$lt_soname_spec
15535
15536 # Commands used to build and install an old-style archive.
15537 RANLIB=$lt_RANLIB
15538 old_archive_cmds=$lt_old_archive_cmds_F77
15539 old_postinstall_cmds=$lt_old_postinstall_cmds
15540 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15541
15542 # Create an old-style archive from a shared archive.
15543 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15544
15545 # Create a temporary old-style archive to link instead of a shared archive.
15546 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15547
15548 # Commands used to build and install a shared archive.
15549 archive_cmds=$lt_archive_cmds_F77
15550 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15551 postinstall_cmds=$lt_postinstall_cmds
15552 postuninstall_cmds=$lt_postuninstall_cmds
15553
15554 # Commands used to build a loadable module (assumed same as above if empty)
15555 module_cmds=$lt_module_cmds_F77
15556 module_expsym_cmds=$lt_module_expsym_cmds_F77
15557
15558 # Commands to strip libraries.
15559 old_striplib=$lt_old_striplib
15560 striplib=$lt_striplib
15561
15562 # Dependencies to place before the objects being linked to create a
15563 # shared library.
15564 predep_objects=$lt_predep_objects_F77
15565
15566 # Dependencies to place after the objects being linked to create a
15567 # shared library.
15568 postdep_objects=$lt_postdep_objects_F77
15569
15570 # Dependencies to place before the objects being linked to create a
15571 # shared library.
15572 predeps=$lt_predeps_F77
15573
15574 # Dependencies to place after the objects being linked to create a
15575 # shared library.
15576 postdeps=$lt_postdeps_F77
15577
15578 # The library search path used internally by the compiler when linking
15579 # a shared library.
15580 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15581
15582 # Method to check whether dependent libraries are shared objects.
15583 deplibs_check_method=$lt_deplibs_check_method
15584
15585 # Command to use when deplibs_check_method == file_magic.
15586 file_magic_cmd=$lt_file_magic_cmd
15587
15588 # Flag that allows shared libraries with undefined symbols to be built.
15589 allow_undefined_flag=$lt_allow_undefined_flag_F77
15590
15591 # Flag that forces no undefined symbols.
15592 no_undefined_flag=$lt_no_undefined_flag_F77
15593
15594 # Commands used to finish a libtool library installation in a directory.
15595 finish_cmds=$lt_finish_cmds
15596
15597 # Same as above, but a single script fragment to be evaled but not shown.
15598 finish_eval=$lt_finish_eval
15599
15600 # Take the output of nm and produce a listing of raw symbols and C names.
15601 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15602
15603 # Transform the output of nm in a proper C declaration
15604 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15605
15606 # Transform the output of nm in a C name address pair
15607 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15608
15609 # This is the shared library runtime path variable.
15610 runpath_var=$runpath_var
15611
15612 # This is the shared library path variable.
15613 shlibpath_var=$shlibpath_var
15614
15615 # Is shlibpath searched before the hard-coded library search path?
15616 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15617
15618 # How to hardcode a shared library path into an executable.
15619 hardcode_action=$hardcode_action_F77
15620
15621 # Whether we should hardcode library paths into libraries.
15622 hardcode_into_libs=$hardcode_into_libs
15623
15624 # Flag to hardcode \$libdir into a binary during linking.
15625 # This must work even if \$libdir does not exist.
15626 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15627
15628 # If ld is used when linking, flag to hardcode \$libdir into
15629 # a binary during linking. This must work even if \$libdir does
15630 # not exist.
15631 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15632
15633 # Whether we need a single -rpath flag with a separated argument.
15634 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15635
15636 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15637 # resulting binary.
15638 hardcode_direct=$hardcode_direct_F77
15639
15640 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15641 # resulting binary.
15642 hardcode_minus_L=$hardcode_minus_L_F77
15643
15644 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15645 # the resulting binary.
15646 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15647
15648 # Set to yes if building a shared library automatically hardcodes DIR into the library
15649 # and all subsequent libraries and executables linked against it.
15650 hardcode_automatic=$hardcode_automatic_F77
15651
15652 # Variables whose values should be saved in libtool wrapper scripts and
15653 # restored at relink time.
15654 variables_saved_for_relink="$variables_saved_for_relink"
15655
15656 # Whether libtool must link a program against all its dependency libraries.
15657 link_all_deplibs=$link_all_deplibs_F77
15658
15659 # Compile-time system search path for libraries
15660 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15661
15662 # Run-time system search path for libraries
15663 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15664
15665 # Fix the shell variable \$srcfile for the compiler.
15666 fix_srcfile_path="$fix_srcfile_path_F77"
15667
15668 # Set to yes if exported symbols are required.
15669 always_export_symbols=$always_export_symbols_F77
15670
15671 # The commands to list exported symbols.
15672 export_symbols_cmds=$lt_export_symbols_cmds_F77
15673
15674 # The commands to extract the exported symbol list from a shared archive.
15675 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15676
15677 # Symbols that should not be listed in the preloaded symbols.
15678 exclude_expsyms=$lt_exclude_expsyms_F77
15679
15680 # Symbols that must always be exported.
15681 include_expsyms=$lt_include_expsyms_F77
15682
15683 # ### END LIBTOOL TAG CONFIG: $tagname
15684
15685 __EOF__
15686
15687
15688 else
15689   # If there is no Makefile yet, we rely on a make rule to execute
15690   # `config.status --recheck' to rerun these tests and create the
15691   # libtool script then.
15692   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15693   if test -f "$ltmain_in"; then
15694     test -f Makefile && make "$ltmain"
15695   fi
15696 fi
15697
15698
15699 ac_ext=c
15700 ac_cpp='$CPP $CPPFLAGS'
15701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15704
15705 CC="$lt_save_CC"
15706
15707         else
15708           tagname=""
15709         fi
15710         ;;
15711
15712       GCJ)
15713         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15714
15715
15716
15717 # Source file extension for Java test sources.
15718 ac_ext=java
15719
15720 # Object file extension for compiled Java test sources.
15721 objext=o
15722 objext_GCJ=$objext
15723
15724 # Code to be used in simple compile tests
15725 lt_simple_compile_test_code="class foo {}\n"
15726
15727 # Code to be used in simple link tests
15728 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15729
15730 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15731
15732 # If no C compiler was specified, use CC.
15733 LTCC=${LTCC-"$CC"}
15734
15735 # If no C compiler flags were specified, use CFLAGS.
15736 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15737
15738 # Allow CC to be a program name with arguments.
15739 compiler=$CC
15740
15741
15742 # save warnings/boilerplate of simple test code
15743 ac_outfile=conftest.$ac_objext
15744 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15745 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15746 _lt_compiler_boilerplate=`cat conftest.err`
15747 $rm conftest*
15748
15749 ac_outfile=conftest.$ac_objext
15750 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15751 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15752 _lt_linker_boilerplate=`cat conftest.err`
15753 $rm conftest*
15754
15755
15756 # Allow CC to be a program name with arguments.
15757 lt_save_CC="$CC"
15758 CC=${GCJ-"gcj"}
15759 compiler=$CC
15760 compiler_GCJ=$CC
15761 for cc_temp in $compiler""; do
15762   case $cc_temp in
15763     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15764     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15765     \-*) ;;
15766     *) break;;
15767   esac
15768 done
15769 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15770
15771
15772 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15773 archive_cmds_need_lc_GCJ=no
15774
15775 old_archive_cmds_GCJ=$old_archive_cmds
15776
15777
15778 lt_prog_compiler_no_builtin_flag_GCJ=
15779
15780 if test "$GCC" = yes; then
15781   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15782
15783
15784 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15785 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15786 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15787   echo $ECHO_N "(cached) $ECHO_C" >&6
15788 else
15789   lt_cv_prog_compiler_rtti_exceptions=no
15790   ac_outfile=conftest.$ac_objext
15791    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15792    lt_compiler_flag="-fno-rtti -fno-exceptions"
15793    # Insert the option either (1) after the last *FLAGS variable, or
15794    # (2) before a word containing "conftest.", or (3) at the end.
15795    # Note that $ac_compile itself does not contain backslashes and begins
15796    # with a dollar sign (not a hyphen), so the echo should work correctly.
15797    # The option is referenced via a variable to avoid confusing sed.
15798    lt_compile=`echo "$ac_compile" | $SED \
15799    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15800    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15801    -e 's:$: $lt_compiler_flag:'`
15802    (eval echo "\"\$as_me:15802: $lt_compile\"" >&5)
15803    (eval "$lt_compile" 2>conftest.err)
15804    ac_status=$?
15805    cat conftest.err >&5
15806    echo "$as_me:15806: \$? = $ac_status" >&5
15807    if (exit $ac_status) && test -s "$ac_outfile"; then
15808      # The compiler can only warn and ignore the option if not recognized
15809      # So say no if there are warnings other than the usual output.
15810      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15811      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15812      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15813        lt_cv_prog_compiler_rtti_exceptions=yes
15814      fi
15815    fi
15816    $rm conftest*
15817
15818 fi
15819 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15820 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15821
15822 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15823     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15824 else
15825     :
15826 fi
15827
15828 fi
15829
15830 lt_prog_compiler_wl_GCJ=
15831 lt_prog_compiler_pic_GCJ=
15832 lt_prog_compiler_static_GCJ=
15833
15834 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15835 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15836
15837   if test "$GCC" = yes; then
15838     lt_prog_compiler_wl_GCJ='-Wl,'
15839     lt_prog_compiler_static_GCJ='-static'
15840
15841     case $host_os in
15842       aix*)
15843       # All AIX code is PIC.
15844       if test "$host_cpu" = ia64; then
15845         # AIX 5 now supports IA64 processor
15846         lt_prog_compiler_static_GCJ='-Bstatic'
15847       fi
15848       ;;
15849
15850     amigaos*)
15851       # FIXME: we need at least 68020 code to build shared libraries, but
15852       # adding the `-m68020' flag to GCC prevents building anything better,
15853       # like `-m68040'.
15854       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15855       ;;
15856
15857     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15858       # PIC is the default for these OSes.
15859       ;;
15860
15861     mingw* | pw32* | os2*)
15862       # This hack is so that the source file can tell whether it is being
15863       # built for inclusion in a dll (and should export symbols for example).
15864       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15865       ;;
15866
15867     darwin* | rhapsody*)
15868       # PIC is the default on this platform
15869       # Common symbols not allowed in MH_DYLIB files
15870       lt_prog_compiler_pic_GCJ='-fno-common'
15871       ;;
15872
15873     interix3*)
15874       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15875       # Instead, we relocate shared libraries at runtime.
15876       ;;
15877
15878     msdosdjgpp*)
15879       # Just because we use GCC doesn't mean we suddenly get shared libraries
15880       # on systems that don't support them.
15881       lt_prog_compiler_can_build_shared_GCJ=no
15882       enable_shared=no
15883       ;;
15884
15885     sysv4*MP*)
15886       if test -d /usr/nec; then
15887         lt_prog_compiler_pic_GCJ=-Kconform_pic
15888       fi
15889       ;;
15890
15891     hpux*)
15892       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15893       # not for PA HP-UX.
15894       case $host_cpu in
15895       hppa*64*|ia64*)
15896         # +Z the default
15897         ;;
15898       *)
15899         lt_prog_compiler_pic_GCJ='-fPIC'
15900         ;;
15901       esac
15902       ;;
15903
15904     *)
15905       lt_prog_compiler_pic_GCJ='-fPIC'
15906       ;;
15907     esac
15908   else
15909     # PORTME Check for flag to pass linker flags through the system compiler.
15910     case $host_os in
15911     aix*)
15912       lt_prog_compiler_wl_GCJ='-Wl,'
15913       if test "$host_cpu" = ia64; then
15914         # AIX 5 now supports IA64 processor
15915         lt_prog_compiler_static_GCJ='-Bstatic'
15916       else
15917         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15918       fi
15919       ;;
15920       darwin*)
15921         # PIC is the default on this platform
15922         # Common symbols not allowed in MH_DYLIB files
15923        case $cc_basename in
15924          xlc*)
15925          lt_prog_compiler_pic_GCJ='-qnocommon'
15926          lt_prog_compiler_wl_GCJ='-Wl,'
15927          ;;
15928        esac
15929        ;;
15930
15931     mingw* | pw32* | os2*)
15932       # This hack is so that the source file can tell whether it is being
15933       # built for inclusion in a dll (and should export symbols for example).
15934       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15935       ;;
15936
15937     hpux9* | hpux10* | hpux11*)
15938       lt_prog_compiler_wl_GCJ='-Wl,'
15939       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15940       # not for PA HP-UX.
15941       case $host_cpu in
15942       hppa*64*|ia64*)
15943         # +Z the default
15944         ;;
15945       *)
15946         lt_prog_compiler_pic_GCJ='+Z'
15947         ;;
15948       esac
15949       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15950       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15951       ;;
15952
15953     irix5* | irix6* | nonstopux*)
15954       lt_prog_compiler_wl_GCJ='-Wl,'
15955       # PIC (with -KPIC) is the default.
15956       lt_prog_compiler_static_GCJ='-non_shared'
15957       ;;
15958
15959     newsos6)
15960       lt_prog_compiler_pic_GCJ='-KPIC'
15961       lt_prog_compiler_static_GCJ='-Bstatic'
15962       ;;
15963
15964     linux*)
15965       case $cc_basename in
15966       icc* | ecc*)
15967         lt_prog_compiler_wl_GCJ='-Wl,'
15968         lt_prog_compiler_pic_GCJ='-KPIC'
15969         lt_prog_compiler_static_GCJ='-static'
15970         ;;
15971       pgcc* | pgf77* | pgf90* | pgf95*)
15972         # Portland Group compilers (*not* the Pentium gcc compiler,
15973         # which looks to be a dead project)
15974         lt_prog_compiler_wl_GCJ='-Wl,'
15975         lt_prog_compiler_pic_GCJ='-fpic'
15976         lt_prog_compiler_static_GCJ='-Bstatic'
15977         ;;
15978       ccc*)
15979         lt_prog_compiler_wl_GCJ='-Wl,'
15980         # All Alpha code is PIC.
15981         lt_prog_compiler_static_GCJ='-non_shared'
15982         ;;
15983       esac
15984       ;;
15985
15986     osf3* | osf4* | osf5*)
15987       lt_prog_compiler_wl_GCJ='-Wl,'
15988       # All OSF/1 code is PIC.
15989       lt_prog_compiler_static_GCJ='-non_shared'
15990       ;;
15991
15992     solaris*)
15993       lt_prog_compiler_pic_GCJ='-KPIC'
15994       lt_prog_compiler_static_GCJ='-Bstatic'
15995       case $cc_basename in
15996       f77* | f90* | f95*)
15997         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15998       *)
15999         lt_prog_compiler_wl_GCJ='-Wl,';;
16000       esac
16001       ;;
16002
16003     sunos4*)
16004       lt_prog_compiler_wl_GCJ='-Qoption ld '
16005       lt_prog_compiler_pic_GCJ='-PIC'
16006       lt_prog_compiler_static_GCJ='-Bstatic'
16007       ;;
16008
16009     sysv4 | sysv4.2uw2* | sysv4.3*)
16010       lt_prog_compiler_wl_GCJ='-Wl,'
16011       lt_prog_compiler_pic_GCJ='-KPIC'
16012       lt_prog_compiler_static_GCJ='-Bstatic'
16013       ;;
16014
16015     sysv4*MP*)
16016       if test -d /usr/nec ;then
16017         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16018         lt_prog_compiler_static_GCJ='-Bstatic'
16019       fi
16020       ;;
16021
16022     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16023       lt_prog_compiler_wl_GCJ='-Wl,'
16024       lt_prog_compiler_pic_GCJ='-KPIC'
16025       lt_prog_compiler_static_GCJ='-Bstatic'
16026       ;;
16027
16028     unicos*)
16029       lt_prog_compiler_wl_GCJ='-Wl,'
16030       lt_prog_compiler_can_build_shared_GCJ=no
16031       ;;
16032
16033     uts4*)
16034       lt_prog_compiler_pic_GCJ='-pic'
16035       lt_prog_compiler_static_GCJ='-Bstatic'
16036       ;;
16037
16038     *)
16039       lt_prog_compiler_can_build_shared_GCJ=no
16040       ;;
16041     esac
16042   fi
16043
16044 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16045 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16046
16047 #
16048 # Check to make sure the PIC flag actually works.
16049 #
16050 if test -n "$lt_prog_compiler_pic_GCJ"; then
16051
16052 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16053 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16054 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16055   echo $ECHO_N "(cached) $ECHO_C" >&6
16056 else
16057   lt_prog_compiler_pic_works_GCJ=no
16058   ac_outfile=conftest.$ac_objext
16059    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16060    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16061    # Insert the option either (1) after the last *FLAGS variable, or
16062    # (2) before a word containing "conftest.", or (3) at the end.
16063    # Note that $ac_compile itself does not contain backslashes and begins
16064    # with a dollar sign (not a hyphen), so the echo should work correctly.
16065    # The option is referenced via a variable to avoid confusing sed.
16066    lt_compile=`echo "$ac_compile" | $SED \
16067    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16068    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16069    -e 's:$: $lt_compiler_flag:'`
16070    (eval echo "\"\$as_me:16070: $lt_compile\"" >&5)
16071    (eval "$lt_compile" 2>conftest.err)
16072    ac_status=$?
16073    cat conftest.err >&5
16074    echo "$as_me:16074: \$? = $ac_status" >&5
16075    if (exit $ac_status) && test -s "$ac_outfile"; then
16076      # The compiler can only warn and ignore the option if not recognized
16077      # So say no if there are warnings other than the usual output.
16078      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16079      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16080      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16081        lt_prog_compiler_pic_works_GCJ=yes
16082      fi
16083    fi
16084    $rm conftest*
16085
16086 fi
16087 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16088 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16089
16090 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16091     case $lt_prog_compiler_pic_GCJ in
16092      "" | " "*) ;;
16093      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16094      esac
16095 else
16096     lt_prog_compiler_pic_GCJ=
16097      lt_prog_compiler_can_build_shared_GCJ=no
16098 fi
16099
16100 fi
16101 case $host_os in
16102   # For platforms which do not support PIC, -DPIC is meaningless:
16103   *djgpp*)
16104     lt_prog_compiler_pic_GCJ=
16105     ;;
16106   *)
16107     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16108     ;;
16109 esac
16110
16111 #
16112 # Check to make sure the static flag actually works.
16113 #
16114 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16115 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16116 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16117 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16118   echo $ECHO_N "(cached) $ECHO_C" >&6
16119 else
16120   lt_prog_compiler_static_works_GCJ=no
16121    save_LDFLAGS="$LDFLAGS"
16122    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16123    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16124    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16125      # The linker can only warn and ignore the option if not recognized
16126      # So say no if there are warnings
16127      if test -s conftest.err; then
16128        # Append any errors to the config.log.
16129        cat conftest.err 1>&5
16130        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16131        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16132        if diff conftest.exp conftest.er2 >/dev/null; then
16133          lt_prog_compiler_static_works_GCJ=yes
16134        fi
16135      else
16136        lt_prog_compiler_static_works_GCJ=yes
16137      fi
16138    fi
16139    $rm conftest*
16140    LDFLAGS="$save_LDFLAGS"
16141
16142 fi
16143 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16144 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16145
16146 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16147     :
16148 else
16149     lt_prog_compiler_static_GCJ=
16150 fi
16151
16152
16153 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16154 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16155 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16156   echo $ECHO_N "(cached) $ECHO_C" >&6
16157 else
16158   lt_cv_prog_compiler_c_o_GCJ=no
16159    $rm -r conftest 2>/dev/null
16160    mkdir conftest
16161    cd conftest
16162    mkdir out
16163    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16164
16165    lt_compiler_flag="-o out/conftest2.$ac_objext"
16166    # Insert the option either (1) after the last *FLAGS variable, or
16167    # (2) before a word containing "conftest.", or (3) at the end.
16168    # Note that $ac_compile itself does not contain backslashes and begins
16169    # with a dollar sign (not a hyphen), so the echo should work correctly.
16170    lt_compile=`echo "$ac_compile" | $SED \
16171    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16172    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16173    -e 's:$: $lt_compiler_flag:'`
16174    (eval echo "\"\$as_me:16174: $lt_compile\"" >&5)
16175    (eval "$lt_compile" 2>out/conftest.err)
16176    ac_status=$?
16177    cat out/conftest.err >&5
16178    echo "$as_me:16178: \$? = $ac_status" >&5
16179    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16180    then
16181      # The compiler can only warn and ignore the option if not recognized
16182      # So say no if there are warnings
16183      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16184      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16185      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16186        lt_cv_prog_compiler_c_o_GCJ=yes
16187      fi
16188    fi
16189    chmod u+w . 2>&5
16190    $rm conftest*
16191    # SGI C++ compiler will create directory out/ii_files/ for
16192    # template instantiation
16193    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16194    $rm out/* && rmdir out
16195    cd ..
16196    rmdir conftest
16197    $rm conftest*
16198
16199 fi
16200 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16201 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16202
16203
16204 hard_links="nottested"
16205 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16206   # do not overwrite the value of need_locks provided by the user
16207   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16208 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16209   hard_links=yes
16210   $rm conftest*
16211   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16212   touch conftest.a
16213   ln conftest.a conftest.b 2>&5 || hard_links=no
16214   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16215   echo "$as_me:$LINENO: result: $hard_links" >&5
16216 echo "${ECHO_T}$hard_links" >&6
16217   if test "$hard_links" = no; then
16218     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16219 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16220     need_locks=warn
16221   fi
16222 else
16223   need_locks=no
16224 fi
16225
16226 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16227 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16228
16229   runpath_var=
16230   allow_undefined_flag_GCJ=
16231   enable_shared_with_static_runtimes_GCJ=no
16232   archive_cmds_GCJ=
16233   archive_expsym_cmds_GCJ=
16234   old_archive_From_new_cmds_GCJ=
16235   old_archive_from_expsyms_cmds_GCJ=
16236   export_dynamic_flag_spec_GCJ=
16237   whole_archive_flag_spec_GCJ=
16238   thread_safe_flag_spec_GCJ=
16239   hardcode_libdir_flag_spec_GCJ=
16240   hardcode_libdir_flag_spec_ld_GCJ=
16241   hardcode_libdir_separator_GCJ=
16242   hardcode_direct_GCJ=no
16243   hardcode_minus_L_GCJ=no
16244   hardcode_shlibpath_var_GCJ=unsupported
16245   link_all_deplibs_GCJ=unknown
16246   hardcode_automatic_GCJ=no
16247   module_cmds_GCJ=
16248   module_expsym_cmds_GCJ=
16249   always_export_symbols_GCJ=no
16250   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16251   # include_expsyms should be a list of space-separated symbols to be *always*
16252   # included in the symbol list
16253   include_expsyms_GCJ=
16254   # exclude_expsyms can be an extended regexp of symbols to exclude
16255   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16256   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16257   # as well as any symbol that contains `d'.
16258   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16259   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16260   # platforms (ab)use it in PIC code, but their linkers get confused if
16261   # the symbol is explicitly referenced.  Since portable code cannot
16262   # rely on this symbol name, it's probably fine to never include it in
16263   # preloaded symbol tables.
16264   extract_expsyms_cmds=
16265   # Just being paranoid about ensuring that cc_basename is set.
16266   for cc_temp in $compiler""; do
16267   case $cc_temp in
16268     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16269     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16270     \-*) ;;
16271     *) break;;
16272   esac
16273 done
16274 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16275
16276   case $host_os in
16277   cygwin* | mingw* | pw32*)
16278     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16279     # When not using gcc, we currently assume that we are using
16280     # Microsoft Visual C++.
16281     if test "$GCC" != yes; then
16282       with_gnu_ld=no
16283     fi
16284     ;;
16285   interix*)
16286     # we just hope/assume this is gcc and not c89 (= MSVC++)
16287     with_gnu_ld=yes
16288     ;;
16289   openbsd*)
16290     with_gnu_ld=no
16291     ;;
16292   esac
16293
16294   ld_shlibs_GCJ=yes
16295   if test "$with_gnu_ld" = yes; then
16296     # If archive_cmds runs LD, not CC, wlarc should be empty
16297     wlarc='${wl}'
16298
16299     # Set some defaults for GNU ld with shared library support. These
16300     # are reset later if shared libraries are not supported. Putting them
16301     # here allows them to be overridden if necessary.
16302     runpath_var=LD_RUN_PATH
16303     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16304     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16305     # ancient GNU ld didn't support --whole-archive et. al.
16306     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16307         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16308       else
16309         whole_archive_flag_spec_GCJ=
16310     fi
16311     supports_anon_versioning=no
16312     case `$LD -v 2>/dev/null` in
16313       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16314       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16315       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16316       *\ 2.11.*) ;; # other 2.11 versions
16317       *) supports_anon_versioning=yes ;;
16318     esac
16319
16320     # See if GNU ld supports shared libraries.
16321     case $host_os in
16322     aix3* | aix4* | aix5*)
16323       # On AIX/PPC, the GNU linker is very broken
16324       if test "$host_cpu" != ia64; then
16325         ld_shlibs_GCJ=no
16326         cat <<EOF 1>&2
16327
16328 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16329 *** to be unable to reliably create shared libraries on AIX.
16330 *** Therefore, libtool is disabling shared libraries support.  If you
16331 *** really care for shared libraries, you may want to modify your PATH
16332 *** so that a non-GNU linker is found, and then restart.
16333
16334 EOF
16335       fi
16336       ;;
16337
16338     amigaos*)
16339       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)'
16340       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16341       hardcode_minus_L_GCJ=yes
16342
16343       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16344       # that the semantics of dynamic libraries on AmigaOS, at least up
16345       # to version 4, is to share data among multiple programs linked
16346       # with the same dynamic library.  Since this doesn't match the
16347       # behavior of shared libraries on other platforms, we can't use
16348       # them.
16349       ld_shlibs_GCJ=no
16350       ;;
16351
16352     beos*)
16353       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16354         allow_undefined_flag_GCJ=unsupported
16355         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16356         # support --undefined.  This deserves some investigation.  FIXME
16357         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16358       else
16359         ld_shlibs_GCJ=no
16360       fi
16361       ;;
16362
16363     cygwin* | mingw* | pw32*)
16364       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16365       # as there is no search path for DLLs.
16366       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16367       allow_undefined_flag_GCJ=unsupported
16368       always_export_symbols_GCJ=no
16369       enable_shared_with_static_runtimes_GCJ=yes
16370       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16371
16372       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16373         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16374         # If the export-symbols file already is a .def file (1st line
16375         # is EXPORTS), use it as is; otherwise, prepend...
16376         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16377           cp $export_symbols $output_objdir/$soname.def;
16378         else
16379           echo EXPORTS > $output_objdir/$soname.def;
16380           cat $export_symbols >> $output_objdir/$soname.def;
16381         fi~
16382         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16383       else
16384         ld_shlibs_GCJ=no
16385       fi
16386       ;;
16387
16388     interix3*)
16389       hardcode_direct_GCJ=no
16390       hardcode_shlibpath_var_GCJ=no
16391       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16392       export_dynamic_flag_spec_GCJ='${wl}-E'
16393       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16394       # Instead, shared libraries are loaded at an image base (0x10000000 by
16395       # default) and relocated if they conflict, which is a slow very memory
16396       # consuming and fragmenting process.  To avoid this, we pick a random,
16397       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16398       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16399       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'
16400       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'
16401       ;;
16402
16403     linux*)
16404       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16405         tmp_addflag=
16406         case $cc_basename,$host_cpu in
16407         pgcc*)                          # Portland Group C compiler
16408           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'
16409           tmp_addflag=' $pic_flag'
16410           ;;
16411         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16412           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'
16413           tmp_addflag=' $pic_flag -Mnomain' ;;
16414         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16415           tmp_addflag=' -i_dynamic' ;;
16416         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16417           tmp_addflag=' -i_dynamic -nofor_main' ;;
16418         ifc* | ifort*)                  # Intel Fortran compiler
16419           tmp_addflag=' -nofor_main' ;;
16420         esac
16421         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16422
16423         if test $supports_anon_versioning = yes; then
16424           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16425   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16426   $echo "local: *; };" >> $output_objdir/$libname.ver~
16427           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16428         fi
16429       else
16430         ld_shlibs_GCJ=no
16431       fi
16432       ;;
16433
16434     netbsd*)
16435       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16436         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16437         wlarc=
16438       else
16439         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16440         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16441       fi
16442       ;;
16443
16444     solaris*)
16445       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16446         ld_shlibs_GCJ=no
16447         cat <<EOF 1>&2
16448
16449 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16450 *** create shared libraries on Solaris systems.  Therefore, libtool
16451 *** is disabling shared libraries support.  We urge you to upgrade GNU
16452 *** binutils to release 2.9.1 or newer.  Another option is to modify
16453 *** your PATH or compiler configuration so that the native linker is
16454 *** used, and then restart.
16455
16456 EOF
16457       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16458         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16459         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16460       else
16461         ld_shlibs_GCJ=no
16462       fi
16463       ;;
16464
16465     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16466       case `$LD -v 2>&1` in
16467         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16468         ld_shlibs_GCJ=no
16469         cat <<_LT_EOF 1>&2
16470
16471 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16472 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16473 *** is disabling shared libraries support.  We urge you to upgrade GNU
16474 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16475 *** your PATH or compiler configuration so that the native linker is
16476 *** used, and then restart.
16477
16478 _LT_EOF
16479         ;;
16480         *)
16481           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16482             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16483             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16484             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16485           else
16486             ld_shlibs_GCJ=no
16487           fi
16488         ;;
16489       esac
16490       ;;
16491
16492     sunos4*)
16493       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16494       wlarc=
16495       hardcode_direct_GCJ=yes
16496       hardcode_shlibpath_var_GCJ=no
16497       ;;
16498
16499     *)
16500       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16501         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16502         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16503       else
16504         ld_shlibs_GCJ=no
16505       fi
16506       ;;
16507     esac
16508
16509     if test "$ld_shlibs_GCJ" = no; then
16510       runpath_var=
16511       hardcode_libdir_flag_spec_GCJ=
16512       export_dynamic_flag_spec_GCJ=
16513       whole_archive_flag_spec_GCJ=
16514     fi
16515   else
16516     # PORTME fill in a description of your system's linker (not GNU ld)
16517     case $host_os in
16518     aix3*)
16519       allow_undefined_flag_GCJ=unsupported
16520       always_export_symbols_GCJ=yes
16521       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'
16522       # Note: this linker hardcodes the directories in LIBPATH if there
16523       # are no directories specified by -L.
16524       hardcode_minus_L_GCJ=yes
16525       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16526         # Neither direct hardcoding nor static linking is supported with a
16527         # broken collect2.
16528         hardcode_direct_GCJ=unsupported
16529       fi
16530       ;;
16531
16532     aix4* | aix5*)
16533       if test "$host_cpu" = ia64; then
16534         # On IA64, the linker does run time linking by default, so we don't
16535         # have to do anything special.
16536         aix_use_runtimelinking=no
16537         exp_sym_flag='-Bexport'
16538         no_entry_flag=""
16539       else
16540         # If we're using GNU nm, then we don't want the "-C" option.
16541         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16542         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16543           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'
16544         else
16545           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'
16546         fi
16547         aix_use_runtimelinking=no
16548
16549         # Test if we are trying to use run time linking or normal
16550         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16551         # need to do runtime linking.
16552         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16553           for ld_flag in $LDFLAGS; do
16554           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16555             aix_use_runtimelinking=yes
16556             break
16557           fi
16558           done
16559           ;;
16560         esac
16561
16562         exp_sym_flag='-bexport'
16563         no_entry_flag='-bnoentry'
16564       fi
16565
16566       # When large executables or shared objects are built, AIX ld can
16567       # have problems creating the table of contents.  If linking a library
16568       # or program results in "error TOC overflow" add -mminimal-toc to
16569       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16570       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16571
16572       archive_cmds_GCJ=''
16573       hardcode_direct_GCJ=yes
16574       hardcode_libdir_separator_GCJ=':'
16575       link_all_deplibs_GCJ=yes
16576
16577       if test "$GCC" = yes; then
16578         case $host_os in aix4.[012]|aix4.[012].*)
16579         # We only want to do this on AIX 4.2 and lower, the check
16580         # below for broken collect2 doesn't work under 4.3+
16581           collect2name=`${CC} -print-prog-name=collect2`
16582           if test -f "$collect2name" && \
16583            strings "$collect2name" | grep resolve_lib_name >/dev/null
16584           then
16585           # We have reworked collect2
16586           hardcode_direct_GCJ=yes
16587           else
16588           # We have old collect2
16589           hardcode_direct_GCJ=unsupported
16590           # It fails to find uninstalled libraries when the uninstalled
16591           # path is not listed in the libpath.  Setting hardcode_minus_L
16592           # to unsupported forces relinking
16593           hardcode_minus_L_GCJ=yes
16594           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16595           hardcode_libdir_separator_GCJ=
16596           fi
16597           ;;
16598         esac
16599         shared_flag='-shared'
16600         if test "$aix_use_runtimelinking" = yes; then
16601           shared_flag="$shared_flag "'${wl}-G'
16602         fi
16603       else
16604         # not using gcc
16605         if test "$host_cpu" = ia64; then
16606         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16607         # chokes on -Wl,-G. The following line is correct:
16608           shared_flag='-G'
16609         else
16610           if test "$aix_use_runtimelinking" = yes; then
16611             shared_flag='${wl}-G'
16612           else
16613             shared_flag='${wl}-bM:SRE'
16614           fi
16615         fi
16616       fi
16617
16618       # It seems that -bexpall does not export symbols beginning with
16619       # underscore (_), so it is better to generate a list of symbols to export.
16620       always_export_symbols_GCJ=yes
16621       if test "$aix_use_runtimelinking" = yes; then
16622         # Warning - without using the other runtime loading flags (-brtl),
16623         # -berok will link without error, but may produce a broken library.
16624         allow_undefined_flag_GCJ='-berok'
16625        # Determine the default libpath from the value encoded in an empty executable.
16626        cat >conftest.$ac_ext <<_ACEOF
16627 /* confdefs.h.  */
16628 _ACEOF
16629 cat confdefs.h >>conftest.$ac_ext
16630 cat >>conftest.$ac_ext <<_ACEOF
16631 /* end confdefs.h.  */
16632
16633 int
16634 main ()
16635 {
16636
16637   ;
16638   return 0;
16639 }
16640 _ACEOF
16641 rm -f conftest.$ac_objext conftest$ac_exeext
16642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16643   (eval $ac_link) 2>conftest.er1
16644   ac_status=$?
16645   grep -v '^ *+' conftest.er1 >conftest.err
16646   rm -f conftest.er1
16647   cat conftest.err >&5
16648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649   (exit $ac_status); } &&
16650          { ac_try='test -z "$ac_c_werror_flag"
16651                          || test ! -s conftest.err'
16652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16653   (eval $ac_try) 2>&5
16654   ac_status=$?
16655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656   (exit $ac_status); }; } &&
16657          { ac_try='test -s conftest$ac_exeext'
16658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16659   (eval $ac_try) 2>&5
16660   ac_status=$?
16661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662   (exit $ac_status); }; }; then
16663
16664 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16665 }'`
16666 # Check for a 64-bit object if we didn't find anything.
16667 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; }
16668 }'`; fi
16669 else
16670   echo "$as_me: failed program was:" >&5
16671 sed 's/^/| /' conftest.$ac_ext >&5
16672
16673 fi
16674 rm -f conftest.err conftest.$ac_objext \
16675       conftest$ac_exeext conftest.$ac_ext
16676 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16677
16678        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16679         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"
16680        else
16681         if test "$host_cpu" = ia64; then
16682           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16683           allow_undefined_flag_GCJ="-z nodefs"
16684           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"
16685         else
16686          # Determine the default libpath from the value encoded in an empty executable.
16687          cat >conftest.$ac_ext <<_ACEOF
16688 /* confdefs.h.  */
16689 _ACEOF
16690 cat confdefs.h >>conftest.$ac_ext
16691 cat >>conftest.$ac_ext <<_ACEOF
16692 /* end confdefs.h.  */
16693
16694 int
16695 main ()
16696 {
16697
16698   ;
16699   return 0;
16700 }
16701 _ACEOF
16702 rm -f conftest.$ac_objext conftest$ac_exeext
16703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16704   (eval $ac_link) 2>conftest.er1
16705   ac_status=$?
16706   grep -v '^ *+' conftest.er1 >conftest.err
16707   rm -f conftest.er1
16708   cat conftest.err >&5
16709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710   (exit $ac_status); } &&
16711          { ac_try='test -z "$ac_c_werror_flag"
16712                          || test ! -s conftest.err'
16713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16714   (eval $ac_try) 2>&5
16715   ac_status=$?
16716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717   (exit $ac_status); }; } &&
16718          { ac_try='test -s conftest$ac_exeext'
16719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16720   (eval $ac_try) 2>&5
16721   ac_status=$?
16722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723   (exit $ac_status); }; }; then
16724
16725 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16726 }'`
16727 # Check for a 64-bit object if we didn't find anything.
16728 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; }
16729 }'`; fi
16730 else
16731   echo "$as_me: failed program was:" >&5
16732 sed 's/^/| /' conftest.$ac_ext >&5
16733
16734 fi
16735 rm -f conftest.err conftest.$ac_objext \
16736       conftest$ac_exeext conftest.$ac_ext
16737 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16738
16739          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16740           # Warning - without using the other run time loading flags,
16741           # -berok will link without error, but may produce a broken library.
16742           no_undefined_flag_GCJ=' ${wl}-bernotok'
16743           allow_undefined_flag_GCJ=' ${wl}-berok'
16744           # Exported symbols can be pulled into shared objects from archives
16745           whole_archive_flag_spec_GCJ='$convenience'
16746           archive_cmds_need_lc_GCJ=yes
16747           # This is similar to how AIX traditionally builds its shared libraries.
16748           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'
16749         fi
16750       fi
16751       ;;
16752
16753     amigaos*)
16754       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)'
16755       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16756       hardcode_minus_L_GCJ=yes
16757       # see comment about different semantics on the GNU ld section
16758       ld_shlibs_GCJ=no
16759       ;;
16760
16761     bsdi[45]*)
16762       export_dynamic_flag_spec_GCJ=-rdynamic
16763       ;;
16764
16765     cygwin* | mingw* | pw32*)
16766       # When not using gcc, we currently assume that we are using
16767       # Microsoft Visual C++.
16768       # hardcode_libdir_flag_spec is actually meaningless, as there is
16769       # no search path for DLLs.
16770       hardcode_libdir_flag_spec_GCJ=' '
16771       allow_undefined_flag_GCJ=unsupported
16772       # Tell ltmain to make .lib files, not .a files.
16773       libext=lib
16774       # Tell ltmain to make .dll files, not .so files.
16775       shrext_cmds=".dll"
16776       # FIXME: Setting linknames here is a bad hack.
16777       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16778       # The linker will automatically build a .lib file if we build a DLL.
16779       old_archive_From_new_cmds_GCJ='true'
16780       # FIXME: Should let the user specify the lib program.
16781       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16782       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16783       enable_shared_with_static_runtimes_GCJ=yes
16784       ;;
16785
16786     darwin* | rhapsody*)
16787       case $host_os in
16788         rhapsody* | darwin1.[012])
16789          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16790          ;;
16791        *) # Darwin 1.3 on
16792          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16793            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16794          else
16795            case ${MACOSX_DEPLOYMENT_TARGET} in
16796              10.[012])
16797                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16798                ;;
16799              10.*)
16800                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16801                ;;
16802            esac
16803          fi
16804          ;;
16805       esac
16806       archive_cmds_need_lc_GCJ=no
16807       hardcode_direct_GCJ=no
16808       hardcode_automatic_GCJ=yes
16809       hardcode_shlibpath_var_GCJ=unsupported
16810       whole_archive_flag_spec_GCJ=''
16811       link_all_deplibs_GCJ=yes
16812     if test "$GCC" = yes ; then
16813         output_verbose_link_cmd='echo'
16814         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16815       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16816       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16817       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}'
16818       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}'
16819     else
16820       case $cc_basename in
16821         xlc*)
16822          output_verbose_link_cmd='echo'
16823          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16824          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16825           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16826          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}'
16827           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}'
16828           ;;
16829        *)
16830          ld_shlibs_GCJ=no
16831           ;;
16832       esac
16833     fi
16834       ;;
16835
16836     dgux*)
16837       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16838       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16839       hardcode_shlibpath_var_GCJ=no
16840       ;;
16841
16842     freebsd1*)
16843       ld_shlibs_GCJ=no
16844       ;;
16845
16846     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16847     # support.  Future versions do this automatically, but an explicit c++rt0.o
16848     # does not break anything, and helps significantly (at the cost of a little
16849     # extra space).
16850     freebsd2.2*)
16851       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16852       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16853       hardcode_direct_GCJ=yes
16854       hardcode_shlibpath_var_GCJ=no
16855       ;;
16856
16857     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16858     freebsd2*)
16859       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16860       hardcode_direct_GCJ=yes
16861       hardcode_minus_L_GCJ=yes
16862       hardcode_shlibpath_var_GCJ=no
16863       ;;
16864
16865     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16866     freebsd* | kfreebsd*-gnu | dragonfly*)
16867       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16868       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16869       hardcode_direct_GCJ=yes
16870       hardcode_shlibpath_var_GCJ=no
16871       ;;
16872
16873     hpux9*)
16874       if test "$GCC" = yes; then
16875         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'
16876       else
16877         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'
16878       fi
16879       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16880       hardcode_libdir_separator_GCJ=:
16881       hardcode_direct_GCJ=yes
16882
16883       # hardcode_minus_L: Not really in the search PATH,
16884       # but as the default location of the library.
16885       hardcode_minus_L_GCJ=yes
16886       export_dynamic_flag_spec_GCJ='${wl}-E'
16887       ;;
16888
16889     hpux10*)
16890       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16891         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16892       else
16893         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16894       fi
16895       if test "$with_gnu_ld" = no; then
16896         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16897         hardcode_libdir_separator_GCJ=:
16898
16899         hardcode_direct_GCJ=yes
16900         export_dynamic_flag_spec_GCJ='${wl}-E'
16901
16902         # hardcode_minus_L: Not really in the search PATH,
16903         # but as the default location of the library.
16904         hardcode_minus_L_GCJ=yes
16905       fi
16906       ;;
16907
16908     hpux11*)
16909       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16910         case $host_cpu in
16911         hppa*64*)
16912           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16913           ;;
16914         ia64*)
16915           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16916           ;;
16917         *)
16918           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16919           ;;
16920         esac
16921       else
16922         case $host_cpu in
16923         hppa*64*)
16924           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16925           ;;
16926         ia64*)
16927           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16928           ;;
16929         *)
16930           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16931           ;;
16932         esac
16933       fi
16934       if test "$with_gnu_ld" = no; then
16935         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16936         hardcode_libdir_separator_GCJ=:
16937
16938         case $host_cpu in
16939         hppa*64*|ia64*)
16940           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16941           hardcode_direct_GCJ=no
16942           hardcode_shlibpath_var_GCJ=no
16943           ;;
16944         *)
16945           hardcode_direct_GCJ=yes
16946           export_dynamic_flag_spec_GCJ='${wl}-E'
16947
16948           # hardcode_minus_L: Not really in the search PATH,
16949           # but as the default location of the library.
16950           hardcode_minus_L_GCJ=yes
16951           ;;
16952         esac
16953       fi
16954       ;;
16955
16956     irix5* | irix6* | nonstopux*)
16957       if test "$GCC" = yes; then
16958         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'
16959       else
16960         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'
16961         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16962       fi
16963       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16964       hardcode_libdir_separator_GCJ=:
16965       link_all_deplibs_GCJ=yes
16966       ;;
16967
16968     netbsd*)
16969       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16970         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16971       else
16972         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16973       fi
16974       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16975       hardcode_direct_GCJ=yes
16976       hardcode_shlibpath_var_GCJ=no
16977       ;;
16978
16979     newsos6)
16980       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16981       hardcode_direct_GCJ=yes
16982       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16983       hardcode_libdir_separator_GCJ=:
16984       hardcode_shlibpath_var_GCJ=no
16985       ;;
16986
16987     openbsd*)
16988       hardcode_direct_GCJ=yes
16989       hardcode_shlibpath_var_GCJ=no
16990       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16991         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16992         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16993         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16994         export_dynamic_flag_spec_GCJ='${wl}-E'
16995       else
16996        case $host_os in
16997          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16998            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16999            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17000            ;;
17001          *)
17002            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17003            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17004            ;;
17005        esac
17006       fi
17007       ;;
17008
17009     os2*)
17010       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17011       hardcode_minus_L_GCJ=yes
17012       allow_undefined_flag_GCJ=unsupported
17013       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'
17014       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17015       ;;
17016
17017     osf3*)
17018       if test "$GCC" = yes; then
17019         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17020         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'
17021       else
17022         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17023         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'
17024       fi
17025       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17026       hardcode_libdir_separator_GCJ=:
17027       ;;
17028
17029     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17030       if test "$GCC" = yes; then
17031         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17032         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'
17033         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17034       else
17035         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17036         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'
17037         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~
17038         $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'
17039
17040         # Both c and cxx compiler support -rpath directly
17041         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17042       fi
17043       hardcode_libdir_separator_GCJ=:
17044       ;;
17045
17046     solaris*)
17047       no_undefined_flag_GCJ=' -z text'
17048       if test "$GCC" = yes; then
17049         wlarc='${wl}'
17050         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17051         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17052           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17053       else
17054         wlarc=''
17055         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17056         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17057         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17058       fi
17059       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17060       hardcode_shlibpath_var_GCJ=no
17061       case $host_os in
17062       solaris2.[0-5] | solaris2.[0-5].*) ;;
17063       *)
17064         # The compiler driver will combine linker options so we
17065         # cannot just pass the convience library names through
17066         # without $wl, iff we do not link with $LD.
17067         # Luckily, gcc supports the same syntax we need for Sun Studio.
17068         # Supported since Solaris 2.6 (maybe 2.5.1?)
17069         case $wlarc in
17070         '')
17071           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17072         *)
17073           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' ;;
17074         esac ;;
17075       esac
17076       link_all_deplibs_GCJ=yes
17077       ;;
17078
17079     sunos4*)
17080       if test "x$host_vendor" = xsequent; then
17081         # Use $CC to link under sequent, because it throws in some extra .o
17082         # files that make .init and .fini sections work.
17083         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17084       else
17085         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17086       fi
17087       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17088       hardcode_direct_GCJ=yes
17089       hardcode_minus_L_GCJ=yes
17090       hardcode_shlibpath_var_GCJ=no
17091       ;;
17092
17093     sysv4)
17094       case $host_vendor in
17095         sni)
17096           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17097           hardcode_direct_GCJ=yes # is this really true???
17098         ;;
17099         siemens)
17100           ## LD is ld it makes a PLAMLIB
17101           ## CC just makes a GrossModule.
17102           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17103           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17104           hardcode_direct_GCJ=no
17105         ;;
17106         motorola)
17107           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17108           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17109         ;;
17110       esac
17111       runpath_var='LD_RUN_PATH'
17112       hardcode_shlibpath_var_GCJ=no
17113       ;;
17114
17115     sysv4.3*)
17116       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17117       hardcode_shlibpath_var_GCJ=no
17118       export_dynamic_flag_spec_GCJ='-Bexport'
17119       ;;
17120
17121     sysv4*MP*)
17122       if test -d /usr/nec; then
17123         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17124         hardcode_shlibpath_var_GCJ=no
17125         runpath_var=LD_RUN_PATH
17126         hardcode_runpath_var=yes
17127         ld_shlibs_GCJ=yes
17128       fi
17129       ;;
17130
17131     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17132       no_undefined_flag_GCJ='${wl}-z,text'
17133       archive_cmds_need_lc_GCJ=no
17134       hardcode_shlibpath_var_GCJ=no
17135       runpath_var='LD_RUN_PATH'
17136
17137       if test "$GCC" = yes; then
17138         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17139         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17140       else
17141         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17142         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17143       fi
17144       ;;
17145
17146     sysv5* | sco3.2v5* | sco5v6*)
17147       # Note: We can NOT use -z defs as we might desire, because we do not
17148       # link with -lc, and that would cause any symbols used from libc to
17149       # always be unresolved, which means just about no library would
17150       # ever link correctly.  If we're not using GNU ld we use -z text
17151       # though, which does catch some bad symbols but isn't as heavy-handed
17152       # as -z defs.
17153       no_undefined_flag_GCJ='${wl}-z,text'
17154       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17155       archive_cmds_need_lc_GCJ=no
17156       hardcode_shlibpath_var_GCJ=no
17157       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17158       hardcode_libdir_separator_GCJ=':'
17159       link_all_deplibs_GCJ=yes
17160       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17161       runpath_var='LD_RUN_PATH'
17162
17163       if test "$GCC" = yes; then
17164         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17165         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17166       else
17167         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17168         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17169       fi
17170       ;;
17171
17172     uts4*)
17173       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17174       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17175       hardcode_shlibpath_var_GCJ=no
17176       ;;
17177
17178     *)
17179       ld_shlibs_GCJ=no
17180       ;;
17181     esac
17182   fi
17183
17184 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17185 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17186 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17187
17188 #
17189 # Do we need to explicitly link libc?
17190 #
17191 case "x$archive_cmds_need_lc_GCJ" in
17192 x|xyes)
17193   # Assume -lc should be added
17194   archive_cmds_need_lc_GCJ=yes
17195
17196   if test "$enable_shared" = yes && test "$GCC" = yes; then
17197     case $archive_cmds_GCJ in
17198     *'~'*)
17199       # FIXME: we may have to deal with multi-command sequences.
17200       ;;
17201     '$CC '*)
17202       # Test whether the compiler implicitly links with -lc since on some
17203       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17204       # to ld, don't add -lc before -lgcc.
17205       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17206 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17207       $rm conftest*
17208       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17209
17210       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17211   (eval $ac_compile) 2>&5
17212   ac_status=$?
17213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214   (exit $ac_status); } 2>conftest.err; then
17215         soname=conftest
17216         lib=conftest
17217         libobjs=conftest.$ac_objext
17218         deplibs=
17219         wl=$lt_prog_compiler_wl_GCJ
17220         pic_flag=$lt_prog_compiler_pic_GCJ
17221         compiler_flags=-v
17222         linker_flags=-v
17223         verstring=
17224         output_objdir=.
17225         libname=conftest
17226         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17227         allow_undefined_flag_GCJ=
17228         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17229   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17230   ac_status=$?
17231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232   (exit $ac_status); }
17233         then
17234           archive_cmds_need_lc_GCJ=no
17235         else
17236           archive_cmds_need_lc_GCJ=yes
17237         fi
17238         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17239       else
17240         cat conftest.err 1>&5
17241       fi
17242       $rm conftest*
17243       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17244 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17245       ;;
17246     esac
17247   fi
17248   ;;
17249 esac
17250
17251 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17252 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17253 library_names_spec=
17254 libname_spec='lib$name'
17255 soname_spec=
17256 shrext_cmds=".so"
17257 postinstall_cmds=
17258 postuninstall_cmds=
17259 finish_cmds=
17260 finish_eval=
17261 shlibpath_var=
17262 shlibpath_overrides_runpath=unknown
17263 version_type=none
17264 dynamic_linker="$host_os ld.so"
17265 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17266 if test "$GCC" = yes; then
17267   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17268   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17269     # if the path contains ";" then we assume it to be the separator
17270     # otherwise default to the standard path separator (i.e. ":") - it is
17271     # assumed that no part of a normal pathname contains ";" but that should
17272     # okay in the real world where ";" in dirpaths is itself problematic.
17273     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17274   else
17275     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17276   fi
17277 else
17278   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17279 fi
17280 need_lib_prefix=unknown
17281 hardcode_into_libs=no
17282
17283 # when you set need_version to no, make sure it does not cause -set_version
17284 # flags to be left without arguments
17285 need_version=unknown
17286
17287 case $host_os in
17288 aix3*)
17289   version_type=linux
17290   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17291   shlibpath_var=LIBPATH
17292
17293   # AIX 3 has no versioning support, so we append a major version to the name.
17294   soname_spec='${libname}${release}${shared_ext}$major'
17295   ;;
17296
17297 aix4* | aix5*)
17298   version_type=linux
17299   need_lib_prefix=no
17300   need_version=no
17301   hardcode_into_libs=yes
17302   if test "$host_cpu" = ia64; then
17303     # AIX 5 supports IA64
17304     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17305     shlibpath_var=LD_LIBRARY_PATH
17306   else
17307     # With GCC up to 2.95.x, collect2 would create an import file
17308     # for dependence libraries.  The import file would start with
17309     # the line `#! .'.  This would cause the generated library to
17310     # depend on `.', always an invalid library.  This was fixed in
17311     # development snapshots of GCC prior to 3.0.
17312     case $host_os in
17313       aix4 | aix4.[01] | aix4.[01].*)
17314       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17315            echo ' yes '
17316            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17317         :
17318       else
17319         can_build_shared=no
17320       fi
17321       ;;
17322     esac
17323     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17324     # soname into executable. Probably we can add versioning support to
17325     # collect2, so additional links can be useful in future.
17326     if test "$aix_use_runtimelinking" = yes; then
17327       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17328       # instead of lib<name>.a to let people know that these are not
17329       # typical AIX shared libraries.
17330       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17331     else
17332       # We preserve .a as extension for shared libraries through AIX4.2
17333       # and later when we are not doing run time linking.
17334       library_names_spec='${libname}${release}.a $libname.a'
17335       soname_spec='${libname}${release}${shared_ext}$major'
17336     fi
17337     shlibpath_var=LIBPATH
17338   fi
17339   ;;
17340
17341 amigaos*)
17342   library_names_spec='$libname.ixlibrary $libname.a'
17343   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17344   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'
17345   ;;
17346
17347 beos*)
17348   library_names_spec='${libname}${shared_ext}'
17349   dynamic_linker="$host_os ld.so"
17350   shlibpath_var=LIBRARY_PATH
17351   ;;
17352
17353 bsdi[45]*)
17354   version_type=linux
17355   need_version=no
17356   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17357   soname_spec='${libname}${release}${shared_ext}$major'
17358   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17359   shlibpath_var=LD_LIBRARY_PATH
17360   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17361   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17362   # the default ld.so.conf also contains /usr/contrib/lib and
17363   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17364   # libtool to hard-code these into programs
17365   ;;
17366
17367 cygwin* | mingw* | pw32*)
17368   version_type=windows
17369   shrext_cmds=".dll"
17370   need_version=no
17371   need_lib_prefix=no
17372
17373   case $GCC,$host_os in
17374   yes,cygwin* | yes,mingw* | yes,pw32*)
17375     library_names_spec='$libname.dll.a'
17376     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17377     postinstall_cmds='base_file=`basename \${file}`~
17378       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17379       dldir=$destdir/`dirname \$dlpath`~
17380       test -d \$dldir || mkdir -p \$dldir~
17381       $install_prog $dir/$dlname \$dldir/$dlname~
17382       chmod a+x \$dldir/$dlname'
17383     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17384       dlpath=$dir/\$dldll~
17385        $rm \$dlpath'
17386     shlibpath_overrides_runpath=yes
17387
17388     case $host_os in
17389     cygwin*)
17390       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17391       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17392       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17393       ;;
17394     mingw*)
17395       # MinGW DLLs use traditional 'lib' prefix
17396       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17397       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17398       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17399         # It is most probably a Windows format PATH printed by
17400         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17401         # path with ; separators, and with drive letters. We can handle the
17402         # drive letters (cygwin fileutils understands them), so leave them,
17403         # especially as we might pass files found there to a mingw objdump,
17404         # which wouldn't understand a cygwinified path. Ahh.
17405         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17406       else
17407         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17408       fi
17409       ;;
17410     pw32*)
17411       # pw32 DLLs use 'pw' prefix rather than 'lib'
17412       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17413       ;;
17414     esac
17415     ;;
17416
17417   linux*)
17418     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
17419       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17420       supports_anon_versioning=no
17421       case `$LD -v 2>/dev/null` in
17422         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17423         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17424         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17425         *\ 2.11.*) ;; # other 2.11 versions
17426         *) supports_anon_versioning=yes ;;
17427       esac
17428       if test $supports_anon_versioning = yes; then
17429         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
17430 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17431 $echo "local: *; };" >> $output_objdir/$libname.ver~
17432         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17433       else
17434         $archive_expsym_cmds="$archive_cmds"
17435       fi
17436     else
17437       ld_shlibs=no
17438     fi
17439     ;;
17440
17441   *)
17442     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17443     ;;
17444   esac
17445   dynamic_linker='Win32 ld.exe'
17446   # FIXME: first we should search . and the directory the executable is in
17447   shlibpath_var=PATH
17448   ;;
17449
17450 darwin* | rhapsody*)
17451   dynamic_linker="$host_os dyld"
17452   version_type=darwin
17453   need_lib_prefix=no
17454   need_version=no
17455   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17456   soname_spec='${libname}${release}${major}$shared_ext'
17457   shlibpath_overrides_runpath=yes
17458   shlibpath_var=DYLD_LIBRARY_PATH
17459   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17460   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17461   if test "$GCC" = yes; then
17462     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"`
17463   else
17464     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17465   fi
17466   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17467   ;;
17468
17469 dgux*)
17470   version_type=linux
17471   need_lib_prefix=no
17472   need_version=no
17473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17474   soname_spec='${libname}${release}${shared_ext}$major'
17475   shlibpath_var=LD_LIBRARY_PATH
17476   ;;
17477
17478 freebsd1*)
17479   dynamic_linker=no
17480   ;;
17481
17482 kfreebsd*-gnu)
17483   version_type=linux
17484   need_lib_prefix=no
17485   need_version=no
17486   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17487   soname_spec='${libname}${release}${shared_ext}$major'
17488   shlibpath_var=LD_LIBRARY_PATH
17489   shlibpath_overrides_runpath=no
17490   hardcode_into_libs=yes
17491   dynamic_linker='GNU ld.so'
17492   ;;
17493
17494 freebsd* | dragonfly*)
17495   # DragonFly does not have aout.  When/if they implement a new
17496   # versioning mechanism, adjust this.
17497   if test -x /usr/bin/objformat; then
17498     objformat=`/usr/bin/objformat`
17499   else
17500     case $host_os in
17501     freebsd[123]*) objformat=aout ;;
17502     *) objformat=elf ;;
17503     esac
17504   fi
17505   # Handle Gentoo/FreeBSD as it was Linux
17506   case $host_vendor in
17507     gentoo)
17508       version_type=linux ;;
17509     *)
17510       version_type=freebsd-$objformat ;;
17511   esac
17512
17513   case $version_type in
17514     freebsd-elf*)
17515       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17516       need_version=no
17517       need_lib_prefix=no
17518       ;;
17519     freebsd-*)
17520       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17521       need_version=yes
17522       ;;
17523     linux)
17524       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17525       soname_spec='${libname}${release}${shared_ext}$major'
17526       need_lib_prefix=no
17527       need_version=no
17528       ;;
17529   esac
17530   shlibpath_var=LD_LIBRARY_PATH
17531   case $host_os in
17532   freebsd2*)
17533     shlibpath_overrides_runpath=yes
17534     ;;
17535   freebsd3.[01]* | freebsdelf3.[01]*)
17536     shlibpath_overrides_runpath=yes
17537     hardcode_into_libs=yes
17538     ;;
17539   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17540   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17541     shlibpath_overrides_runpath=no
17542     hardcode_into_libs=yes
17543     ;;
17544   freebsd*) # from 4.6 on
17545     shlibpath_overrides_runpath=yes
17546     hardcode_into_libs=yes
17547     ;;
17548   esac
17549   ;;
17550
17551 gnu*)
17552   version_type=linux
17553   need_lib_prefix=no
17554   need_version=no
17555   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17556   soname_spec='${libname}${release}${shared_ext}$major'
17557   shlibpath_var=LD_LIBRARY_PATH
17558   hardcode_into_libs=yes
17559   ;;
17560
17561 hpux9* | hpux10* | hpux11*)
17562   # Give a soname corresponding to the major version so that dld.sl refuses to
17563   # link against other versions.
17564   version_type=sunos
17565   need_lib_prefix=no
17566   need_version=no
17567   case $host_cpu in
17568   ia64*)
17569     shrext_cmds='.so'
17570     hardcode_into_libs=yes
17571     dynamic_linker="$host_os dld.so"
17572     shlibpath_var=LD_LIBRARY_PATH
17573     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17574     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17575     soname_spec='${libname}${release}${shared_ext}$major'
17576     if test "X$HPUX_IA64_MODE" = X32; then
17577       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17578     else
17579       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17580     fi
17581     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17582     ;;
17583    hppa*64*)
17584      shrext_cmds='.sl'
17585      hardcode_into_libs=yes
17586      dynamic_linker="$host_os dld.sl"
17587      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17588      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17589      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17590      soname_spec='${libname}${release}${shared_ext}$major'
17591      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17592      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17593      ;;
17594    *)
17595     shrext_cmds='.sl'
17596     dynamic_linker="$host_os dld.sl"
17597     shlibpath_var=SHLIB_PATH
17598     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17599     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17600     soname_spec='${libname}${release}${shared_ext}$major'
17601     ;;
17602   esac
17603   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17604   postinstall_cmds='chmod 555 $lib'
17605   ;;
17606
17607 interix3*)
17608   version_type=linux
17609   need_lib_prefix=no
17610   need_version=no
17611   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17612   soname_spec='${libname}${release}${shared_ext}$major'
17613   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17614   shlibpath_var=LD_LIBRARY_PATH
17615   shlibpath_overrides_runpath=no
17616   hardcode_into_libs=yes
17617   ;;
17618
17619 irix5* | irix6* | nonstopux*)
17620   case $host_os in
17621     nonstopux*) version_type=nonstopux ;;
17622     *)
17623         if test "$lt_cv_prog_gnu_ld" = yes; then
17624                 version_type=linux
17625         else
17626                 version_type=irix
17627         fi ;;
17628   esac
17629   need_lib_prefix=no
17630   need_version=no
17631   soname_spec='${libname}${release}${shared_ext}$major'
17632   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17633   case $host_os in
17634   irix5* | nonstopux*)
17635     libsuff= shlibsuff=
17636     ;;
17637   *)
17638     case $LD in # libtool.m4 will add one of these switches to LD
17639     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17640       libsuff= shlibsuff= libmagic=32-bit;;
17641     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17642       libsuff=32 shlibsuff=N32 libmagic=N32;;
17643     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17644       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17645     *) libsuff= shlibsuff= libmagic=never-match;;
17646     esac
17647     ;;
17648   esac
17649   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17650   shlibpath_overrides_runpath=no
17651   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17652   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17653   hardcode_into_libs=yes
17654   ;;
17655
17656 # No shared lib support for Linux oldld, aout, or coff.
17657 linux*oldld* | linux*aout* | linux*coff*)
17658   dynamic_linker=no
17659   ;;
17660
17661 # This must be Linux ELF.
17662 linux*)
17663   version_type=linux
17664   need_lib_prefix=no
17665   need_version=no
17666   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17667   soname_spec='${libname}${release}${shared_ext}$major'
17668   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17669   shlibpath_var=LD_LIBRARY_PATH
17670   shlibpath_overrides_runpath=no
17671   # This implies no fast_install, which is unacceptable.
17672   # Some rework will be needed to allow for fast_install
17673   # before this can be enabled.
17674   hardcode_into_libs=yes
17675
17676   # Append ld.so.conf contents to the search path
17677   if test -f /etc/ld.so.conf; then
17678     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' ' '`
17679     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17680   fi
17681
17682   # We used to test for /lib/ld.so.1 and disable shared libraries on
17683   # powerpc, because MkLinux only supported shared libraries with the
17684   # GNU dynamic linker.  Since this was broken with cross compilers,
17685   # most powerpc-linux boxes support dynamic linking these days and
17686   # people can always --disable-shared, the test was removed, and we
17687   # assume the GNU/Linux dynamic linker is in use.
17688   dynamic_linker='GNU/Linux ld.so'
17689   ;;
17690
17691 knetbsd*-gnu)
17692   version_type=linux
17693   need_lib_prefix=no
17694   need_version=no
17695   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17696   soname_spec='${libname}${release}${shared_ext}$major'
17697   shlibpath_var=LD_LIBRARY_PATH
17698   shlibpath_overrides_runpath=no
17699   hardcode_into_libs=yes
17700   dynamic_linker='GNU ld.so'
17701   ;;
17702
17703 netbsd*)
17704   version_type=sunos
17705   need_lib_prefix=no
17706   need_version=no
17707   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17708     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17709     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17710     dynamic_linker='NetBSD (a.out) ld.so'
17711   else
17712     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17713     soname_spec='${libname}${release}${shared_ext}$major'
17714     dynamic_linker='NetBSD ld.elf_so'
17715   fi
17716   shlibpath_var=LD_LIBRARY_PATH
17717   shlibpath_overrides_runpath=yes
17718   hardcode_into_libs=yes
17719   ;;
17720
17721 newsos6)
17722   version_type=linux
17723   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17724   shlibpath_var=LD_LIBRARY_PATH
17725   shlibpath_overrides_runpath=yes
17726   ;;
17727
17728 nto-qnx*)
17729   version_type=linux
17730   need_lib_prefix=no
17731   need_version=no
17732   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17733   soname_spec='${libname}${release}${shared_ext}$major'
17734   shlibpath_var=LD_LIBRARY_PATH
17735   shlibpath_overrides_runpath=yes
17736   ;;
17737
17738 openbsd*)
17739   version_type=sunos
17740   sys_lib_dlsearch_path_spec="/usr/lib"
17741   need_lib_prefix=no
17742   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17743   case $host_os in
17744     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17745     *)                         need_version=no  ;;
17746   esac
17747   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17748   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17749   shlibpath_var=LD_LIBRARY_PATH
17750   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17751     case $host_os in
17752       openbsd2.[89] | openbsd2.[89].*)
17753         shlibpath_overrides_runpath=no
17754         ;;
17755       *)
17756         shlibpath_overrides_runpath=yes
17757         ;;
17758       esac
17759   else
17760     shlibpath_overrides_runpath=yes
17761   fi
17762   ;;
17763
17764 os2*)
17765   libname_spec='$name'
17766   shrext_cmds=".dll"
17767   need_lib_prefix=no
17768   library_names_spec='$libname${shared_ext} $libname.a'
17769   dynamic_linker='OS/2 ld.exe'
17770   shlibpath_var=LIBPATH
17771   ;;
17772
17773 osf3* | osf4* | osf5*)
17774   version_type=osf
17775   need_lib_prefix=no
17776   need_version=no
17777   soname_spec='${libname}${release}${shared_ext}$major'
17778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17779   shlibpath_var=LD_LIBRARY_PATH
17780   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17781   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17782   ;;
17783
17784 solaris*)
17785   version_type=linux
17786   need_lib_prefix=no
17787   need_version=no
17788   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17789   soname_spec='${libname}${release}${shared_ext}$major'
17790   shlibpath_var=LD_LIBRARY_PATH
17791   shlibpath_overrides_runpath=yes
17792   hardcode_into_libs=yes
17793   # ldd complains unless libraries are executable
17794   postinstall_cmds='chmod +x $lib'
17795   ;;
17796
17797 sunos4*)
17798   version_type=sunos
17799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17800   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17801   shlibpath_var=LD_LIBRARY_PATH
17802   shlibpath_overrides_runpath=yes
17803   if test "$with_gnu_ld" = yes; then
17804     need_lib_prefix=no
17805   fi
17806   need_version=yes
17807   ;;
17808
17809 sysv4 | sysv4.3*)
17810   version_type=linux
17811   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17812   soname_spec='${libname}${release}${shared_ext}$major'
17813   shlibpath_var=LD_LIBRARY_PATH
17814   case $host_vendor in
17815     sni)
17816       shlibpath_overrides_runpath=no
17817       need_lib_prefix=no
17818       export_dynamic_flag_spec='${wl}-Blargedynsym'
17819       runpath_var=LD_RUN_PATH
17820       ;;
17821     siemens)
17822       need_lib_prefix=no
17823       ;;
17824     motorola)
17825       need_lib_prefix=no
17826       need_version=no
17827       shlibpath_overrides_runpath=no
17828       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17829       ;;
17830   esac
17831   ;;
17832
17833 sysv4*MP*)
17834   if test -d /usr/nec ;then
17835     version_type=linux
17836     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17837     soname_spec='$libname${shared_ext}.$major'
17838     shlibpath_var=LD_LIBRARY_PATH
17839   fi
17840   ;;
17841
17842 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17843   version_type=freebsd-elf
17844   need_lib_prefix=no
17845   need_version=no
17846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17847   soname_spec='${libname}${release}${shared_ext}$major'
17848   shlibpath_var=LD_LIBRARY_PATH
17849   hardcode_into_libs=yes
17850   if test "$with_gnu_ld" = yes; then
17851     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17852     shlibpath_overrides_runpath=no
17853   else
17854     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17855     shlibpath_overrides_runpath=yes
17856     case $host_os in
17857       sco3.2v5*)
17858         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17859         ;;
17860     esac
17861   fi
17862   sys_lib_dlsearch_path_spec='/usr/lib'
17863   ;;
17864
17865 uts4*)
17866   version_type=linux
17867   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17868   soname_spec='${libname}${release}${shared_ext}$major'
17869   shlibpath_var=LD_LIBRARY_PATH
17870   ;;
17871
17872 *)
17873   dynamic_linker=no
17874   ;;
17875 esac
17876 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17877 echo "${ECHO_T}$dynamic_linker" >&6
17878 test "$dynamic_linker" = no && can_build_shared=no
17879
17880 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17881 if test "$GCC" = yes; then
17882   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17883 fi
17884
17885 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17886 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17887 hardcode_action_GCJ=
17888 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17889    test -n "$runpath_var_GCJ" || \
17890    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17891
17892   # We can hardcode non-existant directories.
17893   if test "$hardcode_direct_GCJ" != no &&
17894      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17895      # have to relink, otherwise we might link with an installed library
17896      # when we should be linking with a yet-to-be-installed one
17897      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17898      test "$hardcode_minus_L_GCJ" != no; then
17899     # Linking always hardcodes the temporary library directory.
17900     hardcode_action_GCJ=relink
17901   else
17902     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17903     hardcode_action_GCJ=immediate
17904   fi
17905 else
17906   # We cannot hardcode anything, or else we can only hardcode existing
17907   # directories.
17908   hardcode_action_GCJ=unsupported
17909 fi
17910 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17911 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17912
17913 if test "$hardcode_action_GCJ" = relink; then
17914   # Fast installation is not supported
17915   enable_fast_install=no
17916 elif test "$shlibpath_overrides_runpath" = yes ||
17917      test "$enable_shared" = no; then
17918   # Fast installation is not necessary
17919   enable_fast_install=needless
17920 fi
17921
17922
17923 # The else clause should only fire when bootstrapping the
17924 # libtool distribution, otherwise you forgot to ship ltmain.sh
17925 # with your package, and you will get complaints that there are
17926 # no rules to generate ltmain.sh.
17927 if test -f "$ltmain"; then
17928   # See if we are running on zsh, and set the options which allow our commands through
17929   # without removal of \ escapes.
17930   if test -n "${ZSH_VERSION+set}" ; then
17931     setopt NO_GLOB_SUBST
17932   fi
17933   # Now quote all the things that may contain metacharacters while being
17934   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17935   # variables and quote the copies for generation of the libtool script.
17936   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17937     SED SHELL STRIP \
17938     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17939     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17940     deplibs_check_method reload_flag reload_cmds need_locks \
17941     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17942     lt_cv_sys_global_symbol_to_c_name_address \
17943     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17944     old_postinstall_cmds old_postuninstall_cmds \
17945     compiler_GCJ \
17946     CC_GCJ \
17947     LD_GCJ \
17948     lt_prog_compiler_wl_GCJ \
17949     lt_prog_compiler_pic_GCJ \
17950     lt_prog_compiler_static_GCJ \
17951     lt_prog_compiler_no_builtin_flag_GCJ \
17952     export_dynamic_flag_spec_GCJ \
17953     thread_safe_flag_spec_GCJ \
17954     whole_archive_flag_spec_GCJ \
17955     enable_shared_with_static_runtimes_GCJ \
17956     old_archive_cmds_GCJ \
17957     old_archive_from_new_cmds_GCJ \
17958     predep_objects_GCJ \
17959     postdep_objects_GCJ \
17960     predeps_GCJ \
17961     postdeps_GCJ \
17962     compiler_lib_search_path_GCJ \
17963     archive_cmds_GCJ \
17964     archive_expsym_cmds_GCJ \
17965     postinstall_cmds_GCJ \
17966     postuninstall_cmds_GCJ \
17967     old_archive_from_expsyms_cmds_GCJ \
17968     allow_undefined_flag_GCJ \
17969     no_undefined_flag_GCJ \
17970     export_symbols_cmds_GCJ \
17971     hardcode_libdir_flag_spec_GCJ \
17972     hardcode_libdir_flag_spec_ld_GCJ \
17973     hardcode_libdir_separator_GCJ \
17974     hardcode_automatic_GCJ \
17975     module_cmds_GCJ \
17976     module_expsym_cmds_GCJ \
17977     lt_cv_prog_compiler_c_o_GCJ \
17978     exclude_expsyms_GCJ \
17979     include_expsyms_GCJ; do
17980
17981     case $var in
17982     old_archive_cmds_GCJ | \
17983     old_archive_from_new_cmds_GCJ | \
17984     archive_cmds_GCJ | \
17985     archive_expsym_cmds_GCJ | \
17986     module_cmds_GCJ | \
17987     module_expsym_cmds_GCJ | \
17988     old_archive_from_expsyms_cmds_GCJ | \
17989     export_symbols_cmds_GCJ | \
17990     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17991     postinstall_cmds | postuninstall_cmds | \
17992     old_postinstall_cmds | old_postuninstall_cmds | \
17993     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17994       # Double-quote double-evaled strings.
17995       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17996       ;;
17997     *)
17998       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17999       ;;
18000     esac
18001   done
18002
18003   case $lt_echo in
18004   *'\$0 --fallback-echo"')
18005     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18006     ;;
18007   esac
18008
18009 cfgfile="$ofile"
18010
18011   cat <<__EOF__ >> "$cfgfile"
18012 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18013
18014 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18015
18016 # Shell to use when invoking shell scripts.
18017 SHELL=$lt_SHELL
18018
18019 # Whether or not to build shared libraries.
18020 build_libtool_libs=$enable_shared
18021
18022 # Whether or not to build static libraries.
18023 build_old_libs=$enable_static
18024
18025 # Whether or not to add -lc for building shared libraries.
18026 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18027
18028 # Whether or not to disallow shared libs when runtime libs are static
18029 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18030
18031 # Whether or not to optimize for fast installation.
18032 fast_install=$enable_fast_install
18033
18034 # The host system.
18035 host_alias=$host_alias
18036 host=$host
18037 host_os=$host_os
18038
18039 # The build system.
18040 build_alias=$build_alias
18041 build=$build
18042 build_os=$build_os
18043
18044 # An echo program that does not interpret backslashes.
18045 echo=$lt_echo
18046
18047 # The archiver.
18048 AR=$lt_AR
18049 AR_FLAGS=$lt_AR_FLAGS
18050
18051 # A C compiler.
18052 LTCC=$lt_LTCC
18053
18054 # LTCC compiler flags.
18055 LTCFLAGS=$lt_LTCFLAGS
18056
18057 # A language-specific compiler.
18058 CC=$lt_compiler_GCJ
18059
18060 # Is the compiler the GNU C compiler?
18061 with_gcc=$GCC_GCJ
18062
18063 # An ERE matcher.
18064 EGREP=$lt_EGREP
18065
18066 # The linker used to build libraries.
18067 LD=$lt_LD_GCJ
18068
18069 # Whether we need hard or soft links.
18070 LN_S=$lt_LN_S
18071
18072 # A BSD-compatible nm program.
18073 NM=$lt_NM
18074
18075 # A symbol stripping program
18076 STRIP=$lt_STRIP
18077
18078 # Used to examine libraries when file_magic_cmd begins "file"
18079 MAGIC_CMD=$MAGIC_CMD
18080
18081 # Used on cygwin: DLL creation program.
18082 DLLTOOL="$DLLTOOL"
18083
18084 # Used on cygwin: object dumper.
18085 OBJDUMP="$OBJDUMP"
18086
18087 # Used on cygwin: assembler.
18088 AS="$AS"
18089
18090 # The name of the directory that contains temporary libtool files.
18091 objdir=$objdir
18092
18093 # How to create reloadable object files.
18094 reload_flag=$lt_reload_flag
18095 reload_cmds=$lt_reload_cmds
18096
18097 # How to pass a linker flag through the compiler.
18098 wl=$lt_lt_prog_compiler_wl_GCJ
18099
18100 # Object file suffix (normally "o").
18101 objext="$ac_objext"
18102
18103 # Old archive suffix (normally "a").
18104 libext="$libext"
18105
18106 # Shared library suffix (normally ".so").
18107 shrext_cmds='$shrext_cmds'
18108
18109 # Executable file suffix (normally "").
18110 exeext="$exeext"
18111
18112 # Additional compiler flags for building library objects.
18113 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18114 pic_mode=$pic_mode
18115
18116 # What is the maximum length of a command?
18117 max_cmd_len=$lt_cv_sys_max_cmd_len
18118
18119 # Does compiler simultaneously support -c and -o options?
18120 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18121
18122 # Must we lock files when doing compilation?
18123 need_locks=$lt_need_locks
18124
18125 # Do we need the lib prefix for modules?
18126 need_lib_prefix=$need_lib_prefix
18127
18128 # Do we need a version for libraries?
18129 need_version=$need_version
18130
18131 # Whether dlopen is supported.
18132 dlopen_support=$enable_dlopen
18133
18134 # Whether dlopen of programs is supported.
18135 dlopen_self=$enable_dlopen_self
18136
18137 # Whether dlopen of statically linked programs is supported.
18138 dlopen_self_static=$enable_dlopen_self_static
18139
18140 # Compiler flag to prevent dynamic linking.
18141 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18142
18143 # Compiler flag to turn off builtin functions.
18144 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18145
18146 # Compiler flag to allow reflexive dlopens.
18147 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18148
18149 # Compiler flag to generate shared objects directly from archives.
18150 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18151
18152 # Compiler flag to generate thread-safe objects.
18153 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18154
18155 # Library versioning type.
18156 version_type=$version_type
18157
18158 # Format of library name prefix.
18159 libname_spec=$lt_libname_spec
18160
18161 # List of archive names.  First name is the real one, the rest are links.
18162 # The last name is the one that the linker finds with -lNAME.
18163 library_names_spec=$lt_library_names_spec
18164
18165 # The coded name of the library, if different from the real name.
18166 soname_spec=$lt_soname_spec
18167
18168 # Commands used to build and install an old-style archive.
18169 RANLIB=$lt_RANLIB
18170 old_archive_cmds=$lt_old_archive_cmds_GCJ
18171 old_postinstall_cmds=$lt_old_postinstall_cmds
18172 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18173
18174 # Create an old-style archive from a shared archive.
18175 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18176
18177 # Create a temporary old-style archive to link instead of a shared archive.
18178 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18179
18180 # Commands used to build and install a shared archive.
18181 archive_cmds=$lt_archive_cmds_GCJ
18182 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18183 postinstall_cmds=$lt_postinstall_cmds
18184 postuninstall_cmds=$lt_postuninstall_cmds
18185
18186 # Commands used to build a loadable module (assumed same as above if empty)
18187 module_cmds=$lt_module_cmds_GCJ
18188 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18189
18190 # Commands to strip libraries.
18191 old_striplib=$lt_old_striplib
18192 striplib=$lt_striplib
18193
18194 # Dependencies to place before the objects being linked to create a
18195 # shared library.
18196 predep_objects=$lt_predep_objects_GCJ
18197
18198 # Dependencies to place after the objects being linked to create a
18199 # shared library.
18200 postdep_objects=$lt_postdep_objects_GCJ
18201
18202 # Dependencies to place before the objects being linked to create a
18203 # shared library.
18204 predeps=$lt_predeps_GCJ
18205
18206 # Dependencies to place after the objects being linked to create a
18207 # shared library.
18208 postdeps=$lt_postdeps_GCJ
18209
18210 # The library search path used internally by the compiler when linking
18211 # a shared library.
18212 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18213
18214 # Method to check whether dependent libraries are shared objects.
18215 deplibs_check_method=$lt_deplibs_check_method
18216
18217 # Command to use when deplibs_check_method == file_magic.
18218 file_magic_cmd=$lt_file_magic_cmd
18219
18220 # Flag that allows shared libraries with undefined symbols to be built.
18221 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18222
18223 # Flag that forces no undefined symbols.
18224 no_undefined_flag=$lt_no_undefined_flag_GCJ
18225
18226 # Commands used to finish a libtool library installation in a directory.
18227 finish_cmds=$lt_finish_cmds
18228
18229 # Same as above, but a single script fragment to be evaled but not shown.
18230 finish_eval=$lt_finish_eval
18231
18232 # Take the output of nm and produce a listing of raw symbols and C names.
18233 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18234
18235 # Transform the output of nm in a proper C declaration
18236 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18237
18238 # Transform the output of nm in a C name address pair
18239 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18240
18241 # This is the shared library runtime path variable.
18242 runpath_var=$runpath_var
18243
18244 # This is the shared library path variable.
18245 shlibpath_var=$shlibpath_var
18246
18247 # Is shlibpath searched before the hard-coded library search path?
18248 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18249
18250 # How to hardcode a shared library path into an executable.
18251 hardcode_action=$hardcode_action_GCJ
18252
18253 # Whether we should hardcode library paths into libraries.
18254 hardcode_into_libs=$hardcode_into_libs
18255
18256 # Flag to hardcode \$libdir into a binary during linking.
18257 # This must work even if \$libdir does not exist.
18258 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18259
18260 # If ld is used when linking, flag to hardcode \$libdir into
18261 # a binary during linking. This must work even if \$libdir does
18262 # not exist.
18263 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18264
18265 # Whether we need a single -rpath flag with a separated argument.
18266 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18267
18268 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18269 # resulting binary.
18270 hardcode_direct=$hardcode_direct_GCJ
18271
18272 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18273 # resulting binary.
18274 hardcode_minus_L=$hardcode_minus_L_GCJ
18275
18276 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18277 # the resulting binary.
18278 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18279
18280 # Set to yes if building a shared library automatically hardcodes DIR into the library
18281 # and all subsequent libraries and executables linked against it.
18282 hardcode_automatic=$hardcode_automatic_GCJ
18283
18284 # Variables whose values should be saved in libtool wrapper scripts and
18285 # restored at relink time.
18286 variables_saved_for_relink="$variables_saved_for_relink"
18287
18288 # Whether libtool must link a program against all its dependency libraries.
18289 link_all_deplibs=$link_all_deplibs_GCJ
18290
18291 # Compile-time system search path for libraries
18292 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18293
18294 # Run-time system search path for libraries
18295 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18296
18297 # Fix the shell variable \$srcfile for the compiler.
18298 fix_srcfile_path="$fix_srcfile_path_GCJ"
18299
18300 # Set to yes if exported symbols are required.
18301 always_export_symbols=$always_export_symbols_GCJ
18302
18303 # The commands to list exported symbols.
18304 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18305
18306 # The commands to extract the exported symbol list from a shared archive.
18307 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18308
18309 # Symbols that should not be listed in the preloaded symbols.
18310 exclude_expsyms=$lt_exclude_expsyms_GCJ
18311
18312 # Symbols that must always be exported.
18313 include_expsyms=$lt_include_expsyms_GCJ
18314
18315 # ### END LIBTOOL TAG CONFIG: $tagname
18316
18317 __EOF__
18318
18319
18320 else
18321   # If there is no Makefile yet, we rely on a make rule to execute
18322   # `config.status --recheck' to rerun these tests and create the
18323   # libtool script then.
18324   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18325   if test -f "$ltmain_in"; then
18326     test -f Makefile && make "$ltmain"
18327   fi
18328 fi
18329
18330
18331 ac_ext=c
18332 ac_cpp='$CPP $CPPFLAGS'
18333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18336
18337 CC="$lt_save_CC"
18338
18339         else
18340           tagname=""
18341         fi
18342         ;;
18343
18344       RC)
18345
18346
18347
18348 # Source file extension for RC test sources.
18349 ac_ext=rc
18350
18351 # Object file extension for compiled RC test sources.
18352 objext=o
18353 objext_RC=$objext
18354
18355 # Code to be used in simple compile tests
18356 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18357
18358 # Code to be used in simple link tests
18359 lt_simple_link_test_code="$lt_simple_compile_test_code"
18360
18361 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18362
18363 # If no C compiler was specified, use CC.
18364 LTCC=${LTCC-"$CC"}
18365
18366 # If no C compiler flags were specified, use CFLAGS.
18367 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18368
18369 # Allow CC to be a program name with arguments.
18370 compiler=$CC
18371
18372
18373 # save warnings/boilerplate of simple test code
18374 ac_outfile=conftest.$ac_objext
18375 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18376 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18377 _lt_compiler_boilerplate=`cat conftest.err`
18378 $rm conftest*
18379
18380 ac_outfile=conftest.$ac_objext
18381 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18382 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18383 _lt_linker_boilerplate=`cat conftest.err`
18384 $rm conftest*
18385
18386
18387 # Allow CC to be a program name with arguments.
18388 lt_save_CC="$CC"
18389 CC=${RC-"windres"}
18390 compiler=$CC
18391 compiler_RC=$CC
18392 for cc_temp in $compiler""; do
18393   case $cc_temp in
18394     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18395     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18396     \-*) ;;
18397     *) break;;
18398   esac
18399 done
18400 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18401
18402 lt_cv_prog_compiler_c_o_RC=yes
18403
18404 # The else clause should only fire when bootstrapping the
18405 # libtool distribution, otherwise you forgot to ship ltmain.sh
18406 # with your package, and you will get complaints that there are
18407 # no rules to generate ltmain.sh.
18408 if test -f "$ltmain"; then
18409   # See if we are running on zsh, and set the options which allow our commands through
18410   # without removal of \ escapes.
18411   if test -n "${ZSH_VERSION+set}" ; then
18412     setopt NO_GLOB_SUBST
18413   fi
18414   # Now quote all the things that may contain metacharacters while being
18415   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18416   # variables and quote the copies for generation of the libtool script.
18417   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18418     SED SHELL STRIP \
18419     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18420     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18421     deplibs_check_method reload_flag reload_cmds need_locks \
18422     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18423     lt_cv_sys_global_symbol_to_c_name_address \
18424     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18425     old_postinstall_cmds old_postuninstall_cmds \
18426     compiler_RC \
18427     CC_RC \
18428     LD_RC \
18429     lt_prog_compiler_wl_RC \
18430     lt_prog_compiler_pic_RC \
18431     lt_prog_compiler_static_RC \
18432     lt_prog_compiler_no_builtin_flag_RC \
18433     export_dynamic_flag_spec_RC \
18434     thread_safe_flag_spec_RC \
18435     whole_archive_flag_spec_RC \
18436     enable_shared_with_static_runtimes_RC \
18437     old_archive_cmds_RC \
18438     old_archive_from_new_cmds_RC \
18439     predep_objects_RC \
18440     postdep_objects_RC \
18441     predeps_RC \
18442     postdeps_RC \
18443     compiler_lib_search_path_RC \
18444     archive_cmds_RC \
18445     archive_expsym_cmds_RC \
18446     postinstall_cmds_RC \
18447     postuninstall_cmds_RC \
18448     old_archive_from_expsyms_cmds_RC \
18449     allow_undefined_flag_RC \
18450     no_undefined_flag_RC \
18451     export_symbols_cmds_RC \
18452     hardcode_libdir_flag_spec_RC \
18453     hardcode_libdir_flag_spec_ld_RC \
18454     hardcode_libdir_separator_RC \
18455     hardcode_automatic_RC \
18456     module_cmds_RC \
18457     module_expsym_cmds_RC \
18458     lt_cv_prog_compiler_c_o_RC \
18459     exclude_expsyms_RC \
18460     include_expsyms_RC; do
18461
18462     case $var in
18463     old_archive_cmds_RC | \
18464     old_archive_from_new_cmds_RC | \
18465     archive_cmds_RC | \
18466     archive_expsym_cmds_RC | \
18467     module_cmds_RC | \
18468     module_expsym_cmds_RC | \
18469     old_archive_from_expsyms_cmds_RC | \
18470     export_symbols_cmds_RC | \
18471     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18472     postinstall_cmds | postuninstall_cmds | \
18473     old_postinstall_cmds | old_postuninstall_cmds | \
18474     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18475       # Double-quote double-evaled strings.
18476       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18477       ;;
18478     *)
18479       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18480       ;;
18481     esac
18482   done
18483
18484   case $lt_echo in
18485   *'\$0 --fallback-echo"')
18486     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18487     ;;
18488   esac
18489
18490 cfgfile="$ofile"
18491
18492   cat <<__EOF__ >> "$cfgfile"
18493 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18494
18495 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18496
18497 # Shell to use when invoking shell scripts.
18498 SHELL=$lt_SHELL
18499
18500 # Whether or not to build shared libraries.
18501 build_libtool_libs=$enable_shared
18502
18503 # Whether or not to build static libraries.
18504 build_old_libs=$enable_static
18505
18506 # Whether or not to add -lc for building shared libraries.
18507 build_libtool_need_lc=$archive_cmds_need_lc_RC
18508
18509 # Whether or not to disallow shared libs when runtime libs are static
18510 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18511
18512 # Whether or not to optimize for fast installation.
18513 fast_install=$enable_fast_install
18514
18515 # The host system.
18516 host_alias=$host_alias
18517 host=$host
18518 host_os=$host_os
18519
18520 # The build system.
18521 build_alias=$build_alias
18522 build=$build
18523 build_os=$build_os
18524
18525 # An echo program that does not interpret backslashes.
18526 echo=$lt_echo
18527
18528 # The archiver.
18529 AR=$lt_AR
18530 AR_FLAGS=$lt_AR_FLAGS
18531
18532 # A C compiler.
18533 LTCC=$lt_LTCC
18534
18535 # LTCC compiler flags.
18536 LTCFLAGS=$lt_LTCFLAGS
18537
18538 # A language-specific compiler.
18539 CC=$lt_compiler_RC
18540
18541 # Is the compiler the GNU C compiler?
18542 with_gcc=$GCC_RC
18543
18544 # An ERE matcher.
18545 EGREP=$lt_EGREP
18546
18547 # The linker used to build libraries.
18548 LD=$lt_LD_RC
18549
18550 # Whether we need hard or soft links.
18551 LN_S=$lt_LN_S
18552
18553 # A BSD-compatible nm program.
18554 NM=$lt_NM
18555
18556 # A symbol stripping program
18557 STRIP=$lt_STRIP
18558
18559 # Used to examine libraries when file_magic_cmd begins "file"
18560 MAGIC_CMD=$MAGIC_CMD
18561
18562 # Used on cygwin: DLL creation program.
18563 DLLTOOL="$DLLTOOL"
18564
18565 # Used on cygwin: object dumper.
18566 OBJDUMP="$OBJDUMP"
18567
18568 # Used on cygwin: assembler.
18569 AS="$AS"
18570
18571 # The name of the directory that contains temporary libtool files.
18572 objdir=$objdir
18573
18574 # How to create reloadable object files.
18575 reload_flag=$lt_reload_flag
18576 reload_cmds=$lt_reload_cmds
18577
18578 # How to pass a linker flag through the compiler.
18579 wl=$lt_lt_prog_compiler_wl_RC
18580
18581 # Object file suffix (normally "o").
18582 objext="$ac_objext"
18583
18584 # Old archive suffix (normally "a").
18585 libext="$libext"
18586
18587 # Shared library suffix (normally ".so").
18588 shrext_cmds='$shrext_cmds'
18589
18590 # Executable file suffix (normally "").
18591 exeext="$exeext"
18592
18593 # Additional compiler flags for building library objects.
18594 pic_flag=$lt_lt_prog_compiler_pic_RC
18595 pic_mode=$pic_mode
18596
18597 # What is the maximum length of a command?
18598 max_cmd_len=$lt_cv_sys_max_cmd_len
18599
18600 # Does compiler simultaneously support -c and -o options?
18601 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18602
18603 # Must we lock files when doing compilation?
18604 need_locks=$lt_need_locks
18605
18606 # Do we need the lib prefix for modules?
18607 need_lib_prefix=$need_lib_prefix
18608
18609 # Do we need a version for libraries?
18610 need_version=$need_version
18611
18612 # Whether dlopen is supported.
18613 dlopen_support=$enable_dlopen
18614
18615 # Whether dlopen of programs is supported.
18616 dlopen_self=$enable_dlopen_self
18617
18618 # Whether dlopen of statically linked programs is supported.
18619 dlopen_self_static=$enable_dlopen_self_static
18620
18621 # Compiler flag to prevent dynamic linking.
18622 link_static_flag=$lt_lt_prog_compiler_static_RC
18623
18624 # Compiler flag to turn off builtin functions.
18625 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18626
18627 # Compiler flag to allow reflexive dlopens.
18628 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18629
18630 # Compiler flag to generate shared objects directly from archives.
18631 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18632
18633 # Compiler flag to generate thread-safe objects.
18634 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18635
18636 # Library versioning type.
18637 version_type=$version_type
18638
18639 # Format of library name prefix.
18640 libname_spec=$lt_libname_spec
18641
18642 # List of archive names.  First name is the real one, the rest are links.
18643 # The last name is the one that the linker finds with -lNAME.
18644 library_names_spec=$lt_library_names_spec
18645
18646 # The coded name of the library, if different from the real name.
18647 soname_spec=$lt_soname_spec
18648
18649 # Commands used to build and install an old-style archive.
18650 RANLIB=$lt_RANLIB
18651 old_archive_cmds=$lt_old_archive_cmds_RC
18652 old_postinstall_cmds=$lt_old_postinstall_cmds
18653 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18654
18655 # Create an old-style archive from a shared archive.
18656 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18657
18658 # Create a temporary old-style archive to link instead of a shared archive.
18659 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18660
18661 # Commands used to build and install a shared archive.
18662 archive_cmds=$lt_archive_cmds_RC
18663 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18664 postinstall_cmds=$lt_postinstall_cmds
18665 postuninstall_cmds=$lt_postuninstall_cmds
18666
18667 # Commands used to build a loadable module (assumed same as above if empty)
18668 module_cmds=$lt_module_cmds_RC
18669 module_expsym_cmds=$lt_module_expsym_cmds_RC
18670
18671 # Commands to strip libraries.
18672 old_striplib=$lt_old_striplib
18673 striplib=$lt_striplib
18674
18675 # Dependencies to place before the objects being linked to create a
18676 # shared library.
18677 predep_objects=$lt_predep_objects_RC
18678
18679 # Dependencies to place after the objects being linked to create a
18680 # shared library.
18681 postdep_objects=$lt_postdep_objects_RC
18682
18683 # Dependencies to place before the objects being linked to create a
18684 # shared library.
18685 predeps=$lt_predeps_RC
18686
18687 # Dependencies to place after the objects being linked to create a
18688 # shared library.
18689 postdeps=$lt_postdeps_RC
18690
18691 # The library search path used internally by the compiler when linking
18692 # a shared library.
18693 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18694
18695 # Method to check whether dependent libraries are shared objects.
18696 deplibs_check_method=$lt_deplibs_check_method
18697
18698 # Command to use when deplibs_check_method == file_magic.
18699 file_magic_cmd=$lt_file_magic_cmd
18700
18701 # Flag that allows shared libraries with undefined symbols to be built.
18702 allow_undefined_flag=$lt_allow_undefined_flag_RC
18703
18704 # Flag that forces no undefined symbols.
18705 no_undefined_flag=$lt_no_undefined_flag_RC
18706
18707 # Commands used to finish a libtool library installation in a directory.
18708 finish_cmds=$lt_finish_cmds
18709
18710 # Same as above, but a single script fragment to be evaled but not shown.
18711 finish_eval=$lt_finish_eval
18712
18713 # Take the output of nm and produce a listing of raw symbols and C names.
18714 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18715
18716 # Transform the output of nm in a proper C declaration
18717 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18718
18719 # Transform the output of nm in a C name address pair
18720 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18721
18722 # This is the shared library runtime path variable.
18723 runpath_var=$runpath_var
18724
18725 # This is the shared library path variable.
18726 shlibpath_var=$shlibpath_var
18727
18728 # Is shlibpath searched before the hard-coded library search path?
18729 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18730
18731 # How to hardcode a shared library path into an executable.
18732 hardcode_action=$hardcode_action_RC
18733
18734 # Whether we should hardcode library paths into libraries.
18735 hardcode_into_libs=$hardcode_into_libs
18736
18737 # Flag to hardcode \$libdir into a binary during linking.
18738 # This must work even if \$libdir does not exist.
18739 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18740
18741 # If ld is used when linking, flag to hardcode \$libdir into
18742 # a binary during linking. This must work even if \$libdir does
18743 # not exist.
18744 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18745
18746 # Whether we need a single -rpath flag with a separated argument.
18747 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18748
18749 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18750 # resulting binary.
18751 hardcode_direct=$hardcode_direct_RC
18752
18753 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18754 # resulting binary.
18755 hardcode_minus_L=$hardcode_minus_L_RC
18756
18757 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18758 # the resulting binary.
18759 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18760
18761 # Set to yes if building a shared library automatically hardcodes DIR into the library
18762 # and all subsequent libraries and executables linked against it.
18763 hardcode_automatic=$hardcode_automatic_RC
18764
18765 # Variables whose values should be saved in libtool wrapper scripts and
18766 # restored at relink time.
18767 variables_saved_for_relink="$variables_saved_for_relink"
18768
18769 # Whether libtool must link a program against all its dependency libraries.
18770 link_all_deplibs=$link_all_deplibs_RC
18771
18772 # Compile-time system search path for libraries
18773 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18774
18775 # Run-time system search path for libraries
18776 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18777
18778 # Fix the shell variable \$srcfile for the compiler.
18779 fix_srcfile_path="$fix_srcfile_path_RC"
18780
18781 # Set to yes if exported symbols are required.
18782 always_export_symbols=$always_export_symbols_RC
18783
18784 # The commands to list exported symbols.
18785 export_symbols_cmds=$lt_export_symbols_cmds_RC
18786
18787 # The commands to extract the exported symbol list from a shared archive.
18788 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18789
18790 # Symbols that should not be listed in the preloaded symbols.
18791 exclude_expsyms=$lt_exclude_expsyms_RC
18792
18793 # Symbols that must always be exported.
18794 include_expsyms=$lt_include_expsyms_RC
18795
18796 # ### END LIBTOOL TAG CONFIG: $tagname
18797
18798 __EOF__
18799
18800
18801 else
18802   # If there is no Makefile yet, we rely on a make rule to execute
18803   # `config.status --recheck' to rerun these tests and create the
18804   # libtool script then.
18805   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18806   if test -f "$ltmain_in"; then
18807     test -f Makefile && make "$ltmain"
18808   fi
18809 fi
18810
18811
18812 ac_ext=c
18813 ac_cpp='$CPP $CPPFLAGS'
18814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18817
18818 CC="$lt_save_CC"
18819
18820         ;;
18821
18822       *)
18823         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18824 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18825    { (exit 1); exit 1; }; }
18826         ;;
18827       esac
18828
18829       # Append the new tag name to the list of available tags.
18830       if test -n "$tagname" ; then
18831       available_tags="$available_tags $tagname"
18832     fi
18833     fi
18834   done
18835   IFS="$lt_save_ifs"
18836
18837   # Now substitute the updated list of available tags.
18838   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18839     mv "${ofile}T" "$ofile"
18840     chmod +x "$ofile"
18841   else
18842     rm -f "${ofile}T"
18843     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18844 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18845    { (exit 1); exit 1; }; }
18846   fi
18847 fi
18848
18849
18850
18851 # This can be used to rebuild libtool when needed
18852 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18853
18854 # Always use our own libtool.
18855 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18856
18857 # Prevent multiple expansion
18858
18859
18860
18861
18862
18863
18864
18865
18866
18867
18868
18869
18870
18871
18872
18873
18874
18875
18876
18877
18878
18879 # Checks for header files.
18880 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18881 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18882 if test "${ac_cv_header_stdc+set}" = set; then
18883   echo $ECHO_N "(cached) $ECHO_C" >&6
18884 else
18885   cat >conftest.$ac_ext <<_ACEOF
18886 /* confdefs.h.  */
18887 _ACEOF
18888 cat confdefs.h >>conftest.$ac_ext
18889 cat >>conftest.$ac_ext <<_ACEOF
18890 /* end confdefs.h.  */
18891 #include <stdlib.h>
18892 #include <stdarg.h>
18893 #include <string.h>
18894 #include <float.h>
18895
18896 int
18897 main ()
18898 {
18899
18900   ;
18901   return 0;
18902 }
18903 _ACEOF
18904 rm -f conftest.$ac_objext
18905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18906   (eval $ac_compile) 2>conftest.er1
18907   ac_status=$?
18908   grep -v '^ *+' conftest.er1 >conftest.err
18909   rm -f conftest.er1
18910   cat conftest.err >&5
18911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912   (exit $ac_status); } &&
18913          { ac_try='test -z "$ac_c_werror_flag"
18914                          || test ! -s conftest.err'
18915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18916   (eval $ac_try) 2>&5
18917   ac_status=$?
18918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18919   (exit $ac_status); }; } &&
18920          { ac_try='test -s conftest.$ac_objext'
18921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18922   (eval $ac_try) 2>&5
18923   ac_status=$?
18924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18925   (exit $ac_status); }; }; then
18926   ac_cv_header_stdc=yes
18927 else
18928   echo "$as_me: failed program was:" >&5
18929 sed 's/^/| /' conftest.$ac_ext >&5
18930
18931 ac_cv_header_stdc=no
18932 fi
18933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18934
18935 if test $ac_cv_header_stdc = yes; then
18936   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18937   cat >conftest.$ac_ext <<_ACEOF
18938 /* confdefs.h.  */
18939 _ACEOF
18940 cat confdefs.h >>conftest.$ac_ext
18941 cat >>conftest.$ac_ext <<_ACEOF
18942 /* end confdefs.h.  */
18943 #include <string.h>
18944
18945 _ACEOF
18946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18947   $EGREP "memchr" >/dev/null 2>&1; then
18948   :
18949 else
18950   ac_cv_header_stdc=no
18951 fi
18952 rm -f conftest*
18953
18954 fi
18955
18956 if test $ac_cv_header_stdc = yes; then
18957   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18958   cat >conftest.$ac_ext <<_ACEOF
18959 /* confdefs.h.  */
18960 _ACEOF
18961 cat confdefs.h >>conftest.$ac_ext
18962 cat >>conftest.$ac_ext <<_ACEOF
18963 /* end confdefs.h.  */
18964 #include <stdlib.h>
18965
18966 _ACEOF
18967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18968   $EGREP "free" >/dev/null 2>&1; then
18969   :
18970 else
18971   ac_cv_header_stdc=no
18972 fi
18973 rm -f conftest*
18974
18975 fi
18976
18977 if test $ac_cv_header_stdc = yes; then
18978   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18979   if test "$cross_compiling" = yes; then
18980   :
18981 else
18982   cat >conftest.$ac_ext <<_ACEOF
18983 /* confdefs.h.  */
18984 _ACEOF
18985 cat confdefs.h >>conftest.$ac_ext
18986 cat >>conftest.$ac_ext <<_ACEOF
18987 /* end confdefs.h.  */
18988 #include <ctype.h>
18989 #if ((' ' & 0x0FF) == 0x020)
18990 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18991 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18992 #else
18993 # define ISLOWER(c) \
18994                    (('a' <= (c) && (c) <= 'i') \
18995                      || ('j' <= (c) && (c) <= 'r') \
18996                      || ('s' <= (c) && (c) <= 'z'))
18997 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18998 #endif
18999
19000 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19001 int
19002 main ()
19003 {
19004   int i;
19005   for (i = 0; i < 256; i++)
19006     if (XOR (islower (i), ISLOWER (i))
19007         || toupper (i) != TOUPPER (i))
19008       exit(2);
19009   exit (0);
19010 }
19011 _ACEOF
19012 rm -f conftest$ac_exeext
19013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19014   (eval $ac_link) 2>&5
19015   ac_status=$?
19016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19017   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19019   (eval $ac_try) 2>&5
19020   ac_status=$?
19021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19022   (exit $ac_status); }; }; then
19023   :
19024 else
19025   echo "$as_me: program exited with status $ac_status" >&5
19026 echo "$as_me: failed program was:" >&5
19027 sed 's/^/| /' conftest.$ac_ext >&5
19028
19029 ( exit $ac_status )
19030 ac_cv_header_stdc=no
19031 fi
19032 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19033 fi
19034 fi
19035 fi
19036 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19037 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19038 if test $ac_cv_header_stdc = yes; then
19039
19040 cat >>confdefs.h <<\_ACEOF
19041 #define STDC_HEADERS 1
19042 _ACEOF
19043
19044 fi
19045
19046
19047
19048
19049
19050 for ac_header in fcntl.h stdlib.h string.h unistd.h
19051 do
19052 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19054   echo "$as_me:$LINENO: checking for $ac_header" >&5
19055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19057   echo $ECHO_N "(cached) $ECHO_C" >&6
19058 fi
19059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19061 else
19062   # Is the header compilable?
19063 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19064 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19065 cat >conftest.$ac_ext <<_ACEOF
19066 /* confdefs.h.  */
19067 _ACEOF
19068 cat confdefs.h >>conftest.$ac_ext
19069 cat >>conftest.$ac_ext <<_ACEOF
19070 /* end confdefs.h.  */
19071 $ac_includes_default
19072 #include <$ac_header>
19073 _ACEOF
19074 rm -f conftest.$ac_objext
19075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19076   (eval $ac_compile) 2>conftest.er1
19077   ac_status=$?
19078   grep -v '^ *+' conftest.er1 >conftest.err
19079   rm -f conftest.er1
19080   cat conftest.err >&5
19081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082   (exit $ac_status); } &&
19083          { ac_try='test -z "$ac_c_werror_flag"
19084                          || test ! -s conftest.err'
19085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19086   (eval $ac_try) 2>&5
19087   ac_status=$?
19088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089   (exit $ac_status); }; } &&
19090          { ac_try='test -s conftest.$ac_objext'
19091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19092   (eval $ac_try) 2>&5
19093   ac_status=$?
19094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095   (exit $ac_status); }; }; then
19096   ac_header_compiler=yes
19097 else
19098   echo "$as_me: failed program was:" >&5
19099 sed 's/^/| /' conftest.$ac_ext >&5
19100
19101 ac_header_compiler=no
19102 fi
19103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19104 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19105 echo "${ECHO_T}$ac_header_compiler" >&6
19106
19107 # Is the header present?
19108 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19109 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19110 cat >conftest.$ac_ext <<_ACEOF
19111 /* confdefs.h.  */
19112 _ACEOF
19113 cat confdefs.h >>conftest.$ac_ext
19114 cat >>conftest.$ac_ext <<_ACEOF
19115 /* end confdefs.h.  */
19116 #include <$ac_header>
19117 _ACEOF
19118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19119   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19120   ac_status=$?
19121   grep -v '^ *+' conftest.er1 >conftest.err
19122   rm -f conftest.er1
19123   cat conftest.err >&5
19124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125   (exit $ac_status); } >/dev/null; then
19126   if test -s conftest.err; then
19127     ac_cpp_err=$ac_c_preproc_warn_flag
19128     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19129   else
19130     ac_cpp_err=
19131   fi
19132 else
19133   ac_cpp_err=yes
19134 fi
19135 if test -z "$ac_cpp_err"; then
19136   ac_header_preproc=yes
19137 else
19138   echo "$as_me: failed program was:" >&5
19139 sed 's/^/| /' conftest.$ac_ext >&5
19140
19141   ac_header_preproc=no
19142 fi
19143 rm -f conftest.err conftest.$ac_ext
19144 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19145 echo "${ECHO_T}$ac_header_preproc" >&6
19146
19147 # So?  What about this header?
19148 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19149   yes:no: )
19150     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19151 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19152     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19153 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19154     ac_header_preproc=yes
19155     ;;
19156   no:yes:* )
19157     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19158 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19159     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19160 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19161     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19162 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19163     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19164 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19165     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19166 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19167     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19168 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19169     (
19170       cat <<\_ASBOX
19171 ## -------------------------------------------- ##
19172 ## Report this to sebastian.marsching@suphp.org ##
19173 ## -------------------------------------------- ##
19174 _ASBOX
19175     ) |
19176       sed "s/^/$as_me: WARNING:     /" >&2
19177     ;;
19178 esac
19179 echo "$as_me:$LINENO: checking for $ac_header" >&5
19180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19182   echo $ECHO_N "(cached) $ECHO_C" >&6
19183 else
19184   eval "$as_ac_Header=\$ac_header_preproc"
19185 fi
19186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19187 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19188
19189 fi
19190 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19191   cat >>confdefs.h <<_ACEOF
19192 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19193 _ACEOF
19194
19195 fi
19196
19197 done
19198
19199
19200 # Find apr-config
19201
19202
19203   apr_found="no"
19204
19205   if test "$ac_cv_emxos2" = "yes"; then
19206     # Scripts don't pass test -x on OS/2
19207     TEST_X="test -f"
19208   else
19209     TEST_X="test -x"
19210   fi
19211
19212   echo "$as_me:$LINENO: checking for APR" >&5
19213 echo $ECHO_N "checking for APR... $ECHO_C" >&6
19214
19215 # Check whether --with-apr or --without-apr was given.
19216 if test "${with_apr+set}" = set; then
19217   withval="$with_apr"
19218
19219     if test "$withval" = "no" || test "$withval" = "yes"; then
19220       { { echo "$as_me:$LINENO: error: --with-apr requires a directory to be provided" >&5
19221 echo "$as_me: error: --with-apr requires a directory to be provided" >&2;}
19222    { (exit 1); exit 1; }; }
19223     fi
19224
19225     if $TEST_X "$withval/bin/apr-config"; then
19226       apr_found="yes"
19227       apr_config="$withval/bin/apr-config"
19228     elif $TEST_X "$withval/apr-config"; then
19229       apr_found="yes"
19230       apr_config="$withval/apr-config"
19231     elif $TEST_X "$withval/bin/apr-1-config"; then
19232       apr_found="yes"
19233       apr_config="$withval/bin/apr-1-config"
19234     elif $TEST_X "$withval/apr-1-config"; then
19235       apr_found="yes"
19236       apr_config="$withval/apr-1-config"
19237     elif $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
19238       apr_found="yes"
19239       apr_config="$withval"
19240     fi
19241
19242         if test "$apr_found" != "yes"; then
19243       { { echo "$as_me:$LINENO: error: the --with-apr parameter is incorrect. It must specify an install prefix, a
19244 build directory, or an apr-config file." >&5
19245 echo "$as_me: error: the --with-apr parameter is incorrect. It must specify an install prefix, a
19246 build directory, or an apr-config file." >&2;}
19247    { (exit 1); exit 1; }; }
19248     fi
19249
19250 else
19251
19252         if test -d ""; then
19253       apr_temp_abs_srcdir="`cd  && pwd`"
19254       apr_found="reconfig"
19255       if test -n ""; then
19256         apr_config="/apr-config"
19257       else
19258         apr_config="/apr-config"
19259       fi
19260     fi
19261     if test "$apr_found" = "no" && test -n "1" && test "1" = "1"; then
19262       if apr-config --help > /dev/null 2>&1 ; then
19263         apr_found="yes"
19264         apr_config="apr-config"
19265       else
19266                 for lookdir in /usr /usr/local /opt/apr /usr/local/apache2 ; do
19267           if $TEST_X "$lookdir/bin/apr-config"; then
19268             apr_found="yes"
19269             apr_config="$lookdir/bin/apr-config"
19270             break
19271           fi
19272         done
19273       fi
19274     fi
19275
19276 fi;
19277
19278   echo "$as_me:$LINENO: result: $apr_found" >&5
19279 echo "${ECHO_T}$apr_found" >&6
19280
19281
19282 # Determine Apache version and find apxs
19283
19284 echo "$as_me:$LINENO: checking for dynamic Apache module support (via APXS)" >&5
19285 echo $ECHO_N "checking for dynamic Apache module support (via APXS)... $ECHO_C" >&6
19286
19287 # Check whether --with-apxs or --without-apxs was given.
19288 if test "${with_apxs+set}" = set; then
19289   withval="$with_apxs"
19290
19291             if test "$withval" = "yes"; then
19292               APXS=apxs
19293             else
19294               APXS="$withval"
19295             fi
19296
19297 fi;
19298
19299 if test -z "$APXS"; then
19300   APXS=`which apxs`
19301 fi
19302
19303 if test "$BINNAME" = "" -a "$APXS" = "" -a "$FAIL_STATIC" = ""; then
19304   for i in /usr/sbin /usr/local/apache/bin ; do
19305     if test -f "$i/apxs"; then
19306       APXS="$i/apxs"
19307     fi
19308   done
19309 fi
19310
19311 if test -n "$APXS"; then
19312
19313
19314     APACHE_VERSION=`\`$APXS -q SBINDIR\`/\`$APXS -q TARGET\` -v \
19315                     | grep "Server version" \
19316                     | cut -f2 -d":" \
19317                     | cut -f2 -d"/" \
19318                     | cut -f1 -d" "`
19319     major_version=`echo $APACHE_VERSION|cut -f1,2 -d.`
19320     if test "$major_version" = "2.0" -o "$major_version" = "2.2"; then
19321       APACHE_VERSION_2=true
19322       APACHE_VERSION_1_3=false
19323     else
19324       APACHE_VERSION_2=false
19325       APACHE_VERSION_1_3=true
19326     fi
19327
19328
19329
19330     APXS_INCLUDEDIR=`$APXS -q INCLUDEDIR`
19331     APXS_LIBEXECDIR=`$APXS -q LIBEXECDIR`
19332     if test x"${APACHE_VERSION_2}" = xtrue ; then \
19333       APXS_EXTRA_CFLAGS=`$APXS -q EXTRA_CFLAGS`
19334     fi
19335     if test x"${APACHE_VERSION_1_3}" = xtrue; then \
19336       APXS_EXTRA_CFLAGS=`$APXS -q CFLAGS`
19337     fi
19338
19339
19340
19341
19342     echo "$as_me:$LINENO: result: found at $APXS (version $APACHE_VERSION)" >&5
19343 echo "${ECHO_T}found at $APXS (version $APACHE_VERSION)" >&6
19344 else
19345     APXS="/notfound/"
19346
19347
19348     echo "$as_me:$LINENO: result: no" >&5
19349 echo "${ECHO_T}no" >&6
19350 fi
19351
19352 if test x"${APACHE_VERSION_2}" = xtrue ; then \
19353     if test x"${apr_found}" = xyes ; then \
19354         APR_INCLUDEDIR=`${apr_config} --includedir`
19355
19356         APR_CPPFLAGS=`${apr_config} --cppflags`
19357
19358     else
19359         { { echo "$as_me:$LINENO: error: APR is needed to build mod_suphp for Apache 2.x but was not found" >&5
19360 echo "$as_me: error: APR is needed to build mod_suphp for Apache 2.x but was not found" >&2;}
19361    { (exit 1); exit 1; }; }
19362     fi
19363 fi
19364
19365 # Get uid/gid mode
19366
19367 echo "$as_me:$LINENO: checking for set-UID/set-GID mode" >&5
19368 echo $ECHO_N "checking for set-UID/set-GID mode... $ECHO_C" >&6
19369
19370 # Check whether --with-setid-mode or --without-setid-mode was given.
19371 if test "${with_setid_mode+set}" = set; then
19372   withval="$with_setid_mode"
19373
19374             if test "$withval" = "yes"; then
19375               SETID_MODE="paranoid"
19376             else
19377               SETID_MODE="$withval"
19378             fi
19379
19380 fi;
19381
19382 if test -z "$SETID_MODE" ; then
19383   SETID_MODE="paranoid"
19384 fi
19385
19386 if test -n "$SETID_MODE"; then
19387     case "$SETID_MODE" in
19388       owner)
19389         OPT_APACHEMOD_USERGROUP_DEF=""
19390
19391
19392 cat >>confdefs.h <<\_ACEOF
19393 #define OPT_USERGROUP_OWNER 1
19394 _ACEOF
19395
19396         ;;
19397       force)
19398         OPT_APACHEMOD_USERGROUP_DEF=-DSUPHP_USE_USERGROUP
19399
19400
19401 cat >>confdefs.h <<\_ACEOF
19402 #define OPT_USERGROUP_FORCE 1
19403 _ACEOF
19404
19405         ;;
19406       paranoid)
19407         OPT_APACHEMOD_USERGROUP_DEF=-DSUPHP_USE_USERGROUP
19408
19409
19410 cat >>confdefs.h <<\_ACEOF
19411 #define OPT_USERGROUP_PARANOID 1
19412 _ACEOF
19413
19414         ;;
19415       *)
19416         { { echo "$as_me:$LINENO: error: --with-setid-mode has to be set to one of \"owner\", \"force\" or \"paranoid\"" >&5
19417 echo "$as_me: error: --with-setid-mode has to be set to one of \"owner\", \"force\" or \"paranoid\"" >&2;}
19418    { (exit 1); exit 1; }; }
19419         ;;
19420     esac
19421     echo "$as_me:$LINENO: result: ok - using $SETID_MODE" >&5
19422 echo "${ECHO_T}ok - using $SETID_MODE" >&6
19423 fi
19424
19425
19426 # Checkpath (docroot) option
19427
19428 checkpath=yes
19429 # Check whether --enable-checkpath or --disable-checkpath was given.
19430 if test "${enable_checkpath+set}" = set; then
19431   enableval="$enable_checkpath"
19432
19433               if test "$enableval" = "no"; then
19434                 checkpath=no
19435
19436 cat >>confdefs.h <<\_ACEOF
19437 #define OPT_DISABLE_CHECKPATH 1
19438 _ACEOF
19439
19440               fi
19441
19442 fi;
19443
19444
19445 # Minimum UID
19446
19447
19448 # Check whether --with-min-uid or --without-min-uid was given.
19449 if test "${with_min_uid+set}" = set; then
19450   withval="$with_min_uid"
19451
19452              if test "$withval" -a ! "$withval" = "yes" ; then
19453
19454 cat >>confdefs.h <<_ACEOF
19455 #define OPT_MIN_UID $withval
19456 _ACEOF
19457
19458              fi
19459
19460 else
19461
19462
19463 cat >>confdefs.h <<\_ACEOF
19464 #define OPT_MIN_UID 100
19465 _ACEOF
19466
19467
19468 fi;
19469
19470 # Minimum GID
19471
19472
19473 # Check whether --with-min-gid or --without-min-gid was given.
19474 if test "${with_min_gid+set}" = set; then
19475   withval="$with_min_gid"
19476
19477              if test "$withval" -a ! "$withval" = "yes" ; then
19478
19479 cat >>confdefs.h <<_ACEOF
19480 #define OPT_MIN_GID $withval
19481 _ACEOF
19482
19483              fi
19484
19485 else
19486
19487
19488 cat >>confdefs.h <<\_ACEOF
19489 #define OPT_MIN_GID 100
19490 _ACEOF
19491
19492
19493 fi;
19494
19495
19496 # Webserver user
19497
19498
19499 # Check whether --with-apache-user or --without-apache-user was given.
19500 if test "${with_apache_user+set}" = set; then
19501   withval="$with_apache_user"
19502
19503              if test "$withval" -a ! "$withval" = "yes" ; then
19504
19505 cat >>confdefs.h <<_ACEOF
19506 #define OPT_APACHE_USER "$withval"
19507 _ACEOF
19508
19509              fi
19510
19511 else
19512
19513
19514 cat >>confdefs.h <<_ACEOF
19515 #define OPT_APACHE_USER "wwwrun"
19516 _ACEOF
19517
19518
19519 fi;
19520
19521 # Path to logfile
19522
19523
19524 # Check whether --with-logfile or --without-logfile was given.
19525 if test "${with_logfile+set}" = set; then
19526   withval="$with_logfile"
19527
19528              if test "$withval" -a ! "$withval" = "yes" ; then
19529
19530 cat >>confdefs.h <<_ACEOF
19531 #define OPT_LOGFILE "$withval"
19532 _ACEOF
19533
19534              fi
19535
19536 else
19537
19538
19539 cat >>confdefs.h <<_ACEOF
19540 #define OPT_LOGFILE "/var/log/httpd/suphp_log"
19541 _ACEOF
19542
19543
19544 fi;
19545
19546
19547 # Conditional building of Apache module
19548
19549
19550 if test x"$APACHE_VERSION_1_3" = xtrue; then
19551   COND_AP13_TRUE=
19552   COND_AP13_FALSE='#'
19553 else
19554   COND_AP13_TRUE='#'
19555   COND_AP13_FALSE=
19556 fi
19557
19558
19559
19560 if test x"$APACHE_VERSION_2" = xtrue; then
19561   COND_AP20_TRUE=
19562   COND_AP20_FALSE='#'
19563 else
19564   COND_AP20_TRUE='#'
19565   COND_AP20_FALSE=
19566 fi
19567
19568
19569 # Conditionally include UserGroup support
19570
19571
19572 if test \( x"$SETID_MODE" = xparanoid \) -o \( x"$SETID_MODE" = xforce \) ; then
19573   COND_APUSERGROUP_TRUE=
19574   COND_APUSERGROUP_FALSE='#'
19575 else
19576   COND_APUSERGROUP_TRUE='#'
19577   COND_APUSERGROUP_FALSE=
19578 fi
19579
19580
19581                                         ac_config_files="$ac_config_files Makefile src/Makefile src/apache/Makefile src/apache2/Makefile"
19582
19583 cat >confcache <<\_ACEOF
19584 # This file is a shell script that caches the results of configure
19585 # tests run on this system so they can be shared between configure
19586 # scripts and configure runs, see configure's option --config-cache.
19587 # It is not useful on other systems.  If it contains results you don't
19588 # want to keep, you may remove or edit it.
19589 #
19590 # config.status only pays attention to the cache file if you give it
19591 # the --recheck option to rerun configure.
19592 #
19593 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19594 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19595 # following values.
19596
19597 _ACEOF
19598
19599 # The following way of writing the cache mishandles newlines in values,
19600 # but we know of no workaround that is simple, portable, and efficient.
19601 # So, don't put newlines in cache variables' values.
19602 # Ultrix sh set writes to stderr and can't be redirected directly,
19603 # and sets the high bit in the cache file unless we assign to the vars.
19604 {
19605   (set) 2>&1 |
19606     case `(ac_space=' '; set | grep ac_space) 2>&1` in
19607     *ac_space=\ *)
19608       # `set' does not quote correctly, so add quotes (double-quote
19609       # substitution turns \\\\ into \\, and sed turns \\ into \).
19610       sed -n \
19611         "s/'/'\\\\''/g;
19612           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19613       ;;
19614     *)
19615       # `set' quotes correctly as required by POSIX, so do not add quotes.
19616       sed -n \
19617         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19618       ;;
19619     esac;
19620 } |
19621   sed '
19622      t clear
19623      : clear
19624      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19625      t end
19626      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19627      : end' >>confcache
19628 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19629   if test -w $cache_file; then
19630     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19631     cat confcache >$cache_file
19632   else
19633     echo "not updating unwritable cache $cache_file"
19634   fi
19635 fi
19636 rm -f confcache
19637
19638 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19639 # Let make expand exec_prefix.
19640 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19641
19642 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19643 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19644 # trailing colons and then remove the whole line if VPATH becomes empty
19645 # (actually we leave an empty line to preserve line numbers).
19646 if test "x$srcdir" = x.; then
19647   ac_vpsub='/^[  ]*VPATH[        ]*=/{
19648 s/:*\$(srcdir):*/:/;
19649 s/:*\${srcdir}:*/:/;
19650 s/:*@srcdir@:*/:/;
19651 s/^\([^=]*=[     ]*\):*/\1/;
19652 s/:*$//;
19653 s/^[^=]*=[       ]*$//;
19654 }'
19655 fi
19656
19657 DEFS=-DHAVE_CONFIG_H
19658
19659 ac_libobjs=
19660 ac_ltlibobjs=
19661 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19662   # 1. Remove the extension, and $U if already installed.
19663   ac_i=`echo "$ac_i" |
19664          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19665   # 2. Add them.
19666   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19667   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19668 done
19669 LIBOBJS=$ac_libobjs
19670
19671 LTLIBOBJS=$ac_ltlibobjs
19672
19673
19674 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19675   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19676 Usually this means the macro was only invoked conditionally." >&5
19677 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19678 Usually this means the macro was only invoked conditionally." >&2;}
19679    { (exit 1); exit 1; }; }
19680 fi
19681 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19682   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19683 Usually this means the macro was only invoked conditionally." >&5
19684 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19685 Usually this means the macro was only invoked conditionally." >&2;}
19686    { (exit 1); exit 1; }; }
19687 fi
19688 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19689   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19690 Usually this means the macro was only invoked conditionally." >&5
19691 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19692 Usually this means the macro was only invoked conditionally." >&2;}
19693    { (exit 1); exit 1; }; }
19694 fi
19695 if test -z "${COND_AP13_TRUE}" && test -z "${COND_AP13_FALSE}"; then
19696   { { echo "$as_me:$LINENO: error: conditional \"COND_AP13\" was never defined.
19697 Usually this means the macro was only invoked conditionally." >&5
19698 echo "$as_me: error: conditional \"COND_AP13\" was never defined.
19699 Usually this means the macro was only invoked conditionally." >&2;}
19700    { (exit 1); exit 1; }; }
19701 fi
19702 if test -z "${COND_AP20_TRUE}" && test -z "${COND_AP20_FALSE}"; then
19703   { { echo "$as_me:$LINENO: error: conditional \"COND_AP20\" was never defined.
19704 Usually this means the macro was only invoked conditionally." >&5
19705 echo "$as_me: error: conditional \"COND_AP20\" was never defined.
19706 Usually this means the macro was only invoked conditionally." >&2;}
19707    { (exit 1); exit 1; }; }
19708 fi
19709 if test -z "${COND_APUSERGROUP_TRUE}" && test -z "${COND_APUSERGROUP_FALSE}"; then
19710   { { echo "$as_me:$LINENO: error: conditional \"COND_APUSERGROUP\" was never defined.
19711 Usually this means the macro was only invoked conditionally." >&5
19712 echo "$as_me: error: conditional \"COND_APUSERGROUP\" was never defined.
19713 Usually this means the macro was only invoked conditionally." >&2;}
19714    { (exit 1); exit 1; }; }
19715 fi
19716
19717 : ${CONFIG_STATUS=./config.status}
19718 ac_clean_files_save=$ac_clean_files
19719 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19720 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19721 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19722 cat >$CONFIG_STATUS <<_ACEOF
19723 #! $SHELL
19724 # Generated by $as_me.
19725 # Run this file to recreate the current configuration.
19726 # Compiler output produced by configure, useful for debugging
19727 # configure, is in config.log if it exists.
19728
19729 debug=false
19730 ac_cs_recheck=false
19731 ac_cs_silent=false
19732 SHELL=\${CONFIG_SHELL-$SHELL}
19733 _ACEOF
19734
19735 cat >>$CONFIG_STATUS <<\_ACEOF
19736 ## --------------------- ##
19737 ## M4sh Initialization.  ##
19738 ## --------------------- ##
19739
19740 # Be Bourne compatible
19741 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19742   emulate sh
19743   NULLCMD=:
19744   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19745   # is contrary to our usage.  Disable this feature.
19746   alias -g '${1+"$@"}'='"$@"'
19747 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19748   set -o posix
19749 fi
19750 DUALCASE=1; export DUALCASE # for MKS sh
19751
19752 # Support unset when possible.
19753 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19754   as_unset=unset
19755 else
19756   as_unset=false
19757 fi
19758
19759
19760 # Work around bugs in pre-3.0 UWIN ksh.
19761 $as_unset ENV MAIL MAILPATH
19762 PS1='$ '
19763 PS2='> '
19764 PS4='+ '
19765
19766 # NLS nuisances.
19767 for as_var in \
19768   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19769   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19770   LC_TELEPHONE LC_TIME
19771 do
19772   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19773     eval $as_var=C; export $as_var
19774   else
19775     $as_unset $as_var
19776   fi
19777 done
19778
19779 # Required to use basename.
19780 if expr a : '\(a\)' >/dev/null 2>&1; then
19781   as_expr=expr
19782 else
19783   as_expr=false
19784 fi
19785
19786 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19787   as_basename=basename
19788 else
19789   as_basename=false
19790 fi
19791
19792
19793 # Name of the executable.
19794 as_me=`$as_basename "$0" ||
19795 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19796          X"$0" : 'X\(//\)$' \| \
19797          X"$0" : 'X\(/\)$' \| \
19798          .     : '\(.\)' 2>/dev/null ||
19799 echo X/"$0" |
19800     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19801           /^X\/\(\/\/\)$/{ s//\1/; q; }
19802           /^X\/\(\/\).*/{ s//\1/; q; }
19803           s/.*/./; q'`
19804
19805
19806 # PATH needs CR, and LINENO needs CR and PATH.
19807 # Avoid depending upon Character Ranges.
19808 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19809 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19810 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19811 as_cr_digits='0123456789'
19812 as_cr_alnum=$as_cr_Letters$as_cr_digits
19813
19814 # The user is always right.
19815 if test "${PATH_SEPARATOR+set}" != set; then
19816   echo "#! /bin/sh" >conf$$.sh
19817   echo  "exit 0"   >>conf$$.sh
19818   chmod +x conf$$.sh
19819   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19820     PATH_SEPARATOR=';'
19821   else
19822     PATH_SEPARATOR=:
19823   fi
19824   rm -f conf$$.sh
19825 fi
19826
19827
19828   as_lineno_1=$LINENO
19829   as_lineno_2=$LINENO
19830   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19831   test "x$as_lineno_1" != "x$as_lineno_2" &&
19832   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
19833   # Find who we are.  Look in the path if we contain no path at all
19834   # relative or not.
19835   case $0 in
19836     *[\\/]* ) as_myself=$0 ;;
19837     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19838 for as_dir in $PATH
19839 do
19840   IFS=$as_save_IFS
19841   test -z "$as_dir" && as_dir=.
19842   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19843 done
19844
19845        ;;
19846   esac
19847   # We did not find ourselves, most probably we were run as `sh COMMAND'
19848   # in which case we are not to be found in the path.
19849   if test "x$as_myself" = x; then
19850     as_myself=$0
19851   fi
19852   if test ! -f "$as_myself"; then
19853     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19854 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19855    { (exit 1); exit 1; }; }
19856   fi
19857   case $CONFIG_SHELL in
19858   '')
19859     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19860 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19861 do
19862   IFS=$as_save_IFS
19863   test -z "$as_dir" && as_dir=.
19864   for as_base in sh bash ksh sh5; do
19865          case $as_dir in
19866          /*)
19867            if ("$as_dir/$as_base" -c '
19868   as_lineno_1=$LINENO
19869   as_lineno_2=$LINENO
19870   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19871   test "x$as_lineno_1" != "x$as_lineno_2" &&
19872   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
19873              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19874              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19875              CONFIG_SHELL=$as_dir/$as_base
19876              export CONFIG_SHELL
19877              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19878            fi;;
19879          esac
19880        done
19881 done
19882 ;;
19883   esac
19884
19885   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19886   # uniformly replaced by the line number.  The first 'sed' inserts a
19887   # line-number line before each line; the second 'sed' does the real
19888   # work.  The second script uses 'N' to pair each line-number line
19889   # with the numbered line, and appends trailing '-' during
19890   # substitution so that $LINENO is not a special case at line end.
19891   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19892   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
19893   sed '=' <$as_myself |
19894     sed '
19895       N
19896       s,$,-,
19897       : loop
19898       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19899       t loop
19900       s,-$,,
19901       s,^['$as_cr_digits']*\n,,
19902     ' >$as_me.lineno &&
19903   chmod +x $as_me.lineno ||
19904     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19905 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19906    { (exit 1); exit 1; }; }
19907
19908   # Don't try to exec as it changes $[0], causing all sort of problems
19909   # (the dirname of $[0] is not the place where we might find the
19910   # original and so on.  Autoconf is especially sensible to this).
19911   . ./$as_me.lineno
19912   # Exit status is that of the last command.
19913   exit
19914 }
19915
19916
19917 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19918   *c*,-n*) ECHO_N= ECHO_C='
19919 ' ECHO_T='      ' ;;
19920   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19921   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
19922 esac
19923
19924 if expr a : '\(a\)' >/dev/null 2>&1; then
19925   as_expr=expr
19926 else
19927   as_expr=false
19928 fi
19929
19930 rm -f conf$$ conf$$.exe conf$$.file
19931 echo >conf$$.file
19932 if ln -s conf$$.file conf$$ 2>/dev/null; then
19933   # We could just check for DJGPP; but this test a) works b) is more generic
19934   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19935   if test -f conf$$.exe; then
19936     # Don't use ln at all; we don't have any links
19937     as_ln_s='cp -p'
19938   else
19939     as_ln_s='ln -s'
19940   fi
19941 elif ln conf$$.file conf$$ 2>/dev/null; then
19942   as_ln_s=ln
19943 else
19944   as_ln_s='cp -p'
19945 fi
19946 rm -f conf$$ conf$$.exe conf$$.file
19947
19948 if mkdir -p . 2>/dev/null; then
19949   as_mkdir_p=:
19950 else
19951   test -d ./-p && rmdir ./-p
19952   as_mkdir_p=false
19953 fi
19954
19955 as_executable_p="test -f"
19956
19957 # Sed expression to map a string onto a valid CPP name.
19958 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19959
19960 # Sed expression to map a string onto a valid variable name.
19961 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19962
19963
19964 # IFS
19965 # We need space, tab and new line, in precisely that order.
19966 as_nl='
19967 '
19968 IFS="   $as_nl"
19969
19970 # CDPATH.
19971 $as_unset CDPATH
19972
19973 exec 6>&1
19974
19975 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19976 # report actual input values of CONFIG_FILES etc. instead of their
19977 # values after options handling.  Logging --version etc. is OK.
19978 exec 5>>config.log
19979 {
19980   echo
19981   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19982 ## Running $as_me. ##
19983 _ASBOX
19984 } >&5
19985 cat >&5 <<_CSEOF
19986
19987 This file was extended by suPHP $as_me 0.6.2, which was
19988 generated by GNU Autoconf 2.59.  Invocation command line was
19989
19990   CONFIG_FILES    = $CONFIG_FILES
19991   CONFIG_HEADERS  = $CONFIG_HEADERS
19992   CONFIG_LINKS    = $CONFIG_LINKS
19993   CONFIG_COMMANDS = $CONFIG_COMMANDS
19994   $ $0 $@
19995
19996 _CSEOF
19997 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19998 echo >&5
19999 _ACEOF
20000
20001 # Files that config.status was made for.
20002 if test -n "$ac_config_files"; then
20003   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20004 fi
20005
20006 if test -n "$ac_config_headers"; then
20007   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20008 fi
20009
20010 if test -n "$ac_config_links"; then
20011   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20012 fi
20013
20014 if test -n "$ac_config_commands"; then
20015   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20016 fi
20017
20018 cat >>$CONFIG_STATUS <<\_ACEOF
20019
20020 ac_cs_usage="\
20021 \`$as_me' instantiates files from templates according to the
20022 current configuration.
20023
20024 Usage: $0 [OPTIONS] [FILE]...
20025
20026   -h, --help       print this help, then exit
20027   -V, --version    print version number, then exit
20028   -q, --quiet      do not print progress messages
20029   -d, --debug      don't remove temporary files
20030       --recheck    update $as_me by reconfiguring in the same conditions
20031   --file=FILE[:TEMPLATE]
20032                    instantiate the configuration file FILE
20033   --header=FILE[:TEMPLATE]
20034                    instantiate the configuration header FILE
20035
20036 Configuration files:
20037 $config_files
20038
20039 Configuration headers:
20040 $config_headers
20041
20042 Configuration commands:
20043 $config_commands
20044
20045 Report bugs to <bug-autoconf@gnu.org>."
20046 _ACEOF
20047
20048 cat >>$CONFIG_STATUS <<_ACEOF
20049 ac_cs_version="\\
20050 suPHP config.status 0.6.2
20051 configured by $0, generated by GNU Autoconf 2.59,
20052   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20053
20054 Copyright (C) 2003 Free Software Foundation, Inc.
20055 This config.status script is free software; the Free Software Foundation
20056 gives unlimited permission to copy, distribute and modify it."
20057 srcdir=$srcdir
20058 INSTALL="$INSTALL"
20059 _ACEOF
20060
20061 cat >>$CONFIG_STATUS <<\_ACEOF
20062 # If no file are specified by the user, then we need to provide default
20063 # value.  By we need to know if files were specified by the user.
20064 ac_need_defaults=:
20065 while test $# != 0
20066 do
20067   case $1 in
20068   --*=*)
20069     ac_option=`expr "x$1" : 'x\([^=]*\)='`
20070     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20071     ac_shift=:
20072     ;;
20073   -*)
20074     ac_option=$1
20075     ac_optarg=$2
20076     ac_shift=shift
20077     ;;
20078   *) # This is not an option, so the user has probably given explicit
20079      # arguments.
20080      ac_option=$1
20081      ac_need_defaults=false;;
20082   esac
20083
20084   case $ac_option in
20085   # Handling of the options.
20086 _ACEOF
20087 cat >>$CONFIG_STATUS <<\_ACEOF
20088   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20089     ac_cs_recheck=: ;;
20090   --version | --vers* | -V )
20091     echo "$ac_cs_version"; exit 0 ;;
20092   --he | --h)
20093     # Conflict between --help and --header
20094     { { echo "$as_me:$LINENO: error: ambiguous option: $1
20095 Try \`$0 --help' for more information." >&5
20096 echo "$as_me: error: ambiguous option: $1
20097 Try \`$0 --help' for more information." >&2;}
20098    { (exit 1); exit 1; }; };;
20099   --help | --hel | -h )
20100     echo "$ac_cs_usage"; exit 0 ;;
20101   --debug | --d* | -d )
20102     debug=: ;;
20103   --file | --fil | --fi | --f )
20104     $ac_shift
20105     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20106     ac_need_defaults=false;;
20107   --header | --heade | --head | --hea )
20108     $ac_shift
20109     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20110     ac_need_defaults=false;;
20111   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20112   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20113     ac_cs_silent=: ;;
20114
20115   # This is an error.
20116   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20117 Try \`$0 --help' for more information." >&5
20118 echo "$as_me: error: unrecognized option: $1
20119 Try \`$0 --help' for more information." >&2;}
20120    { (exit 1); exit 1; }; } ;;
20121
20122   *) ac_config_targets="$ac_config_targets $1" ;;
20123
20124   esac
20125   shift
20126 done
20127
20128 ac_configure_extra_args=
20129
20130 if $ac_cs_silent; then
20131   exec 6>/dev/null
20132   ac_configure_extra_args="$ac_configure_extra_args --silent"
20133 fi
20134
20135 _ACEOF
20136 cat >>$CONFIG_STATUS <<_ACEOF
20137 if \$ac_cs_recheck; then
20138   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20139   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20140 fi
20141
20142 _ACEOF
20143
20144 cat >>$CONFIG_STATUS <<_ACEOF
20145 #
20146 # INIT-COMMANDS section.
20147 #
20148
20149 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20150
20151 _ACEOF
20152
20153
20154
20155 cat >>$CONFIG_STATUS <<\_ACEOF
20156 for ac_config_target in $ac_config_targets
20157 do
20158   case "$ac_config_target" in
20159   # Handling of arguments.
20160   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20161   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20162   "src/apache/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/apache/Makefile" ;;
20163   "src/apache2/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/apache2/Makefile" ;;
20164   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20165   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
20166   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20167 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20168    { (exit 1); exit 1; }; };;
20169   esac
20170 done
20171
20172 # If the user did not use the arguments to specify the items to instantiate,
20173 # then the envvar interface is used.  Set only those that are not.
20174 # We use the long form for the default assignment because of an extremely
20175 # bizarre bug on SunOS 4.1.3.
20176 if $ac_need_defaults; then
20177   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20178   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20179   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20180 fi
20181
20182 # Have a temporary directory for convenience.  Make it in the build tree
20183 # simply because there is no reason to put it here, and in addition,
20184 # creating and moving files from /tmp can sometimes cause problems.
20185 # Create a temporary directory, and hook for its removal unless debugging.
20186 $debug ||
20187 {
20188   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20189   trap '{ (exit 1); exit 1; }' 1 2 13 15
20190 }
20191
20192 # Create a (secure) tmp directory for tmp files.
20193
20194 {
20195   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20196   test -n "$tmp" && test -d "$tmp"
20197 }  ||
20198 {
20199   tmp=./confstat$$-$RANDOM
20200   (umask 077 && mkdir $tmp)
20201 } ||
20202 {
20203    echo "$me: cannot create a temporary directory in ." >&2
20204    { (exit 1); exit 1; }
20205 }
20206
20207 _ACEOF
20208
20209 cat >>$CONFIG_STATUS <<_ACEOF
20210
20211 #
20212 # CONFIG_FILES section.
20213 #
20214
20215 # No need to generate the scripts if there are no CONFIG_FILES.
20216 # This happens for instance when ./config.status config.h
20217 if test -n "\$CONFIG_FILES"; then
20218   # Protect against being on the right side of a sed subst in config.status.
20219   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20220    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20221 s,@SHELL@,$SHELL,;t t
20222 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20223 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20224 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20225 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20226 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20227 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20228 s,@exec_prefix@,$exec_prefix,;t t
20229 s,@prefix@,$prefix,;t t
20230 s,@program_transform_name@,$program_transform_name,;t t
20231 s,@bindir@,$bindir,;t t
20232 s,@sbindir@,$sbindir,;t t
20233 s,@libexecdir@,$libexecdir,;t t
20234 s,@datadir@,$datadir,;t t
20235 s,@sysconfdir@,$sysconfdir,;t t
20236 s,@sharedstatedir@,$sharedstatedir,;t t
20237 s,@localstatedir@,$localstatedir,;t t
20238 s,@libdir@,$libdir,;t t
20239 s,@includedir@,$includedir,;t t
20240 s,@oldincludedir@,$oldincludedir,;t t
20241 s,@infodir@,$infodir,;t t
20242 s,@mandir@,$mandir,;t t
20243 s,@build_alias@,$build_alias,;t t
20244 s,@host_alias@,$host_alias,;t t
20245 s,@target_alias@,$target_alias,;t t
20246 s,@DEFS@,$DEFS,;t t
20247 s,@ECHO_C@,$ECHO_C,;t t
20248 s,@ECHO_N@,$ECHO_N,;t t
20249 s,@ECHO_T@,$ECHO_T,;t t
20250 s,@LIBS@,$LIBS,;t t
20251 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20252 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20253 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20254 s,@CYGPATH_W@,$CYGPATH_W,;t t
20255 s,@PACKAGE@,$PACKAGE,;t t
20256 s,@VERSION@,$VERSION,;t t
20257 s,@ACLOCAL@,$ACLOCAL,;t t
20258 s,@AUTOCONF@,$AUTOCONF,;t t
20259 s,@AUTOMAKE@,$AUTOMAKE,;t t
20260 s,@AUTOHEADER@,$AUTOHEADER,;t t
20261 s,@MAKEINFO@,$MAKEINFO,;t t
20262 s,@install_sh@,$install_sh,;t t
20263 s,@STRIP@,$STRIP,;t t
20264 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20265 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20266 s,@mkdir_p@,$mkdir_p,;t t
20267 s,@AWK@,$AWK,;t t
20268 s,@SET_MAKE@,$SET_MAKE,;t t
20269 s,@am__leading_dot@,$am__leading_dot,;t t
20270 s,@AMTAR@,$AMTAR,;t t
20271 s,@am__tar@,$am__tar,;t t
20272 s,@am__untar@,$am__untar,;t t
20273 s,@CC@,$CC,;t t
20274 s,@CFLAGS@,$CFLAGS,;t t
20275 s,@LDFLAGS@,$LDFLAGS,;t t
20276 s,@CPPFLAGS@,$CPPFLAGS,;t t
20277 s,@ac_ct_CC@,$ac_ct_CC,;t t
20278 s,@EXEEXT@,$EXEEXT,;t t
20279 s,@OBJEXT@,$OBJEXT,;t t
20280 s,@DEPDIR@,$DEPDIR,;t t
20281 s,@am__include@,$am__include,;t t
20282 s,@am__quote@,$am__quote,;t t
20283 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20284 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20285 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20286 s,@CCDEPMODE@,$CCDEPMODE,;t t
20287 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20288 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20289 s,@CXX@,$CXX,;t t
20290 s,@CXXFLAGS@,$CXXFLAGS,;t t
20291 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20292 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20293 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20294 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20295 s,@build@,$build,;t t
20296 s,@build_cpu@,$build_cpu,;t t
20297 s,@build_vendor@,$build_vendor,;t t
20298 s,@build_os@,$build_os,;t t
20299 s,@host@,$host,;t t
20300 s,@host_cpu@,$host_cpu,;t t
20301 s,@host_vendor@,$host_vendor,;t t
20302 s,@host_os@,$host_os,;t t
20303 s,@EGREP@,$EGREP,;t t
20304 s,@LN_S@,$LN_S,;t t
20305 s,@ECHO@,$ECHO,;t t
20306 s,@AR@,$AR,;t t
20307 s,@ac_ct_AR@,$ac_ct_AR,;t t
20308 s,@RANLIB@,$RANLIB,;t t
20309 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20310 s,@CPP@,$CPP,;t t
20311 s,@CXXCPP@,$CXXCPP,;t t
20312 s,@F77@,$F77,;t t
20313 s,@FFLAGS@,$FFLAGS,;t t
20314 s,@ac_ct_F77@,$ac_ct_F77,;t t
20315 s,@LIBTOOL@,$LIBTOOL,;t t
20316 s,@APXS@,$APXS,;t t
20317 s,@APACHE_VERSION_1_3@,$APACHE_VERSION_1_3,;t t
20318 s,@APACHE_VERSION_2@,$APACHE_VERSION_2,;t t
20319 s,@APXS_INCLUDEDIR@,$APXS_INCLUDEDIR,;t t
20320 s,@APXS_LIBEXECDIR@,$APXS_LIBEXECDIR,;t t
20321 s,@APXS_EXTRA_CFLAGS@,$APXS_EXTRA_CFLAGS,;t t
20322 s,@APR_INCLUDEDIR@,$APR_INCLUDEDIR,;t t
20323 s,@APR_CPPFLAGS@,$APR_CPPFLAGS,;t t
20324 s,@OPT_APACHEMOD_USERGROUP_DEF@,$OPT_APACHEMOD_USERGROUP_DEF,;t t
20325 s,@COND_AP13_TRUE@,$COND_AP13_TRUE,;t t
20326 s,@COND_AP13_FALSE@,$COND_AP13_FALSE,;t t
20327 s,@COND_AP20_TRUE@,$COND_AP20_TRUE,;t t
20328 s,@COND_AP20_FALSE@,$COND_AP20_FALSE,;t t
20329 s,@COND_APUSERGROUP_TRUE@,$COND_APUSERGROUP_TRUE,;t t
20330 s,@COND_APUSERGROUP_FALSE@,$COND_APUSERGROUP_FALSE,;t t
20331 s,@LIBOBJS@,$LIBOBJS,;t t
20332 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20333 CEOF
20334
20335 _ACEOF
20336
20337   cat >>$CONFIG_STATUS <<\_ACEOF
20338   # Split the substitutions into bite-sized pieces for seds with
20339   # small command number limits, like on Digital OSF/1 and HP-UX.
20340   ac_max_sed_lines=48
20341   ac_sed_frag=1 # Number of current file.
20342   ac_beg=1 # First line for current file.
20343   ac_end=$ac_max_sed_lines # Line after last line for current file.
20344   ac_more_lines=:
20345   ac_sed_cmds=
20346   while $ac_more_lines; do
20347     if test $ac_beg -gt 1; then
20348       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20349     else
20350       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20351     fi
20352     if test ! -s $tmp/subs.frag; then
20353       ac_more_lines=false
20354     else
20355       # The purpose of the label and of the branching condition is to
20356       # speed up the sed processing (if there are no `@' at all, there
20357       # is no need to browse any of the substitutions).
20358       # These are the two extra sed commands mentioned above.
20359       (echo ':t
20360   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20361       if test -z "$ac_sed_cmds"; then
20362         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20363       else
20364         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20365       fi
20366       ac_sed_frag=`expr $ac_sed_frag + 1`
20367       ac_beg=$ac_end
20368       ac_end=`expr $ac_end + $ac_max_sed_lines`
20369     fi
20370   done
20371   if test -z "$ac_sed_cmds"; then
20372     ac_sed_cmds=cat
20373   fi
20374 fi # test -n "$CONFIG_FILES"
20375
20376 _ACEOF
20377 cat >>$CONFIG_STATUS <<\_ACEOF
20378 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20379   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20380   case $ac_file in
20381   - | *:- | *:-:* ) # input from stdin
20382         cat >$tmp/stdin
20383         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20384         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20385   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20386         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20387   * )   ac_file_in=$ac_file.in ;;
20388   esac
20389
20390   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20391   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20392 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20393          X"$ac_file" : 'X\(//\)[^/]' \| \
20394          X"$ac_file" : 'X\(//\)$' \| \
20395          X"$ac_file" : 'X\(/\)' \| \
20396          .     : '\(.\)' 2>/dev/null ||
20397 echo X"$ac_file" |
20398     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20399           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20400           /^X\(\/\/\)$/{ s//\1/; q; }
20401           /^X\(\/\).*/{ s//\1/; q; }
20402           s/.*/./; q'`
20403   { if $as_mkdir_p; then
20404     mkdir -p "$ac_dir"
20405   else
20406     as_dir="$ac_dir"
20407     as_dirs=
20408     while test ! -d "$as_dir"; do
20409       as_dirs="$as_dir $as_dirs"
20410       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20411 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20412          X"$as_dir" : 'X\(//\)[^/]' \| \
20413          X"$as_dir" : 'X\(//\)$' \| \
20414          X"$as_dir" : 'X\(/\)' \| \
20415          .     : '\(.\)' 2>/dev/null ||
20416 echo X"$as_dir" |
20417     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20418           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20419           /^X\(\/\/\)$/{ s//\1/; q; }
20420           /^X\(\/\).*/{ s//\1/; q; }
20421           s/.*/./; q'`
20422     done
20423     test ! -n "$as_dirs" || mkdir $as_dirs
20424   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20425 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20426    { (exit 1); exit 1; }; }; }
20427
20428   ac_builddir=.
20429
20430 if test "$ac_dir" != .; then
20431   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20432   # A "../" for each directory in $ac_dir_suffix.
20433   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20434 else
20435   ac_dir_suffix= ac_top_builddir=
20436 fi
20437
20438 case $srcdir in
20439   .)  # No --srcdir option.  We are building in place.
20440     ac_srcdir=.
20441     if test -z "$ac_top_builddir"; then
20442        ac_top_srcdir=.
20443     else
20444        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20445     fi ;;
20446   [\\/]* | ?:[\\/]* )  # Absolute path.
20447     ac_srcdir=$srcdir$ac_dir_suffix;
20448     ac_top_srcdir=$srcdir ;;
20449   *) # Relative path.
20450     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20451     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20452 esac
20453
20454 # Do not use `cd foo && pwd` to compute absolute paths, because
20455 # the directories may not exist.
20456 case `pwd` in
20457 .) ac_abs_builddir="$ac_dir";;
20458 *)
20459   case "$ac_dir" in
20460   .) ac_abs_builddir=`pwd`;;
20461   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20462   *) ac_abs_builddir=`pwd`/"$ac_dir";;
20463   esac;;
20464 esac
20465 case $ac_abs_builddir in
20466 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20467 *)
20468   case ${ac_top_builddir}. in
20469   .) ac_abs_top_builddir=$ac_abs_builddir;;
20470   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20471   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20472   esac;;
20473 esac
20474 case $ac_abs_builddir in
20475 .) ac_abs_srcdir=$ac_srcdir;;
20476 *)
20477   case $ac_srcdir in
20478   .) ac_abs_srcdir=$ac_abs_builddir;;
20479   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20480   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20481   esac;;
20482 esac
20483 case $ac_abs_builddir in
20484 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20485 *)
20486   case $ac_top_srcdir in
20487   .) ac_abs_top_srcdir=$ac_abs_builddir;;
20488   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20489   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20490   esac;;
20491 esac
20492
20493
20494   case $INSTALL in
20495   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20496   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20497   esac
20498
20499   if test x"$ac_file" != x-; then
20500     { echo "$as_me:$LINENO: creating $ac_file" >&5
20501 echo "$as_me: creating $ac_file" >&6;}
20502     rm -f "$ac_file"
20503   fi
20504   # Let's still pretend it is `configure' which instantiates (i.e., don't
20505   # use $as_me), people would be surprised to read:
20506   #    /* config.h.  Generated by config.status.  */
20507   if test x"$ac_file" = x-; then
20508     configure_input=
20509   else
20510     configure_input="$ac_file.  "
20511   fi
20512   configure_input=$configure_input"Generated from `echo $ac_file_in |
20513                                      sed 's,.*/,,'` by configure."
20514
20515   # First look for the input files in the build tree, otherwise in the
20516   # src tree.
20517   ac_file_inputs=`IFS=:
20518     for f in $ac_file_in; do
20519       case $f in
20520       -) echo $tmp/stdin ;;
20521       [\\/$]*)
20522          # Absolute (can't be DOS-style, as IFS=:)
20523          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20524 echo "$as_me: error: cannot find input file: $f" >&2;}
20525    { (exit 1); exit 1; }; }
20526          echo "$f";;
20527       *) # Relative
20528          if test -f "$f"; then
20529            # Build tree
20530            echo "$f"
20531          elif test -f "$srcdir/$f"; then
20532            # Source tree
20533            echo "$srcdir/$f"
20534          else
20535            # /dev/null tree
20536            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20537 echo "$as_me: error: cannot find input file: $f" >&2;}
20538    { (exit 1); exit 1; }; }
20539          fi;;
20540       esac
20541     done` || { (exit 1); exit 1; }
20542 _ACEOF
20543 cat >>$CONFIG_STATUS <<_ACEOF
20544   sed "$ac_vpsub
20545 $extrasub
20546 _ACEOF
20547 cat >>$CONFIG_STATUS <<\_ACEOF
20548 :t
20549 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20550 s,@configure_input@,$configure_input,;t t
20551 s,@srcdir@,$ac_srcdir,;t t
20552 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20553 s,@top_srcdir@,$ac_top_srcdir,;t t
20554 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20555 s,@builddir@,$ac_builddir,;t t
20556 s,@abs_builddir@,$ac_abs_builddir,;t t
20557 s,@top_builddir@,$ac_top_builddir,;t t
20558 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20559 s,@INSTALL@,$ac_INSTALL,;t t
20560 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20561   rm -f $tmp/stdin
20562   if test x"$ac_file" != x-; then
20563     mv $tmp/out $ac_file
20564   else
20565     cat $tmp/out
20566     rm -f $tmp/out
20567   fi
20568
20569 done
20570 _ACEOF
20571 cat >>$CONFIG_STATUS <<\_ACEOF
20572
20573 #
20574 # CONFIG_HEADER section.
20575 #
20576
20577 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20578 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20579 #
20580 # ac_d sets the value in "#define NAME VALUE" lines.
20581 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
20582 ac_dB='[         ].*$,\1#\2'
20583 ac_dC=' '
20584 ac_dD=',;t'
20585 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20586 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
20587 ac_uB='$,\1#\2define\3'
20588 ac_uC=' '
20589 ac_uD=',;t'
20590
20591 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20592   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20593   case $ac_file in
20594   - | *:- | *:-:* ) # input from stdin
20595         cat >$tmp/stdin
20596         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20597         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20598   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20599         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20600   * )   ac_file_in=$ac_file.in ;;
20601   esac
20602
20603   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20604 echo "$as_me: creating $ac_file" >&6;}
20605
20606   # First look for the input files in the build tree, otherwise in the
20607   # src tree.
20608   ac_file_inputs=`IFS=:
20609     for f in $ac_file_in; do
20610       case $f in
20611       -) echo $tmp/stdin ;;
20612       [\\/$]*)
20613          # Absolute (can't be DOS-style, as IFS=:)
20614          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20615 echo "$as_me: error: cannot find input file: $f" >&2;}
20616    { (exit 1); exit 1; }; }
20617          # Do quote $f, to prevent DOS paths from being IFS'd.
20618          echo "$f";;
20619       *) # Relative
20620          if test -f "$f"; then
20621            # Build tree
20622            echo "$f"
20623          elif test -f "$srcdir/$f"; then
20624            # Source tree
20625            echo "$srcdir/$f"
20626          else
20627            # /dev/null tree
20628            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20629 echo "$as_me: error: cannot find input file: $f" >&2;}
20630    { (exit 1); exit 1; }; }
20631          fi;;
20632       esac
20633     done` || { (exit 1); exit 1; }
20634   # Remove the trailing spaces.
20635   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
20636
20637 _ACEOF
20638
20639 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20640 # `conftest.undefs', that substitutes the proper values into
20641 # config.h.in to produce config.h.  The first handles `#define'
20642 # templates, and the second `#undef' templates.
20643 # And first: Protect against being on the right side of a sed subst in
20644 # config.status.  Protect against being in an unquoted here document
20645 # in config.status.
20646 rm -f conftest.defines conftest.undefs
20647 # Using a here document instead of a string reduces the quoting nightmare.
20648 # Putting comments in sed scripts is not portable.
20649 #
20650 # `end' is used to avoid that the second main sed command (meant for
20651 # 0-ary CPP macros) applies to n-ary macro definitions.
20652 # See the Autoconf documentation for `clear'.
20653 cat >confdef2sed.sed <<\_ACEOF
20654 s/[\\&,]/\\&/g
20655 s,[\\$`],\\&,g
20656 t clear
20657 : clear
20658 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20659 t end
20660 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20661 : end
20662 _ACEOF
20663 # If some macros were called several times there might be several times
20664 # the same #defines, which is useless.  Nevertheless, we may not want to
20665 # sort them, since we want the *last* AC-DEFINE to be honored.
20666 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20667 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20668 rm -f confdef2sed.sed
20669
20670 # This sed command replaces #undef with comments.  This is necessary, for
20671 # example, in the case of _POSIX_SOURCE, which is predefined and required
20672 # on some systems where configure will not decide to define it.
20673 cat >>conftest.undefs <<\_ACEOF
20674 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20675 _ACEOF
20676
20677 # Break up conftest.defines because some shells have a limit on the size
20678 # of here documents, and old seds have small limits too (100 cmds).
20679 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20680 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20681 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20682 echo '  :' >>$CONFIG_STATUS
20683 rm -f conftest.tail
20684 while grep . conftest.defines >/dev/null
20685 do
20686   # Write a limited-size here document to $tmp/defines.sed.
20687   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20688   # Speed up: don't consider the non `#define' lines.
20689   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
20690   # Work around the forget-to-reset-the-flag bug.
20691   echo 't clr' >>$CONFIG_STATUS
20692   echo ': clr' >>$CONFIG_STATUS
20693   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20694   echo 'CEOF
20695   sed -f $tmp/defines.sed $tmp/in >$tmp/out
20696   rm -f $tmp/in
20697   mv $tmp/out $tmp/in
20698 ' >>$CONFIG_STATUS
20699   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20700   rm -f conftest.defines
20701   mv conftest.tail conftest.defines
20702 done
20703 rm -f conftest.defines
20704 echo '  fi # grep' >>$CONFIG_STATUS
20705 echo >>$CONFIG_STATUS
20706
20707 # Break up conftest.undefs because some shells have a limit on the size
20708 # of here documents, and old seds have small limits too (100 cmds).
20709 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
20710 rm -f conftest.tail
20711 while grep . conftest.undefs >/dev/null
20712 do
20713   # Write a limited-size here document to $tmp/undefs.sed.
20714   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20715   # Speed up: don't consider the non `#undef'
20716   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
20717   # Work around the forget-to-reset-the-flag bug.
20718   echo 't clr' >>$CONFIG_STATUS
20719   echo ': clr' >>$CONFIG_STATUS
20720   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20721   echo 'CEOF
20722   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20723   rm -f $tmp/in
20724   mv $tmp/out $tmp/in
20725 ' >>$CONFIG_STATUS
20726   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20727   rm -f conftest.undefs
20728   mv conftest.tail conftest.undefs
20729 done
20730 rm -f conftest.undefs
20731
20732 cat >>$CONFIG_STATUS <<\_ACEOF
20733   # Let's still pretend it is `configure' which instantiates (i.e., don't
20734   # use $as_me), people would be surprised to read:
20735   #    /* config.h.  Generated by config.status.  */
20736   if test x"$ac_file" = x-; then
20737     echo "/* Generated by configure.  */" >$tmp/config.h
20738   else
20739     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
20740   fi
20741   cat $tmp/in >>$tmp/config.h
20742   rm -f $tmp/in
20743   if test x"$ac_file" != x-; then
20744     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20745       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20746 echo "$as_me: $ac_file is unchanged" >&6;}
20747     else
20748       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20749 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20750          X"$ac_file" : 'X\(//\)[^/]' \| \
20751          X"$ac_file" : 'X\(//\)$' \| \
20752          X"$ac_file" : 'X\(/\)' \| \
20753          .     : '\(.\)' 2>/dev/null ||
20754 echo X"$ac_file" |
20755     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20756           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20757           /^X\(\/\/\)$/{ s//\1/; q; }
20758           /^X\(\/\).*/{ s//\1/; q; }
20759           s/.*/./; q'`
20760       { if $as_mkdir_p; then
20761     mkdir -p "$ac_dir"
20762   else
20763     as_dir="$ac_dir"
20764     as_dirs=
20765     while test ! -d "$as_dir"; do
20766       as_dirs="$as_dir $as_dirs"
20767       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20768 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20769          X"$as_dir" : 'X\(//\)[^/]' \| \
20770          X"$as_dir" : 'X\(//\)$' \| \
20771          X"$as_dir" : 'X\(/\)' \| \
20772          .     : '\(.\)' 2>/dev/null ||
20773 echo X"$as_dir" |
20774     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20775           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20776           /^X\(\/\/\)$/{ s//\1/; q; }
20777           /^X\(\/\).*/{ s//\1/; q; }
20778           s/.*/./; q'`
20779     done
20780     test ! -n "$as_dirs" || mkdir $as_dirs
20781   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20782 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20783    { (exit 1); exit 1; }; }; }
20784
20785       rm -f $ac_file
20786       mv $tmp/config.h $ac_file
20787     fi
20788   else
20789     cat $tmp/config.h
20790     rm -f $tmp/config.h
20791   fi
20792 # Compute $ac_file's index in $config_headers.
20793 _am_stamp_count=1
20794 for _am_header in $config_headers :; do
20795   case $_am_header in
20796     $ac_file | $ac_file:* )
20797       break ;;
20798     * )
20799       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20800   esac
20801 done
20802 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20803 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20804          X$ac_file : 'X\(//\)[^/]' \| \
20805          X$ac_file : 'X\(//\)$' \| \
20806          X$ac_file : 'X\(/\)' \| \
20807          .     : '\(.\)' 2>/dev/null ||
20808 echo X$ac_file |
20809     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20810           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20811           /^X\(\/\/\)$/{ s//\1/; q; }
20812           /^X\(\/\).*/{ s//\1/; q; }
20813           s/.*/./; q'`/stamp-h$_am_stamp_count
20814 done
20815 _ACEOF
20816 cat >>$CONFIG_STATUS <<\_ACEOF
20817
20818 #
20819 # CONFIG_COMMANDS section.
20820 #
20821 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20822   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20823   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20824   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20825 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20826          X"$ac_dest" : 'X\(//\)[^/]' \| \
20827          X"$ac_dest" : 'X\(//\)$' \| \
20828          X"$ac_dest" : 'X\(/\)' \| \
20829          .     : '\(.\)' 2>/dev/null ||
20830 echo X"$ac_dest" |
20831     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20832           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20833           /^X\(\/\/\)$/{ s//\1/; q; }
20834           /^X\(\/\).*/{ s//\1/; q; }
20835           s/.*/./; q'`
20836   { if $as_mkdir_p; then
20837     mkdir -p "$ac_dir"
20838   else
20839     as_dir="$ac_dir"
20840     as_dirs=
20841     while test ! -d "$as_dir"; do
20842       as_dirs="$as_dir $as_dirs"
20843       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20844 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20845          X"$as_dir" : 'X\(//\)[^/]' \| \
20846          X"$as_dir" : 'X\(//\)$' \| \
20847          X"$as_dir" : 'X\(/\)' \| \
20848          .     : '\(.\)' 2>/dev/null ||
20849 echo X"$as_dir" |
20850     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20851           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20852           /^X\(\/\/\)$/{ s//\1/; q; }
20853           /^X\(\/\).*/{ s//\1/; q; }
20854           s/.*/./; q'`
20855     done
20856     test ! -n "$as_dirs" || mkdir $as_dirs
20857   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20858 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20859    { (exit 1); exit 1; }; }; }
20860
20861   ac_builddir=.
20862
20863 if test "$ac_dir" != .; then
20864   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20865   # A "../" for each directory in $ac_dir_suffix.
20866   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20867 else
20868   ac_dir_suffix= ac_top_builddir=
20869 fi
20870
20871 case $srcdir in
20872   .)  # No --srcdir option.  We are building in place.
20873     ac_srcdir=.
20874     if test -z "$ac_top_builddir"; then
20875        ac_top_srcdir=.
20876     else
20877        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20878     fi ;;
20879   [\\/]* | ?:[\\/]* )  # Absolute path.
20880     ac_srcdir=$srcdir$ac_dir_suffix;
20881     ac_top_srcdir=$srcdir ;;
20882   *) # Relative path.
20883     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20884     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20885 esac
20886
20887 # Do not use `cd foo && pwd` to compute absolute paths, because
20888 # the directories may not exist.
20889 case `pwd` in
20890 .) ac_abs_builddir="$ac_dir";;
20891 *)
20892   case "$ac_dir" in
20893   .) ac_abs_builddir=`pwd`;;
20894   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20895   *) ac_abs_builddir=`pwd`/"$ac_dir";;
20896   esac;;
20897 esac
20898 case $ac_abs_builddir in
20899 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20900 *)
20901   case ${ac_top_builddir}. in
20902   .) ac_abs_top_builddir=$ac_abs_builddir;;
20903   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20904   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20905   esac;;
20906 esac
20907 case $ac_abs_builddir in
20908 .) ac_abs_srcdir=$ac_srcdir;;
20909 *)
20910   case $ac_srcdir in
20911   .) ac_abs_srcdir=$ac_abs_builddir;;
20912   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20913   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20914   esac;;
20915 esac
20916 case $ac_abs_builddir in
20917 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20918 *)
20919   case $ac_top_srcdir in
20920   .) ac_abs_top_srcdir=$ac_abs_builddir;;
20921   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20922   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20923   esac;;
20924 esac
20925
20926
20927   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20928 echo "$as_me: executing $ac_dest commands" >&6;}
20929   case $ac_dest in
20930     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20931   # Strip MF so we end up with the name of the file.
20932   mf=`echo "$mf" | sed -e 's/:.*$//'`
20933   # Check whether this is an Automake generated Makefile or not.
20934   # We used to match only the files named `Makefile.in', but
20935   # some people rename them; so instead we look at the file content.
20936   # Grep'ing the first line is not enough: some people post-process
20937   # each Makefile.in and add a new line on top of each file to say so.
20938   # So let's grep whole file.
20939   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20940     dirpart=`(dirname "$mf") 2>/dev/null ||
20941 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20942          X"$mf" : 'X\(//\)[^/]' \| \
20943          X"$mf" : 'X\(//\)$' \| \
20944          X"$mf" : 'X\(/\)' \| \
20945          .     : '\(.\)' 2>/dev/null ||
20946 echo X"$mf" |
20947     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20948           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20949           /^X\(\/\/\)$/{ s//\1/; q; }
20950           /^X\(\/\).*/{ s//\1/; q; }
20951           s/.*/./; q'`
20952   else
20953     continue
20954   fi
20955   # Extract the definition of DEPDIR, am__include, and am__quote
20956   # from the Makefile without running `make'.
20957   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20958   test -z "$DEPDIR" && continue
20959   am__include=`sed -n 's/^am__include = //p' < "$mf"`
20960   test -z "am__include" && continue
20961   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20962   # When using ansi2knr, U may be empty or an underscore; expand it
20963   U=`sed -n 's/^U = //p' < "$mf"`
20964   # Find all dependency output files, they are included files with
20965   # $(DEPDIR) in their names.  We invoke sed twice because it is the
20966   # simplest approach to changing $(DEPDIR) to its actual value in the
20967   # expansion.
20968   for file in `sed -n "
20969     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20970        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20971     # Make sure the directory exists.
20972     test -f "$dirpart/$file" && continue
20973     fdir=`(dirname "$file") 2>/dev/null ||
20974 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20975          X"$file" : 'X\(//\)[^/]' \| \
20976          X"$file" : 'X\(//\)$' \| \
20977          X"$file" : 'X\(/\)' \| \
20978          .     : '\(.\)' 2>/dev/null ||
20979 echo X"$file" |
20980     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20981           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20982           /^X\(\/\/\)$/{ s//\1/; q; }
20983           /^X\(\/\).*/{ s//\1/; q; }
20984           s/.*/./; q'`
20985     { if $as_mkdir_p; then
20986     mkdir -p $dirpart/$fdir
20987   else
20988     as_dir=$dirpart/$fdir
20989     as_dirs=
20990     while test ! -d "$as_dir"; do
20991       as_dirs="$as_dir $as_dirs"
20992       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20993 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20994          X"$as_dir" : 'X\(//\)[^/]' \| \
20995          X"$as_dir" : 'X\(//\)$' \| \
20996          X"$as_dir" : 'X\(/\)' \| \
20997          .     : '\(.\)' 2>/dev/null ||
20998 echo X"$as_dir" |
20999     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21000           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21001           /^X\(\/\/\)$/{ s//\1/; q; }
21002           /^X\(\/\).*/{ s//\1/; q; }
21003           s/.*/./; q'`
21004     done
21005     test ! -n "$as_dirs" || mkdir $as_dirs
21006   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21007 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21008    { (exit 1); exit 1; }; }; }
21009
21010     # echo "creating $dirpart/$file"
21011     echo '# dummy' > "$dirpart/$file"
21012   done
21013 done
21014  ;;
21015   esac
21016 done
21017 _ACEOF
21018
21019 cat >>$CONFIG_STATUS <<\_ACEOF
21020
21021 { (exit 0); exit 0; }
21022 _ACEOF
21023 chmod +x $CONFIG_STATUS
21024 ac_clean_files=$ac_clean_files_save
21025
21026
21027 # configure is writing to config.log, and then calls config.status.
21028 # config.status does its own redirection, appending to config.log.
21029 # Unfortunately, on DOS this fails, as config.log is still kept open
21030 # by configure, so config.status won't be able to write to it; its
21031 # output is simply discarded.  So we exec the FD to /dev/null,
21032 # effectively closing config.log, so it can be properly (re)opened and
21033 # appended to by config.status.  When coming back to configure, we
21034 # need to make the FD available again.
21035 if test "$no_create" != yes; then
21036   ac_cs_success=:
21037   ac_config_status_args=
21038   test "$silent" = yes &&
21039     ac_config_status_args="$ac_config_status_args --quiet"
21040   exec 5>/dev/null
21041   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21042   exec 5>>config.log
21043   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21044   # would make configure fail if this is the last instruction.
21045   $ac_cs_success || { (exit 1); exit 1; }
21046 fi
21047
21048
21049 if test "$APXS" = "/notfound/"; then
21050   { echo "$as_me:$LINENO: WARNING:
21051 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
21052 !!*** APXS was not found, so mod_suphp will not be built! ***!!
21053 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
21054   " >&5
21055 echo "$as_me: WARNING:
21056 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
21057 !!*** APXS was not found, so mod_suphp will not be built! ***!!
21058 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
21059   " >&2;}
21060 fi
21061