Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Default debug level=verbose; tries to free the dict twice, just for entertaining...
[simgrid.git] / configure
1 #! /bin/sh
2 # From configure.ac Revision: 1.3 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.58 for GRAS 0.1.
5 #
6 # Report bugs to <martin.quinson@ens-lyon.fr>.
7 #
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23   set -o posix
24 fi
25 DUALCASE=1; export DUALCASE # for MKS sh
26
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29   as_unset=unset
30 else
31   as_unset=false
32 fi
33
34
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
37 PS1='$ '
38 PS2='> '
39 PS4='+ '
40
41 # NLS nuisances.
42 for as_var in \
43   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45   LC_TELEPHONE LC_TIME
46 do
47   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48     eval $as_var=C; export $as_var
49   else
50     $as_unset $as_var
51   fi
52 done
53
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
56   as_expr=expr
57 else
58   as_expr=false
59 fi
60
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62   as_basename=basename
63 else
64   as_basename=false
65 fi
66
67
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71          X"$0" : 'X\(//\)$' \| \
72          X"$0" : 'X\(/\)$' \| \
73          .     : '\(.\)' 2>/dev/null ||
74 echo X/"$0" |
75     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76           /^X\/\(\/\/\)$/{ s//\1/; q; }
77           /^X\/\(\/\).*/{ s//\1/; q; }
78           s/.*/./; q'`
79
80
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91   echo "#! /bin/sh" >conf$$.sh
92   echo  "exit 0"   >>conf$$.sh
93   chmod +x conf$$.sh
94   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95     PATH_SEPARATOR=';'
96   else
97     PATH_SEPARATOR=:
98   fi
99   rm -f conf$$.sh
100 fi
101
102
103   as_lineno_1=$LINENO
104   as_lineno_2=$LINENO
105   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106   test "x$as_lineno_1" != "x$as_lineno_2" &&
107   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
108   # Find who we are.  Look in the path if we contain no path at all
109   # relative or not.
110   case $0 in
111     *[\\/]* ) as_myself=$0 ;;
112     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 for as_dir in $PATH
114 do
115   IFS=$as_save_IFS
116   test -z "$as_dir" && as_dir=.
117   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118 done
119
120        ;;
121   esac
122   # We did not find ourselves, most probably we were run as `sh COMMAND'
123   # in which case we are not to be found in the path.
124   if test "x$as_myself" = x; then
125     as_myself=$0
126   fi
127   if test ! -f "$as_myself"; then
128     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129    { (exit 1); exit 1; }; }
130   fi
131   case $CONFIG_SHELL in
132   '')
133     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 do
136   IFS=$as_save_IFS
137   test -z "$as_dir" && as_dir=.
138   for as_base in sh bash ksh sh5; do
139          case $as_dir in
140          /*)
141            if ("$as_dir/$as_base" -c '
142   as_lineno_1=$LINENO
143   as_lineno_2=$LINENO
144   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145   test "x$as_lineno_1" != "x$as_lineno_2" &&
146   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
147              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149              CONFIG_SHELL=$as_dir/$as_base
150              export CONFIG_SHELL
151              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152            fi;;
153          esac
154        done
155 done
156 ;;
157   esac
158
159   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160   # uniformly replaced by the line number.  The first 'sed' inserts a
161   # line-number line before each line; the second 'sed' does the real
162   # work.  The second script uses 'N' to pair each line-number line
163   # with the numbered line, and appends trailing '-' during
164   # substitution so that $LINENO is not a special case at line end.
165   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
167   sed '=' <$as_myself |
168     sed '
169       N
170       s,$,-,
171       : loop
172       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173       t loop
174       s,-$,,
175       s,^['$as_cr_digits']*\n,,
176     ' >$as_me.lineno &&
177   chmod +x $as_me.lineno ||
178     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179    { (exit 1); exit 1; }; }
180
181   # Don't try to exec as it changes $[0], causing all sort of problems
182   # (the dirname of $[0] is not the place where we might find the
183   # original and so on.  Autoconf is especially sensible to this).
184   . ./$as_me.lineno
185   # Exit status is that of the last command.
186   exit
187 }
188
189
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191   *c*,-n*) ECHO_N= ECHO_C='
192 ' ECHO_T='      ' ;;
193   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 esac
196
197 if expr a : '\(a\)' >/dev/null 2>&1; then
198   as_expr=expr
199 else
200   as_expr=false
201 fi
202
203 rm -f conf$$ conf$$.exe conf$$.file
204 echo >conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206   # We could just check for DJGPP; but this test a) works b) is more generic
207   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208   if test -f conf$$.exe; then
209     # Don't use ln at all; we don't have any links
210     as_ln_s='cp -p'
211   else
212     as_ln_s='ln -s'
213   fi
214 elif ln conf$$.file conf$$ 2>/dev/null; then
215   as_ln_s=ln
216 else
217   as_ln_s='cp -p'
218 fi
219 rm -f conf$$ conf$$.exe conf$$.file
220
221 if mkdir -p . 2>/dev/null; then
222   as_mkdir_p=:
223 else
224   test -d ./-p && rmdir ./-p
225   as_mkdir_p=false
226 fi
227
228 as_executable_p="test -f"
229
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
236
237 # IFS
238 # We need space, tab and new line, in precisely that order.
239 as_nl='
240 '
241 IFS="   $as_nl"
242
243 # CDPATH.
244 $as_unset CDPATH
245
246
247
248 # Check that we are running under the correct shell.
249 SHELL=${CONFIG_SHELL-/bin/sh}
250
251 case X$ECHO in
252 X*--fallback-echo)
253   # Remove one level of quotation (which was required for Make).
254   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
255   ;;
256 esac
257
258 echo=${ECHO-echo}
259 if test "X$1" = X--no-reexec; then
260   # Discard the --no-reexec flag, and continue.
261   shift
262 elif test "X$1" = X--fallback-echo; then
263   # Avoid inline document here, it may be left over
264   :
265 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
266   # Yippee, $echo works!
267   :
268 else
269   # Restart under the correct shell.
270   exec $SHELL "$0" --no-reexec ${1+"$@"}
271 fi
272
273 if test "X$1" = X--fallback-echo; then
274   # used as fallback echo
275   shift
276   cat <<EOF
277 $*
278 EOF
279   exit 0
280 fi
281
282 # The HP-UX ksh and POSIX shell print the target directory to stdout
283 # if CDPATH is set.
284 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
285
286 if test -z "$ECHO"; then
287 if test "X${echo_test_string+set}" != Xset; then
288 # find a string as large as possible, as long as the shell can cope with it
289   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
290     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
291     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
292        echo_test_string="`eval $cmd`" &&
293        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
294     then
295       break
296     fi
297   done
298 fi
299
300 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
301    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
302    test "X$echo_testing_string" = "X$echo_test_string"; then
303   :
304 else
305   # The Solaris, AIX, and Digital Unix default echo programs unquote
306   # backslashes.  This makes it impossible to quote backslashes using
307   #   echo "$something" | sed 's/\\/\\\\/g'
308   #
309   # So, first we look for a working echo in the user's PATH.
310
311   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
312   for dir in $PATH /usr/ucb; do
313     IFS="$lt_save_ifs"
314     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
315        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
316        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
317        test "X$echo_testing_string" = "X$echo_test_string"; then
318       echo="$dir/echo"
319       break
320     fi
321   done
322   IFS="$lt_save_ifs"
323
324   if test "X$echo" = Xecho; then
325     # We didn't find a better echo, so look for alternatives.
326     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
327        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
328        test "X$echo_testing_string" = "X$echo_test_string"; then
329       # This shell has a builtin print -r that does the trick.
330       echo='print -r'
331     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
332          test "X$CONFIG_SHELL" != X/bin/ksh; then
333       # If we have ksh, try running configure again with it.
334       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
335       export ORIGINAL_CONFIG_SHELL
336       CONFIG_SHELL=/bin/ksh
337       export CONFIG_SHELL
338       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
339     else
340       # Try using printf.
341       echo='printf %s\n'
342       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
343          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
344          test "X$echo_testing_string" = "X$echo_test_string"; then
345         # Cool, printf works
346         :
347       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
348            test "X$echo_testing_string" = 'X\t' &&
349            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
350            test "X$echo_testing_string" = "X$echo_test_string"; then
351         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
352         export CONFIG_SHELL
353         SHELL="$CONFIG_SHELL"
354         export SHELL
355         echo="$CONFIG_SHELL $0 --fallback-echo"
356       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
357            test "X$echo_testing_string" = 'X\t' &&
358            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
359            test "X$echo_testing_string" = "X$echo_test_string"; then
360         echo="$CONFIG_SHELL $0 --fallback-echo"
361       else
362         # maybe with a smaller string...
363         prev=:
364
365         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
366           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
367           then
368             break
369           fi
370           prev="$cmd"
371         done
372
373         if test "$prev" != 'sed 50q "$0"'; then
374           echo_test_string=`eval $prev`
375           export echo_test_string
376           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
377         else
378           # Oops.  We lost completely, so just stick with echo.
379           echo=echo
380         fi
381       fi
382     fi
383   fi
384 fi
385 fi
386
387 # Copy echo and quote the copy suitably for passing to libtool from
388 # the Makefile, instead of quoting the original, which is used later.
389 ECHO=$echo
390 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
391    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
392 fi
393
394
395
396
397 tagnames=${tagnames+${tagnames},}CXX
398
399 tagnames=${tagnames+${tagnames},}F77
400
401 # Name of the host.
402 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
403 # so uname gets run too.
404 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
405
406 exec 6>&1
407
408 #
409 # Initializations.
410 #
411 ac_default_prefix=/usr/local
412 ac_config_libobj_dir=.
413 cross_compiling=no
414 subdirs=
415 MFLAGS=
416 MAKEFLAGS=
417 SHELL=${CONFIG_SHELL-/bin/sh}
418
419 # Maximum number of lines to put in a shell here document.
420 # This variable seems obsolete.  It should probably be removed, and
421 # only ac_max_sed_lines should be used.
422 : ${ac_max_here_lines=38}
423
424 # Identity of this package.
425 PACKAGE_NAME='GRAS'
426 PACKAGE_TARNAME='gras'
427 PACKAGE_VERSION='0.1'
428 PACKAGE_STRING='GRAS 0.1'
429 PACKAGE_BUGREPORT='martin.quinson@ens-lyon.fr'
430
431 ac_unique_file="src/include/gras.h"
432 ac_subdirs_all="$ac_subdirs_all src/nws_portability"
433 # Factoring default headers for most tests.
434 ac_includes_default="\
435 #include <stdio.h>
436 #if HAVE_SYS_TYPES_H
437 # include <sys/types.h>
438 #endif
439 #if HAVE_SYS_STAT_H
440 # include <sys/stat.h>
441 #endif
442 #if STDC_HEADERS
443 # include <stdlib.h>
444 # include <stddef.h>
445 #else
446 # if HAVE_STDLIB_H
447 #  include <stdlib.h>
448 # endif
449 #endif
450 #if HAVE_STRING_H
451 # if !STDC_HEADERS && HAVE_MEMORY_H
452 #  include <memory.h>
453 # endif
454 # include <string.h>
455 #endif
456 #if HAVE_STRINGS_H
457 # include <strings.h>
458 #endif
459 #if HAVE_INTTYPES_H
460 # include <inttypes.h>
461 #else
462 # if HAVE_STDINT_H
463 #  include <stdint.h>
464 # endif
465 #endif
466 #if HAVE_UNISTD_H
467 # include <unistd.h>
468 #endif"
469
470 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 subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot 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 EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL GTKDOC HAVE_GTK_DOC_TRUE HAVE_GTK_DOC_FALSE HAVE_GTK_DOC ENABLE_GTK_DOC_TRUE ENABLE_GTK_DOC_FALSE FLIBS LIBOBJS ACI_CACHE_PROG aci_module_desc_XML aci_pkg_config_XML HAVE_XML CFLAGS_XML LIBS_XML aci_module_desc_SimGrid aci_pkg_prefix_SimGrid aci_pkg_inc_SimGrid aci_pkg_lib_SimGrid aci_pkg_extra_SimGrid HAVE_SimGrid CFLAGS_SimGrid LIBS_SimGrid MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT cflags_set BASH WARNING LTLIBOBJS'
471 ac_subst_files=''
472
473 # Initialize some variables set by options.
474 ac_init_help=
475 ac_init_version=false
476 # The variables have the same names as the options, with
477 # dashes changed to underlines.
478 cache_file=/dev/null
479 exec_prefix=NONE
480 no_create=
481 no_recursion=
482 prefix=NONE
483 program_prefix=NONE
484 program_suffix=NONE
485 program_transform_name=s,x,x,
486 silent=
487 site=
488 srcdir=
489 verbose=
490 x_includes=NONE
491 x_libraries=NONE
492
493 # Installation directory options.
494 # These are left unexpanded so users can "make install exec_prefix=/foo"
495 # and all the variables that are supposed to be based on exec_prefix
496 # by default will actually change.
497 # Use braces instead of parens because sh, perl, etc. also accept them.
498 bindir='${exec_prefix}/bin'
499 sbindir='${exec_prefix}/sbin'
500 libexecdir='${exec_prefix}/libexec'
501 datadir='${prefix}/share'
502 sysconfdir='${prefix}/etc'
503 sharedstatedir='${prefix}/com'
504 localstatedir='${prefix}/var'
505 libdir='${exec_prefix}/lib'
506 includedir='${prefix}/include'
507 oldincludedir='/usr/include'
508 infodir='${prefix}/info'
509 mandir='${prefix}/man'
510
511 ac_prev=
512 for ac_option
513 do
514   # If the previous option needs an argument, assign it.
515   if test -n "$ac_prev"; then
516     eval "$ac_prev=\$ac_option"
517     ac_prev=
518     continue
519   fi
520
521   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
522
523   # Accept the important Cygnus configure options, so we can diagnose typos.
524
525   case $ac_option in
526
527   -bindir | --bindir | --bindi | --bind | --bin | --bi)
528     ac_prev=bindir ;;
529   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530     bindir=$ac_optarg ;;
531
532   -build | --build | --buil | --bui | --bu)
533     ac_prev=build_alias ;;
534   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
535     build_alias=$ac_optarg ;;
536
537   -cache-file | --cache-file | --cache-fil | --cache-fi \
538   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
539     ac_prev=cache_file ;;
540   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
541   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
542     cache_file=$ac_optarg ;;
543
544   --config-cache | -C)
545     cache_file=config.cache ;;
546
547   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
548     ac_prev=datadir ;;
549   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
550   | --da=*)
551     datadir=$ac_optarg ;;
552
553   -disable-* | --disable-*)
554     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
555     # Reject names that are not valid shell variable names.
556     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558    { (exit 1); exit 1; }; }
559     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560     eval "enable_$ac_feature=no" ;;
561
562   -enable-* | --enable-*)
563     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
564     # Reject names that are not valid shell variable names.
565     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567    { (exit 1); exit 1; }; }
568     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569     case $ac_option in
570       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571       *) ac_optarg=yes ;;
572     esac
573     eval "enable_$ac_feature='$ac_optarg'" ;;
574
575   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
576   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
577   | --exec | --exe | --ex)
578     ac_prev=exec_prefix ;;
579   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
580   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
581   | --exec=* | --exe=* | --ex=*)
582     exec_prefix=$ac_optarg ;;
583
584   -gas | --gas | --ga | --g)
585     # Obsolete; use --with-gas.
586     with_gas=yes ;;
587
588   -help | --help | --hel | --he | -h)
589     ac_init_help=long ;;
590   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
591     ac_init_help=recursive ;;
592   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
593     ac_init_help=short ;;
594
595   -host | --host | --hos | --ho)
596     ac_prev=host_alias ;;
597   -host=* | --host=* | --hos=* | --ho=*)
598     host_alias=$ac_optarg ;;
599
600   -includedir | --includedir | --includedi | --included | --include \
601   | --includ | --inclu | --incl | --inc)
602     ac_prev=includedir ;;
603   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
604   | --includ=* | --inclu=* | --incl=* | --inc=*)
605     includedir=$ac_optarg ;;
606
607   -infodir | --infodir | --infodi | --infod | --info | --inf)
608     ac_prev=infodir ;;
609   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
610     infodir=$ac_optarg ;;
611
612   -libdir | --libdir | --libdi | --libd)
613     ac_prev=libdir ;;
614   -libdir=* | --libdir=* | --libdi=* | --libd=*)
615     libdir=$ac_optarg ;;
616
617   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
618   | --libexe | --libex | --libe)
619     ac_prev=libexecdir ;;
620   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
621   | --libexe=* | --libex=* | --libe=*)
622     libexecdir=$ac_optarg ;;
623
624   -localstatedir | --localstatedir | --localstatedi | --localstated \
625   | --localstate | --localstat | --localsta | --localst \
626   | --locals | --local | --loca | --loc | --lo)
627     ac_prev=localstatedir ;;
628   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
629   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
630   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
631     localstatedir=$ac_optarg ;;
632
633   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
634     ac_prev=mandir ;;
635   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636     mandir=$ac_optarg ;;
637
638   -nfp | --nfp | --nf)
639     # Obsolete; use --without-fp.
640     with_fp=no ;;
641
642   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
643   | --no-cr | --no-c | -n)
644     no_create=yes ;;
645
646   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
647   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648     no_recursion=yes ;;
649
650   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
651   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
652   | --oldin | --oldi | --old | --ol | --o)
653     ac_prev=oldincludedir ;;
654   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
655   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
656   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
657     oldincludedir=$ac_optarg ;;
658
659   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
660     ac_prev=prefix ;;
661   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662     prefix=$ac_optarg ;;
663
664   -program-prefix | --program-prefix | --program-prefi | --program-pref \
665   | --program-pre | --program-pr | --program-p)
666     ac_prev=program_prefix ;;
667   -program-prefix=* | --program-prefix=* | --program-prefi=* \
668   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
669     program_prefix=$ac_optarg ;;
670
671   -program-suffix | --program-suffix | --program-suffi | --program-suff \
672   | --program-suf | --program-su | --program-s)
673     ac_prev=program_suffix ;;
674   -program-suffix=* | --program-suffix=* | --program-suffi=* \
675   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
676     program_suffix=$ac_optarg ;;
677
678   -program-transform-name | --program-transform-name \
679   | --program-transform-nam | --program-transform-na \
680   | --program-transform-n | --program-transform- \
681   | --program-transform | --program-transfor \
682   | --program-transfo | --program-transf \
683   | --program-trans | --program-tran \
684   | --progr-tra | --program-tr | --program-t)
685     ac_prev=program_transform_name ;;
686   -program-transform-name=* | --program-transform-name=* \
687   | --program-transform-nam=* | --program-transform-na=* \
688   | --program-transform-n=* | --program-transform-=* \
689   | --program-transform=* | --program-transfor=* \
690   | --program-transfo=* | --program-transf=* \
691   | --program-trans=* | --program-tran=* \
692   | --progr-tra=* | --program-tr=* | --program-t=*)
693     program_transform_name=$ac_optarg ;;
694
695   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
696   | -silent | --silent | --silen | --sile | --sil)
697     silent=yes ;;
698
699   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
700     ac_prev=sbindir ;;
701   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
702   | --sbi=* | --sb=*)
703     sbindir=$ac_optarg ;;
704
705   -sharedstatedir | --sharedstatedir | --sharedstatedi \
706   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
707   | --sharedst | --shareds | --shared | --share | --shar \
708   | --sha | --sh)
709     ac_prev=sharedstatedir ;;
710   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
711   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
712   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
713   | --sha=* | --sh=*)
714     sharedstatedir=$ac_optarg ;;
715
716   -site | --site | --sit)
717     ac_prev=site ;;
718   -site=* | --site=* | --sit=*)
719     site=$ac_optarg ;;
720
721   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
722     ac_prev=srcdir ;;
723   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724     srcdir=$ac_optarg ;;
725
726   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
727   | --syscon | --sysco | --sysc | --sys | --sy)
728     ac_prev=sysconfdir ;;
729   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
730   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
731     sysconfdir=$ac_optarg ;;
732
733   -target | --target | --targe | --targ | --tar | --ta | --t)
734     ac_prev=target_alias ;;
735   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
736     target_alias=$ac_optarg ;;
737
738   -v | -verbose | --verbose | --verbos | --verbo | --verb)
739     verbose=yes ;;
740
741   -version | --version | --versio | --versi | --vers | -V)
742     ac_init_version=: ;;
743
744   -with-* | --with-*)
745     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
746     # Reject names that are not valid shell variable names.
747     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
748       { echo "$as_me: error: invalid package name: $ac_package" >&2
749    { (exit 1); exit 1; }; }
750     ac_package=`echo $ac_package| sed 's/-/_/g'`
751     case $ac_option in
752       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753       *) ac_optarg=yes ;;
754     esac
755     eval "with_$ac_package='$ac_optarg'" ;;
756
757   -without-* | --without-*)
758     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
759     # Reject names that are not valid shell variable names.
760     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
761       { echo "$as_me: error: invalid package name: $ac_package" >&2
762    { (exit 1); exit 1; }; }
763     ac_package=`echo $ac_package | sed 's/-/_/g'`
764     eval "with_$ac_package=no" ;;
765
766   --x)
767     # Obsolete; use --with-x.
768     with_x=yes ;;
769
770   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
771   | --x-incl | --x-inc | --x-in | --x-i)
772     ac_prev=x_includes ;;
773   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
774   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
775     x_includes=$ac_optarg ;;
776
777   -x-libraries | --x-libraries | --x-librarie | --x-librari \
778   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
779     ac_prev=x_libraries ;;
780   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
781   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
782     x_libraries=$ac_optarg ;;
783
784   -*) { echo "$as_me: error: unrecognized option: $ac_option
785 Try \`$0 --help' for more information." >&2
786    { (exit 1); exit 1; }; }
787     ;;
788
789   *=*)
790     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
791     # Reject names that are not valid shell variable names.
792     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
793       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
794    { (exit 1); exit 1; }; }
795     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
796     eval "$ac_envvar='$ac_optarg'"
797     export $ac_envvar ;;
798
799   *)
800     # FIXME: should be removed in autoconf 3.0.
801     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
802     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
803       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
804     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
805     ;;
806
807   esac
808 done
809
810 if test -n "$ac_prev"; then
811   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
812   { echo "$as_me: error: missing argument to $ac_option" >&2
813    { (exit 1); exit 1; }; }
814 fi
815
816 # Be sure to have absolute paths.
817 for ac_var in exec_prefix prefix
818 do
819   eval ac_val=$`echo $ac_var`
820   case $ac_val in
821     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
822     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
823    { (exit 1); exit 1; }; };;
824   esac
825 done
826
827 # Be sure to have absolute paths.
828 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
829               localstatedir libdir includedir oldincludedir infodir mandir
830 do
831   eval ac_val=$`echo $ac_var`
832   case $ac_val in
833     [\\/$]* | ?:[\\/]* ) ;;
834     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
835    { (exit 1); exit 1; }; };;
836   esac
837 done
838
839 # There might be people who depend on the old broken behavior: `$host'
840 # used to hold the argument of --host etc.
841 # FIXME: To remove some day.
842 build=$build_alias
843 host=$host_alias
844 target=$target_alias
845
846 # FIXME: To remove some day.
847 if test "x$host_alias" != x; then
848   if test "x$build_alias" = x; then
849     cross_compiling=maybe
850     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
851     If a cross compiler is detected then cross compile mode will be used." >&2
852   elif test "x$build_alias" != "x$host_alias"; then
853     cross_compiling=yes
854   fi
855 fi
856
857 ac_tool_prefix=
858 test -n "$host_alias" && ac_tool_prefix=$host_alias-
859
860 test "$silent" = yes && exec 6>/dev/null
861
862
863 # Find the source files, if location was not specified.
864 if test -z "$srcdir"; then
865   ac_srcdir_defaulted=yes
866   # Try the directory containing this script, then its parent.
867   ac_confdir=`(dirname "$0") 2>/dev/null ||
868 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
869          X"$0" : 'X\(//\)[^/]' \| \
870          X"$0" : 'X\(//\)$' \| \
871          X"$0" : 'X\(/\)' \| \
872          .     : '\(.\)' 2>/dev/null ||
873 echo X"$0" |
874     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
875           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
876           /^X\(\/\/\)$/{ s//\1/; q; }
877           /^X\(\/\).*/{ s//\1/; q; }
878           s/.*/./; q'`
879   srcdir=$ac_confdir
880   if test ! -r $srcdir/$ac_unique_file; then
881     srcdir=..
882   fi
883 else
884   ac_srcdir_defaulted=no
885 fi
886 if test ! -r $srcdir/$ac_unique_file; then
887   if test "$ac_srcdir_defaulted" = yes; then
888     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
889    { (exit 1); exit 1; }; }
890   else
891     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
892    { (exit 1); exit 1; }; }
893   fi
894 fi
895 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
896   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
897    { (exit 1); exit 1; }; }
898 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
899 ac_env_build_alias_set=${build_alias+set}
900 ac_env_build_alias_value=$build_alias
901 ac_cv_env_build_alias_set=${build_alias+set}
902 ac_cv_env_build_alias_value=$build_alias
903 ac_env_host_alias_set=${host_alias+set}
904 ac_env_host_alias_value=$host_alias
905 ac_cv_env_host_alias_set=${host_alias+set}
906 ac_cv_env_host_alias_value=$host_alias
907 ac_env_target_alias_set=${target_alias+set}
908 ac_env_target_alias_value=$target_alias
909 ac_cv_env_target_alias_set=${target_alias+set}
910 ac_cv_env_target_alias_value=$target_alias
911 ac_env_CC_set=${CC+set}
912 ac_env_CC_value=$CC
913 ac_cv_env_CC_set=${CC+set}
914 ac_cv_env_CC_value=$CC
915 ac_env_CFLAGS_set=${CFLAGS+set}
916 ac_env_CFLAGS_value=$CFLAGS
917 ac_cv_env_CFLAGS_set=${CFLAGS+set}
918 ac_cv_env_CFLAGS_value=$CFLAGS
919 ac_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_env_LDFLAGS_value=$LDFLAGS
921 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922 ac_cv_env_LDFLAGS_value=$LDFLAGS
923 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_env_CPPFLAGS_value=$CPPFLAGS
925 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
926 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
927 ac_env_CPP_set=${CPP+set}
928 ac_env_CPP_value=$CPP
929 ac_cv_env_CPP_set=${CPP+set}
930 ac_cv_env_CPP_value=$CPP
931 ac_env_CXX_set=${CXX+set}
932 ac_env_CXX_value=$CXX
933 ac_cv_env_CXX_set=${CXX+set}
934 ac_cv_env_CXX_value=$CXX
935 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
936 ac_env_CXXFLAGS_value=$CXXFLAGS
937 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
938 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
939 ac_env_CXXCPP_set=${CXXCPP+set}
940 ac_env_CXXCPP_value=$CXXCPP
941 ac_cv_env_CXXCPP_set=${CXXCPP+set}
942 ac_cv_env_CXXCPP_value=$CXXCPP
943 ac_env_F77_set=${F77+set}
944 ac_env_F77_value=$F77
945 ac_cv_env_F77_set=${F77+set}
946 ac_cv_env_F77_value=$F77
947 ac_env_FFLAGS_set=${FFLAGS+set}
948 ac_env_FFLAGS_value=$FFLAGS
949 ac_cv_env_FFLAGS_set=${FFLAGS+set}
950 ac_cv_env_FFLAGS_value=$FFLAGS
951
952 #
953 # Report the --help message.
954 #
955 if test "$ac_init_help" = "long"; then
956   # Omit some internal or obsolete options to make the list less imposing.
957   # This message is too long to be a string in the A/UX 3.1 sh.
958   cat <<_ACEOF
959 \`configure' configures GRAS 0.1 to adapt to many kinds of systems.
960
961 Usage: $0 [OPTION]... [VAR=VALUE]...
962
963 To assign environment variables (e.g., CC, CFLAGS...), specify them as
964 VAR=VALUE.  See below for descriptions of some of the useful variables.
965
966 Defaults for the options are specified in brackets.
967
968 Configuration:
969   -h, --help              display this help and exit
970       --help=short        display options specific to this package
971       --help=recursive    display the short help of all the included packages
972   -V, --version           display version information and exit
973   -q, --quiet, --silent   do not print \`checking...' messages
974       --cache-file=FILE   cache test results in FILE [disabled]
975   -C, --config-cache      alias for \`--cache-file=config.cache'
976   -n, --no-create         do not create output files
977       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
978
979 _ACEOF
980
981   cat <<_ACEOF
982 Installation directories:
983   --prefix=PREFIX         install architecture-independent files in PREFIX
984                           [$ac_default_prefix]
985   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
986                           [PREFIX]
987
988 By default, \`make install' will install all the files in
989 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
990 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
991 for instance \`--prefix=\$HOME'.
992
993 For better control, use the options below.
994
995 Fine tuning of the installation directories:
996   --bindir=DIR           user executables [EPREFIX/bin]
997   --sbindir=DIR          system admin executables [EPREFIX/sbin]
998   --libexecdir=DIR       program executables [EPREFIX/libexec]
999   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1000   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1001   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1002   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1003   --libdir=DIR           object code libraries [EPREFIX/lib]
1004   --includedir=DIR       C header files [PREFIX/include]
1005   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1006   --infodir=DIR          info documentation [PREFIX/info]
1007   --mandir=DIR           man documentation [PREFIX/man]
1008 _ACEOF
1009
1010   cat <<\_ACEOF
1011
1012 Program names:
1013   --program-prefix=PREFIX            prepend PREFIX to installed program names
1014   --program-suffix=SUFFIX            append SUFFIX to installed program names
1015   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1016
1017 System types:
1018   --build=BUILD     configure for building on BUILD [guessed]
1019   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1020   --target=TARGET   configure for building compilers for TARGET [HOST]
1021 _ACEOF
1022 fi
1023
1024 if test -n "$ac_init_help"; then
1025   case $ac_init_help in
1026      short | recursive ) echo "Configuration of GRAS 0.1:";;
1027    esac
1028   cat <<\_ACEOF
1029
1030 Optional Features:
1031   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1032   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1033   --enable-shared[=PKGS]
1034                           build shared libraries [default=yes]
1035   --enable-static[=PKGS]
1036                           build static libraries [default=yes]
1037   --enable-fast-install[=PKGS]
1038                           optimize for fast installation [default=yes]
1039   --disable-dependency-tracking Speeds up one-time builds
1040   --enable-dependency-tracking  Do not reject slow dependency extractors
1041   --disable-libtool-lock  avoid locking (might break parallel builds)
1042   --enable-gtk-doc  Use gtk-doc to build documentation default=auto
1043   --enable-maintainer-mode enable make rules and dependencies not useful
1044                           (and sometimes confusing) to the casual installer
1045   --enable-compile-warnings=no/minimum/yes       Turn on compiler warnings.
1046   --enable-iso-c          Try to warn if code is not ISO C
1047
1048 Optional Packages:
1049   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1050   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1051   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1052   --with-pic              try to use only PIC/non-PIC objects [default=use
1053                           both]
1054   --with-tags[=TAGS]
1055                           include additional configurations [automatic]
1056   --with-SimGrid=DIR      root directory of the SimGrid simulator installation
1057   --with-SimGrid-includes=DIR
1058                           specify exact include dir for the SimGrid simulator headers
1059   --with-SimGrid-libraries=DIR
1060                           specify exact library dir for the SimGrid simulator library
1061   --with-SimGrid-extra=ARG
1062                           specify extra args to pass to the linker to get the
1063                           the SimGrid simulator library (with no space. A sed to change "!"
1064                           to " " is run)
1065
1066 Some influential environment variables:
1067   CC          C compiler command
1068   CFLAGS      C compiler flags
1069   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1070               nonstandard directory <lib dir>
1071   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1072               headers in a nonstandard directory <include dir>
1073   CPP         C preprocessor
1074   CXX         C++ compiler command
1075   CXXFLAGS    C++ compiler flags
1076   CXXCPP      C++ preprocessor
1077   F77         Fortran 77 compiler command
1078   FFLAGS      Fortran 77 compiler flags
1079
1080 Use these variables to override the choices made by `configure' or to help
1081 it to find libraries and programs with nonstandard names/locations.
1082
1083 Report bugs to <martin.quinson@ens-lyon.fr>.
1084 _ACEOF
1085 fi
1086
1087 if test "$ac_init_help" = "recursive"; then
1088   # If there are subdirs, report their specific --help.
1089   ac_popdir=`pwd`
1090   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1091     test -d $ac_dir || continue
1092     ac_builddir=.
1093
1094 if test "$ac_dir" != .; then
1095   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1096   # A "../" for each directory in $ac_dir_suffix.
1097   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1098 else
1099   ac_dir_suffix= ac_top_builddir=
1100 fi
1101
1102 case $srcdir in
1103   .)  # No --srcdir option.  We are building in place.
1104     ac_srcdir=.
1105     if test -z "$ac_top_builddir"; then
1106        ac_top_srcdir=.
1107     else
1108        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1109     fi ;;
1110   [\\/]* | ?:[\\/]* )  # Absolute path.
1111     ac_srcdir=$srcdir$ac_dir_suffix;
1112     ac_top_srcdir=$srcdir ;;
1113   *) # Relative path.
1114     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1115     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1116 esac
1117
1118 # Do not use `cd foo && pwd` to compute absolute paths, because
1119 # the directories may not exist.
1120 case `pwd` in
1121 .) ac_abs_builddir="$ac_dir";;
1122 *)
1123   case "$ac_dir" in
1124   .) ac_abs_builddir=`pwd`;;
1125   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1126   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1127   esac;;
1128 esac
1129 case $ac_abs_builddir in
1130 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1131 *)
1132   case ${ac_top_builddir}. in
1133   .) ac_abs_top_builddir=$ac_abs_builddir;;
1134   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1135   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1136   esac;;
1137 esac
1138 case $ac_abs_builddir in
1139 .) ac_abs_srcdir=$ac_srcdir;;
1140 *)
1141   case $ac_srcdir in
1142   .) ac_abs_srcdir=$ac_abs_builddir;;
1143   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1144   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1145   esac;;
1146 esac
1147 case $ac_abs_builddir in
1148 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1149 *)
1150   case $ac_top_srcdir in
1151   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1152   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1153   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1154   esac;;
1155 esac
1156
1157     cd $ac_dir
1158     # Check for guested configure; otherwise get Cygnus style configure.
1159     if test -f $ac_srcdir/configure.gnu; then
1160       echo
1161       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1162     elif test -f $ac_srcdir/configure; then
1163       echo
1164       $SHELL $ac_srcdir/configure  --help=recursive
1165     elif test -f $ac_srcdir/configure.ac ||
1166            test -f $ac_srcdir/configure.in; then
1167       echo
1168       $ac_configure --help
1169     else
1170       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1171     fi
1172     cd "$ac_popdir"
1173   done
1174 fi
1175
1176 test -n "$ac_init_help" && exit 0
1177 if $ac_init_version; then
1178   cat <<\_ACEOF
1179 GRAS configure 0.1
1180 generated by GNU Autoconf 2.58
1181
1182 Copyright (C) 2003 Free Software Foundation, Inc.
1183 This configure script is free software; the Free Software Foundation
1184 gives unlimited permission to copy, distribute and modify it.
1185 _ACEOF
1186   exit 0
1187 fi
1188 exec 5>config.log
1189 cat >&5 <<_ACEOF
1190 This file contains any messages produced by compilers while
1191 running configure, to aid debugging if configure makes a mistake.
1192
1193 It was created by GRAS $as_me 0.1, which was
1194 generated by GNU Autoconf 2.58.  Invocation command line was
1195
1196   $ $0 $@
1197
1198 _ACEOF
1199 {
1200 cat <<_ASUNAME
1201 ## --------- ##
1202 ## Platform. ##
1203 ## --------- ##
1204
1205 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1206 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1207 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1208 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1209 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1210
1211 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1212 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1213
1214 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1215 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1216 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1217 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1218 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1219 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1220 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1221
1222 _ASUNAME
1223
1224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1225 for as_dir in $PATH
1226 do
1227   IFS=$as_save_IFS
1228   test -z "$as_dir" && as_dir=.
1229   echo "PATH: $as_dir"
1230 done
1231
1232 } >&5
1233
1234 cat >&5 <<_ACEOF
1235
1236
1237 ## ----------- ##
1238 ## Core tests. ##
1239 ## ----------- ##
1240
1241 _ACEOF
1242
1243
1244 # Keep a trace of the command line.
1245 # Strip out --no-create and --no-recursion so they do not pile up.
1246 # Strip out --silent because we don't want to record it for future runs.
1247 # Also quote any args containing shell meta-characters.
1248 # Make two passes to allow for proper duplicate-argument suppression.
1249 ac_configure_args=
1250 ac_configure_args0=
1251 ac_configure_args1=
1252 ac_sep=
1253 ac_must_keep_next=false
1254 for ac_pass in 1 2
1255 do
1256   for ac_arg
1257   do
1258     case $ac_arg in
1259     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1260     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1261     | -silent | --silent | --silen | --sile | --sil)
1262       continue ;;
1263     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1264       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1265     esac
1266     case $ac_pass in
1267     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1268     2)
1269       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1270       if test $ac_must_keep_next = true; then
1271         ac_must_keep_next=false # Got value, back to normal.
1272       else
1273         case $ac_arg in
1274           *=* | --config-cache | -C | -disable-* | --disable-* \
1275           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1276           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1277           | -with-* | --with-* | -without-* | --without-* | --x)
1278             case "$ac_configure_args0 " in
1279               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1280             esac
1281             ;;
1282           -* ) ac_must_keep_next=true ;;
1283         esac
1284       fi
1285       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1286       # Get rid of the leading space.
1287       ac_sep=" "
1288       ;;
1289     esac
1290   done
1291 done
1292 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1293 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1294
1295 # When interrupted or exit'd, cleanup temporary files, and complete
1296 # config.log.  We remove comments because anyway the quotes in there
1297 # would cause problems or look ugly.
1298 # WARNING: Be sure not to use single quotes in there, as some shells,
1299 # such as our DU 5.0 friend, will then `close' the trap.
1300 trap 'exit_status=$?
1301   # Save into config.log some information that might help in debugging.
1302   {
1303     echo
1304
1305     cat <<\_ASBOX
1306 ## ---------------- ##
1307 ## Cache variables. ##
1308 ## ---------------- ##
1309 _ASBOX
1310     echo
1311     # The following way of writing the cache mishandles newlines in values,
1312 {
1313   (set) 2>&1 |
1314     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1315     *ac_space=\ *)
1316       sed -n \
1317         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1318           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1319       ;;
1320     *)
1321       sed -n \
1322         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1323       ;;
1324     esac;
1325 }
1326     echo
1327
1328     cat <<\_ASBOX
1329 ## ----------------- ##
1330 ## Output variables. ##
1331 ## ----------------- ##
1332 _ASBOX
1333     echo
1334     for ac_var in $ac_subst_vars
1335     do
1336       eval ac_val=$`echo $ac_var`
1337       echo "$ac_var='"'"'$ac_val'"'"'"
1338     done | sort
1339     echo
1340
1341     if test -n "$ac_subst_files"; then
1342       cat <<\_ASBOX
1343 ## ------------- ##
1344 ## Output files. ##
1345 ## ------------- ##
1346 _ASBOX
1347       echo
1348       for ac_var in $ac_subst_files
1349       do
1350         eval ac_val=$`echo $ac_var`
1351         echo "$ac_var='"'"'$ac_val'"'"'"
1352       done | sort
1353       echo
1354     fi
1355
1356     if test -s confdefs.h; then
1357       cat <<\_ASBOX
1358 ## ----------- ##
1359 ## confdefs.h. ##
1360 ## ----------- ##
1361 _ASBOX
1362       echo
1363       sed "/^$/d" confdefs.h | sort
1364       echo
1365     fi
1366     test "$ac_signal" != 0 &&
1367       echo "$as_me: caught signal $ac_signal"
1368     echo "$as_me: exit $exit_status"
1369   } >&5
1370   rm -f core *.core &&
1371   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1372     exit $exit_status
1373      ' 0
1374 for ac_signal in 1 2 13 15; do
1375   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1376 done
1377 ac_signal=0
1378
1379 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1380 rm -rf conftest* confdefs.h
1381 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1382 echo >confdefs.h
1383
1384 # Predefined preprocessor variables.
1385
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_NAME "$PACKAGE_NAME"
1388 _ACEOF
1389
1390
1391 cat >>confdefs.h <<_ACEOF
1392 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1393 _ACEOF
1394
1395
1396 cat >>confdefs.h <<_ACEOF
1397 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1398 _ACEOF
1399
1400
1401 cat >>confdefs.h <<_ACEOF
1402 #define PACKAGE_STRING "$PACKAGE_STRING"
1403 _ACEOF
1404
1405
1406 cat >>confdefs.h <<_ACEOF
1407 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1408 _ACEOF
1409
1410
1411 # Let the site file select an alternate cache file if it wants to.
1412 # Prefer explicitly selected file to automatically selected ones.
1413 if test -z "$CONFIG_SITE"; then
1414   if test "x$prefix" != xNONE; then
1415     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1416   else
1417     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1418   fi
1419 fi
1420 for ac_site_file in $CONFIG_SITE; do
1421   if test -r "$ac_site_file"; then
1422     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1423 echo "$as_me: loading site script $ac_site_file" >&6;}
1424     sed 's/^/| /' "$ac_site_file" >&5
1425     . "$ac_site_file"
1426   fi
1427 done
1428
1429 if test -r "$cache_file"; then
1430   # Some versions of bash will fail to source /dev/null (special
1431   # files actually), so we avoid doing that.
1432   if test -f "$cache_file"; then
1433     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1434 echo "$as_me: loading cache $cache_file" >&6;}
1435     case $cache_file in
1436       [\\/]* | ?:[\\/]* ) . $cache_file;;
1437       *)                      . ./$cache_file;;
1438     esac
1439   fi
1440 else
1441   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1442 echo "$as_me: creating cache $cache_file" >&6;}
1443   >$cache_file
1444 fi
1445
1446 # Check that the precious variables saved in the cache have kept the same
1447 # value.
1448 ac_cache_corrupted=false
1449 for ac_var in `(set) 2>&1 |
1450                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1451   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1452   eval ac_new_set=\$ac_env_${ac_var}_set
1453   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1454   eval ac_new_val="\$ac_env_${ac_var}_value"
1455   case $ac_old_set,$ac_new_set in
1456     set,)
1457       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1458 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1459       ac_cache_corrupted=: ;;
1460     ,set)
1461       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1462 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1463       ac_cache_corrupted=: ;;
1464     ,);;
1465     *)
1466       if test "x$ac_old_val" != "x$ac_new_val"; then
1467         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1468 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1469         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1470 echo "$as_me:   former value:  $ac_old_val" >&2;}
1471         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1472 echo "$as_me:   current value: $ac_new_val" >&2;}
1473         ac_cache_corrupted=:
1474       fi;;
1475   esac
1476   # Pass precious variables to config.status.
1477   if test "$ac_new_set" = set; then
1478     case $ac_new_val in
1479     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1480       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1481     *) ac_arg=$ac_var=$ac_new_val ;;
1482     esac
1483     case " $ac_configure_args " in
1484       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1485       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1486     esac
1487   fi
1488 done
1489 if $ac_cache_corrupted; then
1490   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1491 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1492   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1493 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1494    { (exit 1); exit 1; }; }
1495 fi
1496
1497 ac_ext=c
1498 ac_cpp='$CPP $CPPFLAGS'
1499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531 ac_aux_dir=
1532 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1533   if test -f $ac_dir/install-sh; then
1534     ac_aux_dir=$ac_dir
1535     ac_install_sh="$ac_aux_dir/install-sh -c"
1536     break
1537   elif test -f $ac_dir/install.sh; then
1538     ac_aux_dir=$ac_dir
1539     ac_install_sh="$ac_aux_dir/install.sh -c"
1540     break
1541   elif test -f $ac_dir/shtool; then
1542     ac_aux_dir=$ac_dir
1543     ac_install_sh="$ac_aux_dir/shtool install -c"
1544     break
1545   fi
1546 done
1547 if test -z "$ac_aux_dir"; then
1548   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1549 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1550    { (exit 1); exit 1; }; }
1551 fi
1552 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1553 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1554 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1555
1556
1557
1558 subdirs="$subdirs src/nws_portability"
1559
1560
1561 # Make sure we can run config.sub.
1562 $ac_config_sub sun4 >/dev/null 2>&1 ||
1563   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1564 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1565    { (exit 1); exit 1; }; }
1566
1567 echo "$as_me:$LINENO: checking build system type" >&5
1568 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1569 if test "${ac_cv_build+set}" = set; then
1570   echo $ECHO_N "(cached) $ECHO_C" >&6
1571 else
1572   ac_cv_build_alias=$build_alias
1573 test -z "$ac_cv_build_alias" &&
1574   ac_cv_build_alias=`$ac_config_guess`
1575 test -z "$ac_cv_build_alias" &&
1576   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1577 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1578    { (exit 1); exit 1; }; }
1579 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1580   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1581 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1582    { (exit 1); exit 1; }; }
1583
1584 fi
1585 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1586 echo "${ECHO_T}$ac_cv_build" >&6
1587 build=$ac_cv_build
1588 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1589 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1590 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1591
1592
1593 echo "$as_me:$LINENO: checking host system type" >&5
1594 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1595 if test "${ac_cv_host+set}" = set; then
1596   echo $ECHO_N "(cached) $ECHO_C" >&6
1597 else
1598   ac_cv_host_alias=$host_alias
1599 test -z "$ac_cv_host_alias" &&
1600   ac_cv_host_alias=$ac_cv_build_alias
1601 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1602   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1603 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1604    { (exit 1); exit 1; }; }
1605
1606 fi
1607 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1608 echo "${ECHO_T}$ac_cv_host" >&6
1609 host=$ac_cv_host
1610 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1611 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1612 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1613
1614
1615 echo "$as_me:$LINENO: checking target system type" >&5
1616 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1617 if test "${ac_cv_target+set}" = set; then
1618   echo $ECHO_N "(cached) $ECHO_C" >&6
1619 else
1620   ac_cv_target_alias=$target_alias
1621 test "x$ac_cv_target_alias" = "x" &&
1622   ac_cv_target_alias=$ac_cv_host_alias
1623 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1624   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1625 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1626    { (exit 1); exit 1; }; }
1627
1628 fi
1629 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1630 echo "${ECHO_T}$ac_cv_target" >&6
1631 target=$ac_cv_target
1632 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1633 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1634 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1635
1636
1637 # The aliases save the names the user supplied, while $host etc.
1638 # will get canonicalized.
1639 test -n "$target_alias" &&
1640   test "$program_prefix$program_suffix$program_transform_name" = \
1641     NONENONEs,x,x, &&
1642   program_prefix=${target_alias}-
1643 ac_ext=c
1644 ac_cpp='$CPP $CPPFLAGS'
1645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1648
1649
1650           ac_config_headers="$ac_config_headers src/gras_config.h"
1651
1652 am__api_version="1.7"
1653 # Find a good install program.  We prefer a C program (faster),
1654 # so one script is as good as another.  But avoid the broken or
1655 # incompatible versions:
1656 # SysV /etc/install, /usr/sbin/install
1657 # SunOS /usr/etc/install
1658 # IRIX /sbin/install
1659 # AIX /bin/install
1660 # AmigaOS /C/install, which installs bootblocks on floppy discs
1661 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1662 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1663 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1664 # OS/2's system install, which has a completely different semantic
1665 # ./install, which can be erroneously created by make from ./install.sh.
1666 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1667 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1668 if test -z "$INSTALL"; then
1669 if test "${ac_cv_path_install+set}" = set; then
1670   echo $ECHO_N "(cached) $ECHO_C" >&6
1671 else
1672   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1673 for as_dir in $PATH
1674 do
1675   IFS=$as_save_IFS
1676   test -z "$as_dir" && as_dir=.
1677   # Account for people who put trailing slashes in PATH elements.
1678 case $as_dir/ in
1679   ./ | .// | /cC/* | \
1680   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1681   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1682   /usr/ucb/* ) ;;
1683   *)
1684     # OSF1 and SCO ODT 3.0 have their own names for install.
1685     # Don't use installbsd from OSF since it installs stuff as root
1686     # by default.
1687     for ac_prog in ginstall scoinst install; do
1688       for ac_exec_ext in '' $ac_executable_extensions; do
1689         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1690           if test $ac_prog = install &&
1691             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1692             # AIX install.  It has an incompatible calling convention.
1693             :
1694           elif test $ac_prog = install &&
1695             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1696             # program-specific install script used by HP pwplus--don't use.
1697             :
1698           else
1699             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1700             break 3
1701           fi
1702         fi
1703       done
1704     done
1705     ;;
1706 esac
1707 done
1708
1709
1710 fi
1711   if test "${ac_cv_path_install+set}" = set; then
1712     INSTALL=$ac_cv_path_install
1713   else
1714     # As a last resort, use the slow shell script.  We don't cache a
1715     # path for INSTALL within a source directory, because that will
1716     # break other packages using the cache if that directory is
1717     # removed, or if the path is relative.
1718     INSTALL=$ac_install_sh
1719   fi
1720 fi
1721 echo "$as_me:$LINENO: result: $INSTALL" >&5
1722 echo "${ECHO_T}$INSTALL" >&6
1723
1724 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1725 # It thinks the first close brace ends the variable substitution.
1726 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1727
1728 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1729
1730 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1731
1732 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1733 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1734 # Just in case
1735 sleep 1
1736 echo timestamp > conftest.file
1737 # Do `set' in a subshell so we don't clobber the current shell's
1738 # arguments.  Must try -L first in case configure is actually a
1739 # symlink; some systems play weird games with the mod time of symlinks
1740 # (eg FreeBSD returns the mod time of the symlink's containing
1741 # directory).
1742 if (
1743    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1744    if test "$*" = "X"; then
1745       # -L didn't work.
1746       set X `ls -t $srcdir/configure conftest.file`
1747    fi
1748    rm -f conftest.file
1749    if test "$*" != "X $srcdir/configure conftest.file" \
1750       && test "$*" != "X conftest.file $srcdir/configure"; then
1751
1752       # If neither matched, then we have a broken ls.  This can happen
1753       # if, for instance, CONFIG_SHELL is bash and it inherits a
1754       # broken ls alias from the environment.  This has actually
1755       # happened.  Such a system could not be considered "sane".
1756       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1757 alias in your environment" >&5
1758 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1759 alias in your environment" >&2;}
1760    { (exit 1); exit 1; }; }
1761    fi
1762
1763    test "$2" = conftest.file
1764    )
1765 then
1766    # Ok.
1767    :
1768 else
1769    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1770 Check your system clock" >&5
1771 echo "$as_me: error: newly created file is older than distributed files!
1772 Check your system clock" >&2;}
1773    { (exit 1); exit 1; }; }
1774 fi
1775 echo "$as_me:$LINENO: result: yes" >&5
1776 echo "${ECHO_T}yes" >&6
1777 test "$program_prefix" != NONE &&
1778   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1779 # Use a double $ so make ignores it.
1780 test "$program_suffix" != NONE &&
1781   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1782 # Double any \ or $.  echo might interpret backslashes.
1783 # By default was `s,x,x', remove it if useless.
1784 cat <<\_ACEOF >conftest.sed
1785 s/[\\$]/&&/g;s/;s,x,x,$//
1786 _ACEOF
1787 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1788 rm conftest.sed
1789
1790
1791 # expand $ac_aux_dir to an absolute path
1792 am_aux_dir=`cd $ac_aux_dir && pwd`
1793
1794 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1795 # Use eval to expand $SHELL
1796 if eval "$MISSING --run true"; then
1797   am_missing_run="$MISSING --run "
1798 else
1799   am_missing_run=
1800   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1801 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1802 fi
1803
1804 for ac_prog in gawk mawk nawk awk
1805 do
1806   # Extract the first word of "$ac_prog", so it can be a program name with args.
1807 set dummy $ac_prog; ac_word=$2
1808 echo "$as_me:$LINENO: checking for $ac_word" >&5
1809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1810 if test "${ac_cv_prog_AWK+set}" = set; then
1811   echo $ECHO_N "(cached) $ECHO_C" >&6
1812 else
1813   if test -n "$AWK"; then
1814   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1815 else
1816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1817 for as_dir in $PATH
1818 do
1819   IFS=$as_save_IFS
1820   test -z "$as_dir" && as_dir=.
1821   for ac_exec_ext in '' $ac_executable_extensions; do
1822   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1823     ac_cv_prog_AWK="$ac_prog"
1824     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1825     break 2
1826   fi
1827 done
1828 done
1829
1830 fi
1831 fi
1832 AWK=$ac_cv_prog_AWK
1833 if test -n "$AWK"; then
1834   echo "$as_me:$LINENO: result: $AWK" >&5
1835 echo "${ECHO_T}$AWK" >&6
1836 else
1837   echo "$as_me:$LINENO: result: no" >&5
1838 echo "${ECHO_T}no" >&6
1839 fi
1840
1841   test -n "$AWK" && break
1842 done
1843
1844 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1845 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1846 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1847 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1848   echo $ECHO_N "(cached) $ECHO_C" >&6
1849 else
1850   cat >conftest.make <<\_ACEOF
1851 all:
1852         @echo 'ac_maketemp="$(MAKE)"'
1853 _ACEOF
1854 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1855 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1856 if test -n "$ac_maketemp"; then
1857   eval ac_cv_prog_make_${ac_make}_set=yes
1858 else
1859   eval ac_cv_prog_make_${ac_make}_set=no
1860 fi
1861 rm -f conftest.make
1862 fi
1863 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1864   echo "$as_me:$LINENO: result: yes" >&5
1865 echo "${ECHO_T}yes" >&6
1866   SET_MAKE=
1867 else
1868   echo "$as_me:$LINENO: result: no" >&5
1869 echo "${ECHO_T}no" >&6
1870   SET_MAKE="MAKE=${MAKE-make}"
1871 fi
1872
1873 rm -rf .tst 2>/dev/null
1874 mkdir .tst 2>/dev/null
1875 if test -d .tst; then
1876   am__leading_dot=.
1877 else
1878   am__leading_dot=_
1879 fi
1880 rmdir .tst 2>/dev/null
1881
1882  # test to see if srcdir already configured
1883 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1884    test -f $srcdir/config.status; then
1885   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1886 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1887    { (exit 1); exit 1; }; }
1888 fi
1889
1890 # test whether we have cygpath
1891 if test -z "$CYGPATH_W"; then
1892   if (cygpath --version) >/dev/null 2>/dev/null; then
1893     CYGPATH_W='cygpath -w'
1894   else
1895     CYGPATH_W=echo
1896   fi
1897 fi
1898
1899
1900 # Define the identity of the package.
1901  PACKAGE='gras'
1902  VERSION='0.1'
1903
1904
1905 cat >>confdefs.h <<_ACEOF
1906 #define PACKAGE "$PACKAGE"
1907 _ACEOF
1908
1909
1910 cat >>confdefs.h <<_ACEOF
1911 #define VERSION "$VERSION"
1912 _ACEOF
1913
1914 # Some tools Automake needs.
1915
1916 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1917
1918
1919 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1920
1921
1922 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1923
1924
1925 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1926
1927
1928 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1929
1930
1931 AMTAR=${AMTAR-"${am_missing_run}tar"}
1932
1933 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1934
1935 # Installed binaries are usually stripped using `strip' when the user
1936 # run `make install-strip'.  However `strip' might not be the right
1937 # tool to use in cross-compilation environments, therefore Automake
1938 # will honor the `STRIP' environment variable to overrule this program.
1939 if test "$cross_compiling" != no; then
1940   if test -n "$ac_tool_prefix"; then
1941   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1942 set dummy ${ac_tool_prefix}strip; ac_word=$2
1943 echo "$as_me:$LINENO: checking for $ac_word" >&5
1944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1945 if test "${ac_cv_prog_STRIP+set}" = set; then
1946   echo $ECHO_N "(cached) $ECHO_C" >&6
1947 else
1948   if test -n "$STRIP"; then
1949   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1950 else
1951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1952 for as_dir in $PATH
1953 do
1954   IFS=$as_save_IFS
1955   test -z "$as_dir" && as_dir=.
1956   for ac_exec_ext in '' $ac_executable_extensions; do
1957   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1958     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1959     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1960     break 2
1961   fi
1962 done
1963 done
1964
1965 fi
1966 fi
1967 STRIP=$ac_cv_prog_STRIP
1968 if test -n "$STRIP"; then
1969   echo "$as_me:$LINENO: result: $STRIP" >&5
1970 echo "${ECHO_T}$STRIP" >&6
1971 else
1972   echo "$as_me:$LINENO: result: no" >&5
1973 echo "${ECHO_T}no" >&6
1974 fi
1975
1976 fi
1977 if test -z "$ac_cv_prog_STRIP"; then
1978   ac_ct_STRIP=$STRIP
1979   # Extract the first word of "strip", so it can be a program name with args.
1980 set dummy strip; ac_word=$2
1981 echo "$as_me:$LINENO: checking for $ac_word" >&5
1982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1983 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1984   echo $ECHO_N "(cached) $ECHO_C" >&6
1985 else
1986   if test -n "$ac_ct_STRIP"; then
1987   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1988 else
1989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1990 for as_dir in $PATH
1991 do
1992   IFS=$as_save_IFS
1993   test -z "$as_dir" && as_dir=.
1994   for ac_exec_ext in '' $ac_executable_extensions; do
1995   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1996     ac_cv_prog_ac_ct_STRIP="strip"
1997     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1998     break 2
1999   fi
2000 done
2001 done
2002
2003   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2004 fi
2005 fi
2006 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2007 if test -n "$ac_ct_STRIP"; then
2008   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2009 echo "${ECHO_T}$ac_ct_STRIP" >&6
2010 else
2011   echo "$as_me:$LINENO: result: no" >&5
2012 echo "${ECHO_T}no" >&6
2013 fi
2014
2015   STRIP=$ac_ct_STRIP
2016 else
2017   STRIP="$ac_cv_prog_STRIP"
2018 fi
2019
2020 fi
2021 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2022
2023 # We need awk for the "check" target.  The system "awk" is bad on
2024 # some platforms.
2025
2026
2027
2028
2029 # Check whether --enable-shared or --disable-shared was given.
2030 if test "${enable_shared+set}" = set; then
2031   enableval="$enable_shared"
2032   p=${PACKAGE-default}
2033     case $enableval in
2034     yes) enable_shared=yes ;;
2035     no) enable_shared=no ;;
2036     *)
2037       enable_shared=no
2038       # Look at the argument we got.  We use all the common list separators.
2039       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2040       for pkg in $enableval; do
2041         IFS="$lt_save_ifs"
2042         if test "X$pkg" = "X$p"; then
2043           enable_shared=yes
2044         fi
2045       done
2046       IFS="$lt_save_ifs"
2047       ;;
2048     esac
2049 else
2050   enable_shared=yes
2051 fi;
2052
2053 # Check whether --enable-static or --disable-static was given.
2054 if test "${enable_static+set}" = set; then
2055   enableval="$enable_static"
2056   p=${PACKAGE-default}
2057     case $enableval in
2058     yes) enable_static=yes ;;
2059     no) enable_static=no ;;
2060     *)
2061      enable_static=no
2062       # Look at the argument we got.  We use all the common list separators.
2063       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2064       for pkg in $enableval; do
2065         IFS="$lt_save_ifs"
2066         if test "X$pkg" = "X$p"; then
2067           enable_static=yes
2068         fi
2069       done
2070       IFS="$lt_save_ifs"
2071       ;;
2072     esac
2073 else
2074   enable_static=yes
2075 fi;
2076
2077 # Check whether --enable-fast-install or --disable-fast-install was given.
2078 if test "${enable_fast_install+set}" = set; then
2079   enableval="$enable_fast_install"
2080   p=${PACKAGE-default}
2081     case $enableval in
2082     yes) enable_fast_install=yes ;;
2083     no) enable_fast_install=no ;;
2084     *)
2085       enable_fast_install=no
2086       # Look at the argument we got.  We use all the common list separators.
2087       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2088       for pkg in $enableval; do
2089         IFS="$lt_save_ifs"
2090         if test "X$pkg" = "X$p"; then
2091           enable_fast_install=yes
2092         fi
2093       done
2094       IFS="$lt_save_ifs"
2095       ;;
2096     esac
2097 else
2098   enable_fast_install=yes
2099 fi;
2100
2101 DEPDIR="${am__leading_dot}deps"
2102
2103           ac_config_commands="$ac_config_commands depfiles"
2104
2105
2106 am_make=${MAKE-make}
2107 cat > confinc << 'END'
2108 am__doit:
2109         @echo done
2110 .PHONY: am__doit
2111 END
2112 # If we don't find an include directive, just comment out the code.
2113 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2114 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2115 am__include="#"
2116 am__quote=
2117 _am_result=none
2118 # First try GNU make style include.
2119 echo "include confinc" > confmf
2120 # We grep out `Entering directory' and `Leaving directory'
2121 # messages which can occur if `w' ends up in MAKEFLAGS.
2122 # In particular we don't look at `^make:' because GNU make might
2123 # be invoked under some other name (usually "gmake"), in which
2124 # case it prints its new name instead of `make'.
2125 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2126    am__include=include
2127    am__quote=
2128    _am_result=GNU
2129 fi
2130 # Now try BSD make style include.
2131 if test "$am__include" = "#"; then
2132    echo '.include "confinc"' > confmf
2133    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2134       am__include=.include
2135       am__quote="\""
2136       _am_result=BSD
2137    fi
2138 fi
2139
2140
2141 echo "$as_me:$LINENO: result: $_am_result" >&5
2142 echo "${ECHO_T}$_am_result" >&6
2143 rm -f confinc confmf
2144
2145 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2146 if test "${enable_dependency_tracking+set}" = set; then
2147   enableval="$enable_dependency_tracking"
2148
2149 fi;
2150 if test "x$enable_dependency_tracking" != xno; then
2151   am_depcomp="$ac_aux_dir/depcomp"
2152   AMDEPBACKSLASH='\'
2153 fi
2154
2155
2156 if test "x$enable_dependency_tracking" != xno; then
2157   AMDEP_TRUE=
2158   AMDEP_FALSE='#'
2159 else
2160   AMDEP_TRUE='#'
2161   AMDEP_FALSE=
2162 fi
2163
2164
2165
2166 ac_ext=c
2167 ac_cpp='$CPP $CPPFLAGS'
2168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2171 if test -n "$ac_tool_prefix"; then
2172   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2173 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2174 echo "$as_me:$LINENO: checking for $ac_word" >&5
2175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2176 if test "${ac_cv_prog_CC+set}" = set; then
2177   echo $ECHO_N "(cached) $ECHO_C" >&6
2178 else
2179   if test -n "$CC"; then
2180   ac_cv_prog_CC="$CC" # Let the user override the test.
2181 else
2182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2183 for as_dir in $PATH
2184 do
2185   IFS=$as_save_IFS
2186   test -z "$as_dir" && as_dir=.
2187   for ac_exec_ext in '' $ac_executable_extensions; do
2188   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2189     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2190     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2191     break 2
2192   fi
2193 done
2194 done
2195
2196 fi
2197 fi
2198 CC=$ac_cv_prog_CC
2199 if test -n "$CC"; then
2200   echo "$as_me:$LINENO: result: $CC" >&5
2201 echo "${ECHO_T}$CC" >&6
2202 else
2203   echo "$as_me:$LINENO: result: no" >&5
2204 echo "${ECHO_T}no" >&6
2205 fi
2206
2207 fi
2208 if test -z "$ac_cv_prog_CC"; then
2209   ac_ct_CC=$CC
2210   # Extract the first word of "gcc", so it can be a program name with args.
2211 set dummy gcc; ac_word=$2
2212 echo "$as_me:$LINENO: checking for $ac_word" >&5
2213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2214 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2215   echo $ECHO_N "(cached) $ECHO_C" >&6
2216 else
2217   if test -n "$ac_ct_CC"; then
2218   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2219 else
2220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2221 for as_dir in $PATH
2222 do
2223   IFS=$as_save_IFS
2224   test -z "$as_dir" && as_dir=.
2225   for ac_exec_ext in '' $ac_executable_extensions; do
2226   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2227     ac_cv_prog_ac_ct_CC="gcc"
2228     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2229     break 2
2230   fi
2231 done
2232 done
2233
2234 fi
2235 fi
2236 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2237 if test -n "$ac_ct_CC"; then
2238   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2239 echo "${ECHO_T}$ac_ct_CC" >&6
2240 else
2241   echo "$as_me:$LINENO: result: no" >&5
2242 echo "${ECHO_T}no" >&6
2243 fi
2244
2245   CC=$ac_ct_CC
2246 else
2247   CC="$ac_cv_prog_CC"
2248 fi
2249
2250 if test -z "$CC"; then
2251   if test -n "$ac_tool_prefix"; then
2252   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2253 set dummy ${ac_tool_prefix}cc; ac_word=$2
2254 echo "$as_me:$LINENO: checking for $ac_word" >&5
2255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2256 if test "${ac_cv_prog_CC+set}" = set; then
2257   echo $ECHO_N "(cached) $ECHO_C" >&6
2258 else
2259   if test -n "$CC"; then
2260   ac_cv_prog_CC="$CC" # Let the user override the test.
2261 else
2262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2263 for as_dir in $PATH
2264 do
2265   IFS=$as_save_IFS
2266   test -z "$as_dir" && as_dir=.
2267   for ac_exec_ext in '' $ac_executable_extensions; do
2268   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2269     ac_cv_prog_CC="${ac_tool_prefix}cc"
2270     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2271     break 2
2272   fi
2273 done
2274 done
2275
2276 fi
2277 fi
2278 CC=$ac_cv_prog_CC
2279 if test -n "$CC"; then
2280   echo "$as_me:$LINENO: result: $CC" >&5
2281 echo "${ECHO_T}$CC" >&6
2282 else
2283   echo "$as_me:$LINENO: result: no" >&5
2284 echo "${ECHO_T}no" >&6
2285 fi
2286
2287 fi
2288 if test -z "$ac_cv_prog_CC"; then
2289   ac_ct_CC=$CC
2290   # Extract the first word of "cc", so it can be a program name with args.
2291 set dummy cc; ac_word=$2
2292 echo "$as_me:$LINENO: checking for $ac_word" >&5
2293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2294 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2295   echo $ECHO_N "(cached) $ECHO_C" >&6
2296 else
2297   if test -n "$ac_ct_CC"; then
2298   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2299 else
2300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2301 for as_dir in $PATH
2302 do
2303   IFS=$as_save_IFS
2304   test -z "$as_dir" && as_dir=.
2305   for ac_exec_ext in '' $ac_executable_extensions; do
2306   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2307     ac_cv_prog_ac_ct_CC="cc"
2308     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2309     break 2
2310   fi
2311 done
2312 done
2313
2314 fi
2315 fi
2316 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2317 if test -n "$ac_ct_CC"; then
2318   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2319 echo "${ECHO_T}$ac_ct_CC" >&6
2320 else
2321   echo "$as_me:$LINENO: result: no" >&5
2322 echo "${ECHO_T}no" >&6
2323 fi
2324
2325   CC=$ac_ct_CC
2326 else
2327   CC="$ac_cv_prog_CC"
2328 fi
2329
2330 fi
2331 if test -z "$CC"; then
2332   # Extract the first word of "cc", so it can be a program name with args.
2333 set dummy cc; ac_word=$2
2334 echo "$as_me:$LINENO: checking for $ac_word" >&5
2335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2336 if test "${ac_cv_prog_CC+set}" = set; then
2337   echo $ECHO_N "(cached) $ECHO_C" >&6
2338 else
2339   if test -n "$CC"; then
2340   ac_cv_prog_CC="$CC" # Let the user override the test.
2341 else
2342   ac_prog_rejected=no
2343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344 for as_dir in $PATH
2345 do
2346   IFS=$as_save_IFS
2347   test -z "$as_dir" && as_dir=.
2348   for ac_exec_ext in '' $ac_executable_extensions; do
2349   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2350     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2351        ac_prog_rejected=yes
2352        continue
2353      fi
2354     ac_cv_prog_CC="cc"
2355     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2356     break 2
2357   fi
2358 done
2359 done
2360
2361 if test $ac_prog_rejected = yes; then
2362   # We found a bogon in the path, so make sure we never use it.
2363   set dummy $ac_cv_prog_CC
2364   shift
2365   if test $# != 0; then
2366     # We chose a different compiler from the bogus one.
2367     # However, it has the same basename, so the bogon will be chosen
2368     # first if we set CC to just the basename; use the full file name.
2369     shift
2370     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2371   fi
2372 fi
2373 fi
2374 fi
2375 CC=$ac_cv_prog_CC
2376 if test -n "$CC"; then
2377   echo "$as_me:$LINENO: result: $CC" >&5
2378 echo "${ECHO_T}$CC" >&6
2379 else
2380   echo "$as_me:$LINENO: result: no" >&5
2381 echo "${ECHO_T}no" >&6
2382 fi
2383
2384 fi
2385 if test -z "$CC"; then
2386   if test -n "$ac_tool_prefix"; then
2387   for ac_prog in cl
2388   do
2389     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2390 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2391 echo "$as_me:$LINENO: checking for $ac_word" >&5
2392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2393 if test "${ac_cv_prog_CC+set}" = set; then
2394   echo $ECHO_N "(cached) $ECHO_C" >&6
2395 else
2396   if test -n "$CC"; then
2397   ac_cv_prog_CC="$CC" # Let the user override the test.
2398 else
2399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2400 for as_dir in $PATH
2401 do
2402   IFS=$as_save_IFS
2403   test -z "$as_dir" && as_dir=.
2404   for ac_exec_ext in '' $ac_executable_extensions; do
2405   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2406     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2407     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2408     break 2
2409   fi
2410 done
2411 done
2412
2413 fi
2414 fi
2415 CC=$ac_cv_prog_CC
2416 if test -n "$CC"; then
2417   echo "$as_me:$LINENO: result: $CC" >&5
2418 echo "${ECHO_T}$CC" >&6
2419 else
2420   echo "$as_me:$LINENO: result: no" >&5
2421 echo "${ECHO_T}no" >&6
2422 fi
2423
2424     test -n "$CC" && break
2425   done
2426 fi
2427 if test -z "$CC"; then
2428   ac_ct_CC=$CC
2429   for ac_prog in cl
2430 do
2431   # Extract the first word of "$ac_prog", so it can be a program name with args.
2432 set dummy $ac_prog; ac_word=$2
2433 echo "$as_me:$LINENO: checking for $ac_word" >&5
2434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2435 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2436   echo $ECHO_N "(cached) $ECHO_C" >&6
2437 else
2438   if test -n "$ac_ct_CC"; then
2439   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2440 else
2441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2442 for as_dir in $PATH
2443 do
2444   IFS=$as_save_IFS
2445   test -z "$as_dir" && as_dir=.
2446   for ac_exec_ext in '' $ac_executable_extensions; do
2447   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2448     ac_cv_prog_ac_ct_CC="$ac_prog"
2449     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2450     break 2
2451   fi
2452 done
2453 done
2454
2455 fi
2456 fi
2457 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2458 if test -n "$ac_ct_CC"; then
2459   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2460 echo "${ECHO_T}$ac_ct_CC" >&6
2461 else
2462   echo "$as_me:$LINENO: result: no" >&5
2463 echo "${ECHO_T}no" >&6
2464 fi
2465
2466   test -n "$ac_ct_CC" && break
2467 done
2468
2469   CC=$ac_ct_CC
2470 fi
2471
2472 fi
2473
2474
2475 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2476 See \`config.log' for more details." >&5
2477 echo "$as_me: error: no acceptable C compiler found in \$PATH
2478 See \`config.log' for more details." >&2;}
2479    { (exit 1); exit 1; }; }
2480
2481 # Provide some information about the compiler.
2482 echo "$as_me:$LINENO:" \
2483      "checking for C compiler version" >&5
2484 ac_compiler=`set X $ac_compile; echo $2`
2485 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2486   (eval $ac_compiler --version </dev/null >&5) 2>&5
2487   ac_status=$?
2488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489   (exit $ac_status); }
2490 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2491   (eval $ac_compiler -v </dev/null >&5) 2>&5
2492   ac_status=$?
2493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494   (exit $ac_status); }
2495 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2496   (eval $ac_compiler -V </dev/null >&5) 2>&5
2497   ac_status=$?
2498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499   (exit $ac_status); }
2500
2501 cat >conftest.$ac_ext <<_ACEOF
2502 /* confdefs.h.  */
2503 _ACEOF
2504 cat confdefs.h >>conftest.$ac_ext
2505 cat >>conftest.$ac_ext <<_ACEOF
2506 /* end confdefs.h.  */
2507
2508 int
2509 main ()
2510 {
2511
2512   ;
2513   return 0;
2514 }
2515 _ACEOF
2516 ac_clean_files_save=$ac_clean_files
2517 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2518 # Try to create an executable without -o first, disregard a.out.
2519 # It will help us diagnose broken compilers, and finding out an intuition
2520 # of exeext.
2521 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2522 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2523 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2524 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2525   (eval $ac_link_default) 2>&5
2526   ac_status=$?
2527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528   (exit $ac_status); }; then
2529   # Find the output, starting from the most likely.  This scheme is
2530 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2531 # resort.
2532
2533 # Be careful to initialize this variable, since it used to be cached.
2534 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2535 ac_cv_exeext=
2536 # b.out is created by i960 compilers.
2537 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2538 do
2539   test -f "$ac_file" || continue
2540   case $ac_file in
2541     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2542         ;;
2543     conftest.$ac_ext )
2544         # This is the source file.
2545         ;;
2546     [ab].out )
2547         # We found the default executable, but exeext='' is most
2548         # certainly right.
2549         break;;
2550     *.* )
2551         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2552         # FIXME: I believe we export ac_cv_exeext for Libtool,
2553         # but it would be cool to find out if it's true.  Does anybody
2554         # maintain Libtool? --akim.
2555         export ac_cv_exeext
2556         break;;
2557     * )
2558         break;;
2559   esac
2560 done
2561 else
2562   echo "$as_me: failed program was:" >&5
2563 sed 's/^/| /' conftest.$ac_ext >&5
2564
2565 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2566 See \`config.log' for more details." >&5
2567 echo "$as_me: error: C compiler cannot create executables
2568 See \`config.log' for more details." >&2;}
2569    { (exit 77); exit 77; }; }
2570 fi
2571
2572 ac_exeext=$ac_cv_exeext
2573 echo "$as_me:$LINENO: result: $ac_file" >&5
2574 echo "${ECHO_T}$ac_file" >&6
2575
2576 # Check the compiler produces executables we can run.  If not, either
2577 # the compiler is broken, or we cross compile.
2578 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2579 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2580 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2581 # If not cross compiling, check that we can run a simple program.
2582 if test "$cross_compiling" != yes; then
2583   if { ac_try='./$ac_file'
2584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2585   (eval $ac_try) 2>&5
2586   ac_status=$?
2587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588   (exit $ac_status); }; }; then
2589     cross_compiling=no
2590   else
2591     if test "$cross_compiling" = maybe; then
2592         cross_compiling=yes
2593     else
2594         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2595 If you meant to cross compile, use \`--host'.
2596 See \`config.log' for more details." >&5
2597 echo "$as_me: error: cannot run C compiled programs.
2598 If you meant to cross compile, use \`--host'.
2599 See \`config.log' for more details." >&2;}
2600    { (exit 1); exit 1; }; }
2601     fi
2602   fi
2603 fi
2604 echo "$as_me:$LINENO: result: yes" >&5
2605 echo "${ECHO_T}yes" >&6
2606
2607 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2608 ac_clean_files=$ac_clean_files_save
2609 # Check the compiler produces executables we can run.  If not, either
2610 # the compiler is broken, or we cross compile.
2611 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2612 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2613 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2614 echo "${ECHO_T}$cross_compiling" >&6
2615
2616 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2617 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2619   (eval $ac_link) 2>&5
2620   ac_status=$?
2621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622   (exit $ac_status); }; then
2623   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2624 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2625 # work properly (i.e., refer to `conftest.exe'), while it won't with
2626 # `rm'.
2627 for ac_file in conftest.exe conftest conftest.*; do
2628   test -f "$ac_file" || continue
2629   case $ac_file in
2630     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2631     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2632           export ac_cv_exeext
2633           break;;
2634     * ) break;;
2635   esac
2636 done
2637 else
2638   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2639 See \`config.log' for more details." >&5
2640 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2641 See \`config.log' for more details." >&2;}
2642    { (exit 1); exit 1; }; }
2643 fi
2644
2645 rm -f conftest$ac_cv_exeext
2646 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2647 echo "${ECHO_T}$ac_cv_exeext" >&6
2648
2649 rm -f conftest.$ac_ext
2650 EXEEXT=$ac_cv_exeext
2651 ac_exeext=$EXEEXT
2652 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2653 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2654 if test "${ac_cv_objext+set}" = set; then
2655   echo $ECHO_N "(cached) $ECHO_C" >&6
2656 else
2657   cat >conftest.$ac_ext <<_ACEOF
2658 /* confdefs.h.  */
2659 _ACEOF
2660 cat confdefs.h >>conftest.$ac_ext
2661 cat >>conftest.$ac_ext <<_ACEOF
2662 /* end confdefs.h.  */
2663
2664 int
2665 main ()
2666 {
2667
2668   ;
2669   return 0;
2670 }
2671 _ACEOF
2672 rm -f conftest.o conftest.obj
2673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2674   (eval $ac_compile) 2>&5
2675   ac_status=$?
2676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677   (exit $ac_status); }; then
2678   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2679   case $ac_file in
2680     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2681     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2682        break;;
2683   esac
2684 done
2685 else
2686   echo "$as_me: failed program was:" >&5
2687 sed 's/^/| /' conftest.$ac_ext >&5
2688
2689 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2690 See \`config.log' for more details." >&5
2691 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2692 See \`config.log' for more details." >&2;}
2693    { (exit 1); exit 1; }; }
2694 fi
2695
2696 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2697 fi
2698 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2699 echo "${ECHO_T}$ac_cv_objext" >&6
2700 OBJEXT=$ac_cv_objext
2701 ac_objext=$OBJEXT
2702 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2703 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2704 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2705   echo $ECHO_N "(cached) $ECHO_C" >&6
2706 else
2707   cat >conftest.$ac_ext <<_ACEOF
2708 /* confdefs.h.  */
2709 _ACEOF
2710 cat confdefs.h >>conftest.$ac_ext
2711 cat >>conftest.$ac_ext <<_ACEOF
2712 /* end confdefs.h.  */
2713
2714 int
2715 main ()
2716 {
2717 #ifndef __GNUC__
2718        choke me
2719 #endif
2720
2721   ;
2722   return 0;
2723 }
2724 _ACEOF
2725 rm -f conftest.$ac_objext
2726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2727   (eval $ac_compile) 2>conftest.er1
2728   ac_status=$?
2729   grep -v '^ *+' conftest.er1 >conftest.err
2730   rm -f conftest.er1
2731   cat conftest.err >&5
2732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733   (exit $ac_status); } &&
2734          { ac_try='test -z "$ac_c_werror_flag"                   || 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_compiler_gnu=yes
2747 else
2748   echo "$as_me: failed program was:" >&5
2749 sed 's/^/| /' conftest.$ac_ext >&5
2750
2751 ac_compiler_gnu=no
2752 fi
2753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2754 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2755
2756 fi
2757 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2758 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2759 GCC=`test $ac_compiler_gnu = yes && echo yes`
2760 ac_test_CFLAGS=${CFLAGS+set}
2761 ac_save_CFLAGS=$CFLAGS
2762 CFLAGS="-g"
2763 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2764 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2765 if test "${ac_cv_prog_cc_g+set}" = set; then
2766   echo $ECHO_N "(cached) $ECHO_C" >&6
2767 else
2768   cat >conftest.$ac_ext <<_ACEOF
2769 /* confdefs.h.  */
2770 _ACEOF
2771 cat confdefs.h >>conftest.$ac_ext
2772 cat >>conftest.$ac_ext <<_ACEOF
2773 /* end confdefs.h.  */
2774
2775 int
2776 main ()
2777 {
2778
2779   ;
2780   return 0;
2781 }
2782 _ACEOF
2783 rm -f conftest.$ac_objext
2784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2785   (eval $ac_compile) 2>conftest.er1
2786   ac_status=$?
2787   grep -v '^ *+' conftest.er1 >conftest.err
2788   rm -f conftest.er1
2789   cat conftest.err >&5
2790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791   (exit $ac_status); } &&
2792          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794   (eval $ac_try) 2>&5
2795   ac_status=$?
2796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797   (exit $ac_status); }; } &&
2798          { ac_try='test -s conftest.$ac_objext'
2799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800   (eval $ac_try) 2>&5
2801   ac_status=$?
2802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803   (exit $ac_status); }; }; then
2804   ac_cv_prog_cc_g=yes
2805 else
2806   echo "$as_me: failed program was:" >&5
2807 sed 's/^/| /' conftest.$ac_ext >&5
2808
2809 ac_cv_prog_cc_g=no
2810 fi
2811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2812 fi
2813 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2814 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2815 if test "$ac_test_CFLAGS" = set; then
2816   CFLAGS=$ac_save_CFLAGS
2817 elif test $ac_cv_prog_cc_g = yes; then
2818   if test "$GCC" = yes; then
2819     CFLAGS="-g -O2"
2820   else
2821     CFLAGS="-g"
2822   fi
2823 else
2824   if test "$GCC" = yes; then
2825     CFLAGS="-O2"
2826   else
2827     CFLAGS=
2828   fi
2829 fi
2830 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2831 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2832 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2833   echo $ECHO_N "(cached) $ECHO_C" >&6
2834 else
2835   ac_cv_prog_cc_stdc=no
2836 ac_save_CC=$CC
2837 cat >conftest.$ac_ext <<_ACEOF
2838 /* confdefs.h.  */
2839 _ACEOF
2840 cat confdefs.h >>conftest.$ac_ext
2841 cat >>conftest.$ac_ext <<_ACEOF
2842 /* end confdefs.h.  */
2843 #include <stdarg.h>
2844 #include <stdio.h>
2845 #include <sys/types.h>
2846 #include <sys/stat.h>
2847 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2848 struct buf { int x; };
2849 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2850 static char *e (p, i)
2851      char **p;
2852      int i;
2853 {
2854   return p[i];
2855 }
2856 static char *f (char * (*g) (char **, int), char **p, ...)
2857 {
2858   char *s;
2859   va_list v;
2860   va_start (v,p);
2861   s = g (p, va_arg (v,int));
2862   va_end (v);
2863   return s;
2864 }
2865
2866 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2867    function prototypes and stuff, but not '\xHH' hex character constants.
2868    These don't provoke an error unfortunately, instead are silently treated
2869    as 'x'.  The following induces an error, until -std1 is added to get
2870    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2871    array size at least.  It's necessary to write '\x00'==0 to get something
2872    that's true only with -std1.  */
2873 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2874
2875 int test (int i, double x);
2876 struct s1 {int (*f) (int a);};
2877 struct s2 {int (*f) (double a);};
2878 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2879 int argc;
2880 char **argv;
2881 int
2882 main ()
2883 {
2884 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2885   ;
2886   return 0;
2887 }
2888 _ACEOF
2889 # Don't try gcc -ansi; that turns off useful extensions and
2890 # breaks some systems' header files.
2891 # AIX                   -qlanglvl=ansi
2892 # Ultrix and OSF/1      -std1
2893 # HP-UX 10.20 and later -Ae
2894 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2895 # SVR4                  -Xc -D__EXTENSIONS__
2896 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2897 do
2898   CC="$ac_save_CC $ac_arg"
2899   rm -f conftest.$ac_objext
2900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2901   (eval $ac_compile) 2>conftest.er1
2902   ac_status=$?
2903   grep -v '^ *+' conftest.er1 >conftest.err
2904   rm -f conftest.er1
2905   cat conftest.err >&5
2906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907   (exit $ac_status); } &&
2908          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2910   (eval $ac_try) 2>&5
2911   ac_status=$?
2912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913   (exit $ac_status); }; } &&
2914          { ac_try='test -s conftest.$ac_objext'
2915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2916   (eval $ac_try) 2>&5
2917   ac_status=$?
2918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919   (exit $ac_status); }; }; then
2920   ac_cv_prog_cc_stdc=$ac_arg
2921 break
2922 else
2923   echo "$as_me: failed program was:" >&5
2924 sed 's/^/| /' conftest.$ac_ext >&5
2925
2926 fi
2927 rm -f conftest.err conftest.$ac_objext
2928 done
2929 rm -f conftest.$ac_ext conftest.$ac_objext
2930 CC=$ac_save_CC
2931
2932 fi
2933
2934 case "x$ac_cv_prog_cc_stdc" in
2935   x|xno)
2936     echo "$as_me:$LINENO: result: none needed" >&5
2937 echo "${ECHO_T}none needed" >&6 ;;
2938   *)
2939     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2940 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2941     CC="$CC $ac_cv_prog_cc_stdc" ;;
2942 esac
2943
2944 # Some people use a C++ compiler to compile C.  Since we use `exit',
2945 # in C++ we need to declare it.  In case someone uses the same compiler
2946 # for both compiling C and C++ we need to have the C++ compiler decide
2947 # the declaration of exit, since it's the most demanding environment.
2948 cat >conftest.$ac_ext <<_ACEOF
2949 #ifndef __cplusplus
2950   choke me
2951 #endif
2952 _ACEOF
2953 rm -f conftest.$ac_objext
2954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2955   (eval $ac_compile) 2>conftest.er1
2956   ac_status=$?
2957   grep -v '^ *+' conftest.er1 >conftest.err
2958   rm -f conftest.er1
2959   cat conftest.err >&5
2960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961   (exit $ac_status); } &&
2962          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2964   (eval $ac_try) 2>&5
2965   ac_status=$?
2966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967   (exit $ac_status); }; } &&
2968          { ac_try='test -s conftest.$ac_objext'
2969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2970   (eval $ac_try) 2>&5
2971   ac_status=$?
2972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973   (exit $ac_status); }; }; then
2974   for ac_declaration in \
2975    '' \
2976    'extern "C" void std::exit (int) throw (); using std::exit;' \
2977    'extern "C" void std::exit (int); using std::exit;' \
2978    'extern "C" void exit (int) throw ();' \
2979    'extern "C" void exit (int);' \
2980    'void exit (int);'
2981 do
2982   cat >conftest.$ac_ext <<_ACEOF
2983 /* confdefs.h.  */
2984 _ACEOF
2985 cat confdefs.h >>conftest.$ac_ext
2986 cat >>conftest.$ac_ext <<_ACEOF
2987 /* end confdefs.h.  */
2988 $ac_declaration
2989 #include <stdlib.h>
2990 int
2991 main ()
2992 {
2993 exit (42);
2994   ;
2995   return 0;
2996 }
2997 _ACEOF
2998 rm -f conftest.$ac_objext
2999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3000   (eval $ac_compile) 2>conftest.er1
3001   ac_status=$?
3002   grep -v '^ *+' conftest.er1 >conftest.err
3003   rm -f conftest.er1
3004   cat conftest.err >&5
3005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006   (exit $ac_status); } &&
3007          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3009   (eval $ac_try) 2>&5
3010   ac_status=$?
3011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012   (exit $ac_status); }; } &&
3013          { ac_try='test -s conftest.$ac_objext'
3014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3015   (eval $ac_try) 2>&5
3016   ac_status=$?
3017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018   (exit $ac_status); }; }; then
3019   :
3020 else
3021   echo "$as_me: failed program was:" >&5
3022 sed 's/^/| /' conftest.$ac_ext >&5
3023
3024 continue
3025 fi
3026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3027   cat >conftest.$ac_ext <<_ACEOF
3028 /* confdefs.h.  */
3029 _ACEOF
3030 cat confdefs.h >>conftest.$ac_ext
3031 cat >>conftest.$ac_ext <<_ACEOF
3032 /* end confdefs.h.  */
3033 $ac_declaration
3034 int
3035 main ()
3036 {
3037 exit (42);
3038   ;
3039   return 0;
3040 }
3041 _ACEOF
3042 rm -f conftest.$ac_objext
3043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3044   (eval $ac_compile) 2>conftest.er1
3045   ac_status=$?
3046   grep -v '^ *+' conftest.er1 >conftest.err
3047   rm -f conftest.er1
3048   cat conftest.err >&5
3049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050   (exit $ac_status); } &&
3051          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3053   (eval $ac_try) 2>&5
3054   ac_status=$?
3055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056   (exit $ac_status); }; } &&
3057          { ac_try='test -s conftest.$ac_objext'
3058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3059   (eval $ac_try) 2>&5
3060   ac_status=$?
3061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062   (exit $ac_status); }; }; then
3063   break
3064 else
3065   echo "$as_me: failed program was:" >&5
3066 sed 's/^/| /' conftest.$ac_ext >&5
3067
3068 fi
3069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3070 done
3071 rm -f conftest*
3072 if test -n "$ac_declaration"; then
3073   echo '#ifdef __cplusplus' >>confdefs.h
3074   echo $ac_declaration      >>confdefs.h
3075   echo '#endif'             >>confdefs.h
3076 fi
3077
3078 else
3079   echo "$as_me: failed program was:" >&5
3080 sed 's/^/| /' conftest.$ac_ext >&5
3081
3082 fi
3083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3084 ac_ext=c
3085 ac_cpp='$CPP $CPPFLAGS'
3086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3089
3090 depcc="$CC"   am_compiler_list=
3091
3092 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3093 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3094 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3095   echo $ECHO_N "(cached) $ECHO_C" >&6
3096 else
3097   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3098   # We make a subdir and do the tests there.  Otherwise we can end up
3099   # making bogus files that we don't know about and never remove.  For
3100   # instance it was reported that on HP-UX the gcc test will end up
3101   # making a dummy file named `D' -- because `-MD' means `put the output
3102   # in D'.
3103   mkdir conftest.dir
3104   # Copy depcomp to subdir because otherwise we won't find it if we're
3105   # using a relative directory.
3106   cp "$am_depcomp" conftest.dir
3107   cd conftest.dir
3108   # We will build objects and dependencies in a subdirectory because
3109   # it helps to detect inapplicable dependency modes.  For instance
3110   # both Tru64's cc and ICC support -MD to output dependencies as a
3111   # side effect of compilation, but ICC will put the dependencies in
3112   # the current directory while Tru64 will put them in the object
3113   # directory.
3114   mkdir sub
3115
3116   am_cv_CC_dependencies_compiler_type=none
3117   if test "$am_compiler_list" = ""; then
3118      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3119   fi
3120   for depmode in $am_compiler_list; do
3121     # Setup a source with many dependencies, because some compilers
3122     # like to wrap large dependency lists on column 80 (with \), and
3123     # we should not choose a depcomp mode which is confused by this.
3124     #
3125     # We need to recreate these files for each test, as the compiler may
3126     # overwrite some of them when testing with obscure command lines.
3127     # This happens at least with the AIX C compiler.
3128     : > sub/conftest.c
3129     for i in 1 2 3 4 5 6; do
3130       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3131       : > sub/conftst$i.h
3132     done
3133     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3134
3135     case $depmode in
3136     nosideeffect)
3137       # after this tag, mechanisms are not by side-effect, so they'll
3138       # only be used when explicitly requested
3139       if test "x$enable_dependency_tracking" = xyes; then
3140         continue
3141       else
3142         break
3143       fi
3144       ;;
3145     none) break ;;
3146     esac
3147     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3148     # mode.  It turns out that the SunPro C++ compiler does not properly
3149     # handle `-M -o', and we need to detect this.
3150     if depmode=$depmode \
3151        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3152        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3153        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3154          >/dev/null 2>conftest.err &&
3155        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3156        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3157        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3158       # icc doesn't choke on unknown options, it will just issue warnings
3159       # (even with -Werror).  So we grep stderr for any message
3160       # that says an option was ignored.
3161       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3162         am_cv_CC_dependencies_compiler_type=$depmode
3163         break
3164       fi
3165     fi
3166   done
3167
3168   cd ..
3169   rm -rf conftest.dir
3170 else
3171   am_cv_CC_dependencies_compiler_type=none
3172 fi
3173
3174 fi
3175 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3176 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3177 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3178
3179
3180
3181 if
3182   test "x$enable_dependency_tracking" != xno \
3183   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3184   am__fastdepCC_TRUE=
3185   am__fastdepCC_FALSE='#'
3186 else
3187   am__fastdepCC_TRUE='#'
3188   am__fastdepCC_FALSE=
3189 fi
3190
3191
3192 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3193 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3194 if test "${lt_cv_path_SED+set}" = set; then
3195   echo $ECHO_N "(cached) $ECHO_C" >&6
3196 else
3197   # Loop through the user's path and test for sed and gsed.
3198 # Then use that list of sed's as ones to test for truncation.
3199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200 for as_dir in $PATH
3201 do
3202   IFS=$as_save_IFS
3203   test -z "$as_dir" && as_dir=.
3204   for lt_ac_prog in sed gsed; do
3205     for ac_exec_ext in '' $ac_executable_extensions; do
3206       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3207         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3208       fi
3209     done
3210   done
3211 done
3212 lt_ac_max=0
3213 lt_ac_count=0
3214 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3215 # along with /bin/sed that truncates output.
3216 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3217   test ! -f $lt_ac_sed && break
3218   cat /dev/null > conftest.in
3219   lt_ac_count=0
3220   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3221   # Check for GNU sed and select it if it is found.
3222   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3223     lt_cv_path_SED=$lt_ac_sed
3224     break
3225   fi
3226   while true; do
3227     cat conftest.in conftest.in >conftest.tmp
3228     mv conftest.tmp conftest.in
3229     cp conftest.in conftest.nl
3230     echo >>conftest.nl
3231     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3232     cmp -s conftest.out conftest.nl || break
3233     # 10000 chars as input seems more than enough
3234     test $lt_ac_count -gt 10 && break
3235     lt_ac_count=`expr $lt_ac_count + 1`
3236     if test $lt_ac_count -gt $lt_ac_max; then
3237       lt_ac_max=$lt_ac_count
3238       lt_cv_path_SED=$lt_ac_sed
3239     fi
3240   done
3241 done
3242 SED=$lt_cv_path_SED
3243
3244 fi
3245
3246 echo "$as_me:$LINENO: result: $SED" >&5
3247 echo "${ECHO_T}$SED" >&6
3248
3249 echo "$as_me:$LINENO: checking for egrep" >&5
3250 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3251 if test "${ac_cv_prog_egrep+set}" = set; then
3252   echo $ECHO_N "(cached) $ECHO_C" >&6
3253 else
3254   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3255     then ac_cv_prog_egrep='grep -E'
3256     else ac_cv_prog_egrep='egrep'
3257     fi
3258 fi
3259 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3260 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3261  EGREP=$ac_cv_prog_egrep
3262
3263
3264
3265 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3266 if test "${with_gnu_ld+set}" = set; then
3267   withval="$with_gnu_ld"
3268   test "$withval" = no || with_gnu_ld=yes
3269 else
3270   with_gnu_ld=no
3271 fi;
3272 ac_prog=ld
3273 if test "$GCC" = yes; then
3274   # Check if gcc -print-prog-name=ld gives a path.
3275   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3276 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3277   case $host in
3278   *-*-mingw*)
3279     # gcc leaves a trailing carriage return which upsets mingw
3280     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3281   *)
3282     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3283   esac
3284   case $ac_prog in
3285     # Accept absolute paths.
3286     [\\/]* | ?:[\\/]*)
3287       re_direlt='/[^/][^/]*/\.\./'
3288       # Canonicalize the pathname of ld
3289       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3290       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3291         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3292       done
3293       test -z "$LD" && LD="$ac_prog"
3294       ;;
3295   "")
3296     # If it fails, then pretend we aren't using GCC.
3297     ac_prog=ld
3298     ;;
3299   *)
3300     # If it is relative, then search for the first ld in PATH.
3301     with_gnu_ld=unknown
3302     ;;
3303   esac
3304 elif test "$with_gnu_ld" = yes; then
3305   echo "$as_me:$LINENO: checking for GNU ld" >&5
3306 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3307 else
3308   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3309 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3310 fi
3311 if test "${lt_cv_path_LD+set}" = set; then
3312   echo $ECHO_N "(cached) $ECHO_C" >&6
3313 else
3314   if test -z "$LD"; then
3315   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3316   for ac_dir in $PATH; do
3317     IFS="$lt_save_ifs"
3318     test -z "$ac_dir" && ac_dir=.
3319     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3320       lt_cv_path_LD="$ac_dir/$ac_prog"
3321       # Check to see if the program is GNU ld.  I'd rather use --version,
3322       # but apparently some GNU ld's only accept -v.
3323       # Break only if it was the GNU/non-GNU ld that we prefer.
3324       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3325       *GNU* | *'with BFD'*)
3326         test "$with_gnu_ld" != no && break
3327         ;;
3328       *)
3329         test "$with_gnu_ld" != yes && break
3330         ;;
3331       esac
3332     fi
3333   done
3334   IFS="$lt_save_ifs"
3335 else
3336   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3337 fi
3338 fi
3339
3340 LD="$lt_cv_path_LD"
3341 if test -n "$LD"; then
3342   echo "$as_me:$LINENO: result: $LD" >&5
3343 echo "${ECHO_T}$LD" >&6
3344 else
3345   echo "$as_me:$LINENO: result: no" >&5
3346 echo "${ECHO_T}no" >&6
3347 fi
3348 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3349 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3350    { (exit 1); exit 1; }; }
3351 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3352 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3353 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3354   echo $ECHO_N "(cached) $ECHO_C" >&6
3355 else
3356   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3357 case `$LD -v 2>&1 </dev/null` in
3358 *GNU* | *'with BFD'*)
3359   lt_cv_prog_gnu_ld=yes
3360   ;;
3361 *)
3362   lt_cv_prog_gnu_ld=no
3363   ;;
3364 esac
3365 fi
3366 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3367 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3368 with_gnu_ld=$lt_cv_prog_gnu_ld
3369
3370
3371 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3372 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3373 if test "${lt_cv_ld_reload_flag+set}" = set; then
3374   echo $ECHO_N "(cached) $ECHO_C" >&6
3375 else
3376   lt_cv_ld_reload_flag='-r'
3377 fi
3378 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3379 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3380 reload_flag=$lt_cv_ld_reload_flag
3381 case $reload_flag in
3382 "" | " "*) ;;
3383 *) reload_flag=" $reload_flag" ;;
3384 esac
3385 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3386
3387 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3388 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3389 if test "${lt_cv_path_NM+set}" = set; then
3390   echo $ECHO_N "(cached) $ECHO_C" >&6
3391 else
3392   if test -n "$NM"; then
3393   # Let the user override the test.
3394   lt_cv_path_NM="$NM"
3395 else
3396   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3397   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3398     IFS="$lt_save_ifs"
3399     test -z "$ac_dir" && ac_dir=.
3400     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3401     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3402       # Check to see if the nm accepts a BSD-compat flag.
3403       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3404       #   nm: unknown option "B" ignored
3405       # Tru64's nm complains that /dev/null is an invalid object file
3406       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3407       */dev/null* | *'Invalid file or object type'*)
3408         lt_cv_path_NM="$tmp_nm -B"
3409         break
3410         ;;
3411       *)
3412         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3413         */dev/null*)
3414           lt_cv_path_NM="$tmp_nm -p"
3415           break
3416           ;;
3417         *)
3418           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3419           continue # so that we can try to find one that supports BSD flags
3420           ;;
3421         esac
3422       esac
3423     fi
3424   done
3425   IFS="$lt_save_ifs"
3426   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3427 fi
3428 fi
3429 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3430 echo "${ECHO_T}$lt_cv_path_NM" >&6
3431 NM="$lt_cv_path_NM"
3432
3433 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3434 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3435 LN_S=$as_ln_s
3436 if test "$LN_S" = "ln -s"; then
3437   echo "$as_me:$LINENO: result: yes" >&5
3438 echo "${ECHO_T}yes" >&6
3439 else
3440   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3441 echo "${ECHO_T}no, using $LN_S" >&6
3442 fi
3443
3444 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3445 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3446 if test "${lt_cv_deplibs_check_method+set}" = set; then
3447   echo $ECHO_N "(cached) $ECHO_C" >&6
3448 else
3449   lt_cv_file_magic_cmd='$MAGIC_CMD'
3450 lt_cv_file_magic_test_file=
3451 lt_cv_deplibs_check_method='unknown'
3452 # Need to set the preceding variable on all platforms that support
3453 # interlibrary dependencies.
3454 # 'none' -- dependencies not supported.
3455 # `unknown' -- same as none, but documents that we really don't know.
3456 # 'pass_all' -- all dependencies passed with no checks.
3457 # 'test_compile' -- check by making test program.
3458 # 'file_magic [[regex]]' -- check by looking for files in library path
3459 # which responds to the $file_magic_cmd with a given extended regex.
3460 # If you have `file' or equivalent on your system and you're not sure
3461 # whether `pass_all' will *always* work, you probably want this one.
3462
3463 case $host_os in
3464 aix4* | aix5*)
3465   lt_cv_deplibs_check_method=pass_all
3466   ;;
3467
3468 beos*)
3469   lt_cv_deplibs_check_method=pass_all
3470   ;;
3471
3472 bsdi4*)
3473   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3474   lt_cv_file_magic_cmd='/usr/bin/file -L'
3475   lt_cv_file_magic_test_file=/shlib/libc.so
3476   ;;
3477
3478 cygwin*)
3479   # win32_libid is a shell function defined in ltmain.sh
3480   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3481   lt_cv_file_magic_cmd='win32_libid'
3482   ;;
3483
3484 mingw* | pw32*)
3485   # Base MSYS/MinGW do not provide the 'file' command needed by
3486   # win32_libid shell function, so use a weaker test based on 'objdump'.
3487   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3488   lt_cv_file_magic_cmd='$OBJDUMP -f'
3489   ;;
3490
3491 darwin* | rhapsody*)
3492   lt_cv_deplibs_check_method=pass_all
3493   ;;
3494
3495 freebsd* | kfreebsd*-gnu)
3496   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3497     case $host_cpu in
3498     i*86 )
3499       # Not sure whether the presence of OpenBSD here was a mistake.
3500       # Let's accept both of them until this is cleared up.
3501       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3502       lt_cv_file_magic_cmd=/usr/bin/file
3503       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3504       ;;
3505     esac
3506   else
3507     lt_cv_deplibs_check_method=pass_all
3508   fi
3509   ;;
3510
3511 gnu*)
3512   lt_cv_deplibs_check_method=pass_all
3513   ;;
3514
3515 hpux10.20* | hpux11*)
3516   lt_cv_file_magic_cmd=/usr/bin/file
3517   case "$host_cpu" in
3518   ia64*)
3519     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3520     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3521     ;;
3522   hppa*64*)
3523     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]'
3524     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3525     ;;
3526   *)
3527     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3528     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3529     ;;
3530   esac
3531   ;;
3532
3533 irix5* | irix6* | nonstopux*)
3534   case $LD in
3535   *-32|*"-32 ") libmagic=32-bit;;
3536   *-n32|*"-n32 ") libmagic=N32;;
3537   *-64|*"-64 ") libmagic=64-bit;;
3538   *) libmagic=never-match;;
3539   esac
3540   lt_cv_deplibs_check_method=pass_all
3541   ;;
3542
3543 # This must be Linux ELF.
3544 linux*)
3545   lt_cv_deplibs_check_method=pass_all
3546   ;;
3547
3548 netbsd*)
3549   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3550     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3551   else
3552     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3553   fi
3554   ;;
3555
3556 newos6*)
3557   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3558   lt_cv_file_magic_cmd=/usr/bin/file
3559   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3560   ;;
3561
3562 nto-qnx*)
3563   lt_cv_deplibs_check_method=unknown
3564   ;;
3565
3566 openbsd*)
3567   lt_cv_file_magic_cmd=/usr/bin/file
3568   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3569   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3570     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3571   else
3572     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3573   fi
3574   ;;
3575
3576 osf3* | osf4* | osf5*)
3577   lt_cv_deplibs_check_method=pass_all
3578   ;;
3579
3580 sco3.2v5*)
3581   lt_cv_deplibs_check_method=pass_all
3582   ;;
3583
3584 solaris*)
3585   lt_cv_deplibs_check_method=pass_all
3586   ;;
3587
3588 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3589   case $host_vendor in
3590   motorola)
3591     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]'
3592     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3593     ;;
3594   ncr)
3595     lt_cv_deplibs_check_method=pass_all
3596     ;;
3597   sequent)
3598     lt_cv_file_magic_cmd='/bin/file'
3599     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3600     ;;
3601   sni)
3602     lt_cv_file_magic_cmd='/bin/file'
3603     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3604     lt_cv_file_magic_test_file=/lib/libc.so
3605     ;;
3606   siemens)
3607     lt_cv_deplibs_check_method=pass_all
3608     ;;
3609   esac
3610   ;;
3611
3612 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3613   lt_cv_deplibs_check_method=pass_all
3614   ;;
3615 esac
3616
3617 fi
3618 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3619 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3620 file_magic_cmd=$lt_cv_file_magic_cmd
3621 deplibs_check_method=$lt_cv_deplibs_check_method
3622 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3623
3624
3625
3626
3627 # If no C compiler was specified, use CC.
3628 LTCC=${LTCC-"$CC"}
3629
3630 # Allow CC to be a program name with arguments.
3631 compiler=$CC
3632
3633
3634 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3635 if test "${enable_libtool_lock+set}" = set; then
3636   enableval="$enable_libtool_lock"
3637
3638 fi;
3639 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3640
3641 # Some flags need to be propagated to the compiler or linker for good
3642 # libtool support.
3643 case $host in
3644 ia64-*-hpux*)
3645   # Find out which ABI we are using.
3646   echo 'int i;' > conftest.$ac_ext
3647   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3648   (eval $ac_compile) 2>&5
3649   ac_status=$?
3650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651   (exit $ac_status); }; then
3652     case `/usr/bin/file conftest.$ac_objext` in
3653     *ELF-32*)
3654       HPUX_IA64_MODE="32"
3655       ;;
3656     *ELF-64*)
3657       HPUX_IA64_MODE="64"
3658       ;;
3659     esac
3660   fi
3661   rm -rf conftest*
3662   ;;
3663 *-*-irix6*)
3664   # Find out which ABI we are using.
3665   echo '#line 3665 "configure"' > conftest.$ac_ext
3666   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3667   (eval $ac_compile) 2>&5
3668   ac_status=$?
3669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670   (exit $ac_status); }; then
3671    if test "$lt_cv_prog_gnu_ld" = yes; then
3672     case `/usr/bin/file conftest.$ac_objext` in
3673     *32-bit*)
3674       LD="${LD-ld} -melf32bsmip"
3675       ;;
3676     *N32*)
3677       LD="${LD-ld} -melf32bmipn32"
3678       ;;
3679     *64-bit*)
3680       LD="${LD-ld} -melf64bmip"
3681       ;;
3682     esac
3683    else
3684     case `/usr/bin/file conftest.$ac_objext` in
3685     *32-bit*)
3686       LD="${LD-ld} -32"
3687       ;;
3688     *N32*)
3689       LD="${LD-ld} -n32"
3690       ;;
3691     *64-bit*)
3692       LD="${LD-ld} -64"
3693       ;;
3694     esac
3695    fi
3696   fi
3697   rm -rf conftest*
3698   ;;
3699
3700 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3701   # Find out which ABI we are using.
3702   echo 'int i;' > conftest.$ac_ext
3703   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3704   (eval $ac_compile) 2>&5
3705   ac_status=$?
3706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707   (exit $ac_status); }; then
3708     case "`/usr/bin/file conftest.o`" in
3709     *32-bit*)
3710       case $host in
3711         x86_64-*linux*)
3712           LD="${LD-ld} -m elf_i386"
3713           ;;
3714         ppc64-*linux*|powerpc64-*linux*)
3715           LD="${LD-ld} -m elf32ppclinux"
3716           ;;
3717         s390x-*linux*)
3718           LD="${LD-ld} -m elf_s390"
3719           ;;
3720         sparc64-*linux*)
3721           LD="${LD-ld} -m elf32_sparc"
3722           ;;
3723       esac
3724       ;;
3725     *64-bit*)
3726       case $host in
3727         x86_64-*linux*)
3728           LD="${LD-ld} -m elf_x86_64"
3729           ;;
3730         ppc*-*linux*|powerpc*-*linux*)
3731           LD="${LD-ld} -m elf64ppc"
3732           ;;
3733         s390*-*linux*)
3734           LD="${LD-ld} -m elf64_s390"
3735           ;;
3736         sparc*-*linux*)
3737           LD="${LD-ld} -m elf64_sparc"
3738           ;;
3739       esac
3740       ;;
3741     esac
3742   fi
3743   rm -rf conftest*
3744   ;;
3745
3746 *-*-sco3.2v5*)
3747   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3748   SAVE_CFLAGS="$CFLAGS"
3749   CFLAGS="$CFLAGS -belf"
3750   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3751 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3752 if test "${lt_cv_cc_needs_belf+set}" = set; then
3753   echo $ECHO_N "(cached) $ECHO_C" >&6
3754 else
3755   ac_ext=c
3756 ac_cpp='$CPP $CPPFLAGS'
3757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3760
3761      cat >conftest.$ac_ext <<_ACEOF
3762 /* confdefs.h.  */
3763 _ACEOF
3764 cat confdefs.h >>conftest.$ac_ext
3765 cat >>conftest.$ac_ext <<_ACEOF
3766 /* end confdefs.h.  */
3767
3768 int
3769 main ()
3770 {
3771
3772   ;
3773   return 0;
3774 }
3775 _ACEOF
3776 rm -f conftest.$ac_objext conftest$ac_exeext
3777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3778   (eval $ac_link) 2>conftest.er1
3779   ac_status=$?
3780   grep -v '^ *+' conftest.er1 >conftest.err
3781   rm -f conftest.er1
3782   cat conftest.err >&5
3783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784   (exit $ac_status); } &&
3785          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3787   (eval $ac_try) 2>&5
3788   ac_status=$?
3789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790   (exit $ac_status); }; } &&
3791          { ac_try='test -s conftest$ac_exeext'
3792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3793   (eval $ac_try) 2>&5
3794   ac_status=$?
3795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796   (exit $ac_status); }; }; then
3797   lt_cv_cc_needs_belf=yes
3798 else
3799   echo "$as_me: failed program was:" >&5
3800 sed 's/^/| /' conftest.$ac_ext >&5
3801
3802 lt_cv_cc_needs_belf=no
3803 fi
3804 rm -f conftest.err conftest.$ac_objext \
3805       conftest$ac_exeext conftest.$ac_ext
3806      ac_ext=c
3807 ac_cpp='$CPP $CPPFLAGS'
3808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3811
3812 fi
3813 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3814 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3815   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3816     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3817     CFLAGS="$SAVE_CFLAGS"
3818   fi
3819   ;;
3820
3821 esac
3822
3823 need_locks="$enable_libtool_lock"
3824
3825
3826 ac_ext=c
3827 ac_cpp='$CPP $CPPFLAGS'
3828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3831 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3832 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3833 # On Suns, sometimes $CPP names a directory.
3834 if test -n "$CPP" && test -d "$CPP"; then
3835   CPP=
3836 fi
3837 if test -z "$CPP"; then
3838   if test "${ac_cv_prog_CPP+set}" = set; then
3839   echo $ECHO_N "(cached) $ECHO_C" >&6
3840 else
3841       # Double quotes because CPP needs to be expanded
3842     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3843     do
3844       ac_preproc_ok=false
3845 for ac_c_preproc_warn_flag in '' yes
3846 do
3847   # Use a header file that comes with gcc, so configuring glibc
3848   # with a fresh cross-compiler works.
3849   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3850   # <limits.h> exists even on freestanding compilers.
3851   # On the NeXT, cc -E runs the code through the compiler's parser,
3852   # not just through cpp. "Syntax error" is here to catch this case.
3853   cat >conftest.$ac_ext <<_ACEOF
3854 /* confdefs.h.  */
3855 _ACEOF
3856 cat confdefs.h >>conftest.$ac_ext
3857 cat >>conftest.$ac_ext <<_ACEOF
3858 /* end confdefs.h.  */
3859 #ifdef __STDC__
3860 # include <limits.h>
3861 #else
3862 # include <assert.h>
3863 #endif
3864                      Syntax error
3865 _ACEOF
3866 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3867   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3868   ac_status=$?
3869   grep -v '^ *+' conftest.er1 >conftest.err
3870   rm -f conftest.er1
3871   cat conftest.err >&5
3872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873   (exit $ac_status); } >/dev/null; then
3874   if test -s conftest.err; then
3875     ac_cpp_err=$ac_c_preproc_warn_flag
3876     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3877   else
3878     ac_cpp_err=
3879   fi
3880 else
3881   ac_cpp_err=yes
3882 fi
3883 if test -z "$ac_cpp_err"; then
3884   :
3885 else
3886   echo "$as_me: failed program was:" >&5
3887 sed 's/^/| /' conftest.$ac_ext >&5
3888
3889   # Broken: fails on valid input.
3890 continue
3891 fi
3892 rm -f conftest.err conftest.$ac_ext
3893
3894   # OK, works on sane cases.  Now check whether non-existent headers
3895   # can be detected and how.
3896   cat >conftest.$ac_ext <<_ACEOF
3897 /* confdefs.h.  */
3898 _ACEOF
3899 cat confdefs.h >>conftest.$ac_ext
3900 cat >>conftest.$ac_ext <<_ACEOF
3901 /* end confdefs.h.  */
3902 #include <ac_nonexistent.h>
3903 _ACEOF
3904 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3905   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3906   ac_status=$?
3907   grep -v '^ *+' conftest.er1 >conftest.err
3908   rm -f conftest.er1
3909   cat conftest.err >&5
3910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911   (exit $ac_status); } >/dev/null; then
3912   if test -s conftest.err; then
3913     ac_cpp_err=$ac_c_preproc_warn_flag
3914     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3915   else
3916     ac_cpp_err=
3917   fi
3918 else
3919   ac_cpp_err=yes
3920 fi
3921 if test -z "$ac_cpp_err"; then
3922   # Broken: success on invalid input.
3923 continue
3924 else
3925   echo "$as_me: failed program was:" >&5
3926 sed 's/^/| /' conftest.$ac_ext >&5
3927
3928   # Passes both tests.
3929 ac_preproc_ok=:
3930 break
3931 fi
3932 rm -f conftest.err conftest.$ac_ext
3933
3934 done
3935 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3936 rm -f conftest.err conftest.$ac_ext
3937 if $ac_preproc_ok; then
3938   break
3939 fi
3940
3941     done
3942     ac_cv_prog_CPP=$CPP
3943
3944 fi
3945   CPP=$ac_cv_prog_CPP
3946 else
3947   ac_cv_prog_CPP=$CPP
3948 fi
3949 echo "$as_me:$LINENO: result: $CPP" >&5
3950 echo "${ECHO_T}$CPP" >&6
3951 ac_preproc_ok=false
3952 for ac_c_preproc_warn_flag in '' yes
3953 do
3954   # Use a header file that comes with gcc, so configuring glibc
3955   # with a fresh cross-compiler works.
3956   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3957   # <limits.h> exists even on freestanding compilers.
3958   # On the NeXT, cc -E runs the code through the compiler's parser,
3959   # not just through cpp. "Syntax error" is here to catch this case.
3960   cat >conftest.$ac_ext <<_ACEOF
3961 /* confdefs.h.  */
3962 _ACEOF
3963 cat confdefs.h >>conftest.$ac_ext
3964 cat >>conftest.$ac_ext <<_ACEOF
3965 /* end confdefs.h.  */
3966 #ifdef __STDC__
3967 # include <limits.h>
3968 #else
3969 # include <assert.h>
3970 #endif
3971                      Syntax error
3972 _ACEOF
3973 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3974   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3975   ac_status=$?
3976   grep -v '^ *+' conftest.er1 >conftest.err
3977   rm -f conftest.er1
3978   cat conftest.err >&5
3979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980   (exit $ac_status); } >/dev/null; then
3981   if test -s conftest.err; then
3982     ac_cpp_err=$ac_c_preproc_warn_flag
3983     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3984   else
3985     ac_cpp_err=
3986   fi
3987 else
3988   ac_cpp_err=yes
3989 fi
3990 if test -z "$ac_cpp_err"; then
3991   :
3992 else
3993   echo "$as_me: failed program was:" >&5
3994 sed 's/^/| /' conftest.$ac_ext >&5
3995
3996   # Broken: fails on valid input.
3997 continue
3998 fi
3999 rm -f conftest.err conftest.$ac_ext
4000
4001   # OK, works on sane cases.  Now check whether non-existent headers
4002   # can be detected and how.
4003   cat >conftest.$ac_ext <<_ACEOF
4004 /* confdefs.h.  */
4005 _ACEOF
4006 cat confdefs.h >>conftest.$ac_ext
4007 cat >>conftest.$ac_ext <<_ACEOF
4008 /* end confdefs.h.  */
4009 #include <ac_nonexistent.h>
4010 _ACEOF
4011 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4012   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4013   ac_status=$?
4014   grep -v '^ *+' conftest.er1 >conftest.err
4015   rm -f conftest.er1
4016   cat conftest.err >&5
4017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018   (exit $ac_status); } >/dev/null; then
4019   if test -s conftest.err; then
4020     ac_cpp_err=$ac_c_preproc_warn_flag
4021     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4022   else
4023     ac_cpp_err=
4024   fi
4025 else
4026   ac_cpp_err=yes
4027 fi
4028 if test -z "$ac_cpp_err"; then
4029   # Broken: success on invalid input.
4030 continue
4031 else
4032   echo "$as_me: failed program was:" >&5
4033 sed 's/^/| /' conftest.$ac_ext >&5
4034
4035   # Passes both tests.
4036 ac_preproc_ok=:
4037 break
4038 fi
4039 rm -f conftest.err conftest.$ac_ext
4040
4041 done
4042 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4043 rm -f conftest.err conftest.$ac_ext
4044 if $ac_preproc_ok; then
4045   :
4046 else
4047   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4048 See \`config.log' for more details." >&5
4049 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4050 See \`config.log' for more details." >&2;}
4051    { (exit 1); exit 1; }; }
4052 fi
4053
4054 ac_ext=c
4055 ac_cpp='$CPP $CPPFLAGS'
4056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4059
4060
4061 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4062 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4063 if test "${ac_cv_header_stdc+set}" = set; then
4064   echo $ECHO_N "(cached) $ECHO_C" >&6
4065 else
4066   cat >conftest.$ac_ext <<_ACEOF
4067 /* confdefs.h.  */
4068 _ACEOF
4069 cat confdefs.h >>conftest.$ac_ext
4070 cat >>conftest.$ac_ext <<_ACEOF
4071 /* end confdefs.h.  */
4072 #include <stdlib.h>
4073 #include <stdarg.h>
4074 #include <string.h>
4075 #include <float.h>
4076
4077 int
4078 main ()
4079 {
4080
4081   ;
4082   return 0;
4083 }
4084 _ACEOF
4085 rm -f conftest.$ac_objext
4086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4087   (eval $ac_compile) 2>conftest.er1
4088   ac_status=$?
4089   grep -v '^ *+' conftest.er1 >conftest.err
4090   rm -f conftest.er1
4091   cat conftest.err >&5
4092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093   (exit $ac_status); } &&
4094          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4096   (eval $ac_try) 2>&5
4097   ac_status=$?
4098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099   (exit $ac_status); }; } &&
4100          { ac_try='test -s conftest.$ac_objext'
4101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4102   (eval $ac_try) 2>&5
4103   ac_status=$?
4104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105   (exit $ac_status); }; }; then
4106   ac_cv_header_stdc=yes
4107 else
4108   echo "$as_me: failed program was:" >&5
4109 sed 's/^/| /' conftest.$ac_ext >&5
4110
4111 ac_cv_header_stdc=no
4112 fi
4113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4114
4115 if test $ac_cv_header_stdc = yes; then
4116   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4117   cat >conftest.$ac_ext <<_ACEOF
4118 /* confdefs.h.  */
4119 _ACEOF
4120 cat confdefs.h >>conftest.$ac_ext
4121 cat >>conftest.$ac_ext <<_ACEOF
4122 /* end confdefs.h.  */
4123 #include <string.h>
4124
4125 _ACEOF
4126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4127   $EGREP "memchr" >/dev/null 2>&1; then
4128   :
4129 else
4130   ac_cv_header_stdc=no
4131 fi
4132 rm -f conftest*
4133
4134 fi
4135
4136 if test $ac_cv_header_stdc = yes; then
4137   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4138   cat >conftest.$ac_ext <<_ACEOF
4139 /* confdefs.h.  */
4140 _ACEOF
4141 cat confdefs.h >>conftest.$ac_ext
4142 cat >>conftest.$ac_ext <<_ACEOF
4143 /* end confdefs.h.  */
4144 #include <stdlib.h>
4145
4146 _ACEOF
4147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4148   $EGREP "free" >/dev/null 2>&1; then
4149   :
4150 else
4151   ac_cv_header_stdc=no
4152 fi
4153 rm -f conftest*
4154
4155 fi
4156
4157 if test $ac_cv_header_stdc = yes; then
4158   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4159   if test "$cross_compiling" = yes; then
4160   :
4161 else
4162   cat >conftest.$ac_ext <<_ACEOF
4163 /* confdefs.h.  */
4164 _ACEOF
4165 cat confdefs.h >>conftest.$ac_ext
4166 cat >>conftest.$ac_ext <<_ACEOF
4167 /* end confdefs.h.  */
4168 #include <ctype.h>
4169 #if ((' ' & 0x0FF) == 0x020)
4170 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4171 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4172 #else
4173 # define ISLOWER(c) \
4174                    (('a' <= (c) && (c) <= 'i') \
4175                      || ('j' <= (c) && (c) <= 'r') \
4176                      || ('s' <= (c) && (c) <= 'z'))
4177 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4178 #endif
4179
4180 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4181 int
4182 main ()
4183 {
4184   int i;
4185   for (i = 0; i < 256; i++)
4186     if (XOR (islower (i), ISLOWER (i))
4187         || toupper (i) != TOUPPER (i))
4188       exit(2);
4189   exit (0);
4190 }
4191 _ACEOF
4192 rm -f conftest$ac_exeext
4193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4194   (eval $ac_link) 2>&5
4195   ac_status=$?
4196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4199   (eval $ac_try) 2>&5
4200   ac_status=$?
4201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202   (exit $ac_status); }; }; then
4203   :
4204 else
4205   echo "$as_me: program exited with status $ac_status" >&5
4206 echo "$as_me: failed program was:" >&5
4207 sed 's/^/| /' conftest.$ac_ext >&5
4208
4209 ( exit $ac_status )
4210 ac_cv_header_stdc=no
4211 fi
4212 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4213 fi
4214 fi
4215 fi
4216 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4217 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4218 if test $ac_cv_header_stdc = yes; then
4219
4220 cat >>confdefs.h <<\_ACEOF
4221 #define STDC_HEADERS 1
4222 _ACEOF
4223
4224 fi
4225
4226 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4237                   inttypes.h stdint.h unistd.h
4238 do
4239 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4240 echo "$as_me:$LINENO: checking for $ac_header" >&5
4241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4243   echo $ECHO_N "(cached) $ECHO_C" >&6
4244 else
4245   cat >conftest.$ac_ext <<_ACEOF
4246 /* confdefs.h.  */
4247 _ACEOF
4248 cat confdefs.h >>conftest.$ac_ext
4249 cat >>conftest.$ac_ext <<_ACEOF
4250 /* end confdefs.h.  */
4251 $ac_includes_default
4252
4253 #include <$ac_header>
4254 _ACEOF
4255 rm -f conftest.$ac_objext
4256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4257   (eval $ac_compile) 2>conftest.er1
4258   ac_status=$?
4259   grep -v '^ *+' conftest.er1 >conftest.err
4260   rm -f conftest.er1
4261   cat conftest.err >&5
4262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263   (exit $ac_status); } &&
4264          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4266   (eval $ac_try) 2>&5
4267   ac_status=$?
4268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269   (exit $ac_status); }; } &&
4270          { ac_try='test -s conftest.$ac_objext'
4271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4272   (eval $ac_try) 2>&5
4273   ac_status=$?
4274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275   (exit $ac_status); }; }; then
4276   eval "$as_ac_Header=yes"
4277 else
4278   echo "$as_me: failed program was:" >&5
4279 sed 's/^/| /' conftest.$ac_ext >&5
4280
4281 eval "$as_ac_Header=no"
4282 fi
4283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4284 fi
4285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4286 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4288   cat >>confdefs.h <<_ACEOF
4289 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4290 _ACEOF
4291
4292 fi
4293
4294 done
4295
4296
4297
4298 for ac_header in dlfcn.h
4299 do
4300 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4302   echo "$as_me:$LINENO: checking for $ac_header" >&5
4303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4305   echo $ECHO_N "(cached) $ECHO_C" >&6
4306 fi
4307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4308 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4309 else
4310   # Is the header compilable?
4311 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4312 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4313 cat >conftest.$ac_ext <<_ACEOF
4314 /* confdefs.h.  */
4315 _ACEOF
4316 cat confdefs.h >>conftest.$ac_ext
4317 cat >>conftest.$ac_ext <<_ACEOF
4318 /* end confdefs.h.  */
4319 $ac_includes_default
4320 #include <$ac_header>
4321 _ACEOF
4322 rm -f conftest.$ac_objext
4323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4324   (eval $ac_compile) 2>conftest.er1
4325   ac_status=$?
4326   grep -v '^ *+' conftest.er1 >conftest.err
4327   rm -f conftest.er1
4328   cat conftest.err >&5
4329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330   (exit $ac_status); } &&
4331          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4333   (eval $ac_try) 2>&5
4334   ac_status=$?
4335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336   (exit $ac_status); }; } &&
4337          { ac_try='test -s conftest.$ac_objext'
4338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4339   (eval $ac_try) 2>&5
4340   ac_status=$?
4341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342   (exit $ac_status); }; }; then
4343   ac_header_compiler=yes
4344 else
4345   echo "$as_me: failed program was:" >&5
4346 sed 's/^/| /' conftest.$ac_ext >&5
4347
4348 ac_header_compiler=no
4349 fi
4350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4351 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4352 echo "${ECHO_T}$ac_header_compiler" >&6
4353
4354 # Is the header present?
4355 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4356 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4357 cat >conftest.$ac_ext <<_ACEOF
4358 /* confdefs.h.  */
4359 _ACEOF
4360 cat confdefs.h >>conftest.$ac_ext
4361 cat >>conftest.$ac_ext <<_ACEOF
4362 /* end confdefs.h.  */
4363 #include <$ac_header>
4364 _ACEOF
4365 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4366   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4367   ac_status=$?
4368   grep -v '^ *+' conftest.er1 >conftest.err
4369   rm -f conftest.er1
4370   cat conftest.err >&5
4371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372   (exit $ac_status); } >/dev/null; then
4373   if test -s conftest.err; then
4374     ac_cpp_err=$ac_c_preproc_warn_flag
4375     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4376   else
4377     ac_cpp_err=
4378   fi
4379 else
4380   ac_cpp_err=yes
4381 fi
4382 if test -z "$ac_cpp_err"; then
4383   ac_header_preproc=yes
4384 else
4385   echo "$as_me: failed program was:" >&5
4386 sed 's/^/| /' conftest.$ac_ext >&5
4387
4388   ac_header_preproc=no
4389 fi
4390 rm -f conftest.err conftest.$ac_ext
4391 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4392 echo "${ECHO_T}$ac_header_preproc" >&6
4393
4394 # So?  What about this header?
4395 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4396   yes:no: )
4397     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4398 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4399     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4400 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4401     ac_header_preproc=yes
4402     ;;
4403   no:yes:* )
4404     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4405 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4406     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4407 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4408     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4409 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4410     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4411 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4412     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4413 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4414     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4415 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4416     (
4417       cat <<\_ASBOX
4418 ## ----------------------------------------- ##
4419 ## Report this to martin.quinson@ens-lyon.fr ##
4420 ## ----------------------------------------- ##
4421 _ASBOX
4422     ) |
4423       sed "s/^/$as_me: WARNING:     /" >&2
4424     ;;
4425 esac
4426 echo "$as_me:$LINENO: checking for $ac_header" >&5
4427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4429   echo $ECHO_N "(cached) $ECHO_C" >&6
4430 else
4431   eval "$as_ac_Header=\$ac_header_preproc"
4432 fi
4433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4434 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4435
4436 fi
4437 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4438   cat >>confdefs.h <<_ACEOF
4439 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4440 _ACEOF
4441
4442 fi
4443
4444 done
4445
4446 ac_ext=cc
4447 ac_cpp='$CXXCPP $CPPFLAGS'
4448 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4449 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4450 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4451 if test -n "$ac_tool_prefix"; then
4452   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4453   do
4454     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4455 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4456 echo "$as_me:$LINENO: checking for $ac_word" >&5
4457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4458 if test "${ac_cv_prog_CXX+set}" = set; then
4459   echo $ECHO_N "(cached) $ECHO_C" >&6
4460 else
4461   if test -n "$CXX"; then
4462   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4463 else
4464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465 for as_dir in $PATH
4466 do
4467   IFS=$as_save_IFS
4468   test -z "$as_dir" && as_dir=.
4469   for ac_exec_ext in '' $ac_executable_extensions; do
4470   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4471     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4472     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4473     break 2
4474   fi
4475 done
4476 done
4477
4478 fi
4479 fi
4480 CXX=$ac_cv_prog_CXX
4481 if test -n "$CXX"; then
4482   echo "$as_me:$LINENO: result: $CXX" >&5
4483 echo "${ECHO_T}$CXX" >&6
4484 else
4485   echo "$as_me:$LINENO: result: no" >&5
4486 echo "${ECHO_T}no" >&6
4487 fi
4488
4489     test -n "$CXX" && break
4490   done
4491 fi
4492 if test -z "$CXX"; then
4493   ac_ct_CXX=$CXX
4494   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4495 do
4496   # Extract the first word of "$ac_prog", so it can be a program name with args.
4497 set dummy $ac_prog; ac_word=$2
4498 echo "$as_me:$LINENO: checking for $ac_word" >&5
4499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4500 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4501   echo $ECHO_N "(cached) $ECHO_C" >&6
4502 else
4503   if test -n "$ac_ct_CXX"; then
4504   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4505 else
4506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507 for as_dir in $PATH
4508 do
4509   IFS=$as_save_IFS
4510   test -z "$as_dir" && as_dir=.
4511   for ac_exec_ext in '' $ac_executable_extensions; do
4512   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4513     ac_cv_prog_ac_ct_CXX="$ac_prog"
4514     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4515     break 2
4516   fi
4517 done
4518 done
4519
4520 fi
4521 fi
4522 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4523 if test -n "$ac_ct_CXX"; then
4524   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4525 echo "${ECHO_T}$ac_ct_CXX" >&6
4526 else
4527   echo "$as_me:$LINENO: result: no" >&5
4528 echo "${ECHO_T}no" >&6
4529 fi
4530
4531   test -n "$ac_ct_CXX" && break
4532 done
4533 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4534
4535   CXX=$ac_ct_CXX
4536 fi
4537
4538
4539 # Provide some information about the compiler.
4540 echo "$as_me:$LINENO:" \
4541      "checking for C++ compiler version" >&5
4542 ac_compiler=`set X $ac_compile; echo $2`
4543 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4544   (eval $ac_compiler --version </dev/null >&5) 2>&5
4545   ac_status=$?
4546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547   (exit $ac_status); }
4548 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4549   (eval $ac_compiler -v </dev/null >&5) 2>&5
4550   ac_status=$?
4551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552   (exit $ac_status); }
4553 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4554   (eval $ac_compiler -V </dev/null >&5) 2>&5
4555   ac_status=$?
4556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557   (exit $ac_status); }
4558
4559 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4560 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4561 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4562   echo $ECHO_N "(cached) $ECHO_C" >&6
4563 else
4564   cat >conftest.$ac_ext <<_ACEOF
4565 /* confdefs.h.  */
4566 _ACEOF
4567 cat confdefs.h >>conftest.$ac_ext
4568 cat >>conftest.$ac_ext <<_ACEOF
4569 /* end confdefs.h.  */
4570
4571 int
4572 main ()
4573 {
4574 #ifndef __GNUC__
4575        choke me
4576 #endif
4577
4578   ;
4579   return 0;
4580 }
4581 _ACEOF
4582 rm -f conftest.$ac_objext
4583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4584   (eval $ac_compile) 2>conftest.er1
4585   ac_status=$?
4586   grep -v '^ *+' conftest.er1 >conftest.err
4587   rm -f conftest.er1
4588   cat conftest.err >&5
4589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590   (exit $ac_status); } &&
4591          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4593   (eval $ac_try) 2>&5
4594   ac_status=$?
4595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596   (exit $ac_status); }; } &&
4597          { ac_try='test -s conftest.$ac_objext'
4598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4599   (eval $ac_try) 2>&5
4600   ac_status=$?
4601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602   (exit $ac_status); }; }; then
4603   ac_compiler_gnu=yes
4604 else
4605   echo "$as_me: failed program was:" >&5
4606 sed 's/^/| /' conftest.$ac_ext >&5
4607
4608 ac_compiler_gnu=no
4609 fi
4610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4611 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4612
4613 fi
4614 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4615 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4616 GXX=`test $ac_compiler_gnu = yes && echo yes`
4617 ac_test_CXXFLAGS=${CXXFLAGS+set}
4618 ac_save_CXXFLAGS=$CXXFLAGS
4619 CXXFLAGS="-g"
4620 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4621 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4622 if test "${ac_cv_prog_cxx_g+set}" = set; then
4623   echo $ECHO_N "(cached) $ECHO_C" >&6
4624 else
4625   cat >conftest.$ac_ext <<_ACEOF
4626 /* confdefs.h.  */
4627 _ACEOF
4628 cat confdefs.h >>conftest.$ac_ext
4629 cat >>conftest.$ac_ext <<_ACEOF
4630 /* end confdefs.h.  */
4631
4632 int
4633 main ()
4634 {
4635
4636   ;
4637   return 0;
4638 }
4639 _ACEOF
4640 rm -f conftest.$ac_objext
4641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4642   (eval $ac_compile) 2>conftest.er1
4643   ac_status=$?
4644   grep -v '^ *+' conftest.er1 >conftest.err
4645   rm -f conftest.er1
4646   cat conftest.err >&5
4647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648   (exit $ac_status); } &&
4649          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4651   (eval $ac_try) 2>&5
4652   ac_status=$?
4653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654   (exit $ac_status); }; } &&
4655          { ac_try='test -s conftest.$ac_objext'
4656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4657   (eval $ac_try) 2>&5
4658   ac_status=$?
4659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660   (exit $ac_status); }; }; then
4661   ac_cv_prog_cxx_g=yes
4662 else
4663   echo "$as_me: failed program was:" >&5
4664 sed 's/^/| /' conftest.$ac_ext >&5
4665
4666 ac_cv_prog_cxx_g=no
4667 fi
4668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4669 fi
4670 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4671 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4672 if test "$ac_test_CXXFLAGS" = set; then
4673   CXXFLAGS=$ac_save_CXXFLAGS
4674 elif test $ac_cv_prog_cxx_g = yes; then
4675   if test "$GXX" = yes; then
4676     CXXFLAGS="-g -O2"
4677   else
4678     CXXFLAGS="-g"
4679   fi
4680 else
4681   if test "$GXX" = yes; then
4682     CXXFLAGS="-O2"
4683   else
4684     CXXFLAGS=
4685   fi
4686 fi
4687 for ac_declaration in \
4688    '' \
4689    'extern "C" void std::exit (int) throw (); using std::exit;' \
4690    'extern "C" void std::exit (int); using std::exit;' \
4691    'extern "C" void exit (int) throw ();' \
4692    'extern "C" void exit (int);' \
4693    'void exit (int);'
4694 do
4695   cat >conftest.$ac_ext <<_ACEOF
4696 /* confdefs.h.  */
4697 _ACEOF
4698 cat confdefs.h >>conftest.$ac_ext
4699 cat >>conftest.$ac_ext <<_ACEOF
4700 /* end confdefs.h.  */
4701 $ac_declaration
4702 #include <stdlib.h>
4703 int
4704 main ()
4705 {
4706 exit (42);
4707   ;
4708   return 0;
4709 }
4710 _ACEOF
4711 rm -f conftest.$ac_objext
4712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4713   (eval $ac_compile) 2>conftest.er1
4714   ac_status=$?
4715   grep -v '^ *+' conftest.er1 >conftest.err
4716   rm -f conftest.er1
4717   cat conftest.err >&5
4718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719   (exit $ac_status); } &&
4720          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4722   (eval $ac_try) 2>&5
4723   ac_status=$?
4724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725   (exit $ac_status); }; } &&
4726          { ac_try='test -s conftest.$ac_objext'
4727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4728   (eval $ac_try) 2>&5
4729   ac_status=$?
4730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731   (exit $ac_status); }; }; then
4732   :
4733 else
4734   echo "$as_me: failed program was:" >&5
4735 sed 's/^/| /' conftest.$ac_ext >&5
4736
4737 continue
4738 fi
4739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4740   cat >conftest.$ac_ext <<_ACEOF
4741 /* confdefs.h.  */
4742 _ACEOF
4743 cat confdefs.h >>conftest.$ac_ext
4744 cat >>conftest.$ac_ext <<_ACEOF
4745 /* end confdefs.h.  */
4746 $ac_declaration
4747 int
4748 main ()
4749 {
4750 exit (42);
4751   ;
4752   return 0;
4753 }
4754 _ACEOF
4755 rm -f conftest.$ac_objext
4756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4757   (eval $ac_compile) 2>conftest.er1
4758   ac_status=$?
4759   grep -v '^ *+' conftest.er1 >conftest.err
4760   rm -f conftest.er1
4761   cat conftest.err >&5
4762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763   (exit $ac_status); } &&
4764          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4766   (eval $ac_try) 2>&5
4767   ac_status=$?
4768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769   (exit $ac_status); }; } &&
4770          { ac_try='test -s conftest.$ac_objext'
4771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4772   (eval $ac_try) 2>&5
4773   ac_status=$?
4774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775   (exit $ac_status); }; }; then
4776   break
4777 else
4778   echo "$as_me: failed program was:" >&5
4779 sed 's/^/| /' conftest.$ac_ext >&5
4780
4781 fi
4782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4783 done
4784 rm -f conftest*
4785 if test -n "$ac_declaration"; then
4786   echo '#ifdef __cplusplus' >>confdefs.h
4787   echo $ac_declaration      >>confdefs.h
4788   echo '#endif'             >>confdefs.h
4789 fi
4790
4791 ac_ext=cc
4792 ac_cpp='$CXXCPP $CPPFLAGS'
4793 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4794 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4795 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4796
4797 depcc="$CXX"  am_compiler_list=
4798
4799 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4800 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4801 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4802   echo $ECHO_N "(cached) $ECHO_C" >&6
4803 else
4804   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4805   # We make a subdir and do the tests there.  Otherwise we can end up
4806   # making bogus files that we don't know about and never remove.  For
4807   # instance it was reported that on HP-UX the gcc test will end up
4808   # making a dummy file named `D' -- because `-MD' means `put the output
4809   # in D'.
4810   mkdir conftest.dir
4811   # Copy depcomp to subdir because otherwise we won't find it if we're
4812   # using a relative directory.
4813   cp "$am_depcomp" conftest.dir
4814   cd conftest.dir
4815   # We will build objects and dependencies in a subdirectory because
4816   # it helps to detect inapplicable dependency modes.  For instance
4817   # both Tru64's cc and ICC support -MD to output dependencies as a
4818   # side effect of compilation, but ICC will put the dependencies in
4819   # the current directory while Tru64 will put them in the object
4820   # directory.
4821   mkdir sub
4822
4823   am_cv_CXX_dependencies_compiler_type=none
4824   if test "$am_compiler_list" = ""; then
4825      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4826   fi
4827   for depmode in $am_compiler_list; do
4828     # Setup a source with many dependencies, because some compilers
4829     # like to wrap large dependency lists on column 80 (with \), and
4830     # we should not choose a depcomp mode which is confused by this.
4831     #
4832     # We need to recreate these files for each test, as the compiler may
4833     # overwrite some of them when testing with obscure command lines.
4834     # This happens at least with the AIX C compiler.
4835     : > sub/conftest.c
4836     for i in 1 2 3 4 5 6; do
4837       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4838       : > sub/conftst$i.h
4839     done
4840     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4841
4842     case $depmode in
4843     nosideeffect)
4844       # after this tag, mechanisms are not by side-effect, so they'll
4845       # only be used when explicitly requested
4846       if test "x$enable_dependency_tracking" = xyes; then
4847         continue
4848       else
4849         break
4850       fi
4851       ;;
4852     none) break ;;
4853     esac
4854     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4855     # mode.  It turns out that the SunPro C++ compiler does not properly
4856     # handle `-M -o', and we need to detect this.
4857     if depmode=$depmode \
4858        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4859        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4860        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4861          >/dev/null 2>conftest.err &&
4862        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4863        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4864        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4865       # icc doesn't choke on unknown options, it will just issue warnings
4866       # (even with -Werror).  So we grep stderr for any message
4867       # that says an option was ignored.
4868       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4869         am_cv_CXX_dependencies_compiler_type=$depmode
4870         break
4871       fi
4872     fi
4873   done
4874
4875   cd ..
4876   rm -rf conftest.dir
4877 else
4878   am_cv_CXX_dependencies_compiler_type=none
4879 fi
4880
4881 fi
4882 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4883 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4884 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4885
4886
4887
4888 if
4889   test "x$enable_dependency_tracking" != xno \
4890   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4891   am__fastdepCXX_TRUE=
4892   am__fastdepCXX_FALSE='#'
4893 else
4894   am__fastdepCXX_TRUE='#'
4895   am__fastdepCXX_FALSE=
4896 fi
4897
4898
4899 ac_ext=cc
4900 ac_cpp='$CXXCPP $CPPFLAGS'
4901 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4902 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4903 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4904 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4905 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4906 if test -z "$CXXCPP"; then
4907   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4908   echo $ECHO_N "(cached) $ECHO_C" >&6
4909 else
4910       # Double quotes because CXXCPP needs to be expanded
4911     for CXXCPP in "$CXX -E" "/lib/cpp"
4912     do
4913       ac_preproc_ok=false
4914 for ac_cxx_preproc_warn_flag in '' yes
4915 do
4916   # Use a header file that comes with gcc, so configuring glibc
4917   # with a fresh cross-compiler works.
4918   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4919   # <limits.h> exists even on freestanding compilers.
4920   # On the NeXT, cc -E runs the code through the compiler's parser,
4921   # not just through cpp. "Syntax error" is here to catch this case.
4922   cat >conftest.$ac_ext <<_ACEOF
4923 /* confdefs.h.  */
4924 _ACEOF
4925 cat confdefs.h >>conftest.$ac_ext
4926 cat >>conftest.$ac_ext <<_ACEOF
4927 /* end confdefs.h.  */
4928 #ifdef __STDC__
4929 # include <limits.h>
4930 #else
4931 # include <assert.h>
4932 #endif
4933                      Syntax error
4934 _ACEOF
4935 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4936   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4937   ac_status=$?
4938   grep -v '^ *+' conftest.er1 >conftest.err
4939   rm -f conftest.er1
4940   cat conftest.err >&5
4941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942   (exit $ac_status); } >/dev/null; then
4943   if test -s conftest.err; then
4944     ac_cpp_err=$ac_cxx_preproc_warn_flag
4945     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4946   else
4947     ac_cpp_err=
4948   fi
4949 else
4950   ac_cpp_err=yes
4951 fi
4952 if test -z "$ac_cpp_err"; then
4953   :
4954 else
4955   echo "$as_me: failed program was:" >&5
4956 sed 's/^/| /' conftest.$ac_ext >&5
4957
4958   # Broken: fails on valid input.
4959 continue
4960 fi
4961 rm -f conftest.err conftest.$ac_ext
4962
4963   # OK, works on sane cases.  Now check whether non-existent headers
4964   # can be detected and how.
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 #include <ac_nonexistent.h>
4972 _ACEOF
4973 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4974   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4975   ac_status=$?
4976   grep -v '^ *+' conftest.er1 >conftest.err
4977   rm -f conftest.er1
4978   cat conftest.err >&5
4979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980   (exit $ac_status); } >/dev/null; then
4981   if test -s conftest.err; then
4982     ac_cpp_err=$ac_cxx_preproc_warn_flag
4983     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4984   else
4985     ac_cpp_err=
4986   fi
4987 else
4988   ac_cpp_err=yes
4989 fi
4990 if test -z "$ac_cpp_err"; then
4991   # Broken: success on invalid input.
4992 continue
4993 else
4994   echo "$as_me: failed program was:" >&5
4995 sed 's/^/| /' conftest.$ac_ext >&5
4996
4997   # Passes both tests.
4998 ac_preproc_ok=:
4999 break
5000 fi
5001 rm -f conftest.err conftest.$ac_ext
5002
5003 done
5004 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5005 rm -f conftest.err conftest.$ac_ext
5006 if $ac_preproc_ok; then
5007   break
5008 fi
5009
5010     done
5011     ac_cv_prog_CXXCPP=$CXXCPP
5012
5013 fi
5014   CXXCPP=$ac_cv_prog_CXXCPP
5015 else
5016   ac_cv_prog_CXXCPP=$CXXCPP
5017 fi
5018 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5019 echo "${ECHO_T}$CXXCPP" >&6
5020 ac_preproc_ok=false
5021 for ac_cxx_preproc_warn_flag in '' yes
5022 do
5023   # Use a header file that comes with gcc, so configuring glibc
5024   # with a fresh cross-compiler works.
5025   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5026   # <limits.h> exists even on freestanding compilers.
5027   # On the NeXT, cc -E runs the code through the compiler's parser,
5028   # not just through cpp. "Syntax error" is here to catch this case.
5029   cat >conftest.$ac_ext <<_ACEOF
5030 /* confdefs.h.  */
5031 _ACEOF
5032 cat confdefs.h >>conftest.$ac_ext
5033 cat >>conftest.$ac_ext <<_ACEOF
5034 /* end confdefs.h.  */
5035 #ifdef __STDC__
5036 # include <limits.h>
5037 #else
5038 # include <assert.h>
5039 #endif
5040                      Syntax error
5041 _ACEOF
5042 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5043   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5044   ac_status=$?
5045   grep -v '^ *+' conftest.er1 >conftest.err
5046   rm -f conftest.er1
5047   cat conftest.err >&5
5048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049   (exit $ac_status); } >/dev/null; then
5050   if test -s conftest.err; then
5051     ac_cpp_err=$ac_cxx_preproc_warn_flag
5052     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5053   else
5054     ac_cpp_err=
5055   fi
5056 else
5057   ac_cpp_err=yes
5058 fi
5059 if test -z "$ac_cpp_err"; then
5060   :
5061 else
5062   echo "$as_me: failed program was:" >&5
5063 sed 's/^/| /' conftest.$ac_ext >&5
5064
5065   # Broken: fails on valid input.
5066 continue
5067 fi
5068 rm -f conftest.err conftest.$ac_ext
5069
5070   # OK, works on sane cases.  Now check whether non-existent headers
5071   # can be detected and how.
5072   cat >conftest.$ac_ext <<_ACEOF
5073 /* confdefs.h.  */
5074 _ACEOF
5075 cat confdefs.h >>conftest.$ac_ext
5076 cat >>conftest.$ac_ext <<_ACEOF
5077 /* end confdefs.h.  */
5078 #include <ac_nonexistent.h>
5079 _ACEOF
5080 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5081   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5082   ac_status=$?
5083   grep -v '^ *+' conftest.er1 >conftest.err
5084   rm -f conftest.er1
5085   cat conftest.err >&5
5086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087   (exit $ac_status); } >/dev/null; then
5088   if test -s conftest.err; then
5089     ac_cpp_err=$ac_cxx_preproc_warn_flag
5090     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5091   else
5092     ac_cpp_err=
5093   fi
5094 else
5095   ac_cpp_err=yes
5096 fi
5097 if test -z "$ac_cpp_err"; then
5098   # Broken: success on invalid input.
5099 continue
5100 else
5101   echo "$as_me: failed program was:" >&5
5102 sed 's/^/| /' conftest.$ac_ext >&5
5103
5104   # Passes both tests.
5105 ac_preproc_ok=:
5106 break
5107 fi
5108 rm -f conftest.err conftest.$ac_ext
5109
5110 done
5111 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5112 rm -f conftest.err conftest.$ac_ext
5113 if $ac_preproc_ok; then
5114   :
5115 else
5116   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5117 See \`config.log' for more details." >&5
5118 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5119 See \`config.log' for more details." >&2;}
5120    { (exit 1); exit 1; }; }
5121 fi
5122
5123 ac_ext=cc
5124 ac_cpp='$CXXCPP $CPPFLAGS'
5125 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5126 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5127 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5128
5129
5130 ac_ext=f
5131 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5132 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5133 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5134 if test -n "$ac_tool_prefix"; then
5135   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5136   do
5137     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5138 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5139 echo "$as_me:$LINENO: checking for $ac_word" >&5
5140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5141 if test "${ac_cv_prog_F77+set}" = set; then
5142   echo $ECHO_N "(cached) $ECHO_C" >&6
5143 else
5144   if test -n "$F77"; then
5145   ac_cv_prog_F77="$F77" # Let the user override the test.
5146 else
5147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148 for as_dir in $PATH
5149 do
5150   IFS=$as_save_IFS
5151   test -z "$as_dir" && as_dir=.
5152   for ac_exec_ext in '' $ac_executable_extensions; do
5153   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5154     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5155     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5156     break 2
5157   fi
5158 done
5159 done
5160
5161 fi
5162 fi
5163 F77=$ac_cv_prog_F77
5164 if test -n "$F77"; then
5165   echo "$as_me:$LINENO: result: $F77" >&5
5166 echo "${ECHO_T}$F77" >&6
5167 else
5168   echo "$as_me:$LINENO: result: no" >&5
5169 echo "${ECHO_T}no" >&6
5170 fi
5171
5172     test -n "$F77" && break
5173   done
5174 fi
5175 if test -z "$F77"; then
5176   ac_ct_F77=$F77
5177   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5178 do
5179   # Extract the first word of "$ac_prog", so it can be a program name with args.
5180 set dummy $ac_prog; ac_word=$2
5181 echo "$as_me:$LINENO: checking for $ac_word" >&5
5182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5183 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5184   echo $ECHO_N "(cached) $ECHO_C" >&6
5185 else
5186   if test -n "$ac_ct_F77"; then
5187   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5188 else
5189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190 for as_dir in $PATH
5191 do
5192   IFS=$as_save_IFS
5193   test -z "$as_dir" && as_dir=.
5194   for ac_exec_ext in '' $ac_executable_extensions; do
5195   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5196     ac_cv_prog_ac_ct_F77="$ac_prog"
5197     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5198     break 2
5199   fi
5200 done
5201 done
5202
5203 fi
5204 fi
5205 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5206 if test -n "$ac_ct_F77"; then
5207   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5208 echo "${ECHO_T}$ac_ct_F77" >&6
5209 else
5210   echo "$as_me:$LINENO: result: no" >&5
5211 echo "${ECHO_T}no" >&6
5212 fi
5213
5214   test -n "$ac_ct_F77" && break
5215 done
5216
5217   F77=$ac_ct_F77
5218 fi
5219
5220
5221 # Provide some information about the compiler.
5222 echo "$as_me:5222:" \
5223      "checking for Fortran 77 compiler version" >&5
5224 ac_compiler=`set X $ac_compile; echo $2`
5225 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5226   (eval $ac_compiler --version </dev/null >&5) 2>&5
5227   ac_status=$?
5228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229   (exit $ac_status); }
5230 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5231   (eval $ac_compiler -v </dev/null >&5) 2>&5
5232   ac_status=$?
5233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234   (exit $ac_status); }
5235 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5236   (eval $ac_compiler -V </dev/null >&5) 2>&5
5237   ac_status=$?
5238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239   (exit $ac_status); }
5240 rm -f a.out
5241
5242 # If we don't use `.F' as extension, the preprocessor is not run on the
5243 # input file.  (Note that this only needs to work for GNU compilers.)
5244 ac_save_ext=$ac_ext
5245 ac_ext=F
5246 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5247 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5248 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5249   echo $ECHO_N "(cached) $ECHO_C" >&6
5250 else
5251   cat >conftest.$ac_ext <<_ACEOF
5252       program main
5253 #ifndef __GNUC__
5254        choke me
5255 #endif
5256
5257       end
5258 _ACEOF
5259 rm -f conftest.$ac_objext
5260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5261   (eval $ac_compile) 2>conftest.er1
5262   ac_status=$?
5263   grep -v '^ *+' conftest.er1 >conftest.err
5264   rm -f conftest.er1
5265   cat conftest.err >&5
5266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267   (exit $ac_status); } &&
5268          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5270   (eval $ac_try) 2>&5
5271   ac_status=$?
5272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273   (exit $ac_status); }; } &&
5274          { ac_try='test -s conftest.$ac_objext'
5275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5276   (eval $ac_try) 2>&5
5277   ac_status=$?
5278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279   (exit $ac_status); }; }; then
5280   ac_compiler_gnu=yes
5281 else
5282   echo "$as_me: failed program was:" >&5
5283 sed 's/^/| /' conftest.$ac_ext >&5
5284
5285 ac_compiler_gnu=no
5286 fi
5287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5288 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5289
5290 fi
5291 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5292 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5293 ac_ext=$ac_save_ext
5294 ac_test_FFLAGS=${FFLAGS+set}
5295 ac_save_FFLAGS=$FFLAGS
5296 FFLAGS=
5297 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5298 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5299 if test "${ac_cv_prog_f77_g+set}" = set; then
5300   echo $ECHO_N "(cached) $ECHO_C" >&6
5301 else
5302   FFLAGS=-g
5303 cat >conftest.$ac_ext <<_ACEOF
5304       program main
5305
5306       end
5307 _ACEOF
5308 rm -f conftest.$ac_objext
5309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5310   (eval $ac_compile) 2>conftest.er1
5311   ac_status=$?
5312   grep -v '^ *+' conftest.er1 >conftest.err
5313   rm -f conftest.er1
5314   cat conftest.err >&5
5315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316   (exit $ac_status); } &&
5317          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5319   (eval $ac_try) 2>&5
5320   ac_status=$?
5321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322   (exit $ac_status); }; } &&
5323          { ac_try='test -s conftest.$ac_objext'
5324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5325   (eval $ac_try) 2>&5
5326   ac_status=$?
5327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328   (exit $ac_status); }; }; then
5329   ac_cv_prog_f77_g=yes
5330 else
5331   echo "$as_me: failed program was:" >&5
5332 sed 's/^/| /' conftest.$ac_ext >&5
5333
5334 ac_cv_prog_f77_g=no
5335 fi
5336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5337
5338 fi
5339 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5340 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5341 if test "$ac_test_FFLAGS" = set; then
5342   FFLAGS=$ac_save_FFLAGS
5343 elif test $ac_cv_prog_f77_g = yes; then
5344   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5345     FFLAGS="-g -O2"
5346   else
5347     FFLAGS="-g"
5348   fi
5349 else
5350   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5351     FFLAGS="-O2"
5352   else
5353     FFLAGS=
5354   fi
5355 fi
5356
5357 G77=`test $ac_compiler_gnu = yes && echo yes`
5358 ac_ext=c
5359 ac_cpp='$CPP $CPPFLAGS'
5360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5363
5364
5365
5366 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5367
5368 # find the maximum length of command line arguments
5369 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5370 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5371 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5372   echo $ECHO_N "(cached) $ECHO_C" >&6
5373 else
5374     i=0
5375   testring="ABCD"
5376
5377   case $build_os in
5378   msdosdjgpp*)
5379     # On DJGPP, this test can blow up pretty badly due to problems in libc
5380     # (any single argument exceeding 2000 bytes causes a buffer overrun
5381     # during glob expansion).  Even if it were fixed, the result of this
5382     # check would be larger than it should be.
5383     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5384     ;;
5385
5386   gnu*)
5387     # Under GNU Hurd, this test is not required because there is
5388     # no limit to the length of command line arguments.
5389     # Libtool will interpret -1 as no limit whatsoever
5390     lt_cv_sys_max_cmd_len=-1;
5391     ;;
5392
5393   cygwin* | mingw*)
5394     # On Win9x/ME, this test blows up -- it succeeds, but takes
5395     # about 5 minutes as the teststring grows exponentially.
5396     # Worse, since 9x/ME are not pre-emptively multitasking,
5397     # you end up with a "frozen" computer, even though with patience
5398     # the test eventually succeeds (with a max line length of 256k).
5399     # Instead, let's just punt: use the minimum linelength reported by
5400     # all of the supported platforms: 8192 (on NT/2K/XP).
5401     lt_cv_sys_max_cmd_len=8192;
5402     ;;
5403
5404   amigaos*)
5405     # On AmigaOS with pdksh, this test takes hours, literally.
5406     # So we just punt and use a minimum line length of 8192.
5407     lt_cv_sys_max_cmd_len=8192;
5408     ;;
5409
5410  *)
5411     # If test is not a shell built-in, we'll probably end up computing a
5412     # maximum length that is only half of the actual maximum length, but
5413     # we can't tell.
5414     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5415                = "XX$testring") >/dev/null 2>&1 &&
5416             new_result=`expr "X$testring" : ".*" 2>&1` &&
5417             lt_cv_sys_max_cmd_len=$new_result &&
5418             test $i != 17 # 1/2 MB should be enough
5419     do
5420       i=`expr $i + 1`
5421       testring=$testring$testring
5422     done
5423     testring=
5424     # Add a significant safety factor because C++ compilers can tack on massive
5425     # amounts of additional arguments before passing them to the linker.
5426     # It appears as though 1/2 is a usable value.
5427     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5428     ;;
5429   esac
5430
5431 fi
5432
5433 if test -n $lt_cv_sys_max_cmd_len ; then
5434   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5435 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5436 else
5437   echo "$as_me:$LINENO: result: none" >&5
5438 echo "${ECHO_T}none" >&6
5439 fi
5440
5441
5442
5443
5444 # Check for command to grab the raw symbol name followed by C symbol from nm.
5445 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5446 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5447 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5448   echo $ECHO_N "(cached) $ECHO_C" >&6
5449 else
5450
5451 # These are sane defaults that work on at least a few old systems.
5452 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5453
5454 # Character class describing NM global symbol codes.
5455 symcode='[BCDEGRST]'
5456
5457 # Regexp to match symbols that can be accessed directly from C.
5458 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5459
5460 # Transform the above into a raw symbol and a C symbol.
5461 symxfrm='\1 \2\3 \3'
5462
5463 # Transform an extracted symbol line into a proper C declaration
5464 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5465
5466 # Transform an extracted symbol line into symbol name and symbol address
5467 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'"
5468
5469 # Define system-specific variables.
5470 case $host_os in
5471 aix*)
5472   symcode='[BCDT]'
5473   ;;
5474 cygwin* | mingw* | pw32*)
5475   symcode='[ABCDGISTW]'
5476   ;;
5477 hpux*) # Its linker distinguishes data from code symbols
5478   if test "$host_cpu" = ia64; then
5479     symcode='[ABCDEGRST]'
5480   fi
5481   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5482   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'"
5483   ;;
5484 irix* | nonstopux*)
5485   symcode='[BCDEGRST]'
5486   ;;
5487 osf*)
5488   symcode='[BCDEGQRST]'
5489   ;;
5490 solaris* | sysv5*)
5491   symcode='[BDRT]'
5492   ;;
5493 sysv4)
5494   symcode='[DFNSTU]'
5495   ;;
5496 esac
5497
5498 # Handle CRLF in mingw tool chain
5499 opt_cr=
5500 case $build_os in
5501 mingw*)
5502   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5503   ;;
5504 esac
5505
5506 # If we're using GNU nm, then use its standard symbol codes.
5507 case `$NM -V 2>&1` in
5508 *GNU* | *'with BFD'*)
5509   symcode='[ABCDGIRSTW]' ;;
5510 esac
5511
5512 # Try without a prefix undercore, then with it.
5513 for ac_symprfx in "" "_"; do
5514
5515   # Write the raw and C identifiers.
5516   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5517
5518   # Check to see that the pipe works correctly.
5519   pipe_works=no
5520
5521   rm -f conftest*
5522   cat > conftest.$ac_ext <<EOF
5523 #ifdef __cplusplus
5524 extern "C" {
5525 #endif
5526 char nm_test_var;
5527 void nm_test_func(){}
5528 #ifdef __cplusplus
5529 }
5530 #endif
5531 int main(){nm_test_var='a';nm_test_func();return(0);}
5532 EOF
5533
5534   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5535   (eval $ac_compile) 2>&5
5536   ac_status=$?
5537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538   (exit $ac_status); }; then
5539     # Now try to grab the symbols.
5540     nlist=conftest.nm
5541     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5542   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5543   ac_status=$?
5544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545   (exit $ac_status); } && test -s "$nlist"; then
5546       # Try sorting and uniquifying the output.
5547       if sort "$nlist" | uniq > "$nlist"T; then
5548         mv -f "$nlist"T "$nlist"
5549       else
5550         rm -f "$nlist"T
5551       fi
5552
5553       # Make sure that we snagged all the symbols we need.
5554       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5555         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5556           cat <<EOF > conftest.$ac_ext
5557 #ifdef __cplusplus
5558 extern "C" {
5559 #endif
5560
5561 EOF
5562           # Now generate the symbol file.
5563           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5564
5565           cat <<EOF >> conftest.$ac_ext
5566 #if defined (__STDC__) && __STDC__
5567 # define lt_ptr_t void *
5568 #else
5569 # define lt_ptr_t char *
5570 # define const
5571 #endif
5572
5573 /* The mapping between symbol names and symbols. */
5574 const struct {
5575   const char *name;
5576   lt_ptr_t address;
5577 }
5578 lt_preloaded_symbols[] =
5579 {
5580 EOF
5581           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5582           cat <<\EOF >> conftest.$ac_ext
5583   {0, (lt_ptr_t) 0}
5584 };
5585
5586 #ifdef __cplusplus
5587 }
5588 #endif
5589 EOF
5590           # Now try linking the two files.
5591           mv conftest.$ac_objext conftstm.$ac_objext
5592           lt_save_LIBS="$LIBS"
5593           lt_save_CFLAGS="$CFLAGS"
5594           LIBS="conftstm.$ac_objext"
5595           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5596           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5597   (eval $ac_link) 2>&5
5598   ac_status=$?
5599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5601             pipe_works=yes
5602           fi
5603           LIBS="$lt_save_LIBS"
5604           CFLAGS="$lt_save_CFLAGS"
5605         else
5606           echo "cannot find nm_test_func in $nlist" >&5
5607         fi
5608       else
5609         echo "cannot find nm_test_var in $nlist" >&5
5610       fi
5611     else
5612       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5613     fi
5614   else
5615     echo "$progname: failed program was:" >&5
5616     cat conftest.$ac_ext >&5
5617   fi
5618   rm -f conftest* conftst*
5619
5620   # Do not use the global_symbol_pipe unless it works.
5621   if test "$pipe_works" = yes; then
5622     break
5623   else
5624     lt_cv_sys_global_symbol_pipe=
5625   fi
5626 done
5627
5628 fi
5629
5630 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5631   lt_cv_sys_global_symbol_to_cdecl=
5632 fi
5633 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5634   echo "$as_me:$LINENO: result: failed" >&5
5635 echo "${ECHO_T}failed" >&6
5636 else
5637   echo "$as_me:$LINENO: result: ok" >&5
5638 echo "${ECHO_T}ok" >&6
5639 fi
5640
5641 echo "$as_me:$LINENO: checking for objdir" >&5
5642 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5643 if test "${lt_cv_objdir+set}" = set; then
5644   echo $ECHO_N "(cached) $ECHO_C" >&6
5645 else
5646   rm -f .libs 2>/dev/null
5647 mkdir .libs 2>/dev/null
5648 if test -d .libs; then
5649   lt_cv_objdir=.libs
5650 else
5651   # MS-DOS does not allow filenames that begin with a dot.
5652   lt_cv_objdir=_libs
5653 fi
5654 rmdir .libs 2>/dev/null
5655 fi
5656 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5657 echo "${ECHO_T}$lt_cv_objdir" >&6
5658 objdir=$lt_cv_objdir
5659
5660
5661
5662
5663
5664 case $host_os in
5665 aix3*)
5666   # AIX sometimes has problems with the GCC collect2 program.  For some
5667   # reason, if we set the COLLECT_NAMES environment variable, the problems
5668   # vanish in a puff of smoke.
5669   if test "X${COLLECT_NAMES+set}" != Xset; then
5670     COLLECT_NAMES=
5671     export COLLECT_NAMES
5672   fi
5673   ;;
5674 esac
5675
5676 # Sed substitution that helps us do robust quoting.  It backslashifies
5677 # metacharacters that are still active within double-quoted strings.
5678 Xsed='sed -e s/^X//'
5679 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5680
5681 # Same as above, but do not quote variable references.
5682 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5683
5684 # Sed substitution to delay expansion of an escaped shell variable in a
5685 # double_quote_subst'ed string.
5686 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5687
5688 # Sed substitution to avoid accidental globbing in evaled expressions
5689 no_glob_subst='s/\*/\\\*/g'
5690
5691 # Constants:
5692 rm="rm -f"
5693
5694 # Global variables:
5695 default_ofile=libtool
5696 can_build_shared=yes
5697
5698 # All known linkers require a `.a' archive for static linking (except M$VC,
5699 # which needs '.lib').
5700 libext=a
5701 ltmain="$ac_aux_dir/ltmain.sh"
5702 ofile="$default_ofile"
5703 with_gnu_ld="$lt_cv_prog_gnu_ld"
5704
5705 if test -n "$ac_tool_prefix"; then
5706   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5707 set dummy ${ac_tool_prefix}ar; ac_word=$2
5708 echo "$as_me:$LINENO: checking for $ac_word" >&5
5709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5710 if test "${ac_cv_prog_AR+set}" = set; then
5711   echo $ECHO_N "(cached) $ECHO_C" >&6
5712 else
5713   if test -n "$AR"; then
5714   ac_cv_prog_AR="$AR" # Let the user override the test.
5715 else
5716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5717 for as_dir in $PATH
5718 do
5719   IFS=$as_save_IFS
5720   test -z "$as_dir" && as_dir=.
5721   for ac_exec_ext in '' $ac_executable_extensions; do
5722   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5723     ac_cv_prog_AR="${ac_tool_prefix}ar"
5724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5725     break 2
5726   fi
5727 done
5728 done
5729
5730 fi
5731 fi
5732 AR=$ac_cv_prog_AR
5733 if test -n "$AR"; then
5734   echo "$as_me:$LINENO: result: $AR" >&5
5735 echo "${ECHO_T}$AR" >&6
5736 else
5737   echo "$as_me:$LINENO: result: no" >&5
5738 echo "${ECHO_T}no" >&6
5739 fi
5740
5741 fi
5742 if test -z "$ac_cv_prog_AR"; then
5743   ac_ct_AR=$AR
5744   # Extract the first word of "ar", so it can be a program name with args.
5745 set dummy ar; ac_word=$2
5746 echo "$as_me:$LINENO: checking for $ac_word" >&5
5747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5748 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5749   echo $ECHO_N "(cached) $ECHO_C" >&6
5750 else
5751   if test -n "$ac_ct_AR"; then
5752   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5753 else
5754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5755 for as_dir in $PATH
5756 do
5757   IFS=$as_save_IFS
5758   test -z "$as_dir" && as_dir=.
5759   for ac_exec_ext in '' $ac_executable_extensions; do
5760   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5761     ac_cv_prog_ac_ct_AR="ar"
5762     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5763     break 2
5764   fi
5765 done
5766 done
5767
5768   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5769 fi
5770 fi
5771 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5772 if test -n "$ac_ct_AR"; then
5773   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5774 echo "${ECHO_T}$ac_ct_AR" >&6
5775 else
5776   echo "$as_me:$LINENO: result: no" >&5
5777 echo "${ECHO_T}no" >&6
5778 fi
5779
5780   AR=$ac_ct_AR
5781 else
5782   AR="$ac_cv_prog_AR"
5783 fi
5784
5785 if test -n "$ac_tool_prefix"; then
5786   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5787 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5788 echo "$as_me:$LINENO: checking for $ac_word" >&5
5789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5790 if test "${ac_cv_prog_RANLIB+set}" = set; then
5791   echo $ECHO_N "(cached) $ECHO_C" >&6
5792 else
5793   if test -n "$RANLIB"; then
5794   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5795 else
5796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797 for as_dir in $PATH
5798 do
5799   IFS=$as_save_IFS
5800   test -z "$as_dir" && as_dir=.
5801   for ac_exec_ext in '' $ac_executable_extensions; do
5802   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5803     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5804     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5805     break 2
5806   fi
5807 done
5808 done
5809
5810 fi
5811 fi
5812 RANLIB=$ac_cv_prog_RANLIB
5813 if test -n "$RANLIB"; then
5814   echo "$as_me:$LINENO: result: $RANLIB" >&5
5815 echo "${ECHO_T}$RANLIB" >&6
5816 else
5817   echo "$as_me:$LINENO: result: no" >&5
5818 echo "${ECHO_T}no" >&6
5819 fi
5820
5821 fi
5822 if test -z "$ac_cv_prog_RANLIB"; then
5823   ac_ct_RANLIB=$RANLIB
5824   # Extract the first word of "ranlib", so it can be a program name with args.
5825 set dummy ranlib; ac_word=$2
5826 echo "$as_me:$LINENO: checking for $ac_word" >&5
5827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5828 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5829   echo $ECHO_N "(cached) $ECHO_C" >&6
5830 else
5831   if test -n "$ac_ct_RANLIB"; then
5832   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5833 else
5834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5835 for as_dir in $PATH
5836 do
5837   IFS=$as_save_IFS
5838   test -z "$as_dir" && as_dir=.
5839   for ac_exec_ext in '' $ac_executable_extensions; do
5840   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5841     ac_cv_prog_ac_ct_RANLIB="ranlib"
5842     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5843     break 2
5844   fi
5845 done
5846 done
5847
5848   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5849 fi
5850 fi
5851 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5852 if test -n "$ac_ct_RANLIB"; then
5853   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5854 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5855 else
5856   echo "$as_me:$LINENO: result: no" >&5
5857 echo "${ECHO_T}no" >&6
5858 fi
5859
5860   RANLIB=$ac_ct_RANLIB
5861 else
5862   RANLIB="$ac_cv_prog_RANLIB"
5863 fi
5864
5865 if test -n "$ac_tool_prefix"; then
5866   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5867 set dummy ${ac_tool_prefix}strip; ac_word=$2
5868 echo "$as_me:$LINENO: checking for $ac_word" >&5
5869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5870 if test "${ac_cv_prog_STRIP+set}" = set; then
5871   echo $ECHO_N "(cached) $ECHO_C" >&6
5872 else
5873   if test -n "$STRIP"; then
5874   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5875 else
5876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877 for as_dir in $PATH
5878 do
5879   IFS=$as_save_IFS
5880   test -z "$as_dir" && as_dir=.
5881   for ac_exec_ext in '' $ac_executable_extensions; do
5882   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5883     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5884     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5885     break 2
5886   fi
5887 done
5888 done
5889
5890 fi
5891 fi
5892 STRIP=$ac_cv_prog_STRIP
5893 if test -n "$STRIP"; then
5894   echo "$as_me:$LINENO: result: $STRIP" >&5
5895 echo "${ECHO_T}$STRIP" >&6
5896 else
5897   echo "$as_me:$LINENO: result: no" >&5
5898 echo "${ECHO_T}no" >&6
5899 fi
5900
5901 fi
5902 if test -z "$ac_cv_prog_STRIP"; then
5903   ac_ct_STRIP=$STRIP
5904   # Extract the first word of "strip", so it can be a program name with args.
5905 set dummy strip; ac_word=$2
5906 echo "$as_me:$LINENO: checking for $ac_word" >&5
5907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5908 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5909   echo $ECHO_N "(cached) $ECHO_C" >&6
5910 else
5911   if test -n "$ac_ct_STRIP"; then
5912   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5913 else
5914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915 for as_dir in $PATH
5916 do
5917   IFS=$as_save_IFS
5918   test -z "$as_dir" && as_dir=.
5919   for ac_exec_ext in '' $ac_executable_extensions; do
5920   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5921     ac_cv_prog_ac_ct_STRIP="strip"
5922     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5923     break 2
5924   fi
5925 done
5926 done
5927
5928   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5929 fi
5930 fi
5931 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5932 if test -n "$ac_ct_STRIP"; then
5933   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5934 echo "${ECHO_T}$ac_ct_STRIP" >&6
5935 else
5936   echo "$as_me:$LINENO: result: no" >&5
5937 echo "${ECHO_T}no" >&6
5938 fi
5939
5940   STRIP=$ac_ct_STRIP
5941 else
5942   STRIP="$ac_cv_prog_STRIP"
5943 fi
5944
5945
5946 old_CC="$CC"
5947 old_CFLAGS="$CFLAGS"
5948
5949 # Set sane defaults for various variables
5950 test -z "$AR" && AR=ar
5951 test -z "$AR_FLAGS" && AR_FLAGS=cru
5952 test -z "$AS" && AS=as
5953 test -z "$CC" && CC=cc
5954 test -z "$LTCC" && LTCC=$CC
5955 test -z "$DLLTOOL" && DLLTOOL=dlltool
5956 test -z "$LD" && LD=ld
5957 test -z "$LN_S" && LN_S="ln -s"
5958 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5959 test -z "$NM" && NM=nm
5960 test -z "$SED" && SED=sed
5961 test -z "$OBJDUMP" && OBJDUMP=objdump
5962 test -z "$RANLIB" && RANLIB=:
5963 test -z "$STRIP" && STRIP=:
5964 test -z "$ac_objext" && ac_objext=o
5965
5966 # Determine commands to create old-style static archives.
5967 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5968 old_postinstall_cmds='chmod 644 $oldlib'
5969 old_postuninstall_cmds=
5970
5971 if test -n "$RANLIB"; then
5972   case $host_os in
5973   openbsd*)
5974     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5975     ;;
5976   *)
5977     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5978     ;;
5979   esac
5980   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5981 fi
5982
5983 # Only perform the check for file, if the check method requires it
5984 case $deplibs_check_method in
5985 file_magic*)
5986   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5987     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5988 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5989 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5990   echo $ECHO_N "(cached) $ECHO_C" >&6
5991 else
5992   case $MAGIC_CMD in
5993 [\\/*] |  ?:[\\/]*)
5994   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5995   ;;
5996 *)
5997   lt_save_MAGIC_CMD="$MAGIC_CMD"
5998   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5999   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6000   for ac_dir in $ac_dummy; do
6001     IFS="$lt_save_ifs"
6002     test -z "$ac_dir" && ac_dir=.
6003     if test -f $ac_dir/${ac_tool_prefix}file; then
6004       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6005       if test -n "$file_magic_test_file"; then
6006         case $deplibs_check_method in
6007         "file_magic "*)
6008           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6009           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6010           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6011             $EGREP "$file_magic_regex" > /dev/null; then
6012             :
6013           else
6014             cat <<EOF 1>&2
6015
6016 *** Warning: the command libtool uses to detect shared libraries,
6017 *** $file_magic_cmd, produces output that libtool cannot recognize.
6018 *** The result is that libtool may fail to recognize shared libraries
6019 *** as such.  This will affect the creation of libtool libraries that
6020 *** depend on shared libraries, but programs linked with such libtool
6021 *** libraries will work regardless of this problem.  Nevertheless, you
6022 *** may want to report the problem to your system manager and/or to
6023 *** bug-libtool@gnu.org
6024
6025 EOF
6026           fi ;;
6027         esac
6028       fi
6029       break
6030     fi
6031   done
6032   IFS="$lt_save_ifs"
6033   MAGIC_CMD="$lt_save_MAGIC_CMD"
6034   ;;
6035 esac
6036 fi
6037
6038 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6039 if test -n "$MAGIC_CMD"; then
6040   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6041 echo "${ECHO_T}$MAGIC_CMD" >&6
6042 else
6043   echo "$as_me:$LINENO: result: no" >&5
6044 echo "${ECHO_T}no" >&6
6045 fi
6046
6047 if test -z "$lt_cv_path_MAGIC_CMD"; then
6048   if test -n "$ac_tool_prefix"; then
6049     echo "$as_me:$LINENO: checking for file" >&5
6050 echo $ECHO_N "checking for file... $ECHO_C" >&6
6051 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6052   echo $ECHO_N "(cached) $ECHO_C" >&6
6053 else
6054   case $MAGIC_CMD in
6055 [\\/*] |  ?:[\\/]*)
6056   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6057   ;;
6058 *)
6059   lt_save_MAGIC_CMD="$MAGIC_CMD"
6060   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6061   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6062   for ac_dir in $ac_dummy; do
6063     IFS="$lt_save_ifs"
6064     test -z "$ac_dir" && ac_dir=.
6065     if test -f $ac_dir/file; then
6066       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6067       if test -n "$file_magic_test_file"; then
6068         case $deplibs_check_method in
6069         "file_magic "*)
6070           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6071           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6072           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6073             $EGREP "$file_magic_regex" > /dev/null; then
6074             :
6075           else
6076             cat <<EOF 1>&2
6077
6078 *** Warning: the command libtool uses to detect shared libraries,
6079 *** $file_magic_cmd, produces output that libtool cannot recognize.
6080 *** The result is that libtool may fail to recognize shared libraries
6081 *** as such.  This will affect the creation of libtool libraries that
6082 *** depend on shared libraries, but programs linked with such libtool
6083 *** libraries will work regardless of this problem.  Nevertheless, you
6084 *** may want to report the problem to your system manager and/or to
6085 *** bug-libtool@gnu.org
6086
6087 EOF
6088           fi ;;
6089         esac
6090       fi
6091       break
6092     fi
6093   done
6094   IFS="$lt_save_ifs"
6095   MAGIC_CMD="$lt_save_MAGIC_CMD"
6096   ;;
6097 esac
6098 fi
6099
6100 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6101 if test -n "$MAGIC_CMD"; then
6102   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6103 echo "${ECHO_T}$MAGIC_CMD" >&6
6104 else
6105   echo "$as_me:$LINENO: result: no" >&5
6106 echo "${ECHO_T}no" >&6
6107 fi
6108
6109   else
6110     MAGIC_CMD=:
6111   fi
6112 fi
6113
6114   fi
6115   ;;
6116 esac
6117
6118 enable_dlopen=no
6119 enable_win32_dll=no
6120
6121 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6122 if test "${enable_libtool_lock+set}" = set; then
6123   enableval="$enable_libtool_lock"
6124
6125 fi;
6126 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6127
6128
6129 # Check whether --with-pic or --without-pic was given.
6130 if test "${with_pic+set}" = set; then
6131   withval="$with_pic"
6132   pic_mode="$withval"
6133 else
6134   pic_mode=default
6135 fi;
6136 test -z "$pic_mode" && pic_mode=default
6137
6138 # Use C for the default configuration in the libtool script
6139 tagname=
6140 lt_save_CC="$CC"
6141 ac_ext=c
6142 ac_cpp='$CPP $CPPFLAGS'
6143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6146
6147
6148 # Source file extension for C test sources.
6149 ac_ext=c
6150
6151 # Object file extension for compiled C test sources.
6152 objext=o
6153 objext=$objext
6154
6155 # Code to be used in simple compile tests
6156 lt_simple_compile_test_code="int some_variable = 0;\n"
6157
6158 # Code to be used in simple link tests
6159 lt_simple_link_test_code='int main(){return(0);}\n'
6160
6161
6162 # If no C compiler was specified, use CC.
6163 LTCC=${LTCC-"$CC"}
6164
6165 # Allow CC to be a program name with arguments.
6166 compiler=$CC
6167
6168
6169 #
6170 # Check for any special shared library compilation flags.
6171 #
6172 lt_prog_cc_shlib=
6173 if test "$GCC" = no; then
6174   case $host_os in
6175   sco3.2v5*)
6176     lt_prog_cc_shlib='-belf'
6177     ;;
6178   esac
6179 fi
6180 if test -n "$lt_prog_cc_shlib"; then
6181   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6182 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6183   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6184   else
6185     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6186 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6187     lt_cv_prog_cc_can_build_shared=no
6188   fi
6189 fi
6190
6191
6192 #
6193 # Check to make sure the static flag actually works.
6194 #
6195 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6196 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6197 if test "${lt_prog_compiler_static_works+set}" = set; then
6198   echo $ECHO_N "(cached) $ECHO_C" >&6
6199 else
6200   lt_prog_compiler_static_works=no
6201    save_LDFLAGS="$LDFLAGS"
6202    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6203    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6204    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6205      # The compiler can only warn and ignore the option if not recognized
6206      # So say no if there are warnings
6207      if test -s conftest.err; then
6208        # Append any errors to the config.log.
6209        cat conftest.err 1>&5
6210      else
6211        lt_prog_compiler_static_works=yes
6212      fi
6213    fi
6214    $rm conftest*
6215    LDFLAGS="$save_LDFLAGS"
6216
6217 fi
6218 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6219 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6220
6221 if test x"$lt_prog_compiler_static_works" = xyes; then
6222     :
6223 else
6224     lt_prog_compiler_static=
6225 fi
6226
6227
6228
6229
6230 lt_prog_compiler_no_builtin_flag=
6231
6232 if test "$GCC" = yes; then
6233   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6234
6235
6236 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6237 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6238 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6239   echo $ECHO_N "(cached) $ECHO_C" >&6
6240 else
6241   lt_cv_prog_compiler_rtti_exceptions=no
6242   ac_outfile=conftest.$ac_objext
6243    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6244    lt_compiler_flag="-fno-rtti -fno-exceptions"
6245    # Insert the option either (1) after the last *FLAGS variable, or
6246    # (2) before a word containing "conftest.", or (3) at the end.
6247    # Note that $ac_compile itself does not contain backslashes and begins
6248    # with a dollar sign (not a hyphen), so the echo should work correctly.
6249    # The option is referenced via a variable to avoid confusing sed.
6250    lt_compile=`echo "$ac_compile" | $SED \
6251    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6252    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6253    -e 's:$: $lt_compiler_flag:'`
6254    (eval echo "\"\$as_me:6254: $lt_compile\"" >&5)
6255    (eval "$lt_compile" 2>conftest.err)
6256    ac_status=$?
6257    cat conftest.err >&5
6258    echo "$as_me:6258: \$? = $ac_status" >&5
6259    if (exit $ac_status) && test -s "$ac_outfile"; then
6260      # The compiler can only warn and ignore the option if not recognized
6261      # So say no if there are warnings
6262      if test ! -s conftest.err; then
6263        lt_cv_prog_compiler_rtti_exceptions=yes
6264      fi
6265    fi
6266    $rm conftest*
6267
6268 fi
6269 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6270 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6271
6272 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6273     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6274 else
6275     :
6276 fi
6277
6278 fi
6279
6280 lt_prog_compiler_wl=
6281 lt_prog_compiler_pic=
6282 lt_prog_compiler_static=
6283
6284 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6285 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6286
6287   if test "$GCC" = yes; then
6288     lt_prog_compiler_wl='-Wl,'
6289     lt_prog_compiler_static='-static'
6290
6291     case $host_os in
6292       aix*)
6293       # All AIX code is PIC.
6294       if test "$host_cpu" = ia64; then
6295         # AIX 5 now supports IA64 processor
6296         lt_prog_compiler_static='-Bstatic'
6297       fi
6298       ;;
6299
6300     amigaos*)
6301       # FIXME: we need at least 68020 code to build shared libraries, but
6302       # adding the `-m68020' flag to GCC prevents building anything better,
6303       # like `-m68040'.
6304       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6305       ;;
6306
6307     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6308       # PIC is the default for these OSes.
6309       ;;
6310
6311     mingw* | pw32* | os2*)
6312       # This hack is so that the source file can tell whether it is being
6313       # built for inclusion in a dll (and should export symbols for example).
6314       lt_prog_compiler_pic='-DDLL_EXPORT'
6315       ;;
6316
6317     darwin* | rhapsody*)
6318       # PIC is the default on this platform
6319       # Common symbols not allowed in MH_DYLIB files
6320       lt_prog_compiler_pic='-fno-common'
6321       ;;
6322
6323     msdosdjgpp*)
6324       # Just because we use GCC doesn't mean we suddenly get shared libraries
6325       # on systems that don't support them.
6326       lt_prog_compiler_can_build_shared=no
6327       enable_shared=no
6328       ;;
6329
6330     sysv4*MP*)
6331       if test -d /usr/nec; then
6332         lt_prog_compiler_pic=-Kconform_pic
6333       fi
6334       ;;
6335
6336     hpux*)
6337       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6338       # not for PA HP-UX.
6339       case "$host_cpu" in
6340       hppa*64*|ia64*)
6341         # +Z the default
6342         ;;
6343       *)
6344         lt_prog_compiler_pic='-fPIC'
6345         ;;
6346       esac
6347       ;;
6348
6349     *)
6350       lt_prog_compiler_pic='-fPIC'
6351       ;;
6352     esac
6353   else
6354     # PORTME Check for flag to pass linker flags through the system compiler.
6355     case $host_os in
6356     aix*)
6357       lt_prog_compiler_wl='-Wl,'
6358       if test "$host_cpu" = ia64; then
6359         # AIX 5 now supports IA64 processor
6360         lt_prog_compiler_static='-Bstatic'
6361       else
6362         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6363       fi
6364       ;;
6365
6366     mingw* | pw32* | os2*)
6367       # This hack is so that the source file can tell whether it is being
6368       # built for inclusion in a dll (and should export symbols for example).
6369       lt_prog_compiler_pic='-DDLL_EXPORT'
6370       ;;
6371
6372     hpux9* | hpux10* | hpux11*)
6373       lt_prog_compiler_wl='-Wl,'
6374       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6375       # not for PA HP-UX.
6376       case "$host_cpu" in
6377       hppa*64*|ia64*)
6378         # +Z the default
6379         ;;
6380       *)
6381         lt_prog_compiler_pic='+Z'
6382         ;;
6383       esac
6384       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6385       lt_prog_compiler_static='${wl}-a ${wl}archive'
6386       ;;
6387
6388     irix5* | irix6* | nonstopux*)
6389       lt_prog_compiler_wl='-Wl,'
6390       # PIC (with -KPIC) is the default.
6391       lt_prog_compiler_static='-non_shared'
6392       ;;
6393
6394     newsos6)
6395       lt_prog_compiler_pic='-KPIC'
6396       lt_prog_compiler_static='-Bstatic'
6397       ;;
6398
6399     linux*)
6400       case $CC in
6401       icc* | ecc*)
6402         lt_prog_compiler_wl='-Wl,'
6403         lt_prog_compiler_pic='-KPIC'
6404         lt_prog_compiler_static='-static'
6405         ;;
6406       ccc*)
6407         lt_prog_compiler_wl='-Wl,'
6408         # All Alpha code is PIC.
6409         lt_prog_compiler_static='-non_shared'
6410         ;;
6411       esac
6412       ;;
6413
6414     osf3* | osf4* | osf5*)
6415       lt_prog_compiler_wl='-Wl,'
6416       # All OSF/1 code is PIC.
6417       lt_prog_compiler_static='-non_shared'
6418       ;;
6419
6420     sco3.2v5*)
6421       lt_prog_compiler_pic='-Kpic'
6422       lt_prog_compiler_static='-dn'
6423       ;;
6424
6425     solaris*)
6426       lt_prog_compiler_wl='-Wl,'
6427       lt_prog_compiler_pic='-KPIC'
6428       lt_prog_compiler_static='-Bstatic'
6429       ;;
6430
6431     sunos4*)
6432       lt_prog_compiler_wl='-Qoption ld '
6433       lt_prog_compiler_pic='-PIC'
6434       lt_prog_compiler_static='-Bstatic'
6435       ;;
6436
6437     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6438       lt_prog_compiler_wl='-Wl,'
6439       lt_prog_compiler_pic='-KPIC'
6440       lt_prog_compiler_static='-Bstatic'
6441       ;;
6442
6443     sysv4*MP*)
6444       if test -d /usr/nec ;then
6445         lt_prog_compiler_pic='-Kconform_pic'
6446         lt_prog_compiler_static='-Bstatic'
6447       fi
6448       ;;
6449
6450     uts4*)
6451       lt_prog_compiler_pic='-pic'
6452       lt_prog_compiler_static='-Bstatic'
6453       ;;
6454
6455     *)
6456       lt_prog_compiler_can_build_shared=no
6457       ;;
6458     esac
6459   fi
6460
6461 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6462 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6463
6464 #
6465 # Check to make sure the PIC flag actually works.
6466 #
6467 if test -n "$lt_prog_compiler_pic"; then
6468
6469 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6470 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6471 if test "${lt_prog_compiler_pic_works+set}" = set; then
6472   echo $ECHO_N "(cached) $ECHO_C" >&6
6473 else
6474   lt_prog_compiler_pic_works=no
6475   ac_outfile=conftest.$ac_objext
6476    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6477    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6478    # Insert the option either (1) after the last *FLAGS variable, or
6479    # (2) before a word containing "conftest.", or (3) at the end.
6480    # Note that $ac_compile itself does not contain backslashes and begins
6481    # with a dollar sign (not a hyphen), so the echo should work correctly.
6482    # The option is referenced via a variable to avoid confusing sed.
6483    lt_compile=`echo "$ac_compile" | $SED \
6484    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6485    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6486    -e 's:$: $lt_compiler_flag:'`
6487    (eval echo "\"\$as_me:6487: $lt_compile\"" >&5)
6488    (eval "$lt_compile" 2>conftest.err)
6489    ac_status=$?
6490    cat conftest.err >&5
6491    echo "$as_me:6491: \$? = $ac_status" >&5
6492    if (exit $ac_status) && test -s "$ac_outfile"; then
6493      # The compiler can only warn and ignore the option if not recognized
6494      # So say no if there are warnings
6495      if test ! -s conftest.err; then
6496        lt_prog_compiler_pic_works=yes
6497      fi
6498    fi
6499    $rm conftest*
6500
6501 fi
6502 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6503 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6504
6505 if test x"$lt_prog_compiler_pic_works" = xyes; then
6506     case $lt_prog_compiler_pic in
6507      "" | " "*) ;;
6508      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6509      esac
6510 else
6511     lt_prog_compiler_pic=
6512      lt_prog_compiler_can_build_shared=no
6513 fi
6514
6515 fi
6516 case "$host_os" in
6517   # For platforms which do not support PIC, -DPIC is meaningless:
6518   *djgpp*)
6519     lt_prog_compiler_pic=
6520     ;;
6521   *)
6522     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6523     ;;
6524 esac
6525
6526 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6527 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6528 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6529   echo $ECHO_N "(cached) $ECHO_C" >&6
6530 else
6531   lt_cv_prog_compiler_c_o=no
6532    $rm -r conftest 2>/dev/null
6533    mkdir conftest
6534    cd conftest
6535    mkdir out
6536    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6537
6538    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6539    # that will create temporary files in the current directory regardless of
6540    # the output directory.  Thus, making CWD read-only will cause this test
6541    # to fail, enabling locking or at least warning the user not to do parallel
6542    # builds.
6543    chmod -w .
6544
6545    lt_compiler_flag="-o out/conftest2.$ac_objext"
6546    # Insert the option either (1) after the last *FLAGS variable, or
6547    # (2) before a word containing "conftest.", or (3) at the end.
6548    # Note that $ac_compile itself does not contain backslashes and begins
6549    # with a dollar sign (not a hyphen), so the echo should work correctly.
6550    lt_compile=`echo "$ac_compile" | $SED \
6551    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6552    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6553    -e 's:$: $lt_compiler_flag:'`
6554    (eval echo "\"\$as_me:6554: $lt_compile\"" >&5)
6555    (eval "$lt_compile" 2>out/conftest.err)
6556    ac_status=$?
6557    cat out/conftest.err >&5
6558    echo "$as_me:6558: \$? = $ac_status" >&5
6559    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6560    then
6561      # The compiler can only warn and ignore the option if not recognized
6562      # So say no if there are warnings
6563      if test ! -s out/conftest.err; then
6564        lt_cv_prog_compiler_c_o=yes
6565      fi
6566    fi
6567    chmod u+w .
6568    $rm conftest*
6569    # SGI C++ compiler will create directory out/ii_files/ for
6570    # template instantiation
6571    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6572    $rm out/* && rmdir out
6573    cd ..
6574    rmdir conftest
6575    $rm conftest*
6576
6577 fi
6578 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6579 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6580
6581
6582 hard_links="nottested"
6583 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6584   # do not overwrite the value of need_locks provided by the user
6585   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6586 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6587   hard_links=yes
6588   $rm conftest*
6589   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6590   touch conftest.a
6591   ln conftest.a conftest.b 2>&5 || hard_links=no
6592   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6593   echo "$as_me:$LINENO: result: $hard_links" >&5
6594 echo "${ECHO_T}$hard_links" >&6
6595   if test "$hard_links" = no; then
6596     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6597 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6598     need_locks=warn
6599   fi
6600 else
6601   need_locks=no
6602 fi
6603
6604 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6605 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6606
6607   runpath_var=
6608   allow_undefined_flag=
6609   enable_shared_with_static_runtimes=no
6610   archive_cmds=
6611   archive_expsym_cmds=
6612   old_archive_From_new_cmds=
6613   old_archive_from_expsyms_cmds=
6614   export_dynamic_flag_spec=
6615   whole_archive_flag_spec=
6616   thread_safe_flag_spec=
6617   hardcode_libdir_flag_spec=
6618   hardcode_libdir_flag_spec_ld=
6619   hardcode_libdir_separator=
6620   hardcode_direct=no
6621   hardcode_minus_L=no
6622   hardcode_shlibpath_var=unsupported
6623   link_all_deplibs=unknown
6624   hardcode_automatic=no
6625   module_cmds=
6626   module_expsym_cmds=
6627   always_export_symbols=no
6628   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6629   # include_expsyms should be a list of space-separated symbols to be *always*
6630   # included in the symbol list
6631   include_expsyms=
6632   # exclude_expsyms can be an extended regexp of symbols to exclude
6633   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6634   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6635   # as well as any symbol that contains `d'.
6636   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6637   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6638   # platforms (ab)use it in PIC code, but their linkers get confused if
6639   # the symbol is explicitly referenced.  Since portable code cannot
6640   # rely on this symbol name, it's probably fine to never include it in
6641   # preloaded symbol tables.
6642   extract_expsyms_cmds=
6643
6644   case $host_os in
6645   cygwin* | mingw* | pw32*)
6646     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6647     # When not using gcc, we currently assume that we are using
6648     # Microsoft Visual C++.
6649     if test "$GCC" != yes; then
6650       with_gnu_ld=no
6651     fi
6652     ;;
6653   openbsd*)
6654     with_gnu_ld=no
6655     ;;
6656   esac
6657
6658   ld_shlibs=yes
6659   if test "$with_gnu_ld" = yes; then
6660     # If archive_cmds runs LD, not CC, wlarc should be empty
6661     wlarc='${wl}'
6662
6663     # See if GNU ld supports shared libraries.
6664     case $host_os in
6665     aix3* | aix4* | aix5*)
6666       # On AIX/PPC, the GNU linker is very broken
6667       if test "$host_cpu" != ia64; then
6668         ld_shlibs=no
6669         cat <<EOF 1>&2
6670
6671 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6672 *** to be unable to reliably create shared libraries on AIX.
6673 *** Therefore, libtool is disabling shared libraries support.  If you
6674 *** really care for shared libraries, you may want to modify your PATH
6675 *** so that a non-GNU linker is found, and then restart.
6676
6677 EOF
6678       fi
6679       ;;
6680
6681     amigaos*)
6682       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)'
6683       hardcode_libdir_flag_spec='-L$libdir'
6684       hardcode_minus_L=yes
6685
6686       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6687       # that the semantics of dynamic libraries on AmigaOS, at least up
6688       # to version 4, is to share data among multiple programs linked
6689       # with the same dynamic library.  Since this doesn't match the
6690       # behavior of shared libraries on other platforms, we can't use
6691       # them.
6692       ld_shlibs=no
6693       ;;
6694
6695     beos*)
6696       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6697         allow_undefined_flag=unsupported
6698         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6699         # support --undefined.  This deserves some investigation.  FIXME
6700         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6701       else
6702         ld_shlibs=no
6703       fi
6704       ;;
6705
6706     cygwin* | mingw* | pw32*)
6707       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6708       # as there is no search path for DLLs.
6709       hardcode_libdir_flag_spec='-L$libdir'
6710       allow_undefined_flag=unsupported
6711       always_export_symbols=no
6712       enable_shared_with_static_runtimes=yes
6713       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6714
6715       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6716         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6717         # If the export-symbols file already is a .def file (1st line
6718         # is EXPORTS), use it as is; otherwise, prepend...
6719         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6720           cp $export_symbols $output_objdir/$soname.def;
6721         else
6722           echo EXPORTS > $output_objdir/$soname.def;
6723           cat $export_symbols >> $output_objdir/$soname.def;
6724         fi~
6725         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6726       else
6727         ld_shlibs=no
6728       fi
6729       ;;
6730
6731     netbsd*)
6732       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6733         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6734         wlarc=
6735       else
6736         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6737         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6738       fi
6739       ;;
6740
6741     solaris* | sysv5*)
6742       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6743         ld_shlibs=no
6744         cat <<EOF 1>&2
6745
6746 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6747 *** create shared libraries on Solaris systems.  Therefore, libtool
6748 *** is disabling shared libraries support.  We urge you to upgrade GNU
6749 *** binutils to release 2.9.1 or newer.  Another option is to modify
6750 *** your PATH or compiler configuration so that the native linker is
6751 *** used, and then restart.
6752
6753 EOF
6754       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6755         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6756         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6757       else
6758         ld_shlibs=no
6759       fi
6760       ;;
6761
6762     sunos4*)
6763       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6764       wlarc=
6765       hardcode_direct=yes
6766       hardcode_shlibpath_var=no
6767       ;;
6768
6769   linux*)
6770     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6771         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6772         archive_cmds="$tmp_archive_cmds"
6773       supports_anon_versioning=no
6774       case `$LD -v 2>/dev/null` in
6775         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6776         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6777         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6778         *\ 2.11.*) ;; # other 2.11 versions
6779         *) supports_anon_versioning=yes ;;
6780       esac
6781       if test $supports_anon_versioning = yes; then
6782         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6783 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6784 $echo "local: *; };" >> $output_objdir/$libname.ver~
6785         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6786       else
6787         archive_expsym_cmds="$tmp_archive_cmds"
6788       fi
6789     else
6790       ld_shlibs=no
6791     fi
6792     ;;
6793
6794     *)
6795       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6796         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6797         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6798       else
6799         ld_shlibs=no
6800       fi
6801       ;;
6802     esac
6803
6804     if test "$ld_shlibs" = yes; then
6805       runpath_var=LD_RUN_PATH
6806       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6807       export_dynamic_flag_spec='${wl}--export-dynamic'
6808       # ancient GNU ld didn't support --whole-archive et. al.
6809       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6810         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6811       else
6812         whole_archive_flag_spec=
6813       fi
6814     fi
6815   else
6816     # PORTME fill in a description of your system's linker (not GNU ld)
6817     case $host_os in
6818     aix3*)
6819       allow_undefined_flag=unsupported
6820       always_export_symbols=yes
6821       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'
6822       # Note: this linker hardcodes the directories in LIBPATH if there
6823       # are no directories specified by -L.
6824       hardcode_minus_L=yes
6825       if test "$GCC" = yes && test -z "$link_static_flag"; then
6826         # Neither direct hardcoding nor static linking is supported with a
6827         # broken collect2.
6828         hardcode_direct=unsupported
6829       fi
6830       ;;
6831
6832     aix4* | aix5*)
6833       if test "$host_cpu" = ia64; then
6834         # On IA64, the linker does run time linking by default, so we don't
6835         # have to do anything special.
6836         aix_use_runtimelinking=no
6837         exp_sym_flag='-Bexport'
6838         no_entry_flag=""
6839       else
6840         # If we're using GNU nm, then we don't want the "-C" option.
6841         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6842         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6843           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'
6844         else
6845           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'
6846         fi
6847         aix_use_runtimelinking=no
6848
6849         # Test if we are trying to use run time linking or normal
6850         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6851         # need to do runtime linking.
6852         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6853           for ld_flag in $LDFLAGS; do
6854           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6855             aix_use_runtimelinking=yes
6856             break
6857           fi
6858           done
6859         esac
6860
6861         exp_sym_flag='-bexport'
6862         no_entry_flag='-bnoentry'
6863       fi
6864
6865       # When large executables or shared objects are built, AIX ld can
6866       # have problems creating the table of contents.  If linking a library
6867       # or program results in "error TOC overflow" add -mminimal-toc to
6868       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6869       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6870
6871       archive_cmds=''
6872       hardcode_direct=yes
6873       hardcode_libdir_separator=':'
6874       link_all_deplibs=yes
6875
6876       if test "$GCC" = yes; then
6877         case $host_os in aix4.012|aix4.012.*)
6878         # We only want to do this on AIX 4.2 and lower, the check
6879         # below for broken collect2 doesn't work under 4.3+
6880           collect2name=`${CC} -print-prog-name=collect2`
6881           if test -f "$collect2name" && \
6882            strings "$collect2name" | grep resolve_lib_name >/dev/null
6883           then
6884           # We have reworked collect2
6885           hardcode_direct=yes
6886           else
6887           # We have old collect2
6888           hardcode_direct=unsupported
6889           # It fails to find uninstalled libraries when the uninstalled
6890           # path is not listed in the libpath.  Setting hardcode_minus_L
6891           # to unsupported forces relinking
6892           hardcode_minus_L=yes
6893           hardcode_libdir_flag_spec='-L$libdir'
6894           hardcode_libdir_separator=
6895           fi
6896         esac
6897         shared_flag='-shared'
6898       else
6899         # not using gcc
6900         if test "$host_cpu" = ia64; then
6901         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6902         # chokes on -Wl,-G. The following line is correct:
6903           shared_flag='-G'
6904         else
6905         if test "$aix_use_runtimelinking" = yes; then
6906             shared_flag='${wl}-G'
6907           else
6908             shared_flag='${wl}-bM:SRE'
6909         fi
6910         fi
6911       fi
6912
6913       # It seems that -bexpall does not export symbols beginning with
6914       # underscore (_), so it is better to generate a list of symbols to export.
6915       always_export_symbols=yes
6916       if test "$aix_use_runtimelinking" = yes; then
6917         # Warning - without using the other runtime loading flags (-brtl),
6918         # -berok will link without error, but may produce a broken library.
6919         allow_undefined_flag='-berok'
6920        # Determine the default libpath from the value encoded in an empty executable.
6921        cat >conftest.$ac_ext <<_ACEOF
6922 /* confdefs.h.  */
6923 _ACEOF
6924 cat confdefs.h >>conftest.$ac_ext
6925 cat >>conftest.$ac_ext <<_ACEOF
6926 /* end confdefs.h.  */
6927
6928 int
6929 main ()
6930 {
6931
6932   ;
6933   return 0;
6934 }
6935 _ACEOF
6936 rm -f conftest.$ac_objext conftest$ac_exeext
6937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6938   (eval $ac_link) 2>conftest.er1
6939   ac_status=$?
6940   grep -v '^ *+' conftest.er1 >conftest.err
6941   rm -f conftest.er1
6942   cat conftest.err >&5
6943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944   (exit $ac_status); } &&
6945          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6947   (eval $ac_try) 2>&5
6948   ac_status=$?
6949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950   (exit $ac_status); }; } &&
6951          { ac_try='test -s conftest$ac_exeext'
6952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6953   (eval $ac_try) 2>&5
6954   ac_status=$?
6955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956   (exit $ac_status); }; }; then
6957
6958 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6959 }'`
6960 # Check for a 64-bit object if we didn't find anything.
6961 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; }
6962 }'`; fi
6963 else
6964   echo "$as_me: failed program was:" >&5
6965 sed 's/^/| /' conftest.$ac_ext >&5
6966
6967 fi
6968 rm -f conftest.err conftest.$ac_objext \
6969       conftest$ac_exeext conftest.$ac_ext
6970 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6971
6972        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6973         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6974        else
6975         if test "$host_cpu" = ia64; then
6976           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6977           allow_undefined_flag="-z nodefs"
6978           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6979         else
6980          # Determine the default libpath from the value encoded in an empty executable.
6981          cat >conftest.$ac_ext <<_ACEOF
6982 /* confdefs.h.  */
6983 _ACEOF
6984 cat confdefs.h >>conftest.$ac_ext
6985 cat >>conftest.$ac_ext <<_ACEOF
6986 /* end confdefs.h.  */
6987
6988 int
6989 main ()
6990 {
6991
6992   ;
6993   return 0;
6994 }
6995 _ACEOF
6996 rm -f conftest.$ac_objext conftest$ac_exeext
6997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6998   (eval $ac_link) 2>conftest.er1
6999   ac_status=$?
7000   grep -v '^ *+' conftest.er1 >conftest.err
7001   rm -f conftest.er1
7002   cat conftest.err >&5
7003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004   (exit $ac_status); } &&
7005          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7007   (eval $ac_try) 2>&5
7008   ac_status=$?
7009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010   (exit $ac_status); }; } &&
7011          { ac_try='test -s conftest$ac_exeext'
7012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7013   (eval $ac_try) 2>&5
7014   ac_status=$?
7015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016   (exit $ac_status); }; }; then
7017
7018 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7019 }'`
7020 # Check for a 64-bit object if we didn't find anything.
7021 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; }
7022 }'`; fi
7023 else
7024   echo "$as_me: failed program was:" >&5
7025 sed 's/^/| /' conftest.$ac_ext >&5
7026
7027 fi
7028 rm -f conftest.err conftest.$ac_objext \
7029       conftest$ac_exeext conftest.$ac_ext
7030 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7031
7032          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7033           # Warning - without using the other run time loading flags,
7034           # -berok will link without error, but may produce a broken library.
7035           no_undefined_flag=' ${wl}-bernotok'
7036           allow_undefined_flag=' ${wl}-berok'
7037           # -bexpall does not export symbols beginning with underscore (_)
7038           always_export_symbols=yes
7039           # Exported symbols can be pulled into shared objects from archives
7040           whole_archive_flag_spec=' '
7041           archive_cmds_need_lc=yes
7042           # This is similar to how AIX traditionally builds it's shared libraries.
7043           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7044         fi
7045       fi
7046       ;;
7047
7048     amigaos*)
7049       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)'
7050       hardcode_libdir_flag_spec='-L$libdir'
7051       hardcode_minus_L=yes
7052       # see comment about different semantics on the GNU ld section
7053       ld_shlibs=no
7054       ;;
7055
7056     bsdi4*)
7057       export_dynamic_flag_spec=-rdynamic
7058       ;;
7059
7060     cygwin* | mingw* | pw32*)
7061       # When not using gcc, we currently assume that we are using
7062       # Microsoft Visual C++.
7063       # hardcode_libdir_flag_spec is actually meaningless, as there is
7064       # no search path for DLLs.
7065       hardcode_libdir_flag_spec=' '
7066       allow_undefined_flag=unsupported
7067       # Tell ltmain to make .lib files, not .a files.
7068       libext=lib
7069       # Tell ltmain to make .dll files, not .so files.
7070       shrext=".dll"
7071       # FIXME: Setting linknames here is a bad hack.
7072       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7073       # The linker will automatically build a .lib file if we build a DLL.
7074       old_archive_From_new_cmds='true'
7075       # FIXME: Should let the user specify the lib program.
7076       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7077       fix_srcfile_path='`cygpath -w "$srcfile"`'
7078       enable_shared_with_static_runtimes=yes
7079       ;;
7080
7081     darwin* | rhapsody*)
7082     if test "$GXX" = yes ; then
7083       archive_cmds_need_lc=no
7084       case "$host_os" in
7085       rhapsody* | darwin1.[012])
7086         allow_undefined_flag='-undefined suppress'
7087         ;;
7088       *) # Darwin 1.3 on
7089       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7090         allow_undefined_flag='-flat_namespace -undefined suppress'
7091       else
7092         case ${MACOSX_DEPLOYMENT_TARGET} in
7093           10.[012])
7094             allow_undefined_flag='-flat_namespace -undefined suppress'
7095             ;;
7096           10.*)
7097             allow_undefined_flag='-undefined dynamic_lookup'
7098             ;;
7099         esac
7100       fi
7101         ;;
7102       esac
7103         lt_int_apple_cc_single_mod=no
7104         output_verbose_link_cmd='echo'
7105         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7106           lt_int_apple_cc_single_mod=yes
7107         fi
7108         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7109           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7110         else
7111         archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7112       fi
7113       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7114       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7115         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7116           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7117         else
7118           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7119         fi
7120           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}'
7121       hardcode_direct=no
7122       hardcode_automatic=yes
7123       hardcode_shlibpath_var=unsupported
7124       whole_archive_flag_spec='-all_load $convenience'
7125       link_all_deplibs=yes
7126     else
7127       ld_shlibs=no
7128     fi
7129       ;;
7130
7131     dgux*)
7132       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7133       hardcode_libdir_flag_spec='-L$libdir'
7134       hardcode_shlibpath_var=no
7135       ;;
7136
7137     freebsd1*)
7138       ld_shlibs=no
7139       ;;
7140
7141     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7142     # support.  Future versions do this automatically, but an explicit c++rt0.o
7143     # does not break anything, and helps significantly (at the cost of a little
7144     # extra space).
7145     freebsd2.2*)
7146       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7147       hardcode_libdir_flag_spec='-R$libdir'
7148       hardcode_direct=yes
7149       hardcode_shlibpath_var=no
7150       ;;
7151
7152     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7153     freebsd2*)
7154       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7155       hardcode_direct=yes
7156       hardcode_minus_L=yes
7157       hardcode_shlibpath_var=no
7158       ;;
7159
7160     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7161     freebsd* | kfreebsd*-gnu)
7162       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7163       hardcode_libdir_flag_spec='-R$libdir'
7164       hardcode_direct=yes
7165       hardcode_shlibpath_var=no
7166       ;;
7167
7168     hpux9*)
7169       if test "$GCC" = yes; then
7170         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'
7171       else
7172         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'
7173       fi
7174       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7175       hardcode_libdir_separator=:
7176       hardcode_direct=yes
7177
7178       # hardcode_minus_L: Not really in the search PATH,
7179       # but as the default location of the library.
7180       hardcode_minus_L=yes
7181       export_dynamic_flag_spec='${wl}-E'
7182       ;;
7183
7184     hpux10* | hpux11*)
7185       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7186         case "$host_cpu" in
7187         hppa*64*|ia64*)
7188           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7189           ;;
7190         *)
7191           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7192           ;;
7193         esac
7194       else
7195         case "$host_cpu" in
7196         hppa*64*|ia64*)
7197           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7198           ;;
7199         *)
7200           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7201           ;;
7202         esac
7203       fi
7204       if test "$with_gnu_ld" = no; then
7205         case "$host_cpu" in
7206         hppa*64*)
7207           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7208           hardcode_libdir_flag_spec_ld='+b $libdir'
7209           hardcode_libdir_separator=:
7210           hardcode_direct=no
7211           hardcode_shlibpath_var=no
7212           ;;
7213         ia64*)
7214           hardcode_libdir_flag_spec='-L$libdir'
7215           hardcode_direct=no
7216           hardcode_shlibpath_var=no
7217
7218           # hardcode_minus_L: Not really in the search PATH,
7219           # but as the default location of the library.
7220           hardcode_minus_L=yes
7221           ;;
7222         *)
7223           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7224           hardcode_libdir_separator=:
7225           hardcode_direct=yes
7226           export_dynamic_flag_spec='${wl}-E'
7227
7228           # hardcode_minus_L: Not really in the search PATH,
7229           # but as the default location of the library.
7230           hardcode_minus_L=yes
7231           ;;
7232         esac
7233       fi
7234       ;;
7235
7236     irix5* | irix6* | nonstopux*)
7237       if test "$GCC" = yes; then
7238         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'
7239       else
7240         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'
7241         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7242       fi
7243       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7244       hardcode_libdir_separator=:
7245       link_all_deplibs=yes
7246       ;;
7247
7248     netbsd*)
7249       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7250         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7251       else
7252         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7253       fi
7254       hardcode_libdir_flag_spec='-R$libdir'
7255       hardcode_direct=yes
7256       hardcode_shlibpath_var=no
7257       ;;
7258
7259     newsos6)
7260       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7261       hardcode_direct=yes
7262       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7263       hardcode_libdir_separator=:
7264       hardcode_shlibpath_var=no
7265       ;;
7266
7267     openbsd*)
7268       hardcode_direct=yes
7269       hardcode_shlibpath_var=no
7270       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7271         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7272         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7273         export_dynamic_flag_spec='${wl}-E'
7274       else
7275        case $host_os in
7276          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7277            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7278            hardcode_libdir_flag_spec='-R$libdir'
7279            ;;
7280          *)
7281            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7282            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7283            ;;
7284        esac
7285       fi
7286       ;;
7287
7288     os2*)
7289       hardcode_libdir_flag_spec='-L$libdir'
7290       hardcode_minus_L=yes
7291       allow_undefined_flag=unsupported
7292       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'
7293       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7294       ;;
7295
7296     osf3*)
7297       if test "$GCC" = yes; then
7298         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7299         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'
7300       else
7301         allow_undefined_flag=' -expect_unresolved \*'
7302         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'
7303       fi
7304       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7305       hardcode_libdir_separator=:
7306       ;;
7307
7308     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7309       if test "$GCC" = yes; then
7310         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7311         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'
7312         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7313       else
7314         allow_undefined_flag=' -expect_unresolved \*'
7315         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'
7316         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7317         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7318
7319         # Both c and cxx compiler support -rpath directly
7320         hardcode_libdir_flag_spec='-rpath $libdir'
7321       fi
7322       hardcode_libdir_separator=:
7323       ;;
7324
7325     sco3.2v5*)
7326       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7327       hardcode_shlibpath_var=no
7328       export_dynamic_flag_spec='${wl}-Bexport'
7329       runpath_var=LD_RUN_PATH
7330       hardcode_runpath_var=yes
7331       ;;
7332
7333     solaris*)
7334       no_undefined_flag=' -z text'
7335       if test "$GCC" = yes; then
7336         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7337         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7338           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7339       else
7340         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7341         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7342         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7343       fi
7344       hardcode_libdir_flag_spec='-R$libdir'
7345       hardcode_shlibpath_var=no
7346       case $host_os in
7347       solaris2.[0-5] | solaris2.[0-5].*) ;;
7348       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7349         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7350       esac
7351       link_all_deplibs=yes
7352       ;;
7353
7354     sunos4*)
7355       if test "x$host_vendor" = xsequent; then
7356         # Use $CC to link under sequent, because it throws in some extra .o
7357         # files that make .init and .fini sections work.
7358         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7359       else
7360         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7361       fi
7362       hardcode_libdir_flag_spec='-L$libdir'
7363       hardcode_direct=yes
7364       hardcode_minus_L=yes
7365       hardcode_shlibpath_var=no
7366       ;;
7367
7368     sysv4)
7369       case $host_vendor in
7370         sni)
7371           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7372           hardcode_direct=yes # is this really true???
7373         ;;
7374         siemens)
7375           ## LD is ld it makes a PLAMLIB
7376           ## CC just makes a GrossModule.
7377           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7378           reload_cmds='$CC -r -o $output$reload_objs'
7379           hardcode_direct=no
7380         ;;
7381         motorola)
7382           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7383           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7384         ;;
7385       esac
7386       runpath_var='LD_RUN_PATH'
7387       hardcode_shlibpath_var=no
7388       ;;
7389
7390     sysv4.3*)
7391       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7392       hardcode_shlibpath_var=no
7393       export_dynamic_flag_spec='-Bexport'
7394       ;;
7395
7396     sysv4*MP*)
7397       if test -d /usr/nec; then
7398         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7399         hardcode_shlibpath_var=no
7400         runpath_var=LD_RUN_PATH
7401         hardcode_runpath_var=yes
7402         ld_shlibs=yes
7403       fi
7404       ;;
7405
7406     sysv4.2uw2*)
7407       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7408       hardcode_direct=yes
7409       hardcode_minus_L=no
7410       hardcode_shlibpath_var=no
7411       hardcode_runpath_var=yes
7412       runpath_var=LD_RUN_PATH
7413       ;;
7414
7415    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7416       no_undefined_flag='${wl}-z ${wl}text'
7417       if test "$GCC" = yes; then
7418         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7419       else
7420         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7421       fi
7422       runpath_var='LD_RUN_PATH'
7423       hardcode_shlibpath_var=no
7424       ;;
7425
7426     sysv5*)
7427       no_undefined_flag=' -z text'
7428       # $CC -shared without GNU ld will not create a library from C++
7429       # object files and a static libstdc++, better avoid it by now
7430       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7431       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7432                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7433       hardcode_libdir_flag_spec=
7434       hardcode_shlibpath_var=no
7435       runpath_var='LD_RUN_PATH'
7436       ;;
7437
7438     uts4*)
7439       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7440       hardcode_libdir_flag_spec='-L$libdir'
7441       hardcode_shlibpath_var=no
7442       ;;
7443
7444     *)
7445       ld_shlibs=no
7446       ;;
7447     esac
7448   fi
7449
7450 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7451 echo "${ECHO_T}$ld_shlibs" >&6
7452 test "$ld_shlibs" = no && can_build_shared=no
7453
7454 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7455 if test "$GCC" = yes; then
7456   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7457 fi
7458
7459 #
7460 # Do we need to explicitly link libc?
7461 #
7462 case "x$archive_cmds_need_lc" in
7463 x|xyes)
7464   # Assume -lc should be added
7465   archive_cmds_need_lc=yes
7466
7467   if test "$enable_shared" = yes && test "$GCC" = yes; then
7468     case $archive_cmds in
7469     *'~'*)
7470       # FIXME: we may have to deal with multi-command sequences.
7471       ;;
7472     '$CC '*)
7473       # Test whether the compiler implicitly links with -lc since on some
7474       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7475       # to ld, don't add -lc before -lgcc.
7476       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7477 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7478       $rm conftest*
7479       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7480
7481       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7482   (eval $ac_compile) 2>&5
7483   ac_status=$?
7484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485   (exit $ac_status); } 2>conftest.err; then
7486         soname=conftest
7487         lib=conftest
7488         libobjs=conftest.$ac_objext
7489         deplibs=
7490         wl=$lt_prog_compiler_wl
7491         compiler_flags=-v
7492         linker_flags=-v
7493         verstring=
7494         output_objdir=.
7495         libname=conftest
7496         lt_save_allow_undefined_flag=$allow_undefined_flag
7497         allow_undefined_flag=
7498         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7499   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7500   ac_status=$?
7501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502   (exit $ac_status); }
7503         then
7504           archive_cmds_need_lc=no
7505         else
7506           archive_cmds_need_lc=yes
7507         fi
7508         allow_undefined_flag=$lt_save_allow_undefined_flag
7509       else
7510         cat conftest.err 1>&5
7511       fi
7512       $rm conftest*
7513       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7514 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7515       ;;
7516     esac
7517   fi
7518   ;;
7519 esac
7520
7521 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7522 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7523 library_names_spec=
7524 libname_spec='lib$name'
7525 soname_spec=
7526 shrext=".so"
7527 postinstall_cmds=
7528 postuninstall_cmds=
7529 finish_cmds=
7530 finish_eval=
7531 shlibpath_var=
7532 shlibpath_overrides_runpath=unknown
7533 version_type=none
7534 dynamic_linker="$host_os ld.so"
7535 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7536 if test "$GCC" = yes; then
7537   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7538   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7539     # if the path contains ";" then we assume it to be the separator
7540     # otherwise default to the standard path separator (i.e. ":") - it is
7541     # assumed that no part of a normal pathname contains ";" but that should
7542     # okay in the real world where ";" in dirpaths is itself problematic.
7543     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7544   else
7545     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7546   fi
7547 else
7548   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7549 fi
7550 need_lib_prefix=unknown
7551 hardcode_into_libs=no
7552
7553 # when you set need_version to no, make sure it does not cause -set_version
7554 # flags to be left without arguments
7555 need_version=unknown
7556
7557 case $host_os in
7558 aix3*)
7559   version_type=linux
7560   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7561   shlibpath_var=LIBPATH
7562
7563   # AIX 3 has no versioning support, so we append a major version to the name.
7564   soname_spec='${libname}${release}${shared_ext}$major'
7565   ;;
7566
7567 aix4* | aix5*)
7568   version_type=linux
7569   need_lib_prefix=no
7570   need_version=no
7571   hardcode_into_libs=yes
7572   if test "$host_cpu" = ia64; then
7573     # AIX 5 supports IA64
7574     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7575     shlibpath_var=LD_LIBRARY_PATH
7576   else
7577     # With GCC up to 2.95.x, collect2 would create an import file
7578     # for dependence libraries.  The import file would start with
7579     # the line `#! .'.  This would cause the generated library to
7580     # depend on `.', always an invalid library.  This was fixed in
7581     # development snapshots of GCC prior to 3.0.
7582     case $host_os in
7583       aix4 | aix4.[01] | aix4.[01].*)
7584       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7585            echo ' yes '
7586            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7587         :
7588       else
7589         can_build_shared=no
7590       fi
7591       ;;
7592     esac
7593     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7594     # soname into executable. Probably we can add versioning support to
7595     # collect2, so additional links can be useful in future.
7596     if test "$aix_use_runtimelinking" = yes; then
7597       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7598       # instead of lib<name>.a to let people know that these are not
7599       # typical AIX shared libraries.
7600       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7601     else
7602       # We preserve .a as extension for shared libraries through AIX4.2
7603       # and later when we are not doing run time linking.
7604       library_names_spec='${libname}${release}.a $libname.a'
7605       soname_spec='${libname}${release}${shared_ext}$major'
7606     fi
7607     shlibpath_var=LIBPATH
7608   fi
7609   ;;
7610
7611 amigaos*)
7612   library_names_spec='$libname.ixlibrary $libname.a'
7613   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7614   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'
7615   ;;
7616
7617 beos*)
7618   library_names_spec='${libname}${shared_ext}'
7619   dynamic_linker="$host_os ld.so"
7620   shlibpath_var=LIBRARY_PATH
7621   ;;
7622
7623 bsdi4*)
7624   version_type=linux
7625   need_version=no
7626   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7627   soname_spec='${libname}${release}${shared_ext}$major'
7628   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7629   shlibpath_var=LD_LIBRARY_PATH
7630   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7631   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7632   # the default ld.so.conf also contains /usr/contrib/lib and
7633   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7634   # libtool to hard-code these into programs
7635   ;;
7636
7637 cygwin* | mingw* | pw32*)
7638   version_type=windows
7639   shrext=".dll"
7640   need_version=no
7641   need_lib_prefix=no
7642
7643   case $GCC,$host_os in
7644   yes,cygwin* | yes,mingw* | yes,pw32*)
7645     library_names_spec='$libname.dll.a'
7646     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7647     postinstall_cmds='base_file=`basename \${file}`~
7648       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7649       dldir=$destdir/`dirname \$dlpath`~
7650       test -d \$dldir || mkdir -p \$dldir~
7651       $install_prog $dir/$dlname \$dldir/$dlname'
7652     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7653       dlpath=$dir/\$dldll~
7654        $rm \$dlpath'
7655     shlibpath_overrides_runpath=yes
7656
7657     case $host_os in
7658     cygwin*)
7659       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7660       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7661       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7662       ;;
7663     mingw*)
7664       # MinGW DLLs use traditional 'lib' prefix
7665       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7666       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7667       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7668         # It is most probably a Windows format PATH printed by
7669         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7670         # path with ; separators, and with drive letters. We can handle the
7671         # drive letters (cygwin fileutils understands them), so leave them,
7672         # especially as we might pass files found there to a mingw objdump,
7673         # which wouldn't understand a cygwinified path. Ahh.
7674         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7675       else
7676         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7677       fi
7678       ;;
7679     pw32*)
7680       # pw32 DLLs use 'pw' prefix rather than 'lib'
7681       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7682       ;;
7683     esac
7684     ;;
7685
7686   *)
7687     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7688     ;;
7689   esac
7690   dynamic_linker='Win32 ld.exe'
7691   # FIXME: first we should search . and the directory the executable is in
7692   shlibpath_var=PATH
7693   ;;
7694
7695 darwin* | rhapsody*)
7696   dynamic_linker="$host_os dyld"
7697   version_type=darwin
7698   need_lib_prefix=no
7699   need_version=no
7700   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7701   soname_spec='${libname}${release}${major}$shared_ext'
7702   shlibpath_overrides_runpath=yes
7703   shlibpath_var=DYLD_LIBRARY_PATH
7704   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7705   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7706   if test "$GCC" = yes; then
7707     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"`
7708   else
7709     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7710   fi
7711   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7712   ;;
7713
7714 dgux*)
7715   version_type=linux
7716   need_lib_prefix=no
7717   need_version=no
7718   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7719   soname_spec='${libname}${release}${shared_ext}$major'
7720   shlibpath_var=LD_LIBRARY_PATH
7721   ;;
7722
7723 freebsd1*)
7724   dynamic_linker=no
7725   ;;
7726
7727 kfreebsd*-gnu)
7728   version_type=linux
7729   need_lib_prefix=no
7730   need_version=no
7731   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7732   soname_spec='${libname}${release}${shared_ext}$major'
7733   shlibpath_var=LD_LIBRARY_PATH
7734   shlibpath_overrides_runpath=no
7735   hardcode_into_libs=yes
7736   dynamic_linker='GNU ld.so'
7737   ;;
7738
7739 freebsd*)
7740   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7741   version_type=freebsd-$objformat
7742   case $version_type in
7743     freebsd-elf*)
7744       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7745       need_version=no
7746       need_lib_prefix=no
7747       ;;
7748     freebsd-*)
7749       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7750       need_version=yes
7751       ;;
7752   esac
7753   shlibpath_var=LD_LIBRARY_PATH
7754   case $host_os in
7755   freebsd2*)
7756     shlibpath_overrides_runpath=yes
7757     ;;
7758   freebsd3.01* | freebsdelf3.01*)
7759     shlibpath_overrides_runpath=yes
7760     hardcode_into_libs=yes
7761     ;;
7762   *) # from 3.2 on
7763     shlibpath_overrides_runpath=no
7764     hardcode_into_libs=yes
7765     ;;
7766   esac
7767   ;;
7768
7769 gnu*)
7770   version_type=linux
7771   need_lib_prefix=no
7772   need_version=no
7773   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7774   soname_spec='${libname}${release}${shared_ext}$major'
7775   shlibpath_var=LD_LIBRARY_PATH
7776   hardcode_into_libs=yes
7777   ;;
7778
7779 hpux9* | hpux10* | hpux11*)
7780   # Give a soname corresponding to the major version so that dld.sl refuses to
7781   # link against other versions.
7782   version_type=sunos
7783   need_lib_prefix=no
7784   need_version=no
7785   case "$host_cpu" in
7786   ia64*)
7787     shrext='.so'
7788     hardcode_into_libs=yes
7789     dynamic_linker="$host_os dld.so"
7790     shlibpath_var=LD_LIBRARY_PATH
7791     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7792     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7793     soname_spec='${libname}${release}${shared_ext}$major'
7794     if test "X$HPUX_IA64_MODE" = X32; then
7795       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7796     else
7797       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7798     fi
7799     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7800     ;;
7801    hppa*64*)
7802      shrext='.sl'
7803      hardcode_into_libs=yes
7804      dynamic_linker="$host_os dld.sl"
7805      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7806      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7807      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7808      soname_spec='${libname}${release}${shared_ext}$major'
7809      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7810      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7811      ;;
7812    *)
7813     shrext='.sl'
7814     dynamic_linker="$host_os dld.sl"
7815     shlibpath_var=SHLIB_PATH
7816     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7817     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7818     soname_spec='${libname}${release}${shared_ext}$major'
7819     ;;
7820   esac
7821   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7822   postinstall_cmds='chmod 555 $lib'
7823   ;;
7824
7825 irix5* | irix6* | nonstopux*)
7826   case $host_os in
7827     nonstopux*) version_type=nonstopux ;;
7828     *)
7829         if test "$lt_cv_prog_gnu_ld" = yes; then
7830                 version_type=linux
7831         else
7832                 version_type=irix
7833         fi ;;
7834   esac
7835   need_lib_prefix=no
7836   need_version=no
7837   soname_spec='${libname}${release}${shared_ext}$major'
7838   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7839   case $host_os in
7840   irix5* | nonstopux*)
7841     libsuff= shlibsuff=
7842     ;;
7843   *)
7844     case $LD in # libtool.m4 will add one of these switches to LD
7845     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7846       libsuff= shlibsuff= libmagic=32-bit;;
7847     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7848       libsuff=32 shlibsuff=N32 libmagic=N32;;
7849     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7850       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7851     *) libsuff= shlibsuff= libmagic=never-match;;
7852     esac
7853     ;;
7854   esac
7855   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7856   shlibpath_overrides_runpath=no
7857   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7858   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7859   hardcode_into_libs=yes
7860   ;;
7861
7862 # No shared lib support for Linux oldld, aout, or coff.
7863 linux*oldld* | linux*aout* | linux*coff*)
7864   dynamic_linker=no
7865   ;;
7866
7867 # This must be Linux ELF.
7868 linux*)
7869   version_type=linux
7870   need_lib_prefix=no
7871   need_version=no
7872   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7873   soname_spec='${libname}${release}${shared_ext}$major'
7874   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7875   shlibpath_var=LD_LIBRARY_PATH
7876   shlibpath_overrides_runpath=no
7877   # This implies no fast_install, which is unacceptable.
7878   # Some rework will be needed to allow for fast_install
7879   # before this can be enabled.
7880   hardcode_into_libs=yes
7881
7882   # Append ld.so.conf contents to the search path
7883   if test -f /etc/ld.so.conf; then
7884     ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
7885     sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
7886   fi
7887
7888   # We used to test for /lib/ld.so.1 and disable shared libraries on
7889   # powerpc, because MkLinux only supported shared libraries with the
7890   # GNU dynamic linker.  Since this was broken with cross compilers,
7891   # most powerpc-linux boxes support dynamic linking these days and
7892   # people can always --disable-shared, the test was removed, and we
7893   # assume the GNU/Linux dynamic linker is in use.
7894   dynamic_linker='GNU/Linux ld.so'
7895   ;;
7896
7897 knetbsd*-gnu)
7898   version_type=linux
7899   need_lib_prefix=no
7900   need_version=no
7901   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7902   soname_spec='${libname}${release}${shared_ext}$major'
7903   shlibpath_var=LD_LIBRARY_PATH
7904   shlibpath_overrides_runpath=no
7905   hardcode_into_libs=yes
7906   dynamic_linker='GNU ld.so'
7907   ;;
7908
7909 netbsd*)
7910   version_type=sunos
7911   need_lib_prefix=no
7912   need_version=no
7913   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7914     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7915     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7916     dynamic_linker='NetBSD (a.out) ld.so'
7917   else
7918     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7919     soname_spec='${libname}${release}${shared_ext}$major'
7920     dynamic_linker='NetBSD ld.elf_so'
7921   fi
7922   shlibpath_var=LD_LIBRARY_PATH
7923   shlibpath_overrides_runpath=yes
7924   hardcode_into_libs=yes
7925   ;;
7926
7927 newsos6)
7928   version_type=linux
7929   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7930   shlibpath_var=LD_LIBRARY_PATH
7931   shlibpath_overrides_runpath=yes
7932   ;;
7933
7934 nto-qnx*)
7935   version_type=linux
7936   need_lib_prefix=no
7937   need_version=no
7938   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7939   soname_spec='${libname}${release}${shared_ext}$major'
7940   shlibpath_var=LD_LIBRARY_PATH
7941   shlibpath_overrides_runpath=yes
7942   ;;
7943
7944 openbsd*)
7945   version_type=sunos
7946   need_lib_prefix=no
7947   need_version=yes
7948   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7949   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7950   shlibpath_var=LD_LIBRARY_PATH
7951   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7952     case $host_os in
7953       openbsd2.[89] | openbsd2.[89].*)
7954         shlibpath_overrides_runpath=no
7955         ;;
7956       *)
7957         shlibpath_overrides_runpath=yes
7958         ;;
7959       esac
7960   else
7961     shlibpath_overrides_runpath=yes
7962   fi
7963   ;;
7964
7965 os2*)
7966   libname_spec='$name'
7967   shrext=".dll"
7968   need_lib_prefix=no
7969   library_names_spec='$libname${shared_ext} $libname.a'
7970   dynamic_linker='OS/2 ld.exe'
7971   shlibpath_var=LIBPATH
7972   ;;
7973
7974 osf3* | osf4* | osf5*)
7975   version_type=osf
7976   need_lib_prefix=no
7977   need_version=no
7978   soname_spec='${libname}${release}${shared_ext}$major'
7979   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7980   shlibpath_var=LD_LIBRARY_PATH
7981   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7982   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7983   ;;
7984
7985 sco3.2v5*)
7986   version_type=osf
7987   soname_spec='${libname}${release}${shared_ext}$major'
7988   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7989   shlibpath_var=LD_LIBRARY_PATH
7990   ;;
7991
7992 solaris*)
7993   version_type=linux
7994   need_lib_prefix=no
7995   need_version=no
7996   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7997   soname_spec='${libname}${release}${shared_ext}$major'
7998   shlibpath_var=LD_LIBRARY_PATH
7999   shlibpath_overrides_runpath=yes
8000   hardcode_into_libs=yes
8001   # ldd complains unless libraries are executable
8002   postinstall_cmds='chmod +x $lib'
8003   ;;
8004
8005 sunos4*)
8006   version_type=sunos
8007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8008   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8009   shlibpath_var=LD_LIBRARY_PATH
8010   shlibpath_overrides_runpath=yes
8011   if test "$with_gnu_ld" = yes; then
8012     need_lib_prefix=no
8013   fi
8014   need_version=yes
8015   ;;
8016
8017 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8018   version_type=linux
8019   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8020   soname_spec='${libname}${release}${shared_ext}$major'
8021   shlibpath_var=LD_LIBRARY_PATH
8022   case $host_vendor in
8023     sni)
8024       shlibpath_overrides_runpath=no
8025       need_lib_prefix=no
8026       export_dynamic_flag_spec='${wl}-Blargedynsym'
8027       runpath_var=LD_RUN_PATH
8028       ;;
8029     siemens)
8030       need_lib_prefix=no
8031       ;;
8032     motorola)
8033       need_lib_prefix=no
8034       need_version=no
8035       shlibpath_overrides_runpath=no
8036       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8037       ;;
8038   esac
8039   ;;
8040
8041 sysv4*MP*)
8042   if test -d /usr/nec ;then
8043     version_type=linux
8044     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8045     soname_spec='$libname${shared_ext}.$major'
8046     shlibpath_var=LD_LIBRARY_PATH
8047   fi
8048   ;;
8049
8050 uts4*)
8051   version_type=linux
8052   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8053   soname_spec='${libname}${release}${shared_ext}$major'
8054   shlibpath_var=LD_LIBRARY_PATH
8055   ;;
8056
8057 *)
8058   dynamic_linker=no
8059   ;;
8060 esac
8061 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8062 echo "${ECHO_T}$dynamic_linker" >&6
8063 test "$dynamic_linker" = no && can_build_shared=no
8064
8065 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8066 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8067 hardcode_action=
8068 if test -n "$hardcode_libdir_flag_spec" || \
8069    test -n "$runpath_var " || \
8070    test "X$hardcode_automatic"="Xyes" ; then
8071
8072   # We can hardcode non-existant directories.
8073   if test "$hardcode_direct" != no &&
8074      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8075      # have to relink, otherwise we might link with an installed library
8076      # when we should be linking with a yet-to-be-installed one
8077      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8078      test "$hardcode_minus_L" != no; then
8079     # Linking always hardcodes the temporary library directory.
8080     hardcode_action=relink
8081   else
8082     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8083     hardcode_action=immediate
8084   fi
8085 else
8086   # We cannot hardcode anything, or else we can only hardcode existing
8087   # directories.
8088   hardcode_action=unsupported
8089 fi
8090 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8091 echo "${ECHO_T}$hardcode_action" >&6
8092
8093 if test "$hardcode_action" = relink; then
8094   # Fast installation is not supported
8095   enable_fast_install=no
8096 elif test "$shlibpath_overrides_runpath" = yes ||
8097      test "$enable_shared" = no; then
8098   # Fast installation is not necessary
8099   enable_fast_install=needless
8100 fi
8101
8102 striplib=
8103 old_striplib=
8104 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8105 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8106 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8107   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8108   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8109   echo "$as_me:$LINENO: result: yes" >&5
8110 echo "${ECHO_T}yes" >&6
8111 else
8112 # FIXME - insert some real tests, host_os isn't really good enough
8113   case $host_os in
8114    darwin*)
8115        if test -n "$STRIP" ; then
8116          striplib="$STRIP -x"
8117          echo "$as_me:$LINENO: result: yes" >&5
8118 echo "${ECHO_T}yes" >&6
8119        else
8120   echo "$as_me:$LINENO: result: no" >&5
8121 echo "${ECHO_T}no" >&6
8122 fi
8123        ;;
8124    *)
8125   echo "$as_me:$LINENO: result: no" >&5
8126 echo "${ECHO_T}no" >&6
8127     ;;
8128   esac
8129 fi
8130
8131 if test "x$enable_dlopen" != xyes; then
8132   enable_dlopen=unknown
8133   enable_dlopen_self=unknown
8134   enable_dlopen_self_static=unknown
8135 else
8136   lt_cv_dlopen=no
8137   lt_cv_dlopen_libs=
8138
8139   case $host_os in
8140   beos*)
8141     lt_cv_dlopen="load_add_on"
8142     lt_cv_dlopen_libs=
8143     lt_cv_dlopen_self=yes
8144     ;;
8145
8146   mingw* | pw32*)
8147     lt_cv_dlopen="LoadLibrary"
8148     lt_cv_dlopen_libs=
8149    ;;
8150
8151   cygwin*)
8152     lt_cv_dlopen="dlopen"
8153     lt_cv_dlopen_libs=
8154    ;;
8155
8156   darwin*)
8157   # if libdl is installed we need to link against it
8158     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8159 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8160 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8161   echo $ECHO_N "(cached) $ECHO_C" >&6
8162 else
8163   ac_check_lib_save_LIBS=$LIBS
8164 LIBS="-ldl  $LIBS"
8165 cat >conftest.$ac_ext <<_ACEOF
8166 /* confdefs.h.  */
8167 _ACEOF
8168 cat confdefs.h >>conftest.$ac_ext
8169 cat >>conftest.$ac_ext <<_ACEOF
8170 /* end confdefs.h.  */
8171
8172 /* Override any gcc2 internal prototype to avoid an error.  */
8173 #ifdef __cplusplus
8174 extern "C"
8175 #endif
8176 /* We use char because int might match the return type of a gcc2
8177    builtin and then its argument prototype would still apply.  */
8178 char dlopen ();
8179 int
8180 main ()
8181 {
8182 dlopen ();
8183   ;
8184   return 0;
8185 }
8186 _ACEOF
8187 rm -f conftest.$ac_objext conftest$ac_exeext
8188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8189   (eval $ac_link) 2>conftest.er1
8190   ac_status=$?
8191   grep -v '^ *+' conftest.er1 >conftest.err
8192   rm -f conftest.er1
8193   cat conftest.err >&5
8194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195   (exit $ac_status); } &&
8196          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8198   (eval $ac_try) 2>&5
8199   ac_status=$?
8200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201   (exit $ac_status); }; } &&
8202          { ac_try='test -s conftest$ac_exeext'
8203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8204   (eval $ac_try) 2>&5
8205   ac_status=$?
8206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207   (exit $ac_status); }; }; then
8208   ac_cv_lib_dl_dlopen=yes
8209 else
8210   echo "$as_me: failed program was:" >&5
8211 sed 's/^/| /' conftest.$ac_ext >&5
8212
8213 ac_cv_lib_dl_dlopen=no
8214 fi
8215 rm -f conftest.err conftest.$ac_objext \
8216       conftest$ac_exeext conftest.$ac_ext
8217 LIBS=$ac_check_lib_save_LIBS
8218 fi
8219 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8220 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8221 if test $ac_cv_lib_dl_dlopen = yes; then
8222   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8223 else
8224
8225     lt_cv_dlopen="dyld"
8226     lt_cv_dlopen_libs=
8227     lt_cv_dlopen_self=yes
8228
8229 fi
8230
8231    ;;
8232
8233   *)
8234     echo "$as_me:$LINENO: checking for shl_load" >&5
8235 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8236 if test "${ac_cv_func_shl_load+set}" = set; then
8237   echo $ECHO_N "(cached) $ECHO_C" >&6
8238 else
8239   cat >conftest.$ac_ext <<_ACEOF
8240 /* confdefs.h.  */
8241 _ACEOF
8242 cat confdefs.h >>conftest.$ac_ext
8243 cat >>conftest.$ac_ext <<_ACEOF
8244 /* end confdefs.h.  */
8245 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8246    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8247 #define shl_load innocuous_shl_load
8248
8249 /* System header to define __stub macros and hopefully few prototypes,
8250     which can conflict with char shl_load (); below.
8251     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8252     <limits.h> exists even on freestanding compilers.  */
8253
8254 #ifdef __STDC__
8255 # include <limits.h>
8256 #else
8257 # include <assert.h>
8258 #endif
8259
8260 #undef shl_load
8261
8262 /* Override any gcc2 internal prototype to avoid an error.  */
8263 #ifdef __cplusplus
8264 extern "C"
8265 {
8266 #endif
8267 /* We use char because int might match the return type of a gcc2
8268    builtin and then its argument prototype would still apply.  */
8269 char shl_load ();
8270 /* The GNU C library defines this for functions which it implements
8271     to always fail with ENOSYS.  Some functions are actually named
8272     something starting with __ and the normal name is an alias.  */
8273 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8274 choke me
8275 #else
8276 char (*f) () = shl_load;
8277 #endif
8278 #ifdef __cplusplus
8279 }
8280 #endif
8281
8282 int
8283 main ()
8284 {
8285 return f != shl_load;
8286   ;
8287   return 0;
8288 }
8289 _ACEOF
8290 rm -f conftest.$ac_objext conftest$ac_exeext
8291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8292   (eval $ac_link) 2>conftest.er1
8293   ac_status=$?
8294   grep -v '^ *+' conftest.er1 >conftest.err
8295   rm -f conftest.er1
8296   cat conftest.err >&5
8297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298   (exit $ac_status); } &&
8299          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8301   (eval $ac_try) 2>&5
8302   ac_status=$?
8303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304   (exit $ac_status); }; } &&
8305          { ac_try='test -s conftest$ac_exeext'
8306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8307   (eval $ac_try) 2>&5
8308   ac_status=$?
8309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310   (exit $ac_status); }; }; then
8311   ac_cv_func_shl_load=yes
8312 else
8313   echo "$as_me: failed program was:" >&5
8314 sed 's/^/| /' conftest.$ac_ext >&5
8315
8316 ac_cv_func_shl_load=no
8317 fi
8318 rm -f conftest.err conftest.$ac_objext \
8319       conftest$ac_exeext conftest.$ac_ext
8320 fi
8321 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8322 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8323 if test $ac_cv_func_shl_load = yes; then
8324   lt_cv_dlopen="shl_load"
8325 else
8326   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8327 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8328 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8329   echo $ECHO_N "(cached) $ECHO_C" >&6
8330 else
8331   ac_check_lib_save_LIBS=$LIBS
8332 LIBS="-ldld  $LIBS"
8333 cat >conftest.$ac_ext <<_ACEOF
8334 /* confdefs.h.  */
8335 _ACEOF
8336 cat confdefs.h >>conftest.$ac_ext
8337 cat >>conftest.$ac_ext <<_ACEOF
8338 /* end confdefs.h.  */
8339
8340 /* Override any gcc2 internal prototype to avoid an error.  */
8341 #ifdef __cplusplus
8342 extern "C"
8343 #endif
8344 /* We use char because int might match the return type of a gcc2
8345    builtin and then its argument prototype would still apply.  */
8346 char shl_load ();
8347 int
8348 main ()
8349 {
8350 shl_load ();
8351   ;
8352   return 0;
8353 }
8354 _ACEOF
8355 rm -f conftest.$ac_objext conftest$ac_exeext
8356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8357   (eval $ac_link) 2>conftest.er1
8358   ac_status=$?
8359   grep -v '^ *+' conftest.er1 >conftest.err
8360   rm -f conftest.er1
8361   cat conftest.err >&5
8362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363   (exit $ac_status); } &&
8364          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8366   (eval $ac_try) 2>&5
8367   ac_status=$?
8368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369   (exit $ac_status); }; } &&
8370          { ac_try='test -s conftest$ac_exeext'
8371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8372   (eval $ac_try) 2>&5
8373   ac_status=$?
8374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375   (exit $ac_status); }; }; then
8376   ac_cv_lib_dld_shl_load=yes
8377 else
8378   echo "$as_me: failed program was:" >&5
8379 sed 's/^/| /' conftest.$ac_ext >&5
8380
8381 ac_cv_lib_dld_shl_load=no
8382 fi
8383 rm -f conftest.err conftest.$ac_objext \
8384       conftest$ac_exeext conftest.$ac_ext
8385 LIBS=$ac_check_lib_save_LIBS
8386 fi
8387 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8388 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8389 if test $ac_cv_lib_dld_shl_load = yes; then
8390   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8391 else
8392   echo "$as_me:$LINENO: checking for dlopen" >&5
8393 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8394 if test "${ac_cv_func_dlopen+set}" = set; then
8395   echo $ECHO_N "(cached) $ECHO_C" >&6
8396 else
8397   cat >conftest.$ac_ext <<_ACEOF
8398 /* confdefs.h.  */
8399 _ACEOF
8400 cat confdefs.h >>conftest.$ac_ext
8401 cat >>conftest.$ac_ext <<_ACEOF
8402 /* end confdefs.h.  */
8403 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8404    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8405 #define dlopen innocuous_dlopen
8406
8407 /* System header to define __stub macros and hopefully few prototypes,
8408     which can conflict with char dlopen (); below.
8409     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8410     <limits.h> exists even on freestanding compilers.  */
8411
8412 #ifdef __STDC__
8413 # include <limits.h>
8414 #else
8415 # include <assert.h>
8416 #endif
8417
8418 #undef dlopen
8419
8420 /* Override any gcc2 internal prototype to avoid an error.  */
8421 #ifdef __cplusplus
8422 extern "C"
8423 {
8424 #endif
8425 /* We use char because int might match the return type of a gcc2
8426    builtin and then its argument prototype would still apply.  */
8427 char dlopen ();
8428 /* The GNU C library defines this for functions which it implements
8429     to always fail with ENOSYS.  Some functions are actually named
8430     something starting with __ and the normal name is an alias.  */
8431 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8432 choke me
8433 #else
8434 char (*f) () = dlopen;
8435 #endif
8436 #ifdef __cplusplus
8437 }
8438 #endif
8439
8440 int
8441 main ()
8442 {
8443 return f != dlopen;
8444   ;
8445   return 0;
8446 }
8447 _ACEOF
8448 rm -f conftest.$ac_objext conftest$ac_exeext
8449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8450   (eval $ac_link) 2>conftest.er1
8451   ac_status=$?
8452   grep -v '^ *+' conftest.er1 >conftest.err
8453   rm -f conftest.er1
8454   cat conftest.err >&5
8455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456   (exit $ac_status); } &&
8457          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8459   (eval $ac_try) 2>&5
8460   ac_status=$?
8461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462   (exit $ac_status); }; } &&
8463          { ac_try='test -s conftest$ac_exeext'
8464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8465   (eval $ac_try) 2>&5
8466   ac_status=$?
8467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468   (exit $ac_status); }; }; then
8469   ac_cv_func_dlopen=yes
8470 else
8471   echo "$as_me: failed program was:" >&5
8472 sed 's/^/| /' conftest.$ac_ext >&5
8473
8474 ac_cv_func_dlopen=no
8475 fi
8476 rm -f conftest.err conftest.$ac_objext \
8477       conftest$ac_exeext conftest.$ac_ext
8478 fi
8479 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8480 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8481 if test $ac_cv_func_dlopen = yes; then
8482   lt_cv_dlopen="dlopen"
8483 else
8484   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8485 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8486 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8487   echo $ECHO_N "(cached) $ECHO_C" >&6
8488 else
8489   ac_check_lib_save_LIBS=$LIBS
8490 LIBS="-ldl  $LIBS"
8491 cat >conftest.$ac_ext <<_ACEOF
8492 /* confdefs.h.  */
8493 _ACEOF
8494 cat confdefs.h >>conftest.$ac_ext
8495 cat >>conftest.$ac_ext <<_ACEOF
8496 /* end confdefs.h.  */
8497
8498 /* Override any gcc2 internal prototype to avoid an error.  */
8499 #ifdef __cplusplus
8500 extern "C"
8501 #endif
8502 /* We use char because int might match the return type of a gcc2
8503    builtin and then its argument prototype would still apply.  */
8504 char dlopen ();
8505 int
8506 main ()
8507 {
8508 dlopen ();
8509   ;
8510   return 0;
8511 }
8512 _ACEOF
8513 rm -f conftest.$ac_objext conftest$ac_exeext
8514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8515   (eval $ac_link) 2>conftest.er1
8516   ac_status=$?
8517   grep -v '^ *+' conftest.er1 >conftest.err
8518   rm -f conftest.er1
8519   cat conftest.err >&5
8520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521   (exit $ac_status); } &&
8522          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8524   (eval $ac_try) 2>&5
8525   ac_status=$?
8526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527   (exit $ac_status); }; } &&
8528          { ac_try='test -s conftest$ac_exeext'
8529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8530   (eval $ac_try) 2>&5
8531   ac_status=$?
8532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533   (exit $ac_status); }; }; then
8534   ac_cv_lib_dl_dlopen=yes
8535 else
8536   echo "$as_me: failed program was:" >&5
8537 sed 's/^/| /' conftest.$ac_ext >&5
8538
8539 ac_cv_lib_dl_dlopen=no
8540 fi
8541 rm -f conftest.err conftest.$ac_objext \
8542       conftest$ac_exeext conftest.$ac_ext
8543 LIBS=$ac_check_lib_save_LIBS
8544 fi
8545 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8546 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8547 if test $ac_cv_lib_dl_dlopen = yes; then
8548   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8549 else
8550   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8551 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8552 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8553   echo $ECHO_N "(cached) $ECHO_C" >&6
8554 else
8555   ac_check_lib_save_LIBS=$LIBS
8556 LIBS="-lsvld  $LIBS"
8557 cat >conftest.$ac_ext <<_ACEOF
8558 /* confdefs.h.  */
8559 _ACEOF
8560 cat confdefs.h >>conftest.$ac_ext
8561 cat >>conftest.$ac_ext <<_ACEOF
8562 /* end confdefs.h.  */
8563
8564 /* Override any gcc2 internal prototype to avoid an error.  */
8565 #ifdef __cplusplus
8566 extern "C"
8567 #endif
8568 /* We use char because int might match the return type of a gcc2
8569    builtin and then its argument prototype would still apply.  */
8570 char dlopen ();
8571 int
8572 main ()
8573 {
8574 dlopen ();
8575   ;
8576   return 0;
8577 }
8578 _ACEOF
8579 rm -f conftest.$ac_objext conftest$ac_exeext
8580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8581   (eval $ac_link) 2>conftest.er1
8582   ac_status=$?
8583   grep -v '^ *+' conftest.er1 >conftest.err
8584   rm -f conftest.er1
8585   cat conftest.err >&5
8586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587   (exit $ac_status); } &&
8588          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8590   (eval $ac_try) 2>&5
8591   ac_status=$?
8592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593   (exit $ac_status); }; } &&
8594          { ac_try='test -s conftest$ac_exeext'
8595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8596   (eval $ac_try) 2>&5
8597   ac_status=$?
8598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599   (exit $ac_status); }; }; then
8600   ac_cv_lib_svld_dlopen=yes
8601 else
8602   echo "$as_me: failed program was:" >&5
8603 sed 's/^/| /' conftest.$ac_ext >&5
8604
8605 ac_cv_lib_svld_dlopen=no
8606 fi
8607 rm -f conftest.err conftest.$ac_objext \
8608       conftest$ac_exeext conftest.$ac_ext
8609 LIBS=$ac_check_lib_save_LIBS
8610 fi
8611 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8612 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8613 if test $ac_cv_lib_svld_dlopen = yes; then
8614   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8615 else
8616   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8617 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8618 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8619   echo $ECHO_N "(cached) $ECHO_C" >&6
8620 else
8621   ac_check_lib_save_LIBS=$LIBS
8622 LIBS="-ldld  $LIBS"
8623 cat >conftest.$ac_ext <<_ACEOF
8624 /* confdefs.h.  */
8625 _ACEOF
8626 cat confdefs.h >>conftest.$ac_ext
8627 cat >>conftest.$ac_ext <<_ACEOF
8628 /* end confdefs.h.  */
8629
8630 /* Override any gcc2 internal prototype to avoid an error.  */
8631 #ifdef __cplusplus
8632 extern "C"
8633 #endif
8634 /* We use char because int might match the return type of a gcc2
8635    builtin and then its argument prototype would still apply.  */
8636 char dld_link ();
8637 int
8638 main ()
8639 {
8640 dld_link ();
8641   ;
8642   return 0;
8643 }
8644 _ACEOF
8645 rm -f conftest.$ac_objext conftest$ac_exeext
8646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8647   (eval $ac_link) 2>conftest.er1
8648   ac_status=$?
8649   grep -v '^ *+' conftest.er1 >conftest.err
8650   rm -f conftest.er1
8651   cat conftest.err >&5
8652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653   (exit $ac_status); } &&
8654          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8656   (eval $ac_try) 2>&5
8657   ac_status=$?
8658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659   (exit $ac_status); }; } &&
8660          { ac_try='test -s conftest$ac_exeext'
8661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8662   (eval $ac_try) 2>&5
8663   ac_status=$?
8664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665   (exit $ac_status); }; }; then
8666   ac_cv_lib_dld_dld_link=yes
8667 else
8668   echo "$as_me: failed program was:" >&5
8669 sed 's/^/| /' conftest.$ac_ext >&5
8670
8671 ac_cv_lib_dld_dld_link=no
8672 fi
8673 rm -f conftest.err conftest.$ac_objext \
8674       conftest$ac_exeext conftest.$ac_ext
8675 LIBS=$ac_check_lib_save_LIBS
8676 fi
8677 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8678 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8679 if test $ac_cv_lib_dld_dld_link = yes; then
8680   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8681 fi
8682
8683
8684 fi
8685
8686
8687 fi
8688
8689
8690 fi
8691
8692
8693 fi
8694
8695
8696 fi
8697
8698     ;;
8699   esac
8700
8701   if test "x$lt_cv_dlopen" != xno; then
8702     enable_dlopen=yes
8703   else
8704     enable_dlopen=no
8705   fi
8706
8707   case $lt_cv_dlopen in
8708   dlopen)
8709     save_CPPFLAGS="$CPPFLAGS"
8710     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8711
8712     save_LDFLAGS="$LDFLAGS"
8713     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8714
8715     save_LIBS="$LIBS"
8716     LIBS="$lt_cv_dlopen_libs $LIBS"
8717
8718     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8719 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8720 if test "${lt_cv_dlopen_self+set}" = set; then
8721   echo $ECHO_N "(cached) $ECHO_C" >&6
8722 else
8723           if test "$cross_compiling" = yes; then :
8724   lt_cv_dlopen_self=cross
8725 else
8726   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8727   lt_status=$lt_dlunknown
8728   cat > conftest.$ac_ext <<EOF
8729 #line 8729 "configure"
8730 #include "confdefs.h"
8731
8732 #if HAVE_DLFCN_H
8733 #include <dlfcn.h>
8734 #endif
8735
8736 #include <stdio.h>
8737
8738 #ifdef RTLD_GLOBAL
8739 #  define LT_DLGLOBAL           RTLD_GLOBAL
8740 #else
8741 #  ifdef DL_GLOBAL
8742 #    define LT_DLGLOBAL         DL_GLOBAL
8743 #  else
8744 #    define LT_DLGLOBAL         0
8745 #  endif
8746 #endif
8747
8748 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8749    find out it does not work in some platform. */
8750 #ifndef LT_DLLAZY_OR_NOW
8751 #  ifdef RTLD_LAZY
8752 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8753 #  else
8754 #    ifdef DL_LAZY
8755 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8756 #    else
8757 #      ifdef RTLD_NOW
8758 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8759 #      else
8760 #        ifdef DL_NOW
8761 #          define LT_DLLAZY_OR_NOW      DL_NOW
8762 #        else
8763 #          define LT_DLLAZY_OR_NOW      0
8764 #        endif
8765 #      endif
8766 #    endif
8767 #  endif
8768 #endif
8769
8770 #ifdef __cplusplus
8771 extern "C" void exit (int);
8772 #endif
8773
8774 void fnord() { int i=42;}
8775 int main ()
8776 {
8777   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8778   int status = $lt_dlunknown;
8779
8780   if (self)
8781     {
8782       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8783       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8784       /* dlclose (self); */
8785     }
8786
8787     exit (status);
8788 }
8789 EOF
8790   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8791   (eval $ac_link) 2>&5
8792   ac_status=$?
8793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8795     (./conftest; exit; ) 2>/dev/null
8796     lt_status=$?
8797     case x$lt_status in
8798       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8799       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8800       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8801     esac
8802   else :
8803     # compilation failed
8804     lt_cv_dlopen_self=no
8805   fi
8806 fi
8807 rm -fr conftest*
8808
8809
8810 fi
8811 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8812 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8813
8814     if test "x$lt_cv_dlopen_self" = xyes; then
8815       LDFLAGS="$LDFLAGS $link_static_flag"
8816       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8817 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8818 if test "${lt_cv_dlopen_self_static+set}" = set; then
8819   echo $ECHO_N "(cached) $ECHO_C" >&6
8820 else
8821           if test "$cross_compiling" = yes; then :
8822   lt_cv_dlopen_self_static=cross
8823 else
8824   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8825   lt_status=$lt_dlunknown
8826   cat > conftest.$ac_ext <<EOF
8827 #line 8827 "configure"
8828 #include "confdefs.h"
8829
8830 #if HAVE_DLFCN_H
8831 #include <dlfcn.h>
8832 #endif
8833
8834 #include <stdio.h>
8835
8836 #ifdef RTLD_GLOBAL
8837 #  define LT_DLGLOBAL           RTLD_GLOBAL
8838 #else
8839 #  ifdef DL_GLOBAL
8840 #    define LT_DLGLOBAL         DL_GLOBAL
8841 #  else
8842 #    define LT_DLGLOBAL         0
8843 #  endif
8844 #endif
8845
8846 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8847    find out it does not work in some platform. */
8848 #ifndef LT_DLLAZY_OR_NOW
8849 #  ifdef RTLD_LAZY
8850 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8851 #  else
8852 #    ifdef DL_LAZY
8853 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8854 #    else
8855 #      ifdef RTLD_NOW
8856 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8857 #      else
8858 #        ifdef DL_NOW
8859 #          define LT_DLLAZY_OR_NOW      DL_NOW
8860 #        else
8861 #          define LT_DLLAZY_OR_NOW      0
8862 #        endif
8863 #      endif
8864 #    endif
8865 #  endif
8866 #endif
8867
8868 #ifdef __cplusplus
8869 extern "C" void exit (int);
8870 #endif
8871
8872 void fnord() { int i=42;}
8873 int main ()
8874 {
8875   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8876   int status = $lt_dlunknown;
8877
8878   if (self)
8879     {
8880       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8881       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8882       /* dlclose (self); */
8883     }
8884
8885     exit (status);
8886 }
8887 EOF
8888   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8889   (eval $ac_link) 2>&5
8890   ac_status=$?
8891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8893     (./conftest; exit; ) 2>/dev/null
8894     lt_status=$?
8895     case x$lt_status in
8896       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8897       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8898       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8899     esac
8900   else :
8901     # compilation failed
8902     lt_cv_dlopen_self_static=no
8903   fi
8904 fi
8905 rm -fr conftest*
8906
8907
8908 fi
8909 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8910 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8911     fi
8912
8913     CPPFLAGS="$save_CPPFLAGS"
8914     LDFLAGS="$save_LDFLAGS"
8915     LIBS="$save_LIBS"
8916     ;;
8917   esac
8918
8919   case $lt_cv_dlopen_self in
8920   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8921   *) enable_dlopen_self=unknown ;;
8922   esac
8923
8924   case $lt_cv_dlopen_self_static in
8925   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8926   *) enable_dlopen_self_static=unknown ;;
8927   esac
8928 fi
8929
8930
8931 # Report which librarie types wil actually be built
8932 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8933 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8934 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8935 echo "${ECHO_T}$can_build_shared" >&6
8936
8937 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8938 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8939 test "$can_build_shared" = "no" && enable_shared=no
8940
8941 # On AIX, shared libraries and static libraries use the same namespace, and
8942 # are all built from PIC.
8943 case "$host_os" in
8944 aix3*)
8945   test "$enable_shared" = yes && enable_static=no
8946   if test -n "$RANLIB"; then
8947     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8948     postinstall_cmds='$RANLIB $lib'
8949   fi
8950   ;;
8951
8952 aix4*)
8953   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8954     test "$enable_shared" = yes && enable_static=no
8955   fi
8956   ;;
8957   darwin* | rhapsody*)
8958   if test "$GCC" = yes; then
8959     archive_cmds_need_lc=no
8960     case "$host_os" in
8961     rhapsody* | darwin1.[012])
8962       allow_undefined_flag='-undefined suppress'
8963       ;;
8964     *) # Darwin 1.3 on
8965       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8966         allow_undefined_flag='-flat_namespace -undefined suppress'
8967       else
8968         case ${MACOSX_DEPLOYMENT_TARGET} in
8969           10.[012])
8970             allow_undefined_flag='-flat_namespace -undefined suppress'
8971             ;;
8972           10.*)
8973             allow_undefined_flag='-undefined dynamic_lookup'
8974             ;;
8975         esac
8976       fi
8977       ;;
8978     esac
8979     output_verbose_link_cmd='echo'
8980     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8981     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8982     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8983     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}'
8984     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}'
8985     hardcode_direct=no
8986     hardcode_automatic=yes
8987     hardcode_shlibpath_var=unsupported
8988     whole_archive_flag_spec='-all_load $convenience'
8989     link_all_deplibs=yes
8990   else
8991     ld_shlibs=no
8992   fi
8993     ;;
8994 esac
8995 echo "$as_me:$LINENO: result: $enable_shared" >&5
8996 echo "${ECHO_T}$enable_shared" >&6
8997
8998 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8999 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9000 # Make sure either enable_shared or enable_static is yes.
9001 test "$enable_shared" = yes || enable_static=yes
9002 echo "$as_me:$LINENO: result: $enable_static" >&5
9003 echo "${ECHO_T}$enable_static" >&6
9004
9005 # The else clause should only fire when bootstrapping the
9006 # libtool distribution, otherwise you forgot to ship ltmain.sh
9007 # with your package, and you will get complaints that there are
9008 # no rules to generate ltmain.sh.
9009 if test -f "$ltmain"; then
9010   # See if we are running on zsh, and set the options which allow our commands through
9011   # without removal of \ escapes.
9012   if test -n "${ZSH_VERSION+set}" ; then
9013     setopt NO_GLOB_SUBST
9014   fi
9015   # Now quote all the things that may contain metacharacters while being
9016   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9017   # variables and quote the copies for generation of the libtool script.
9018   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9019     SED SHELL STRIP \
9020     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9021     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9022     deplibs_check_method reload_flag reload_cmds need_locks \
9023     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9024     lt_cv_sys_global_symbol_to_c_name_address \
9025     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9026     old_postinstall_cmds old_postuninstall_cmds \
9027     compiler \
9028     CC \
9029     LD \
9030     lt_prog_compiler_wl \
9031     lt_prog_compiler_pic \
9032     lt_prog_compiler_static \
9033     lt_prog_compiler_no_builtin_flag \
9034     export_dynamic_flag_spec \
9035     thread_safe_flag_spec \
9036     whole_archive_flag_spec \
9037     enable_shared_with_static_runtimes \
9038     old_archive_cmds \
9039     old_archive_from_new_cmds \
9040     predep_objects \
9041     postdep_objects \
9042     predeps \
9043     postdeps \
9044     compiler_lib_search_path \
9045     archive_cmds \
9046     archive_expsym_cmds \
9047     postinstall_cmds \
9048     postuninstall_cmds \
9049     old_archive_from_expsyms_cmds \
9050     allow_undefined_flag \
9051     no_undefined_flag \
9052     export_symbols_cmds \
9053     hardcode_libdir_flag_spec \
9054     hardcode_libdir_flag_spec_ld \
9055     hardcode_libdir_separator \
9056     hardcode_automatic \
9057     module_cmds \
9058     module_expsym_cmds \
9059     lt_cv_prog_compiler_c_o \
9060     exclude_expsyms \
9061     include_expsyms; do
9062
9063     case $var in
9064     old_archive_cmds | \
9065     old_archive_from_new_cmds | \
9066     archive_cmds | \
9067     archive_expsym_cmds | \
9068     module_cmds | \
9069     module_expsym_cmds | \
9070     old_archive_from_expsyms_cmds | \
9071     export_symbols_cmds | \
9072     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9073     postinstall_cmds | postuninstall_cmds | \
9074     old_postinstall_cmds | old_postuninstall_cmds | \
9075     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9076       # Double-quote double-evaled strings.
9077       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9078       ;;
9079     *)
9080       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9081       ;;
9082     esac
9083   done
9084
9085   case $lt_echo in
9086   *'\$0 --fallback-echo"')
9087     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9088     ;;
9089   esac
9090
9091 cfgfile="${ofile}T"
9092   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9093   $rm -f "$cfgfile"
9094   { echo "$as_me:$LINENO: creating $ofile" >&5
9095 echo "$as_me: creating $ofile" >&6;}
9096
9097   cat <<__EOF__ >> "$cfgfile"
9098 #! $SHELL
9099
9100 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9101 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9102 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9103 #
9104 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9105 # Free Software Foundation, Inc.
9106 #
9107 # This file is part of GNU Libtool:
9108 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9109 #
9110 # This program is free software; you can redistribute it and/or modify
9111 # it under the terms of the GNU General Public License as published by
9112 # the Free Software Foundation; either version 2 of the License, or
9113 # (at your option) any later version.
9114 #
9115 # This program is distributed in the hope that it will be useful, but
9116 # WITHOUT ANY WARRANTY; without even the implied warranty of
9117 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9118 # General Public License for more details.
9119 #
9120 # You should have received a copy of the GNU General Public License
9121 # along with this program; if not, write to the Free Software
9122 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9123 #
9124 # As a special exception to the GNU General Public License, if you
9125 # distribute this file as part of a program that contains a
9126 # configuration script generated by Autoconf, you may include it under
9127 # the same distribution terms that you use for the rest of that program.
9128
9129 # A sed program that does not truncate output.
9130 SED=$lt_SED
9131
9132 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9133 Xsed="$SED -e s/^X//"
9134
9135 # The HP-UX ksh and POSIX shell print the target directory to stdout
9136 # if CDPATH is set.
9137 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9138
9139 # The names of the tagged configurations supported by this script.
9140 available_tags=
9141
9142 # ### BEGIN LIBTOOL CONFIG
9143
9144 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9145
9146 # Shell to use when invoking shell scripts.
9147 SHELL=$lt_SHELL
9148
9149 # Whether or not to build shared libraries.
9150 build_libtool_libs=$enable_shared
9151
9152 # Whether or not to build static libraries.
9153 build_old_libs=$enable_static
9154
9155 # Whether or not to add -lc for building shared libraries.
9156 build_libtool_need_lc=$archive_cmds_need_lc
9157
9158 # Whether or not to disallow shared libs when runtime libs are static
9159 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9160
9161 # Whether or not to optimize for fast installation.
9162 fast_install=$enable_fast_install
9163
9164 # The host system.
9165 host_alias=$host_alias
9166 host=$host
9167
9168 # An echo program that does not interpret backslashes.
9169 echo=$lt_echo
9170
9171 # The archiver.
9172 AR=$lt_AR
9173 AR_FLAGS=$lt_AR_FLAGS
9174
9175 # A C compiler.
9176 LTCC=$lt_LTCC
9177
9178 # A language-specific compiler.
9179 CC=$lt_compiler
9180
9181 # Is the compiler the GNU C compiler?
9182 with_gcc=$GCC
9183
9184 # An ERE matcher.
9185 EGREP=$lt_EGREP
9186
9187 # The linker used to build libraries.
9188 LD=$lt_LD
9189
9190 # Whether we need hard or soft links.
9191 LN_S=$lt_LN_S
9192
9193 # A BSD-compatible nm program.
9194 NM=$lt_NM
9195
9196 # A symbol stripping program
9197 STRIP=$lt_STRIP
9198
9199 # Used to examine libraries when file_magic_cmd begins "file"
9200 MAGIC_CMD=$MAGIC_CMD
9201
9202 # Used on cygwin: DLL creation program.
9203 DLLTOOL="$DLLTOOL"
9204
9205 # Used on cygwin: object dumper.
9206 OBJDUMP="$OBJDUMP"
9207
9208 # Used on cygwin: assembler.
9209 AS="$AS"
9210
9211 # The name of the directory that contains temporary libtool files.
9212 objdir=$objdir
9213
9214 # How to create reloadable object files.
9215 reload_flag=$lt_reload_flag
9216 reload_cmds=$lt_reload_cmds
9217
9218 # How to pass a linker flag through the compiler.
9219 wl=$lt_lt_prog_compiler_wl
9220
9221 # Object file suffix (normally "o").
9222 objext="$ac_objext"
9223
9224 # Old archive suffix (normally "a").
9225 libext="$libext"
9226
9227 # Shared library suffix (normally ".so").
9228 shrext='$shrext'
9229
9230 # Executable file suffix (normally "").
9231 exeext="$exeext"
9232
9233 # Additional compiler flags for building library objects.
9234 pic_flag=$lt_lt_prog_compiler_pic
9235 pic_mode=$pic_mode
9236
9237 # What is the maximum length of a command?
9238 max_cmd_len=$lt_cv_sys_max_cmd_len
9239
9240 # Does compiler simultaneously support -c and -o options?
9241 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9242
9243 # Must we lock files when doing compilation ?
9244 need_locks=$lt_need_locks
9245
9246 # Do we need the lib prefix for modules?
9247 need_lib_prefix=$need_lib_prefix
9248
9249 # Do we need a version for libraries?
9250 need_version=$need_version
9251
9252 # Whether dlopen is supported.
9253 dlopen_support=$enable_dlopen
9254
9255 # Whether dlopen of programs is supported.
9256 dlopen_self=$enable_dlopen_self
9257
9258 # Whether dlopen of statically linked programs is supported.
9259 dlopen_self_static=$enable_dlopen_self_static
9260
9261 # Compiler flag to prevent dynamic linking.
9262 link_static_flag=$lt_lt_prog_compiler_static
9263
9264 # Compiler flag to turn off builtin functions.
9265 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9266
9267 # Compiler flag to allow reflexive dlopens.
9268 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9269
9270 # Compiler flag to generate shared objects directly from archives.
9271 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9272
9273 # Compiler flag to generate thread-safe objects.
9274 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9275
9276 # Library versioning type.
9277 version_type=$version_type
9278
9279 # Format of library name prefix.
9280 libname_spec=$lt_libname_spec
9281
9282 # List of archive names.  First name is the real one, the rest are links.
9283 # The last name is the one that the linker finds with -lNAME.
9284 library_names_spec=$lt_library_names_spec
9285
9286 # The coded name of the library, if different from the real name.
9287 soname_spec=$lt_soname_spec
9288
9289 # Commands used to build and install an old-style archive.
9290 RANLIB=$lt_RANLIB
9291 old_archive_cmds=$lt_old_archive_cmds
9292 old_postinstall_cmds=$lt_old_postinstall_cmds
9293 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9294
9295 # Create an old-style archive from a shared archive.
9296 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9297
9298 # Create a temporary old-style archive to link instead of a shared archive.
9299 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9300
9301 # Commands used to build and install a shared archive.
9302 archive_cmds=$lt_archive_cmds
9303 archive_expsym_cmds=$lt_archive_expsym_cmds
9304 postinstall_cmds=$lt_postinstall_cmds
9305 postuninstall_cmds=$lt_postuninstall_cmds
9306
9307 # Commands used to build a loadable module (assumed same as above if empty)
9308 module_cmds=$lt_module_cmds
9309 module_expsym_cmds=$lt_module_expsym_cmds
9310
9311 # Commands to strip libraries.
9312 old_striplib=$lt_old_striplib
9313 striplib=$lt_striplib
9314
9315 # Dependencies to place before the objects being linked to create a
9316 # shared library.
9317 predep_objects=$lt_predep_objects
9318
9319 # Dependencies to place after the objects being linked to create a
9320 # shared library.
9321 postdep_objects=$lt_postdep_objects
9322
9323 # Dependencies to place before the objects being linked to create a
9324 # shared library.
9325 predeps=$lt_predeps
9326
9327 # Dependencies to place after the objects being linked to create a
9328 # shared library.
9329 postdeps=$lt_postdeps
9330
9331 # The library search path used internally by the compiler when linking
9332 # a shared library.
9333 compiler_lib_search_path=$lt_compiler_lib_search_path
9334
9335 # Method to check whether dependent libraries are shared objects.
9336 deplibs_check_method=$lt_deplibs_check_method
9337
9338 # Command to use when deplibs_check_method == file_magic.
9339 file_magic_cmd=$lt_file_magic_cmd
9340
9341 # Flag that allows shared libraries with undefined symbols to be built.
9342 allow_undefined_flag=$lt_allow_undefined_flag
9343
9344 # Flag that forces no undefined symbols.
9345 no_undefined_flag=$lt_no_undefined_flag
9346
9347 # Commands used to finish a libtool library installation in a directory.
9348 finish_cmds=$lt_finish_cmds
9349
9350 # Same as above, but a single script fragment to be evaled but not shown.
9351 finish_eval=$lt_finish_eval
9352
9353 # Take the output of nm and produce a listing of raw symbols and C names.
9354 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9355
9356 # Transform the output of nm in a proper C declaration
9357 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9358
9359 # Transform the output of nm in a C name address pair
9360 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9361
9362 # This is the shared library runtime path variable.
9363 runpath_var=$runpath_var
9364
9365 # This is the shared library path variable.
9366 shlibpath_var=$shlibpath_var
9367
9368 # Is shlibpath searched before the hard-coded library search path?
9369 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9370
9371 # How to hardcode a shared library path into an executable.
9372 hardcode_action=$hardcode_action
9373
9374 # Whether we should hardcode library paths into libraries.
9375 hardcode_into_libs=$hardcode_into_libs
9376
9377 # Flag to hardcode \$libdir into a binary during linking.
9378 # This must work even if \$libdir does not exist.
9379 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9380
9381 # If ld is used when linking, flag to hardcode \$libdir into
9382 # a binary during linking. This must work even if \$libdir does
9383 # not exist.
9384 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9385
9386 # Whether we need a single -rpath flag with a separated argument.
9387 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9388
9389 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9390 # resulting binary.
9391 hardcode_direct=$hardcode_direct
9392
9393 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9394 # resulting binary.
9395 hardcode_minus_L=$hardcode_minus_L
9396
9397 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9398 # the resulting binary.
9399 hardcode_shlibpath_var=$hardcode_shlibpath_var
9400
9401 # Set to yes if building a shared library automatically hardcodes DIR into the library
9402 # and all subsequent libraries and executables linked against it.
9403 hardcode_automatic=$hardcode_automatic
9404
9405 # Variables whose values should be saved in libtool wrapper scripts and
9406 # restored at relink time.
9407 variables_saved_for_relink="$variables_saved_for_relink"
9408
9409 # Whether libtool must link a program against all its dependency libraries.
9410 link_all_deplibs=$link_all_deplibs
9411
9412 # Compile-time system search path for libraries
9413 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9414
9415 # Run-time system search path for libraries
9416 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9417
9418 # Fix the shell variable \$srcfile for the compiler.
9419 fix_srcfile_path="$fix_srcfile_path"
9420
9421 # Set to yes if exported symbols are required.
9422 always_export_symbols=$always_export_symbols
9423
9424 # The commands to list exported symbols.
9425 export_symbols_cmds=$lt_export_symbols_cmds
9426
9427 # The commands to extract the exported symbol list from a shared archive.
9428 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9429
9430 # Symbols that should not be listed in the preloaded symbols.
9431 exclude_expsyms=$lt_exclude_expsyms
9432
9433 # Symbols that must always be exported.
9434 include_expsyms=$lt_include_expsyms
9435
9436 # ### END LIBTOOL CONFIG
9437
9438 __EOF__
9439
9440
9441   case $host_os in
9442   aix3*)
9443     cat <<\EOF >> "$cfgfile"
9444
9445 # AIX sometimes has problems with the GCC collect2 program.  For some
9446 # reason, if we set the COLLECT_NAMES environment variable, the problems
9447 # vanish in a puff of smoke.
9448 if test "X${COLLECT_NAMES+set}" != Xset; then
9449   COLLECT_NAMES=
9450   export COLLECT_NAMES
9451 fi
9452 EOF
9453     ;;
9454   esac
9455
9456   # We use sed instead of cat because bash on DJGPP gets confused if
9457   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9458   # text mode, it properly converts lines to CR/LF.  This bash problem
9459   # is reportedly fixed, but why not run on old versions too?
9460   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9461
9462   mv -f "$cfgfile" "$ofile" || \
9463     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9464   chmod +x "$ofile"
9465
9466 else
9467   # If there is no Makefile yet, we rely on a make rule to execute
9468   # `config.status --recheck' to rerun these tests and create the
9469   # libtool script then.
9470   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9471   if test -f "$ltmain_in"; then
9472     test -f Makefile && make "$ltmain"
9473   fi
9474 fi
9475
9476
9477 ac_ext=c
9478 ac_cpp='$CPP $CPPFLAGS'
9479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9482
9483 CC="$lt_save_CC"
9484
9485
9486 # Check whether --with-tags or --without-tags was given.
9487 if test "${with_tags+set}" = set; then
9488   withval="$with_tags"
9489   tagnames="$withval"
9490 fi;
9491
9492 if test -f "$ltmain" && test -n "$tagnames"; then
9493   if test ! -f "${ofile}"; then
9494     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9495 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9496   fi
9497
9498   if test -z "$LTCC"; then
9499     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9500     if test -z "$LTCC"; then
9501       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9502 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9503     else
9504       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9505 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9506     fi
9507   fi
9508
9509   # Extract list of available tagged configurations in $ofile.
9510   # Note that this assumes the entire list is on one line.
9511   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9512
9513   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9514   for tagname in $tagnames; do
9515     IFS="$lt_save_ifs"
9516     # Check whether tagname contains only valid characters
9517     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9518     "") ;;
9519     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9520 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9521    { (exit 1); exit 1; }; }
9522         ;;
9523     esac
9524
9525     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9526     then
9527       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9528 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9529    { (exit 1); exit 1; }; }
9530     fi
9531
9532     # Update the list of available tags.
9533     if test -n "$tagname"; then
9534       echo appending configuration tag \"$tagname\" to $ofile
9535
9536       case $tagname in
9537       CXX)
9538         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9539           ac_ext=cc
9540 ac_cpp='$CXXCPP $CPPFLAGS'
9541 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9542 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9543 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9544
9545
9546
9547
9548 archive_cmds_need_lc_CXX=no
9549 allow_undefined_flag_CXX=
9550 always_export_symbols_CXX=no
9551 archive_expsym_cmds_CXX=
9552 export_dynamic_flag_spec_CXX=
9553 hardcode_direct_CXX=no
9554 hardcode_libdir_flag_spec_CXX=
9555 hardcode_libdir_flag_spec_ld_CXX=
9556 hardcode_libdir_separator_CXX=
9557 hardcode_minus_L_CXX=no
9558 hardcode_automatic_CXX=no
9559 module_cmds_CXX=
9560 module_expsym_cmds_CXX=
9561 link_all_deplibs_CXX=unknown
9562 old_archive_cmds_CXX=$old_archive_cmds
9563 no_undefined_flag_CXX=
9564 whole_archive_flag_spec_CXX=
9565 enable_shared_with_static_runtimes_CXX=no
9566
9567 # Dependencies to place before and after the object being linked:
9568 predep_objects_CXX=
9569 postdep_objects_CXX=
9570 predeps_CXX=
9571 postdeps_CXX=
9572 compiler_lib_search_path_CXX=
9573
9574 # Source file extension for C++ test sources.
9575 ac_ext=cc
9576
9577 # Object file extension for compiled C++ test sources.
9578 objext=o
9579 objext_CXX=$objext
9580
9581 # Code to be used in simple compile tests
9582 lt_simple_compile_test_code="int some_variable = 0;\n"
9583
9584 # Code to be used in simple link tests
9585 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9586
9587 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9588
9589 # If no C compiler was specified, use CC.
9590 LTCC=${LTCC-"$CC"}
9591
9592 # Allow CC to be a program name with arguments.
9593 compiler=$CC
9594
9595
9596 # Allow CC to be a program name with arguments.
9597 lt_save_CC=$CC
9598 lt_save_LD=$LD
9599 lt_save_GCC=$GCC
9600 GCC=$GXX
9601 lt_save_with_gnu_ld=$with_gnu_ld
9602 lt_save_path_LD=$lt_cv_path_LD
9603 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9604   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9605 else
9606   unset lt_cv_prog_gnu_ld
9607 fi
9608 if test -n "${lt_cv_path_LDCXX+set}"; then
9609   lt_cv_path_LD=$lt_cv_path_LDCXX
9610 else
9611   unset lt_cv_path_LD
9612 fi
9613 test -z "${LDCXX+set}" || LD=$LDCXX
9614 CC=${CXX-"c++"}
9615 compiler=$CC
9616 compiler_CXX=$CC
9617 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9618
9619 # We don't want -fno-exception wen compiling C++ code, so set the
9620 # no_builtin_flag separately
9621 if test "$GXX" = yes; then
9622   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9623 else
9624   lt_prog_compiler_no_builtin_flag_CXX=
9625 fi
9626
9627 if test "$GXX" = yes; then
9628   # Set up default GNU C++ configuration
9629
9630
9631 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9632 if test "${with_gnu_ld+set}" = set; then
9633   withval="$with_gnu_ld"
9634   test "$withval" = no || with_gnu_ld=yes
9635 else
9636   with_gnu_ld=no
9637 fi;
9638 ac_prog=ld
9639 if test "$GCC" = yes; then
9640   # Check if gcc -print-prog-name=ld gives a path.
9641   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9642 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9643   case $host in
9644   *-*-mingw*)
9645     # gcc leaves a trailing carriage return which upsets mingw
9646     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9647   *)
9648     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9649   esac
9650   case $ac_prog in
9651     # Accept absolute paths.
9652     [\\/]* | ?:[\\/]*)
9653       re_direlt='/[^/][^/]*/\.\./'
9654       # Canonicalize the pathname of ld
9655       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9656       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9657         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9658       done
9659       test -z "$LD" && LD="$ac_prog"
9660       ;;
9661   "")
9662     # If it fails, then pretend we aren't using GCC.
9663     ac_prog=ld
9664     ;;
9665   *)
9666     # If it is relative, then search for the first ld in PATH.
9667     with_gnu_ld=unknown
9668     ;;
9669   esac
9670 elif test "$with_gnu_ld" = yes; then
9671   echo "$as_me:$LINENO: checking for GNU ld" >&5
9672 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9673 else
9674   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9675 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9676 fi
9677 if test "${lt_cv_path_LD+set}" = set; then
9678   echo $ECHO_N "(cached) $ECHO_C" >&6
9679 else
9680   if test -z "$LD"; then
9681   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9682   for ac_dir in $PATH; do
9683     IFS="$lt_save_ifs"
9684     test -z "$ac_dir" && ac_dir=.
9685     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9686       lt_cv_path_LD="$ac_dir/$ac_prog"
9687       # Check to see if the program is GNU ld.  I'd rather use --version,
9688       # but apparently some GNU ld's only accept -v.
9689       # Break only if it was the GNU/non-GNU ld that we prefer.
9690       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9691       *GNU* | *'with BFD'*)
9692         test "$with_gnu_ld" != no && break
9693         ;;
9694       *)
9695         test "$with_gnu_ld" != yes && break
9696         ;;
9697       esac
9698     fi
9699   done
9700   IFS="$lt_save_ifs"
9701 else
9702   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9703 fi
9704 fi
9705
9706 LD="$lt_cv_path_LD"
9707 if test -n "$LD"; then
9708   echo "$as_me:$LINENO: result: $LD" >&5
9709 echo "${ECHO_T}$LD" >&6
9710 else
9711   echo "$as_me:$LINENO: result: no" >&5
9712 echo "${ECHO_T}no" >&6
9713 fi
9714 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9715 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9716    { (exit 1); exit 1; }; }
9717 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9718 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9719 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9720   echo $ECHO_N "(cached) $ECHO_C" >&6
9721 else
9722   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9723 case `$LD -v 2>&1 </dev/null` in
9724 *GNU* | *'with BFD'*)
9725   lt_cv_prog_gnu_ld=yes
9726   ;;
9727 *)
9728   lt_cv_prog_gnu_ld=no
9729   ;;
9730 esac
9731 fi
9732 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9733 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9734 with_gnu_ld=$lt_cv_prog_gnu_ld
9735
9736
9737
9738   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9739   # archiving commands below assume that GNU ld is being used.
9740   if test "$with_gnu_ld" = yes; then
9741     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9742     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'
9743
9744     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9745     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9746
9747     # If archive_cmds runs LD, not CC, wlarc should be empty
9748     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9749     #     investigate it a little bit more. (MM)
9750     wlarc='${wl}'
9751
9752     # ancient GNU ld didn't support --whole-archive et. al.
9753     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9754         grep 'no-whole-archive' > /dev/null; then
9755       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9756     else
9757       whole_archive_flag_spec_CXX=
9758     fi
9759   else
9760     with_gnu_ld=no
9761     wlarc=
9762
9763     # A generic and very simple default shared library creation
9764     # command for GNU C++ for the case where it uses the native
9765     # linker, instead of GNU ld.  If possible, this setting should
9766     # overridden to take advantage of the native linker features on
9767     # the platform it is being used on.
9768     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9769   fi
9770
9771   # Commands to make compiler produce verbose output that lists
9772   # what "hidden" libraries, object files and flags are used when
9773   # linking a shared library.
9774   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9775
9776 else
9777   GXX=no
9778   with_gnu_ld=no
9779   wlarc=
9780 fi
9781
9782 # PORTME: fill in a description of your system's C++ link characteristics
9783 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9784 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9785 ld_shlibs_CXX=yes
9786 case $host_os in
9787   aix3*)
9788     # FIXME: insert proper C++ library support
9789     ld_shlibs_CXX=no
9790     ;;
9791   aix4* | aix5*)
9792     if test "$host_cpu" = ia64; then
9793       # On IA64, the linker does run time linking by default, so we don't
9794       # have to do anything special.
9795       aix_use_runtimelinking=no
9796       exp_sym_flag='-Bexport'
9797       no_entry_flag=""
9798     else
9799       aix_use_runtimelinking=no
9800
9801       # Test if we are trying to use run time linking or normal
9802       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9803       # need to do runtime linking.
9804       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9805         for ld_flag in $LDFLAGS; do
9806           case $ld_flag in
9807           *-brtl*)
9808             aix_use_runtimelinking=yes
9809             break
9810             ;;
9811           esac
9812         done
9813       esac
9814
9815       exp_sym_flag='-bexport'
9816       no_entry_flag='-bnoentry'
9817     fi
9818
9819     # When large executables or shared objects are built, AIX ld can
9820     # have problems creating the table of contents.  If linking a library
9821     # or program results in "error TOC overflow" add -mminimal-toc to
9822     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9823     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9824
9825     archive_cmds_CXX=''
9826     hardcode_direct_CXX=yes
9827     hardcode_libdir_separator_CXX=':'
9828     link_all_deplibs_CXX=yes
9829
9830     if test "$GXX" = yes; then
9831       case $host_os in aix4.012|aix4.012.*)
9832       # We only want to do this on AIX 4.2 and lower, the check
9833       # below for broken collect2 doesn't work under 4.3+
9834         collect2name=`${CC} -print-prog-name=collect2`
9835         if test -f "$collect2name" && \
9836            strings "$collect2name" | grep resolve_lib_name >/dev/null
9837         then
9838           # We have reworked collect2
9839           hardcode_direct_CXX=yes
9840         else
9841           # We have old collect2
9842           hardcode_direct_CXX=unsupported
9843           # It fails to find uninstalled libraries when the uninstalled
9844           # path is not listed in the libpath.  Setting hardcode_minus_L
9845           # to unsupported forces relinking
9846           hardcode_minus_L_CXX=yes
9847           hardcode_libdir_flag_spec_CXX='-L$libdir'
9848           hardcode_libdir_separator_CXX=
9849         fi
9850       esac
9851       shared_flag='-shared'
9852     else
9853       # not using gcc
9854       if test "$host_cpu" = ia64; then
9855         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9856         # chokes on -Wl,-G. The following line is correct:
9857         shared_flag='-G'
9858       else
9859         if test "$aix_use_runtimelinking" = yes; then
9860           shared_flag='${wl}-G'
9861         else
9862           shared_flag='${wl}-bM:SRE'
9863         fi
9864       fi
9865     fi
9866
9867     # It seems that -bexpall does not export symbols beginning with
9868     # underscore (_), so it is better to generate a list of symbols to export.
9869     always_export_symbols_CXX=yes
9870     if test "$aix_use_runtimelinking" = yes; then
9871       # Warning - without using the other runtime loading flags (-brtl),
9872       # -berok will link without error, but may produce a broken library.
9873       allow_undefined_flag_CXX='-berok'
9874       # Determine the default libpath from the value encoded in an empty executable.
9875       cat >conftest.$ac_ext <<_ACEOF
9876 /* confdefs.h.  */
9877 _ACEOF
9878 cat confdefs.h >>conftest.$ac_ext
9879 cat >>conftest.$ac_ext <<_ACEOF
9880 /* end confdefs.h.  */
9881
9882 int
9883 main ()
9884 {
9885
9886   ;
9887   return 0;
9888 }
9889 _ACEOF
9890 rm -f conftest.$ac_objext conftest$ac_exeext
9891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9892   (eval $ac_link) 2>conftest.er1
9893   ac_status=$?
9894   grep -v '^ *+' conftest.er1 >conftest.err
9895   rm -f conftest.er1
9896   cat conftest.err >&5
9897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898   (exit $ac_status); } &&
9899          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
9900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9901   (eval $ac_try) 2>&5
9902   ac_status=$?
9903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904   (exit $ac_status); }; } &&
9905          { ac_try='test -s conftest$ac_exeext'
9906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9907   (eval $ac_try) 2>&5
9908   ac_status=$?
9909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910   (exit $ac_status); }; }; then
9911
9912 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9913 }'`
9914 # Check for a 64-bit object if we didn't find anything.
9915 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; }
9916 }'`; fi
9917 else
9918   echo "$as_me: failed program was:" >&5
9919 sed 's/^/| /' conftest.$ac_ext >&5
9920
9921 fi
9922 rm -f conftest.err conftest.$ac_objext \
9923       conftest$ac_exeext conftest.$ac_ext
9924 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9925
9926       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9927
9928       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9929      else
9930       if test "$host_cpu" = ia64; then
9931         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9932         allow_undefined_flag_CXX="-z nodefs"
9933         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9934       else
9935         # Determine the default libpath from the value encoded in an empty executable.
9936         cat >conftest.$ac_ext <<_ACEOF
9937 /* confdefs.h.  */
9938 _ACEOF
9939 cat confdefs.h >>conftest.$ac_ext
9940 cat >>conftest.$ac_ext <<_ACEOF
9941 /* end confdefs.h.  */
9942
9943 int
9944 main ()
9945 {
9946
9947   ;
9948   return 0;
9949 }
9950 _ACEOF
9951 rm -f conftest.$ac_objext conftest$ac_exeext
9952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9953   (eval $ac_link) 2>conftest.er1
9954   ac_status=$?
9955   grep -v '^ *+' conftest.er1 >conftest.err
9956   rm -f conftest.er1
9957   cat conftest.err >&5
9958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959   (exit $ac_status); } &&
9960          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
9961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9962   (eval $ac_try) 2>&5
9963   ac_status=$?
9964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965   (exit $ac_status); }; } &&
9966          { ac_try='test -s conftest$ac_exeext'
9967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9968   (eval $ac_try) 2>&5
9969   ac_status=$?
9970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971   (exit $ac_status); }; }; then
9972
9973 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9974 }'`
9975 # Check for a 64-bit object if we didn't find anything.
9976 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; }
9977 }'`; fi
9978 else
9979   echo "$as_me: failed program was:" >&5
9980 sed 's/^/| /' conftest.$ac_ext >&5
9981
9982 fi
9983 rm -f conftest.err conftest.$ac_objext \
9984       conftest$ac_exeext conftest.$ac_ext
9985 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9986
9987         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9988         # Warning - without using the other run time loading flags,
9989         # -berok will link without error, but may produce a broken library.
9990         no_undefined_flag_CXX=' ${wl}-bernotok'
9991         allow_undefined_flag_CXX=' ${wl}-berok'
9992         # -bexpall does not export symbols beginning with underscore (_)
9993         always_export_symbols_CXX=yes
9994         # Exported symbols can be pulled into shared objects from archives
9995         whole_archive_flag_spec_CXX=' '
9996         archive_cmds_need_lc_CXX=yes
9997         # This is similar to how AIX traditionally builds it's shared libraries.
9998         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9999       fi
10000     fi
10001     ;;
10002   chorus*)
10003     case $cc_basename in
10004       *)
10005         # FIXME: insert proper C++ library support
10006         ld_shlibs_CXX=no
10007         ;;
10008     esac
10009     ;;
10010
10011   cygwin* | mingw* | pw32*)
10012     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10013     # as there is no search path for DLLs.
10014     hardcode_libdir_flag_spec_CXX='-L$libdir'
10015     allow_undefined_flag_CXX=unsupported
10016     always_export_symbols_CXX=no
10017     enable_shared_with_static_runtimes_CXX=yes
10018
10019     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10020       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10021       # If the export-symbols file already is a .def file (1st line
10022       # is EXPORTS), use it as is; otherwise, prepend...
10023       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10024         cp $export_symbols $output_objdir/$soname.def;
10025       else
10026         echo EXPORTS > $output_objdir/$soname.def;
10027         cat $export_symbols >> $output_objdir/$soname.def;
10028       fi~
10029       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10030     else
10031       ld_shlibs_CXX=no
10032     fi
10033   ;;
10034
10035   darwin* | rhapsody*)
10036   if test "$GXX" = yes; then
10037     archive_cmds_need_lc_CXX=no
10038     case "$host_os" in
10039     rhapsody* | darwin1.[012])
10040       allow_undefined_flag_CXX='-undefined suppress'
10041       ;;
10042     *) # Darwin 1.3 on
10043       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10044         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10045       else
10046         case ${MACOSX_DEPLOYMENT_TARGET} in
10047           10.[012])
10048             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10049             ;;
10050           10.*)
10051             allow_undefined_flag_CXX='-undefined dynamic_lookup'
10052             ;;
10053         esac
10054       fi
10055       ;;
10056     esac
10057     lt_int_apple_cc_single_mod=no
10058     output_verbose_link_cmd='echo'
10059     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10060       lt_int_apple_cc_single_mod=yes
10061     fi
10062     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10063       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10064     else
10065       archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10066     fi
10067     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10068
10069     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10070     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10071       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}'
10072     else
10073       archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10074     fi
10075     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}'
10076     hardcode_direct_CXX=no
10077     hardcode_automatic_CXX=yes
10078     hardcode_shlibpath_var_CXX=unsupported
10079     whole_archive_flag_spec_CXX='-all_load $convenience'
10080     link_all_deplibs_CXX=yes
10081   else
10082     ld_shlibs_CXX=no
10083   fi
10084     ;;
10085
10086   dgux*)
10087     case $cc_basename in
10088       ec++)
10089         # FIXME: insert proper C++ library support
10090         ld_shlibs_CXX=no
10091         ;;
10092       ghcx)
10093         # Green Hills C++ Compiler
10094         # FIXME: insert proper C++ library support
10095         ld_shlibs_CXX=no
10096         ;;
10097       *)
10098         # FIXME: insert proper C++ library support
10099         ld_shlibs_CXX=no
10100         ;;
10101     esac
10102     ;;
10103   freebsd12*)
10104     # C++ shared libraries reported to be fairly broken before switch to ELF
10105     ld_shlibs_CXX=no
10106     ;;
10107   freebsd-elf*)
10108     archive_cmds_need_lc_CXX=no
10109     ;;
10110   freebsd* | kfreebsd*-gnu)
10111     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10112     # conventions
10113     ld_shlibs_CXX=yes
10114     ;;
10115   gnu*)
10116     ;;
10117   hpux9*)
10118     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10119     hardcode_libdir_separator_CXX=:
10120     export_dynamic_flag_spec_CXX='${wl}-E'
10121     hardcode_direct_CXX=yes
10122     hardcode_minus_L_CXX=yes # Not in the search PATH,
10123                                 # but as the default
10124                                 # location of the library.
10125
10126     case $cc_basename in
10127     CC)
10128       # FIXME: insert proper C++ library support
10129       ld_shlibs_CXX=no
10130       ;;
10131     aCC)
10132       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'
10133       # Commands to make compiler produce verbose output that lists
10134       # what "hidden" libraries, object files and flags are used when
10135       # linking a shared library.
10136       #
10137       # There doesn't appear to be a way to prevent this compiler from
10138       # explicitly linking system object files so we need to strip them
10139       # from the output so that they don't get included in the library
10140       # dependencies.
10141       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10142       ;;
10143     *)
10144       if test "$GXX" = yes; then
10145         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'
10146       else
10147         # FIXME: insert proper C++ library support
10148         ld_shlibs_CXX=no
10149       fi
10150       ;;
10151     esac
10152     ;;
10153   hpux10*|hpux11*)
10154     if test $with_gnu_ld = no; then
10155       case "$host_cpu" in
10156       hppa*64*)
10157         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10158         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10159         hardcode_libdir_separator_CXX=:
10160         ;;
10161       ia64*)
10162         hardcode_libdir_flag_spec_CXX='-L$libdir'
10163         ;;
10164       *)
10165         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10166         hardcode_libdir_separator_CXX=:
10167         export_dynamic_flag_spec_CXX='${wl}-E'
10168         ;;
10169       esac
10170     fi
10171     case "$host_cpu" in
10172     hppa*64*)
10173       hardcode_direct_CXX=no
10174       hardcode_shlibpath_var_CXX=no
10175       ;;
10176     ia64*)
10177       hardcode_direct_CXX=no
10178       hardcode_shlibpath_var_CXX=no
10179       hardcode_minus_L_CXX=yes # Not in the search PATH,
10180                                               # but as the default
10181                                               # location of the library.
10182       ;;
10183     *)
10184       hardcode_direct_CXX=yes
10185       hardcode_minus_L_CXX=yes # Not in the search PATH,
10186                                               # but as the default
10187                                               # location of the library.
10188       ;;
10189     esac
10190
10191     case $cc_basename in
10192       CC)
10193         # FIXME: insert proper C++ library support
10194         ld_shlibs_CXX=no
10195         ;;
10196       aCC)
10197         case "$host_cpu" in
10198         hppa*64*|ia64*)
10199           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10200           ;;
10201         *)
10202           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10203           ;;
10204         esac
10205         # Commands to make compiler produce verbose output that lists
10206         # what "hidden" libraries, object files and flags are used when
10207         # linking a shared library.
10208         #
10209         # There doesn't appear to be a way to prevent this compiler from
10210         # explicitly linking system object files so we need to strip them
10211         # from the output so that they don't get included in the library
10212         # dependencies.
10213         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'
10214         ;;
10215       *)
10216         if test "$GXX" = yes; then
10217           if test $with_gnu_ld = no; then
10218             case "$host_cpu" in
10219             ia64*|hppa*64*)
10220               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10221               ;;
10222             *)
10223               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'
10224               ;;
10225             esac
10226           fi
10227         else
10228           # FIXME: insert proper C++ library support
10229           ld_shlibs_CXX=no
10230         fi
10231         ;;
10232     esac
10233     ;;
10234   irix5* | irix6*)
10235     case $cc_basename in
10236       CC)
10237         # SGI C++
10238         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10239
10240         # Archives containing C++ object files must be created using
10241         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10242         # necessary to make sure instantiated templates are included
10243         # in the archive.
10244         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10245         ;;
10246       *)
10247         if test "$GXX" = yes; then
10248           if test "$with_gnu_ld" = no; then
10249             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10250           else
10251             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'
10252           fi
10253         fi
10254         link_all_deplibs_CXX=yes
10255         ;;
10256     esac
10257     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10258     hardcode_libdir_separator_CXX=:
10259     ;;
10260   linux*)
10261     case $cc_basename in
10262       KCC)
10263         # Kuck and Associates, Inc. (KAI) C++ Compiler
10264
10265         # KCC will only create a shared library if the output file
10266         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10267         # to its proper name (with version) after linking.
10268         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'
10269         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'
10270         # Commands to make compiler produce verbose output that lists
10271         # what "hidden" libraries, object files and flags are used when
10272         # linking a shared library.
10273         #
10274         # There doesn't appear to be a way to prevent this compiler from
10275         # explicitly linking system object files so we need to strip them
10276         # from the output so that they don't get included in the library
10277         # dependencies.
10278         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'
10279
10280         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10281         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10282
10283         # Archives containing C++ object files must be created using
10284         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10285         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10286         ;;
10287       icpc)
10288         # Intel C++
10289         with_gnu_ld=yes
10290         archive_cmds_need_lc_CXX=no
10291         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10292         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'
10293         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10294         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10295         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10296         ;;
10297       cxx)
10298         # Compaq C++
10299         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10300         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'
10301
10302         runpath_var=LD_RUN_PATH
10303         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10304         hardcode_libdir_separator_CXX=:
10305
10306         # Commands to make compiler produce verbose output that lists
10307         # what "hidden" libraries, object files and flags are used when
10308         # linking a shared library.
10309         #
10310         # There doesn't appear to be a way to prevent this compiler from
10311         # explicitly linking system object files so we need to strip them
10312         # from the output so that they don't get included in the library
10313         # dependencies.
10314         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'
10315         ;;
10316     esac
10317     ;;
10318   lynxos*)
10319     # FIXME: insert proper C++ library support
10320     ld_shlibs_CXX=no
10321     ;;
10322   m88k*)
10323     # FIXME: insert proper C++ library support
10324     ld_shlibs_CXX=no
10325     ;;
10326   mvs*)
10327     case $cc_basename in
10328       cxx)
10329         # FIXME: insert proper C++ library support
10330         ld_shlibs_CXX=no
10331         ;;
10332       *)
10333         # FIXME: insert proper C++ library support
10334         ld_shlibs_CXX=no
10335         ;;
10336     esac
10337     ;;
10338   netbsd*)
10339     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10340       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10341       wlarc=
10342       hardcode_libdir_flag_spec_CXX='-R$libdir'
10343       hardcode_direct_CXX=yes
10344       hardcode_shlibpath_var_CXX=no
10345     fi
10346     # Workaround some broken pre-1.5 toolchains
10347     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10348     ;;
10349   osf3*)
10350     case $cc_basename in
10351       KCC)
10352         # Kuck and Associates, Inc. (KAI) C++ Compiler
10353
10354         # KCC will only create a shared library if the output file
10355         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10356         # to its proper name (with version) after linking.
10357         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'
10358
10359         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10360         hardcode_libdir_separator_CXX=:
10361
10362         # Archives containing C++ object files must be created using
10363         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10364         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10365
10366         ;;
10367       RCC)
10368         # Rational C++ 2.4.1
10369         # FIXME: insert proper C++ library support
10370         ld_shlibs_CXX=no
10371         ;;
10372       cxx)
10373         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10374         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10375
10376         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10377         hardcode_libdir_separator_CXX=:
10378
10379         # Commands to make compiler produce verbose output that lists
10380         # what "hidden" libraries, object files and flags are used when
10381         # linking a shared library.
10382         #
10383         # There doesn't appear to be a way to prevent this compiler from
10384         # explicitly linking system object files so we need to strip them
10385         # from the output so that they don't get included in the library
10386         # dependencies.
10387         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'
10388         ;;
10389       *)
10390         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10391           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10392           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10393
10394           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10395           hardcode_libdir_separator_CXX=:
10396
10397           # Commands to make compiler produce verbose output that lists
10398           # what "hidden" libraries, object files and flags are used when
10399           # linking a shared library.
10400           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10401
10402         else
10403           # FIXME: insert proper C++ library support
10404           ld_shlibs_CXX=no
10405         fi
10406         ;;
10407     esac
10408     ;;
10409   osf4* | osf5*)
10410     case $cc_basename in
10411       KCC)
10412         # Kuck and Associates, Inc. (KAI) C++ Compiler
10413
10414         # KCC will only create a shared library if the output file
10415         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10416         # to its proper name (with version) after linking.
10417         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'
10418
10419         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10420         hardcode_libdir_separator_CXX=:
10421
10422         # Archives containing C++ object files must be created using
10423         # the KAI C++ compiler.
10424         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10425         ;;
10426       RCC)
10427         # Rational C++ 2.4.1
10428         # FIXME: insert proper C++ library support
10429         ld_shlibs_CXX=no
10430         ;;
10431       cxx)
10432         allow_undefined_flag_CXX=' -expect_unresolved \*'
10433         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10434         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10435           echo "-hidden">> $lib.exp~
10436           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10437           $rm $lib.exp'
10438
10439         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10440         hardcode_libdir_separator_CXX=:
10441
10442         # Commands to make compiler produce verbose output that lists
10443         # what "hidden" libraries, object files and flags are used when
10444         # linking a shared library.
10445         #
10446         # There doesn't appear to be a way to prevent this compiler from
10447         # explicitly linking system object files so we need to strip them
10448         # from the output so that they don't get included in the library
10449         # dependencies.
10450         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'
10451         ;;
10452       *)
10453         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10454           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10455          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10456
10457           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10458           hardcode_libdir_separator_CXX=:
10459
10460           # Commands to make compiler produce verbose output that lists
10461           # what "hidden" libraries, object files and flags are used when
10462           # linking a shared library.
10463           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10464
10465         else
10466           # FIXME: insert proper C++ library support
10467           ld_shlibs_CXX=no
10468         fi
10469         ;;
10470     esac
10471     ;;
10472   psos*)
10473     # FIXME: insert proper C++ library support
10474     ld_shlibs_CXX=no
10475     ;;
10476   sco*)
10477     archive_cmds_need_lc_CXX=no
10478     case $cc_basename in
10479       CC)
10480         # FIXME: insert proper C++ library support
10481         ld_shlibs_CXX=no
10482         ;;
10483       *)
10484         # FIXME: insert proper C++ library support
10485         ld_shlibs_CXX=no
10486         ;;
10487     esac
10488     ;;
10489   sunos4*)
10490     case $cc_basename in
10491       CC)
10492         # Sun C++ 4.x
10493         # FIXME: insert proper C++ library support
10494         ld_shlibs_CXX=no
10495         ;;
10496       lcc)
10497         # Lucid
10498         # FIXME: insert proper C++ library support
10499         ld_shlibs_CXX=no
10500         ;;
10501       *)
10502         # FIXME: insert proper C++ library support
10503         ld_shlibs_CXX=no
10504         ;;
10505     esac
10506     ;;
10507   solaris*)
10508     case $cc_basename in
10509       CC)
10510         # Sun C++ 4.2, 5.x and Centerline C++
10511         no_undefined_flag_CXX=' -zdefs'
10512         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10513         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10514         $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10515
10516         hardcode_libdir_flag_spec_CXX='-R$libdir'
10517         hardcode_shlibpath_var_CXX=no
10518         case $host_os in
10519           solaris2.0-5 | solaris2.0-5.*) ;;
10520           *)
10521             # The C++ compiler is used as linker so we must use $wl
10522             # flag to pass the commands to the underlying system
10523             # linker.
10524             # Supported since Solaris 2.6 (maybe 2.5.1?)
10525             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10526             ;;
10527         esac
10528         link_all_deplibs_CXX=yes
10529
10530         # Commands to make compiler produce verbose output that lists
10531         # what "hidden" libraries, object files and flags are used when
10532         # linking a shared library.
10533         #
10534         # There doesn't appear to be a way to prevent this compiler from
10535         # explicitly linking system object files so we need to strip them
10536         # from the output so that they don't get included in the library
10537         # dependencies.
10538         output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10539
10540         # Archives containing C++ object files must be created using
10541         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10542         # necessary to make sure instantiated templates are included
10543         # in the archive.
10544         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10545         ;;
10546       gcx)
10547         # Green Hills C++ Compiler
10548         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10549
10550         # The C++ compiler must be used to create the archive.
10551         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10552         ;;
10553       *)
10554         # GNU C++ compiler with Solaris linker
10555         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10556           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10557           if $CC --version | grep -v '^2\.7' > /dev/null; then
10558             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10559             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10560                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10561
10562             # Commands to make compiler produce verbose output that lists
10563             # what "hidden" libraries, object files and flags are used when
10564             # linking a shared library.
10565             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10566           else
10567             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10568             # platform.
10569             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10570             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10571                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10572
10573             # Commands to make compiler produce verbose output that lists
10574             # what "hidden" libraries, object files and flags are used when
10575             # linking a shared library.
10576             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10577           fi
10578
10579           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10580         fi
10581         ;;
10582     esac
10583     ;;
10584   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10585     archive_cmds_need_lc_CXX=no
10586     ;;
10587   tandem*)
10588     case $cc_basename in
10589       NCC)
10590         # NonStop-UX NCC 3.20
10591         # FIXME: insert proper C++ library support
10592         ld_shlibs_CXX=no
10593         ;;
10594       *)
10595         # FIXME: insert proper C++ library support
10596         ld_shlibs_CXX=no
10597         ;;
10598     esac
10599     ;;
10600   vxworks*)
10601     # FIXME: insert proper C++ library support
10602     ld_shlibs_CXX=no
10603     ;;
10604   *)
10605     # FIXME: insert proper C++ library support
10606     ld_shlibs_CXX=no
10607     ;;
10608 esac
10609 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10610 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10611 test "$ld_shlibs_CXX" = no && can_build_shared=no
10612
10613 GCC_CXX="$GXX"
10614 LD_CXX="$LD"
10615
10616
10617 cat > conftest.$ac_ext <<EOF
10618 class Foo
10619 {
10620 public:
10621   Foo (void) { a = 0; }
10622 private:
10623   int a;
10624 };
10625 EOF
10626
10627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10628   (eval $ac_compile) 2>&5
10629   ac_status=$?
10630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631   (exit $ac_status); }; then
10632   # Parse the compiler output and extract the necessary
10633   # objects, libraries and library flags.
10634
10635   # Sentinel used to keep track of whether or not we are before
10636   # the conftest object file.
10637   pre_test_object_deps_done=no
10638
10639   # The `*' in the case matches for architectures that use `case' in
10640   # $output_verbose_cmd can trigger glob expansion during the loop
10641   # eval without this substitution.
10642   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10643
10644   for p in `eval $output_verbose_link_cmd`; do
10645     case $p in
10646
10647     -L* | -R* | -l*)
10648        # Some compilers place space between "-{L,R}" and the path.
10649        # Remove the space.
10650        if test $p = "-L" \
10651           || test $p = "-R"; then
10652          prev=$p
10653          continue
10654        else
10655          prev=
10656        fi
10657
10658        if test "$pre_test_object_deps_done" = no; then
10659          case $p in
10660          -L* | -R*)
10661            # Internal compiler library paths should come after those
10662            # provided the user.  The postdeps already come after the
10663            # user supplied libs so there is no need to process them.
10664            if test -z "$compiler_lib_search_path_CXX"; then
10665              compiler_lib_search_path_CXX="${prev}${p}"
10666            else
10667              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10668            fi
10669            ;;
10670          # The "-l" case would never come before the object being
10671          # linked, so don't bother handling this case.
10672          esac
10673        else
10674          if test -z "$postdeps_CXX"; then
10675            postdeps_CXX="${prev}${p}"
10676          else
10677            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10678          fi
10679        fi
10680        ;;
10681
10682     *.$objext)
10683        # This assumes that the test object file only shows up
10684        # once in the compiler output.
10685        if test "$p" = "conftest.$objext"; then
10686          pre_test_object_deps_done=yes
10687          continue
10688        fi
10689
10690        if test "$pre_test_object_deps_done" = no; then
10691          if test -z "$predep_objects_CXX"; then
10692            predep_objects_CXX="$p"
10693          else
10694            predep_objects_CXX="$predep_objects_CXX $p"
10695          fi
10696        else
10697          if test -z "$postdep_objects_CXX"; then
10698            postdep_objects_CXX="$p"
10699          else
10700            postdep_objects_CXX="$postdep_objects_CXX $p"
10701          fi
10702        fi
10703        ;;
10704
10705     *) ;; # Ignore the rest.
10706
10707     esac
10708   done
10709
10710   # Clean up.
10711   rm -f a.out a.exe
10712 else
10713   echo "libtool.m4: error: problem compiling CXX test program"
10714 fi
10715
10716 $rm -f confest.$objext
10717
10718 case " $postdeps_CXX " in
10719 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10720 esac
10721
10722 lt_prog_compiler_wl_CXX=
10723 lt_prog_compiler_pic_CXX=
10724 lt_prog_compiler_static_CXX=
10725
10726 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10727 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10728
10729   # C++ specific cases for pic, static, wl, etc.
10730   if test "$GXX" = yes; then
10731     lt_prog_compiler_wl_CXX='-Wl,'
10732     lt_prog_compiler_static_CXX='-static'
10733
10734     case $host_os in
10735     aix*)
10736       # All AIX code is PIC.
10737       if test "$host_cpu" = ia64; then
10738         # AIX 5 now supports IA64 processor
10739         lt_prog_compiler_static_CXX='-Bstatic'
10740       fi
10741       ;;
10742     amigaos*)
10743       # FIXME: we need at least 68020 code to build shared libraries, but
10744       # adding the `-m68020' flag to GCC prevents building anything better,
10745       # like `-m68040'.
10746       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10747       ;;
10748     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10749       # PIC is the default for these OSes.
10750       ;;
10751     mingw* | os2* | pw32*)
10752       # This hack is so that the source file can tell whether it is being
10753       # built for inclusion in a dll (and should export symbols for example).
10754       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10755       ;;
10756     darwin* | rhapsody*)
10757       # PIC is the default on this platform
10758       # Common symbols not allowed in MH_DYLIB files
10759       lt_prog_compiler_pic_CXX='-fno-common'
10760       ;;
10761     *djgpp*)
10762       # DJGPP does not support shared libraries at all
10763       lt_prog_compiler_pic_CXX=
10764       ;;
10765     sysv4*MP*)
10766       if test -d /usr/nec; then
10767         lt_prog_compiler_pic_CXX=-Kconform_pic
10768       fi
10769       ;;
10770     hpux*)
10771       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10772       # not for PA HP-UX.
10773       case "$host_cpu" in
10774       hppa*64*|ia64*)
10775         ;;
10776       *)
10777         lt_prog_compiler_pic_CXX='-fPIC'
10778         ;;
10779       esac
10780       ;;
10781     *)
10782       lt_prog_compiler_pic_CXX='-fPIC'
10783       ;;
10784     esac
10785   else
10786     case $host_os in
10787       aix4* | aix5*)
10788         # All AIX code is PIC.
10789         if test "$host_cpu" = ia64; then
10790           # AIX 5 now supports IA64 processor
10791           lt_prog_compiler_static_CXX='-Bstatic'
10792         else
10793           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10794         fi
10795         ;;
10796       chorus*)
10797         case $cc_basename in
10798         cxch68)
10799           # Green Hills C++ Compiler
10800           # _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"
10801           ;;
10802         esac
10803         ;;
10804       dgux*)
10805         case $cc_basename in
10806           ec++)
10807             lt_prog_compiler_pic_CXX='-KPIC'
10808             ;;
10809           ghcx)
10810             # Green Hills C++ Compiler
10811             lt_prog_compiler_pic_CXX='-pic'
10812             ;;
10813           *)
10814             ;;
10815         esac
10816         ;;
10817       freebsd* | kfreebsd*-gnu)
10818         # FreeBSD uses GNU C++
10819         ;;
10820       hpux9* | hpux10* | hpux11*)
10821         case $cc_basename in
10822           CC)
10823             lt_prog_compiler_wl_CXX='-Wl,'
10824             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10825             if test "$host_cpu" != ia64; then
10826               lt_prog_compiler_pic_CXX='+Z'
10827             fi
10828             ;;
10829           aCC)
10830             lt_prog_compiler_wl_CXX='-Wl,'
10831             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10832             case "$host_cpu" in
10833             hppa*64*|ia64*)
10834               # +Z the default
10835               ;;
10836             *)
10837               lt_prog_compiler_pic_CXX='+Z'
10838               ;;
10839             esac
10840             ;;
10841           *)
10842             ;;
10843         esac
10844         ;;
10845       irix5* | irix6* | nonstopux*)
10846         case $cc_basename in
10847           CC)
10848             lt_prog_compiler_wl_CXX='-Wl,'
10849             lt_prog_compiler_static_CXX='-non_shared'
10850             # CC pic flag -KPIC is the default.
10851             ;;
10852           *)
10853             ;;
10854         esac
10855         ;;
10856       linux*)
10857         case $cc_basename in
10858           KCC)
10859             # KAI C++ Compiler
10860             lt_prog_compiler_wl_CXX='--backend -Wl,'
10861             lt_prog_compiler_pic_CXX='-fPIC'
10862             ;;
10863           icpc)
10864             # Intel C++
10865             lt_prog_compiler_wl_CXX='-Wl,'
10866             lt_prog_compiler_pic_CXX='-KPIC'
10867             lt_prog_compiler_static_CXX='-static'
10868             ;;
10869           cxx)
10870             # Compaq C++
10871             # Make sure the PIC flag is empty.  It appears that all Alpha
10872             # Linux and Compaq Tru64 Unix objects are PIC.
10873             lt_prog_compiler_pic_CXX=
10874             lt_prog_compiler_static_CXX='-non_shared'
10875             ;;
10876           *)
10877             ;;
10878         esac
10879         ;;
10880       lynxos*)
10881         ;;
10882       m88k*)
10883         ;;
10884       mvs*)
10885         case $cc_basename in
10886           cxx)
10887             lt_prog_compiler_pic_CXX='-W c,exportall'
10888             ;;
10889           *)
10890             ;;
10891         esac
10892         ;;
10893       netbsd*)
10894         ;;
10895       osf3* | osf4* | osf5*)
10896         case $cc_basename in
10897           KCC)
10898             lt_prog_compiler_wl_CXX='--backend -Wl,'
10899             ;;
10900           RCC)
10901             # Rational C++ 2.4.1
10902             lt_prog_compiler_pic_CXX='-pic'
10903             ;;
10904           cxx)
10905             # Digital/Compaq C++
10906             lt_prog_compiler_wl_CXX='-Wl,'
10907             # Make sure the PIC flag is empty.  It appears that all Alpha
10908             # Linux and Compaq Tru64 Unix objects are PIC.
10909             lt_prog_compiler_pic_CXX=
10910             lt_prog_compiler_static_CXX='-non_shared'
10911             ;;
10912           *)
10913             ;;
10914         esac
10915         ;;
10916       psos*)
10917         ;;
10918       sco*)
10919         case $cc_basename in
10920           CC)
10921             lt_prog_compiler_pic_CXX='-fPIC'
10922             ;;
10923           *)
10924             ;;
10925         esac
10926         ;;
10927       solaris*)
10928         case $cc_basename in
10929           CC)
10930             # Sun C++ 4.2, 5.x and Centerline C++
10931             lt_prog_compiler_pic_CXX='-KPIC'
10932             lt_prog_compiler_static_CXX='-Bstatic'
10933             lt_prog_compiler_wl_CXX='-Qoption ld '
10934             ;;
10935           gcx)
10936             # Green Hills C++ Compiler
10937             lt_prog_compiler_pic_CXX='-PIC'
10938             ;;
10939           *)
10940             ;;
10941         esac
10942         ;;
10943       sunos4*)
10944         case $cc_basename in
10945           CC)
10946             # Sun C++ 4.x
10947             lt_prog_compiler_pic_CXX='-pic'
10948             lt_prog_compiler_static_CXX='-Bstatic'
10949             ;;
10950           lcc)
10951             # Lucid
10952             lt_prog_compiler_pic_CXX='-pic'
10953             ;;
10954           *)
10955             ;;
10956         esac
10957         ;;
10958       tandem*)
10959         case $cc_basename in
10960           NCC)
10961             # NonStop-UX NCC 3.20
10962             lt_prog_compiler_pic_CXX='-KPIC'
10963             ;;
10964           *)
10965             ;;
10966         esac
10967         ;;
10968       unixware*)
10969         ;;
10970       vxworks*)
10971         ;;
10972       *)
10973         lt_prog_compiler_can_build_shared_CXX=no
10974         ;;
10975     esac
10976   fi
10977
10978 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10979 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10980
10981 #
10982 # Check to make sure the PIC flag actually works.
10983 #
10984 if test -n "$lt_prog_compiler_pic_CXX"; then
10985
10986 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10987 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10988 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10989   echo $ECHO_N "(cached) $ECHO_C" >&6
10990 else
10991   lt_prog_compiler_pic_works_CXX=no
10992   ac_outfile=conftest.$ac_objext
10993    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10994    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10995    # Insert the option either (1) after the last *FLAGS variable, or
10996    # (2) before a word containing "conftest.", or (3) at the end.
10997    # Note that $ac_compile itself does not contain backslashes and begins
10998    # with a dollar sign (not a hyphen), so the echo should work correctly.
10999    # The option is referenced via a variable to avoid confusing sed.
11000    lt_compile=`echo "$ac_compile" | $SED \
11001    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11002    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11003    -e 's:$: $lt_compiler_flag:'`
11004    (eval echo "\"\$as_me:11004: $lt_compile\"" >&5)
11005    (eval "$lt_compile" 2>conftest.err)
11006    ac_status=$?
11007    cat conftest.err >&5
11008    echo "$as_me:11008: \$? = $ac_status" >&5
11009    if (exit $ac_status) && test -s "$ac_outfile"; then
11010      # The compiler can only warn and ignore the option if not recognized
11011      # So say no if there are warnings
11012      if test ! -s conftest.err; then
11013        lt_prog_compiler_pic_works_CXX=yes
11014      fi
11015    fi
11016    $rm conftest*
11017
11018 fi
11019 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11020 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11021
11022 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11023     case $lt_prog_compiler_pic_CXX in
11024      "" | " "*) ;;
11025      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11026      esac
11027 else
11028     lt_prog_compiler_pic_CXX=
11029      lt_prog_compiler_can_build_shared_CXX=no
11030 fi
11031
11032 fi
11033 case "$host_os" in
11034   # For platforms which do not support PIC, -DPIC is meaningless:
11035   *djgpp*)
11036     lt_prog_compiler_pic_CXX=
11037     ;;
11038   *)
11039     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11040     ;;
11041 esac
11042
11043 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11044 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11045 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11046   echo $ECHO_N "(cached) $ECHO_C" >&6
11047 else
11048   lt_cv_prog_compiler_c_o_CXX=no
11049    $rm -r conftest 2>/dev/null
11050    mkdir conftest
11051    cd conftest
11052    mkdir out
11053    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11054
11055    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
11056    # that will create temporary files in the current directory regardless of
11057    # the output directory.  Thus, making CWD read-only will cause this test
11058    # to fail, enabling locking or at least warning the user not to do parallel
11059    # builds.
11060    chmod -w .
11061
11062    lt_compiler_flag="-o out/conftest2.$ac_objext"
11063    # Insert the option either (1) after the last *FLAGS variable, or
11064    # (2) before a word containing "conftest.", or (3) at the end.
11065    # Note that $ac_compile itself does not contain backslashes and begins
11066    # with a dollar sign (not a hyphen), so the echo should work correctly.
11067    lt_compile=`echo "$ac_compile" | $SED \
11068    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11069    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11070    -e 's:$: $lt_compiler_flag:'`
11071    (eval echo "\"\$as_me:11071: $lt_compile\"" >&5)
11072    (eval "$lt_compile" 2>out/conftest.err)
11073    ac_status=$?
11074    cat out/conftest.err >&5
11075    echo "$as_me:11075: \$? = $ac_status" >&5
11076    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11077    then
11078      # The compiler can only warn and ignore the option if not recognized
11079      # So say no if there are warnings
11080      if test ! -s out/conftest.err; then
11081        lt_cv_prog_compiler_c_o_CXX=yes
11082      fi
11083    fi
11084    chmod u+w .
11085    $rm conftest*
11086    # SGI C++ compiler will create directory out/ii_files/ for
11087    # template instantiation
11088    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11089    $rm out/* && rmdir out
11090    cd ..
11091    rmdir conftest
11092    $rm conftest*
11093
11094 fi
11095 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11096 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11097
11098
11099 hard_links="nottested"
11100 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11101   # do not overwrite the value of need_locks provided by the user
11102   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11103 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11104   hard_links=yes
11105   $rm conftest*
11106   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11107   touch conftest.a
11108   ln conftest.a conftest.b 2>&5 || hard_links=no
11109   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11110   echo "$as_me:$LINENO: result: $hard_links" >&5
11111 echo "${ECHO_T}$hard_links" >&6
11112   if test "$hard_links" = no; then
11113     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11114 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11115     need_locks=warn
11116   fi
11117 else
11118   need_locks=no
11119 fi
11120
11121 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11122 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11123
11124   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11125   case $host_os in
11126   aix4* | aix5*)
11127     # If we're using GNU nm, then we don't want the "-C" option.
11128     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11129     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11130       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'
11131     else
11132       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'
11133     fi
11134     ;;
11135   pw32*)
11136     export_symbols_cmds_CXX="$ltdll_cmds"
11137   ;;
11138   cygwin* | mingw*)
11139     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11140   ;;
11141   *)
11142     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11143   ;;
11144   esac
11145
11146 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11147 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11148 test "$ld_shlibs_CXX" = no && can_build_shared=no
11149
11150 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11151 if test "$GCC" = yes; then
11152   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11153 fi
11154
11155 #
11156 # Do we need to explicitly link libc?
11157 #
11158 case "x$archive_cmds_need_lc_CXX" in
11159 x|xyes)
11160   # Assume -lc should be added
11161   archive_cmds_need_lc_CXX=yes
11162
11163   if test "$enable_shared" = yes && test "$GCC" = yes; then
11164     case $archive_cmds_CXX in
11165     *'~'*)
11166       # FIXME: we may have to deal with multi-command sequences.
11167       ;;
11168     '$CC '*)
11169       # Test whether the compiler implicitly links with -lc since on some
11170       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11171       # to ld, don't add -lc before -lgcc.
11172       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11173 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11174       $rm conftest*
11175       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11176
11177       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11178   (eval $ac_compile) 2>&5
11179   ac_status=$?
11180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181   (exit $ac_status); } 2>conftest.err; then
11182         soname=conftest
11183         lib=conftest
11184         libobjs=conftest.$ac_objext
11185         deplibs=
11186         wl=$lt_prog_compiler_wl_CXX
11187         compiler_flags=-v
11188         linker_flags=-v
11189         verstring=
11190         output_objdir=.
11191         libname=conftest
11192         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11193         allow_undefined_flag_CXX=
11194         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11195   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11196   ac_status=$?
11197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198   (exit $ac_status); }
11199         then
11200           archive_cmds_need_lc_CXX=no
11201         else
11202           archive_cmds_need_lc_CXX=yes
11203         fi
11204         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11205       else
11206         cat conftest.err 1>&5
11207       fi
11208       $rm conftest*
11209       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11210 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11211       ;;
11212     esac
11213   fi
11214   ;;
11215 esac
11216
11217 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11218 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11219 library_names_spec=
11220 libname_spec='lib$name'
11221 soname_spec=
11222 shrext=".so"
11223 postinstall_cmds=
11224 postuninstall_cmds=
11225 finish_cmds=
11226 finish_eval=
11227 shlibpath_var=
11228 shlibpath_overrides_runpath=unknown
11229 version_type=none
11230 dynamic_linker="$host_os ld.so"
11231 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11232 if test "$GCC" = yes; then
11233   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11234   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11235     # if the path contains ";" then we assume it to be the separator
11236     # otherwise default to the standard path separator (i.e. ":") - it is
11237     # assumed that no part of a normal pathname contains ";" but that should
11238     # okay in the real world where ";" in dirpaths is itself problematic.
11239     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11240   else
11241     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11242   fi
11243 else
11244   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11245 fi
11246 need_lib_prefix=unknown
11247 hardcode_into_libs=no
11248
11249 # when you set need_version to no, make sure it does not cause -set_version
11250 # flags to be left without arguments
11251 need_version=unknown
11252
11253 case $host_os in
11254 aix3*)
11255   version_type=linux
11256   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11257   shlibpath_var=LIBPATH
11258
11259   # AIX 3 has no versioning support, so we append a major version to the name.
11260   soname_spec='${libname}${release}${shared_ext}$major'
11261   ;;
11262
11263 aix4* | aix5*)
11264   version_type=linux
11265   need_lib_prefix=no
11266   need_version=no
11267   hardcode_into_libs=yes
11268   if test "$host_cpu" = ia64; then
11269     # AIX 5 supports IA64
11270     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11271     shlibpath_var=LD_LIBRARY_PATH
11272   else
11273     # With GCC up to 2.95.x, collect2 would create an import file
11274     # for dependence libraries.  The import file would start with
11275     # the line `#! .'.  This would cause the generated library to
11276     # depend on `.', always an invalid library.  This was fixed in
11277     # development snapshots of GCC prior to 3.0.
11278     case $host_os in
11279       aix4 | aix4.[01] | aix4.[01].*)
11280       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11281            echo ' yes '
11282            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11283         :
11284       else
11285         can_build_shared=no
11286       fi
11287       ;;
11288     esac
11289     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11290     # soname into executable. Probably we can add versioning support to
11291     # collect2, so additional links can be useful in future.
11292     if test "$aix_use_runtimelinking" = yes; then
11293       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11294       # instead of lib<name>.a to let people know that these are not
11295       # typical AIX shared libraries.
11296       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11297     else
11298       # We preserve .a as extension for shared libraries through AIX4.2
11299       # and later when we are not doing run time linking.
11300       library_names_spec='${libname}${release}.a $libname.a'
11301       soname_spec='${libname}${release}${shared_ext}$major'
11302     fi
11303     shlibpath_var=LIBPATH
11304   fi
11305   ;;
11306
11307 amigaos*)
11308   library_names_spec='$libname.ixlibrary $libname.a'
11309   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11310   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'
11311   ;;
11312
11313 beos*)
11314   library_names_spec='${libname}${shared_ext}'
11315   dynamic_linker="$host_os ld.so"
11316   shlibpath_var=LIBRARY_PATH
11317   ;;
11318
11319 bsdi4*)
11320   version_type=linux
11321   need_version=no
11322   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11323   soname_spec='${libname}${release}${shared_ext}$major'
11324   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11325   shlibpath_var=LD_LIBRARY_PATH
11326   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11327   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11328   # the default ld.so.conf also contains /usr/contrib/lib and
11329   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11330   # libtool to hard-code these into programs
11331   ;;
11332
11333 cygwin* | mingw* | pw32*)
11334   version_type=windows
11335   shrext=".dll"
11336   need_version=no
11337   need_lib_prefix=no
11338
11339   case $GCC,$host_os in
11340   yes,cygwin* | yes,mingw* | yes,pw32*)
11341     library_names_spec='$libname.dll.a'
11342     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11343     postinstall_cmds='base_file=`basename \${file}`~
11344       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11345       dldir=$destdir/`dirname \$dlpath`~
11346       test -d \$dldir || mkdir -p \$dldir~
11347       $install_prog $dir/$dlname \$dldir/$dlname'
11348     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11349       dlpath=$dir/\$dldll~
11350        $rm \$dlpath'
11351     shlibpath_overrides_runpath=yes
11352
11353     case $host_os in
11354     cygwin*)
11355       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11356       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11357       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11358       ;;
11359     mingw*)
11360       # MinGW DLLs use traditional 'lib' prefix
11361       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11362       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11363       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11364         # It is most probably a Windows format PATH printed by
11365         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11366         # path with ; separators, and with drive letters. We can handle the
11367         # drive letters (cygwin fileutils understands them), so leave them,
11368         # especially as we might pass files found there to a mingw objdump,
11369         # which wouldn't understand a cygwinified path. Ahh.
11370         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11371       else
11372         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11373       fi
11374       ;;
11375     pw32*)
11376       # pw32 DLLs use 'pw' prefix rather than 'lib'
11377       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11378       ;;
11379     esac
11380     ;;
11381
11382   *)
11383     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11384     ;;
11385   esac
11386   dynamic_linker='Win32 ld.exe'
11387   # FIXME: first we should search . and the directory the executable is in
11388   shlibpath_var=PATH
11389   ;;
11390
11391 darwin* | rhapsody*)
11392   dynamic_linker="$host_os dyld"
11393   version_type=darwin
11394   need_lib_prefix=no
11395   need_version=no
11396   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11397   soname_spec='${libname}${release}${major}$shared_ext'
11398   shlibpath_overrides_runpath=yes
11399   shlibpath_var=DYLD_LIBRARY_PATH
11400   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11401   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11402   if test "$GCC" = yes; then
11403     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"`
11404   else
11405     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11406   fi
11407   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11408   ;;
11409
11410 dgux*)
11411   version_type=linux
11412   need_lib_prefix=no
11413   need_version=no
11414   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11415   soname_spec='${libname}${release}${shared_ext}$major'
11416   shlibpath_var=LD_LIBRARY_PATH
11417   ;;
11418
11419 freebsd1*)
11420   dynamic_linker=no
11421   ;;
11422
11423 kfreebsd*-gnu)
11424   version_type=linux
11425   need_lib_prefix=no
11426   need_version=no
11427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11428   soname_spec='${libname}${release}${shared_ext}$major'
11429   shlibpath_var=LD_LIBRARY_PATH
11430   shlibpath_overrides_runpath=no
11431   hardcode_into_libs=yes
11432   dynamic_linker='GNU ld.so'
11433   ;;
11434
11435 freebsd*)
11436   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11437   version_type=freebsd-$objformat
11438   case $version_type in
11439     freebsd-elf*)
11440       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11441       need_version=no
11442       need_lib_prefix=no
11443       ;;
11444     freebsd-*)
11445       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11446       need_version=yes
11447       ;;
11448   esac
11449   shlibpath_var=LD_LIBRARY_PATH
11450   case $host_os in
11451   freebsd2*)
11452     shlibpath_overrides_runpath=yes
11453     ;;
11454   freebsd3.01* | freebsdelf3.01*)
11455     shlibpath_overrides_runpath=yes
11456     hardcode_into_libs=yes
11457     ;;
11458   *) # from 3.2 on
11459     shlibpath_overrides_runpath=no
11460     hardcode_into_libs=yes
11461     ;;
11462   esac
11463   ;;
11464
11465 gnu*)
11466   version_type=linux
11467   need_lib_prefix=no
11468   need_version=no
11469   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11470   soname_spec='${libname}${release}${shared_ext}$major'
11471   shlibpath_var=LD_LIBRARY_PATH
11472   hardcode_into_libs=yes
11473   ;;
11474
11475 hpux9* | hpux10* | hpux11*)
11476   # Give a soname corresponding to the major version so that dld.sl refuses to
11477   # link against other versions.
11478   version_type=sunos
11479   need_lib_prefix=no
11480   need_version=no
11481   case "$host_cpu" in
11482   ia64*)
11483     shrext='.so'
11484     hardcode_into_libs=yes
11485     dynamic_linker="$host_os dld.so"
11486     shlibpath_var=LD_LIBRARY_PATH
11487     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11488     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11489     soname_spec='${libname}${release}${shared_ext}$major'
11490     if test "X$HPUX_IA64_MODE" = X32; then
11491       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11492     else
11493       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11494     fi
11495     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11496     ;;
11497    hppa*64*)
11498      shrext='.sl'
11499      hardcode_into_libs=yes
11500      dynamic_linker="$host_os dld.sl"
11501      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11502      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11503      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11504      soname_spec='${libname}${release}${shared_ext}$major'
11505      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11506      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11507      ;;
11508    *)
11509     shrext='.sl'
11510     dynamic_linker="$host_os dld.sl"
11511     shlibpath_var=SHLIB_PATH
11512     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11513     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11514     soname_spec='${libname}${release}${shared_ext}$major'
11515     ;;
11516   esac
11517   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11518   postinstall_cmds='chmod 555 $lib'
11519   ;;
11520
11521 irix5* | irix6* | nonstopux*)
11522   case $host_os in
11523     nonstopux*) version_type=nonstopux ;;
11524     *)
11525         if test "$lt_cv_prog_gnu_ld" = yes; then
11526                 version_type=linux
11527         else
11528                 version_type=irix
11529         fi ;;
11530   esac
11531   need_lib_prefix=no
11532   need_version=no
11533   soname_spec='${libname}${release}${shared_ext}$major'
11534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11535   case $host_os in
11536   irix5* | nonstopux*)
11537     libsuff= shlibsuff=
11538     ;;
11539   *)
11540     case $LD in # libtool.m4 will add one of these switches to LD
11541     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11542       libsuff= shlibsuff= libmagic=32-bit;;
11543     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11544       libsuff=32 shlibsuff=N32 libmagic=N32;;
11545     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11546       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11547     *) libsuff= shlibsuff= libmagic=never-match;;
11548     esac
11549     ;;
11550   esac
11551   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11552   shlibpath_overrides_runpath=no
11553   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11554   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11555   hardcode_into_libs=yes
11556   ;;
11557
11558 # No shared lib support for Linux oldld, aout, or coff.
11559 linux*oldld* | linux*aout* | linux*coff*)
11560   dynamic_linker=no
11561   ;;
11562
11563 # This must be Linux ELF.
11564 linux*)
11565   version_type=linux
11566   need_lib_prefix=no
11567   need_version=no
11568   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11569   soname_spec='${libname}${release}${shared_ext}$major'
11570   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11571   shlibpath_var=LD_LIBRARY_PATH
11572   shlibpath_overrides_runpath=no
11573   # This implies no fast_install, which is unacceptable.
11574   # Some rework will be needed to allow for fast_install
11575   # before this can be enabled.
11576   hardcode_into_libs=yes
11577
11578   # Append ld.so.conf contents to the search path
11579   if test -f /etc/ld.so.conf; then
11580     ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
11581     sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
11582   fi
11583
11584   # We used to test for /lib/ld.so.1 and disable shared libraries on
11585   # powerpc, because MkLinux only supported shared libraries with the
11586   # GNU dynamic linker.  Since this was broken with cross compilers,
11587   # most powerpc-linux boxes support dynamic linking these days and
11588   # people can always --disable-shared, the test was removed, and we
11589   # assume the GNU/Linux dynamic linker is in use.
11590   dynamic_linker='GNU/Linux ld.so'
11591   ;;
11592
11593 knetbsd*-gnu)
11594   version_type=linux
11595   need_lib_prefix=no
11596   need_version=no
11597   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11598   soname_spec='${libname}${release}${shared_ext}$major'
11599   shlibpath_var=LD_LIBRARY_PATH
11600   shlibpath_overrides_runpath=no
11601   hardcode_into_libs=yes
11602   dynamic_linker='GNU ld.so'
11603   ;;
11604
11605 netbsd*)
11606   version_type=sunos
11607   need_lib_prefix=no
11608   need_version=no
11609   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11610     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11611     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11612     dynamic_linker='NetBSD (a.out) ld.so'
11613   else
11614     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11615     soname_spec='${libname}${release}${shared_ext}$major'
11616     dynamic_linker='NetBSD ld.elf_so'
11617   fi
11618   shlibpath_var=LD_LIBRARY_PATH
11619   shlibpath_overrides_runpath=yes
11620   hardcode_into_libs=yes
11621   ;;
11622
11623 newsos6)
11624   version_type=linux
11625   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11626   shlibpath_var=LD_LIBRARY_PATH
11627   shlibpath_overrides_runpath=yes
11628   ;;
11629
11630 nto-qnx*)
11631   version_type=linux
11632   need_lib_prefix=no
11633   need_version=no
11634   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11635   soname_spec='${libname}${release}${shared_ext}$major'
11636   shlibpath_var=LD_LIBRARY_PATH
11637   shlibpath_overrides_runpath=yes
11638   ;;
11639
11640 openbsd*)
11641   version_type=sunos
11642   need_lib_prefix=no
11643   need_version=yes
11644   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11645   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11646   shlibpath_var=LD_LIBRARY_PATH
11647   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11648     case $host_os in
11649       openbsd2.[89] | openbsd2.[89].*)
11650         shlibpath_overrides_runpath=no
11651         ;;
11652       *)
11653         shlibpath_overrides_runpath=yes
11654         ;;
11655       esac
11656   else
11657     shlibpath_overrides_runpath=yes
11658   fi
11659   ;;
11660
11661 os2*)
11662   libname_spec='$name'
11663   shrext=".dll"
11664   need_lib_prefix=no
11665   library_names_spec='$libname${shared_ext} $libname.a'
11666   dynamic_linker='OS/2 ld.exe'
11667   shlibpath_var=LIBPATH
11668   ;;
11669
11670 osf3* | osf4* | osf5*)
11671   version_type=osf
11672   need_lib_prefix=no
11673   need_version=no
11674   soname_spec='${libname}${release}${shared_ext}$major'
11675   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11676   shlibpath_var=LD_LIBRARY_PATH
11677   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11678   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11679   ;;
11680
11681 sco3.2v5*)
11682   version_type=osf
11683   soname_spec='${libname}${release}${shared_ext}$major'
11684   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11685   shlibpath_var=LD_LIBRARY_PATH
11686   ;;
11687
11688 solaris*)
11689   version_type=linux
11690   need_lib_prefix=no
11691   need_version=no
11692   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11693   soname_spec='${libname}${release}${shared_ext}$major'
11694   shlibpath_var=LD_LIBRARY_PATH
11695   shlibpath_overrides_runpath=yes
11696   hardcode_into_libs=yes
11697   # ldd complains unless libraries are executable
11698   postinstall_cmds='chmod +x $lib'
11699   ;;
11700
11701 sunos4*)
11702   version_type=sunos
11703   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11704   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11705   shlibpath_var=LD_LIBRARY_PATH
11706   shlibpath_overrides_runpath=yes
11707   if test "$with_gnu_ld" = yes; then
11708     need_lib_prefix=no
11709   fi
11710   need_version=yes
11711   ;;
11712
11713 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11714   version_type=linux
11715   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11716   soname_spec='${libname}${release}${shared_ext}$major'
11717   shlibpath_var=LD_LIBRARY_PATH
11718   case $host_vendor in
11719     sni)
11720       shlibpath_overrides_runpath=no
11721       need_lib_prefix=no
11722       export_dynamic_flag_spec='${wl}-Blargedynsym'
11723       runpath_var=LD_RUN_PATH
11724       ;;
11725     siemens)
11726       need_lib_prefix=no
11727       ;;
11728     motorola)
11729       need_lib_prefix=no
11730       need_version=no
11731       shlibpath_overrides_runpath=no
11732       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11733       ;;
11734   esac
11735   ;;
11736
11737 sysv4*MP*)
11738   if test -d /usr/nec ;then
11739     version_type=linux
11740     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11741     soname_spec='$libname${shared_ext}.$major'
11742     shlibpath_var=LD_LIBRARY_PATH
11743   fi
11744   ;;
11745
11746 uts4*)
11747   version_type=linux
11748   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11749   soname_spec='${libname}${release}${shared_ext}$major'
11750   shlibpath_var=LD_LIBRARY_PATH
11751   ;;
11752
11753 *)
11754   dynamic_linker=no
11755   ;;
11756 esac
11757 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11758 echo "${ECHO_T}$dynamic_linker" >&6
11759 test "$dynamic_linker" = no && can_build_shared=no
11760
11761 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11762 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11763 hardcode_action_CXX=
11764 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11765    test -n "$runpath_var CXX" || \
11766    test "X$hardcode_automatic_CXX"="Xyes" ; then
11767
11768   # We can hardcode non-existant directories.
11769   if test "$hardcode_direct_CXX" != no &&
11770      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11771      # have to relink, otherwise we might link with an installed library
11772      # when we should be linking with a yet-to-be-installed one
11773      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11774      test "$hardcode_minus_L_CXX" != no; then
11775     # Linking always hardcodes the temporary library directory.
11776     hardcode_action_CXX=relink
11777   else
11778     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11779     hardcode_action_CXX=immediate
11780   fi
11781 else
11782   # We cannot hardcode anything, or else we can only hardcode existing
11783   # directories.
11784   hardcode_action_CXX=unsupported
11785 fi
11786 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11787 echo "${ECHO_T}$hardcode_action_CXX" >&6
11788
11789 if test "$hardcode_action_CXX" = relink; then
11790   # Fast installation is not supported
11791   enable_fast_install=no
11792 elif test "$shlibpath_overrides_runpath" = yes ||
11793      test "$enable_shared" = no; then
11794   # Fast installation is not necessary
11795   enable_fast_install=needless
11796 fi
11797
11798 striplib=
11799 old_striplib=
11800 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11801 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11802 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11803   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11804   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11805   echo "$as_me:$LINENO: result: yes" >&5
11806 echo "${ECHO_T}yes" >&6
11807 else
11808 # FIXME - insert some real tests, host_os isn't really good enough
11809   case $host_os in
11810    darwin*)
11811        if test -n "$STRIP" ; then
11812          striplib="$STRIP -x"
11813          echo "$as_me:$LINENO: result: yes" >&5
11814 echo "${ECHO_T}yes" >&6
11815        else
11816   echo "$as_me:$LINENO: result: no" >&5
11817 echo "${ECHO_T}no" >&6
11818 fi
11819        ;;
11820    *)
11821   echo "$as_me:$LINENO: result: no" >&5
11822 echo "${ECHO_T}no" >&6
11823     ;;
11824   esac
11825 fi
11826
11827 if test "x$enable_dlopen" != xyes; then
11828   enable_dlopen=unknown
11829   enable_dlopen_self=unknown
11830   enable_dlopen_self_static=unknown
11831 else
11832   lt_cv_dlopen=no
11833   lt_cv_dlopen_libs=
11834
11835   case $host_os in
11836   beos*)
11837     lt_cv_dlopen="load_add_on"
11838     lt_cv_dlopen_libs=
11839     lt_cv_dlopen_self=yes
11840     ;;
11841
11842   mingw* | pw32*)
11843     lt_cv_dlopen="LoadLibrary"
11844     lt_cv_dlopen_libs=
11845    ;;
11846
11847   cygwin*)
11848     lt_cv_dlopen="dlopen"
11849     lt_cv_dlopen_libs=
11850    ;;
11851
11852   darwin*)
11853   # if libdl is installed we need to link against it
11854     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11855 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11856 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11857   echo $ECHO_N "(cached) $ECHO_C" >&6
11858 else
11859   ac_check_lib_save_LIBS=$LIBS
11860 LIBS="-ldl  $LIBS"
11861 cat >conftest.$ac_ext <<_ACEOF
11862 /* confdefs.h.  */
11863 _ACEOF
11864 cat confdefs.h >>conftest.$ac_ext
11865 cat >>conftest.$ac_ext <<_ACEOF
11866 /* end confdefs.h.  */
11867
11868 /* Override any gcc2 internal prototype to avoid an error.  */
11869 #ifdef __cplusplus
11870 extern "C"
11871 #endif
11872 /* We use char because int might match the return type of a gcc2
11873    builtin and then its argument prototype would still apply.  */
11874 char dlopen ();
11875 int
11876 main ()
11877 {
11878 dlopen ();
11879   ;
11880   return 0;
11881 }
11882 _ACEOF
11883 rm -f conftest.$ac_objext conftest$ac_exeext
11884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11885   (eval $ac_link) 2>conftest.er1
11886   ac_status=$?
11887   grep -v '^ *+' conftest.er1 >conftest.err
11888   rm -f conftest.er1
11889   cat conftest.err >&5
11890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891   (exit $ac_status); } &&
11892          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11894   (eval $ac_try) 2>&5
11895   ac_status=$?
11896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897   (exit $ac_status); }; } &&
11898          { ac_try='test -s conftest$ac_exeext'
11899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11900   (eval $ac_try) 2>&5
11901   ac_status=$?
11902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903   (exit $ac_status); }; }; then
11904   ac_cv_lib_dl_dlopen=yes
11905 else
11906   echo "$as_me: failed program was:" >&5
11907 sed 's/^/| /' conftest.$ac_ext >&5
11908
11909 ac_cv_lib_dl_dlopen=no
11910 fi
11911 rm -f conftest.err conftest.$ac_objext \
11912       conftest$ac_exeext conftest.$ac_ext
11913 LIBS=$ac_check_lib_save_LIBS
11914 fi
11915 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11916 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11917 if test $ac_cv_lib_dl_dlopen = yes; then
11918   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11919 else
11920
11921     lt_cv_dlopen="dyld"
11922     lt_cv_dlopen_libs=
11923     lt_cv_dlopen_self=yes
11924
11925 fi
11926
11927    ;;
11928
11929   *)
11930     echo "$as_me:$LINENO: checking for shl_load" >&5
11931 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11932 if test "${ac_cv_func_shl_load+set}" = set; then
11933   echo $ECHO_N "(cached) $ECHO_C" >&6
11934 else
11935   cat >conftest.$ac_ext <<_ACEOF
11936 /* confdefs.h.  */
11937 _ACEOF
11938 cat confdefs.h >>conftest.$ac_ext
11939 cat >>conftest.$ac_ext <<_ACEOF
11940 /* end confdefs.h.  */
11941 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11942    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11943 #define shl_load innocuous_shl_load
11944
11945 /* System header to define __stub macros and hopefully few prototypes,
11946     which can conflict with char shl_load (); below.
11947     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11948     <limits.h> exists even on freestanding compilers.  */
11949
11950 #ifdef __STDC__
11951 # include <limits.h>
11952 #else
11953 # include <assert.h>
11954 #endif
11955
11956 #undef shl_load
11957
11958 /* Override any gcc2 internal prototype to avoid an error.  */
11959 #ifdef __cplusplus
11960 extern "C"
11961 {
11962 #endif
11963 /* We use char because int might match the return type of a gcc2
11964    builtin and then its argument prototype would still apply.  */
11965 char shl_load ();
11966 /* The GNU C library defines this for functions which it implements
11967     to always fail with ENOSYS.  Some functions are actually named
11968     something starting with __ and the normal name is an alias.  */
11969 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11970 choke me
11971 #else
11972 char (*f) () = shl_load;
11973 #endif
11974 #ifdef __cplusplus
11975 }
11976 #endif
11977
11978 int
11979 main ()
11980 {
11981 return f != shl_load;
11982   ;
11983   return 0;
11984 }
11985 _ACEOF
11986 rm -f conftest.$ac_objext conftest$ac_exeext
11987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11988   (eval $ac_link) 2>conftest.er1
11989   ac_status=$?
11990   grep -v '^ *+' conftest.er1 >conftest.err
11991   rm -f conftest.er1
11992   cat conftest.err >&5
11993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994   (exit $ac_status); } &&
11995          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11997   (eval $ac_try) 2>&5
11998   ac_status=$?
11999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000   (exit $ac_status); }; } &&
12001          { ac_try='test -s conftest$ac_exeext'
12002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12003   (eval $ac_try) 2>&5
12004   ac_status=$?
12005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006   (exit $ac_status); }; }; then
12007   ac_cv_func_shl_load=yes
12008 else
12009   echo "$as_me: failed program was:" >&5
12010 sed 's/^/| /' conftest.$ac_ext >&5
12011
12012 ac_cv_func_shl_load=no
12013 fi
12014 rm -f conftest.err conftest.$ac_objext \
12015       conftest$ac_exeext conftest.$ac_ext
12016 fi
12017 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12018 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12019 if test $ac_cv_func_shl_load = yes; then
12020   lt_cv_dlopen="shl_load"
12021 else
12022   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12023 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12024 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12025   echo $ECHO_N "(cached) $ECHO_C" >&6
12026 else
12027   ac_check_lib_save_LIBS=$LIBS
12028 LIBS="-ldld  $LIBS"
12029 cat >conftest.$ac_ext <<_ACEOF
12030 /* confdefs.h.  */
12031 _ACEOF
12032 cat confdefs.h >>conftest.$ac_ext
12033 cat >>conftest.$ac_ext <<_ACEOF
12034 /* end confdefs.h.  */
12035
12036 /* Override any gcc2 internal prototype to avoid an error.  */
12037 #ifdef __cplusplus
12038 extern "C"
12039 #endif
12040 /* We use char because int might match the return type of a gcc2
12041    builtin and then its argument prototype would still apply.  */
12042 char shl_load ();
12043 int
12044 main ()
12045 {
12046 shl_load ();
12047   ;
12048   return 0;
12049 }
12050 _ACEOF
12051 rm -f conftest.$ac_objext conftest$ac_exeext
12052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12053   (eval $ac_link) 2>conftest.er1
12054   ac_status=$?
12055   grep -v '^ *+' conftest.er1 >conftest.err
12056   rm -f conftest.er1
12057   cat conftest.err >&5
12058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059   (exit $ac_status); } &&
12060          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12062   (eval $ac_try) 2>&5
12063   ac_status=$?
12064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065   (exit $ac_status); }; } &&
12066          { ac_try='test -s conftest$ac_exeext'
12067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12068   (eval $ac_try) 2>&5
12069   ac_status=$?
12070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071   (exit $ac_status); }; }; then
12072   ac_cv_lib_dld_shl_load=yes
12073 else
12074   echo "$as_me: failed program was:" >&5
12075 sed 's/^/| /' conftest.$ac_ext >&5
12076
12077 ac_cv_lib_dld_shl_load=no
12078 fi
12079 rm -f conftest.err conftest.$ac_objext \
12080       conftest$ac_exeext conftest.$ac_ext
12081 LIBS=$ac_check_lib_save_LIBS
12082 fi
12083 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12084 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12085 if test $ac_cv_lib_dld_shl_load = yes; then
12086   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12087 else
12088   echo "$as_me:$LINENO: checking for dlopen" >&5
12089 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12090 if test "${ac_cv_func_dlopen+set}" = set; then
12091   echo $ECHO_N "(cached) $ECHO_C" >&6
12092 else
12093   cat >conftest.$ac_ext <<_ACEOF
12094 /* confdefs.h.  */
12095 _ACEOF
12096 cat confdefs.h >>conftest.$ac_ext
12097 cat >>conftest.$ac_ext <<_ACEOF
12098 /* end confdefs.h.  */
12099 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12100    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12101 #define dlopen innocuous_dlopen
12102
12103 /* System header to define __stub macros and hopefully few prototypes,
12104     which can conflict with char dlopen (); below.
12105     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12106     <limits.h> exists even on freestanding compilers.  */
12107
12108 #ifdef __STDC__
12109 # include <limits.h>
12110 #else
12111 # include <assert.h>
12112 #endif
12113
12114 #undef dlopen
12115
12116 /* Override any gcc2 internal prototype to avoid an error.  */
12117 #ifdef __cplusplus
12118 extern "C"
12119 {
12120 #endif
12121 /* We use char because int might match the return type of a gcc2
12122    builtin and then its argument prototype would still apply.  */
12123 char dlopen ();
12124 /* The GNU C library defines this for functions which it implements
12125     to always fail with ENOSYS.  Some functions are actually named
12126     something starting with __ and the normal name is an alias.  */
12127 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12128 choke me
12129 #else
12130 char (*f) () = dlopen;
12131 #endif
12132 #ifdef __cplusplus
12133 }
12134 #endif
12135
12136 int
12137 main ()
12138 {
12139 return f != dlopen;
12140   ;
12141   return 0;
12142 }
12143 _ACEOF
12144 rm -f conftest.$ac_objext conftest$ac_exeext
12145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12146   (eval $ac_link) 2>conftest.er1
12147   ac_status=$?
12148   grep -v '^ *+' conftest.er1 >conftest.err
12149   rm -f conftest.er1
12150   cat conftest.err >&5
12151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152   (exit $ac_status); } &&
12153          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12155   (eval $ac_try) 2>&5
12156   ac_status=$?
12157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158   (exit $ac_status); }; } &&
12159          { ac_try='test -s conftest$ac_exeext'
12160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12161   (eval $ac_try) 2>&5
12162   ac_status=$?
12163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164   (exit $ac_status); }; }; then
12165   ac_cv_func_dlopen=yes
12166 else
12167   echo "$as_me: failed program was:" >&5
12168 sed 's/^/| /' conftest.$ac_ext >&5
12169
12170 ac_cv_func_dlopen=no
12171 fi
12172 rm -f conftest.err conftest.$ac_objext \
12173       conftest$ac_exeext conftest.$ac_ext
12174 fi
12175 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12176 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12177 if test $ac_cv_func_dlopen = yes; then
12178   lt_cv_dlopen="dlopen"
12179 else
12180   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12181 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12182 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12183   echo $ECHO_N "(cached) $ECHO_C" >&6
12184 else
12185   ac_check_lib_save_LIBS=$LIBS
12186 LIBS="-ldl  $LIBS"
12187 cat >conftest.$ac_ext <<_ACEOF
12188 /* confdefs.h.  */
12189 _ACEOF
12190 cat confdefs.h >>conftest.$ac_ext
12191 cat >>conftest.$ac_ext <<_ACEOF
12192 /* end confdefs.h.  */
12193
12194 /* Override any gcc2 internal prototype to avoid an error.  */
12195 #ifdef __cplusplus
12196 extern "C"
12197 #endif
12198 /* We use char because int might match the return type of a gcc2
12199    builtin and then its argument prototype would still apply.  */
12200 char dlopen ();
12201 int
12202 main ()
12203 {
12204 dlopen ();
12205   ;
12206   return 0;
12207 }
12208 _ACEOF
12209 rm -f conftest.$ac_objext conftest$ac_exeext
12210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12211   (eval $ac_link) 2>conftest.er1
12212   ac_status=$?
12213   grep -v '^ *+' conftest.er1 >conftest.err
12214   rm -f conftest.er1
12215   cat conftest.err >&5
12216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217   (exit $ac_status); } &&
12218          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12220   (eval $ac_try) 2>&5
12221   ac_status=$?
12222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223   (exit $ac_status); }; } &&
12224          { ac_try='test -s conftest$ac_exeext'
12225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12226   (eval $ac_try) 2>&5
12227   ac_status=$?
12228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229   (exit $ac_status); }; }; then
12230   ac_cv_lib_dl_dlopen=yes
12231 else
12232   echo "$as_me: failed program was:" >&5
12233 sed 's/^/| /' conftest.$ac_ext >&5
12234
12235 ac_cv_lib_dl_dlopen=no
12236 fi
12237 rm -f conftest.err conftest.$ac_objext \
12238       conftest$ac_exeext conftest.$ac_ext
12239 LIBS=$ac_check_lib_save_LIBS
12240 fi
12241 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12242 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12243 if test $ac_cv_lib_dl_dlopen = yes; then
12244   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12245 else
12246   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12247 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12248 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12249   echo $ECHO_N "(cached) $ECHO_C" >&6
12250 else
12251   ac_check_lib_save_LIBS=$LIBS
12252 LIBS="-lsvld  $LIBS"
12253 cat >conftest.$ac_ext <<_ACEOF
12254 /* confdefs.h.  */
12255 _ACEOF
12256 cat confdefs.h >>conftest.$ac_ext
12257 cat >>conftest.$ac_ext <<_ACEOF
12258 /* end confdefs.h.  */
12259
12260 /* Override any gcc2 internal prototype to avoid an error.  */
12261 #ifdef __cplusplus
12262 extern "C"
12263 #endif
12264 /* We use char because int might match the return type of a gcc2
12265    builtin and then its argument prototype would still apply.  */
12266 char dlopen ();
12267 int
12268 main ()
12269 {
12270 dlopen ();
12271   ;
12272   return 0;
12273 }
12274 _ACEOF
12275 rm -f conftest.$ac_objext conftest$ac_exeext
12276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12277   (eval $ac_link) 2>conftest.er1
12278   ac_status=$?
12279   grep -v '^ *+' conftest.er1 >conftest.err
12280   rm -f conftest.er1
12281   cat conftest.err >&5
12282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283   (exit $ac_status); } &&
12284          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12286   (eval $ac_try) 2>&5
12287   ac_status=$?
12288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289   (exit $ac_status); }; } &&
12290          { ac_try='test -s conftest$ac_exeext'
12291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12292   (eval $ac_try) 2>&5
12293   ac_status=$?
12294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295   (exit $ac_status); }; }; then
12296   ac_cv_lib_svld_dlopen=yes
12297 else
12298   echo "$as_me: failed program was:" >&5
12299 sed 's/^/| /' conftest.$ac_ext >&5
12300
12301 ac_cv_lib_svld_dlopen=no
12302 fi
12303 rm -f conftest.err conftest.$ac_objext \
12304       conftest$ac_exeext conftest.$ac_ext
12305 LIBS=$ac_check_lib_save_LIBS
12306 fi
12307 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12308 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12309 if test $ac_cv_lib_svld_dlopen = yes; then
12310   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12311 else
12312   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12313 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12314 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12315   echo $ECHO_N "(cached) $ECHO_C" >&6
12316 else
12317   ac_check_lib_save_LIBS=$LIBS
12318 LIBS="-ldld  $LIBS"
12319 cat >conftest.$ac_ext <<_ACEOF
12320 /* confdefs.h.  */
12321 _ACEOF
12322 cat confdefs.h >>conftest.$ac_ext
12323 cat >>conftest.$ac_ext <<_ACEOF
12324 /* end confdefs.h.  */
12325
12326 /* Override any gcc2 internal prototype to avoid an error.  */
12327 #ifdef __cplusplus
12328 extern "C"
12329 #endif
12330 /* We use char because int might match the return type of a gcc2
12331    builtin and then its argument prototype would still apply.  */
12332 char dld_link ();
12333 int
12334 main ()
12335 {
12336 dld_link ();
12337   ;
12338   return 0;
12339 }
12340 _ACEOF
12341 rm -f conftest.$ac_objext conftest$ac_exeext
12342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12343   (eval $ac_link) 2>conftest.er1
12344   ac_status=$?
12345   grep -v '^ *+' conftest.er1 >conftest.err
12346   rm -f conftest.er1
12347   cat conftest.err >&5
12348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349   (exit $ac_status); } &&
12350          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12352   (eval $ac_try) 2>&5
12353   ac_status=$?
12354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355   (exit $ac_status); }; } &&
12356          { ac_try='test -s conftest$ac_exeext'
12357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12358   (eval $ac_try) 2>&5
12359   ac_status=$?
12360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361   (exit $ac_status); }; }; then
12362   ac_cv_lib_dld_dld_link=yes
12363 else
12364   echo "$as_me: failed program was:" >&5
12365 sed 's/^/| /' conftest.$ac_ext >&5
12366
12367 ac_cv_lib_dld_dld_link=no
12368 fi
12369 rm -f conftest.err conftest.$ac_objext \
12370       conftest$ac_exeext conftest.$ac_ext
12371 LIBS=$ac_check_lib_save_LIBS
12372 fi
12373 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12374 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12375 if test $ac_cv_lib_dld_dld_link = yes; then
12376   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12377 fi
12378
12379
12380 fi
12381
12382
12383 fi
12384
12385
12386 fi
12387
12388
12389 fi
12390
12391
12392 fi
12393
12394     ;;
12395   esac
12396
12397   if test "x$lt_cv_dlopen" != xno; then
12398     enable_dlopen=yes
12399   else
12400     enable_dlopen=no
12401   fi
12402
12403   case $lt_cv_dlopen in
12404   dlopen)
12405     save_CPPFLAGS="$CPPFLAGS"
12406     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12407
12408     save_LDFLAGS="$LDFLAGS"
12409     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12410
12411     save_LIBS="$LIBS"
12412     LIBS="$lt_cv_dlopen_libs $LIBS"
12413
12414     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12415 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12416 if test "${lt_cv_dlopen_self+set}" = set; then
12417   echo $ECHO_N "(cached) $ECHO_C" >&6
12418 else
12419           if test "$cross_compiling" = yes; then :
12420   lt_cv_dlopen_self=cross
12421 else
12422   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12423   lt_status=$lt_dlunknown
12424   cat > conftest.$ac_ext <<EOF
12425 #line 12425 "configure"
12426 #include "confdefs.h"
12427
12428 #if HAVE_DLFCN_H
12429 #include <dlfcn.h>
12430 #endif
12431
12432 #include <stdio.h>
12433
12434 #ifdef RTLD_GLOBAL
12435 #  define LT_DLGLOBAL           RTLD_GLOBAL
12436 #else
12437 #  ifdef DL_GLOBAL
12438 #    define LT_DLGLOBAL         DL_GLOBAL
12439 #  else
12440 #    define LT_DLGLOBAL         0
12441 #  endif
12442 #endif
12443
12444 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12445    find out it does not work in some platform. */
12446 #ifndef LT_DLLAZY_OR_NOW
12447 #  ifdef RTLD_LAZY
12448 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12449 #  else
12450 #    ifdef DL_LAZY
12451 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12452 #    else
12453 #      ifdef RTLD_NOW
12454 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12455 #      else
12456 #        ifdef DL_NOW
12457 #          define LT_DLLAZY_OR_NOW      DL_NOW
12458 #        else
12459 #          define LT_DLLAZY_OR_NOW      0
12460 #        endif
12461 #      endif
12462 #    endif
12463 #  endif
12464 #endif
12465
12466 #ifdef __cplusplus
12467 extern "C" void exit (int);
12468 #endif
12469
12470 void fnord() { int i=42;}
12471 int main ()
12472 {
12473   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12474   int status = $lt_dlunknown;
12475
12476   if (self)
12477     {
12478       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12479       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12480       /* dlclose (self); */
12481     }
12482
12483     exit (status);
12484 }
12485 EOF
12486   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12487   (eval $ac_link) 2>&5
12488   ac_status=$?
12489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12491     (./conftest; exit; ) 2>/dev/null
12492     lt_status=$?
12493     case x$lt_status in
12494       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12495       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12496       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12497     esac
12498   else :
12499     # compilation failed
12500     lt_cv_dlopen_self=no
12501   fi
12502 fi
12503 rm -fr conftest*
12504
12505
12506 fi
12507 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12508 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12509
12510     if test "x$lt_cv_dlopen_self" = xyes; then
12511       LDFLAGS="$LDFLAGS $link_static_flag"
12512       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12513 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12514 if test "${lt_cv_dlopen_self_static+set}" = set; then
12515   echo $ECHO_N "(cached) $ECHO_C" >&6
12516 else
12517           if test "$cross_compiling" = yes; then :
12518   lt_cv_dlopen_self_static=cross
12519 else
12520   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12521   lt_status=$lt_dlunknown
12522   cat > conftest.$ac_ext <<EOF
12523 #line 12523 "configure"
12524 #include "confdefs.h"
12525
12526 #if HAVE_DLFCN_H
12527 #include <dlfcn.h>
12528 #endif
12529
12530 #include <stdio.h>
12531
12532 #ifdef RTLD_GLOBAL
12533 #  define LT_DLGLOBAL           RTLD_GLOBAL
12534 #else
12535 #  ifdef DL_GLOBAL
12536 #    define LT_DLGLOBAL         DL_GLOBAL
12537 #  else
12538 #    define LT_DLGLOBAL         0
12539 #  endif
12540 #endif
12541
12542 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12543    find out it does not work in some platform. */
12544 #ifndef LT_DLLAZY_OR_NOW
12545 #  ifdef RTLD_LAZY
12546 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12547 #  else
12548 #    ifdef DL_LAZY
12549 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12550 #    else
12551 #      ifdef RTLD_NOW
12552 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12553 #      else
12554 #        ifdef DL_NOW
12555 #          define LT_DLLAZY_OR_NOW      DL_NOW
12556 #        else
12557 #          define LT_DLLAZY_OR_NOW      0
12558 #        endif
12559 #      endif
12560 #    endif
12561 #  endif
12562 #endif
12563
12564 #ifdef __cplusplus
12565 extern "C" void exit (int);
12566 #endif
12567
12568 void fnord() { int i=42;}
12569 int main ()
12570 {
12571   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12572   int status = $lt_dlunknown;
12573
12574   if (self)
12575     {
12576       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12577       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12578       /* dlclose (self); */
12579     }
12580
12581     exit (status);
12582 }
12583 EOF
12584   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12585   (eval $ac_link) 2>&5
12586   ac_status=$?
12587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12589     (./conftest; exit; ) 2>/dev/null
12590     lt_status=$?
12591     case x$lt_status in
12592       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12593       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12594       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12595     esac
12596   else :
12597     # compilation failed
12598     lt_cv_dlopen_self_static=no
12599   fi
12600 fi
12601 rm -fr conftest*
12602
12603
12604 fi
12605 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12606 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12607     fi
12608
12609     CPPFLAGS="$save_CPPFLAGS"
12610     LDFLAGS="$save_LDFLAGS"
12611     LIBS="$save_LIBS"
12612     ;;
12613   esac
12614
12615   case $lt_cv_dlopen_self in
12616   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12617   *) enable_dlopen_self=unknown ;;
12618   esac
12619
12620   case $lt_cv_dlopen_self_static in
12621   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12622   *) enable_dlopen_self_static=unknown ;;
12623   esac
12624 fi
12625
12626
12627 # The else clause should only fire when bootstrapping the
12628 # libtool distribution, otherwise you forgot to ship ltmain.sh
12629 # with your package, and you will get complaints that there are
12630 # no rules to generate ltmain.sh.
12631 if test -f "$ltmain"; then
12632   # See if we are running on zsh, and set the options which allow our commands through
12633   # without removal of \ escapes.
12634   if test -n "${ZSH_VERSION+set}" ; then
12635     setopt NO_GLOB_SUBST
12636   fi
12637   # Now quote all the things that may contain metacharacters while being
12638   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12639   # variables and quote the copies for generation of the libtool script.
12640   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12641     SED SHELL STRIP \
12642     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12643     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12644     deplibs_check_method reload_flag reload_cmds need_locks \
12645     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12646     lt_cv_sys_global_symbol_to_c_name_address \
12647     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12648     old_postinstall_cmds old_postuninstall_cmds \
12649     compiler_CXX \
12650     CC_CXX \
12651     LD_CXX \
12652     lt_prog_compiler_wl_CXX \
12653     lt_prog_compiler_pic_CXX \
12654     lt_prog_compiler_static_CXX \
12655     lt_prog_compiler_no_builtin_flag_CXX \
12656     export_dynamic_flag_spec_CXX \
12657     thread_safe_flag_spec_CXX \
12658     whole_archive_flag_spec_CXX \
12659     enable_shared_with_static_runtimes_CXX \
12660     old_archive_cmds_CXX \
12661     old_archive_from_new_cmds_CXX \
12662     predep_objects_CXX \
12663     postdep_objects_CXX \
12664     predeps_CXX \
12665     postdeps_CXX \
12666     compiler_lib_search_path_CXX \
12667     archive_cmds_CXX \
12668     archive_expsym_cmds_CXX \
12669     postinstall_cmds_CXX \
12670     postuninstall_cmds_CXX \
12671     old_archive_from_expsyms_cmds_CXX \
12672     allow_undefined_flag_CXX \
12673     no_undefined_flag_CXX \
12674     export_symbols_cmds_CXX \
12675     hardcode_libdir_flag_spec_CXX \
12676     hardcode_libdir_flag_spec_ld_CXX \
12677     hardcode_libdir_separator_CXX \
12678     hardcode_automatic_CXX \
12679     module_cmds_CXX \
12680     module_expsym_cmds_CXX \
12681     lt_cv_prog_compiler_c_o_CXX \
12682     exclude_expsyms_CXX \
12683     include_expsyms_CXX; do
12684
12685     case $var in
12686     old_archive_cmds_CXX | \
12687     old_archive_from_new_cmds_CXX | \
12688     archive_cmds_CXX | \
12689     archive_expsym_cmds_CXX | \
12690     module_cmds_CXX | \
12691     module_expsym_cmds_CXX | \
12692     old_archive_from_expsyms_cmds_CXX | \
12693     export_symbols_cmds_CXX | \
12694     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12695     postinstall_cmds | postuninstall_cmds | \
12696     old_postinstall_cmds | old_postuninstall_cmds | \
12697     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12698       # Double-quote double-evaled strings.
12699       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12700       ;;
12701     *)
12702       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12703       ;;
12704     esac
12705   done
12706
12707   case $lt_echo in
12708   *'\$0 --fallback-echo"')
12709     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12710     ;;
12711   esac
12712
12713 cfgfile="$ofile"
12714
12715   cat <<__EOF__ >> "$cfgfile"
12716 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12717
12718 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12719
12720 # Shell to use when invoking shell scripts.
12721 SHELL=$lt_SHELL
12722
12723 # Whether or not to build shared libraries.
12724 build_libtool_libs=$enable_shared
12725
12726 # Whether or not to build static libraries.
12727 build_old_libs=$enable_static
12728
12729 # Whether or not to add -lc for building shared libraries.
12730 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12731
12732 # Whether or not to disallow shared libs when runtime libs are static
12733 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12734
12735 # Whether or not to optimize for fast installation.
12736 fast_install=$enable_fast_install
12737
12738 # The host system.
12739 host_alias=$host_alias
12740 host=$host
12741
12742 # An echo program that does not interpret backslashes.
12743 echo=$lt_echo
12744
12745 # The archiver.
12746 AR=$lt_AR
12747 AR_FLAGS=$lt_AR_FLAGS
12748
12749 # A C compiler.
12750 LTCC=$lt_LTCC
12751
12752 # A language-specific compiler.
12753 CC=$lt_compiler_CXX
12754
12755 # Is the compiler the GNU C compiler?
12756 with_gcc=$GCC_CXX
12757
12758 # An ERE matcher.
12759 EGREP=$lt_EGREP
12760
12761 # The linker used to build libraries.
12762 LD=$lt_LD_CXX
12763
12764 # Whether we need hard or soft links.
12765 LN_S=$lt_LN_S
12766
12767 # A BSD-compatible nm program.
12768 NM=$lt_NM
12769
12770 # A symbol stripping program
12771 STRIP=$lt_STRIP
12772
12773 # Used to examine libraries when file_magic_cmd begins "file"
12774 MAGIC_CMD=$MAGIC_CMD
12775
12776 # Used on cygwin: DLL creation program.
12777 DLLTOOL="$DLLTOOL"
12778
12779 # Used on cygwin: object dumper.
12780 OBJDUMP="$OBJDUMP"
12781
12782 # Used on cygwin: assembler.
12783 AS="$AS"
12784
12785 # The name of the directory that contains temporary libtool files.
12786 objdir=$objdir
12787
12788 # How to create reloadable object files.
12789 reload_flag=$lt_reload_flag
12790 reload_cmds=$lt_reload_cmds
12791
12792 # How to pass a linker flag through the compiler.
12793 wl=$lt_lt_prog_compiler_wl_CXX
12794
12795 # Object file suffix (normally "o").
12796 objext="$ac_objext"
12797
12798 # Old archive suffix (normally "a").
12799 libext="$libext"
12800
12801 # Shared library suffix (normally ".so").
12802 shrext='$shrext'
12803
12804 # Executable file suffix (normally "").
12805 exeext="$exeext"
12806
12807 # Additional compiler flags for building library objects.
12808 pic_flag=$lt_lt_prog_compiler_pic_CXX
12809 pic_mode=$pic_mode
12810
12811 # What is the maximum length of a command?
12812 max_cmd_len=$lt_cv_sys_max_cmd_len
12813
12814 # Does compiler simultaneously support -c and -o options?
12815 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12816
12817 # Must we lock files when doing compilation ?
12818 need_locks=$lt_need_locks
12819
12820 # Do we need the lib prefix for modules?
12821 need_lib_prefix=$need_lib_prefix
12822
12823 # Do we need a version for libraries?
12824 need_version=$need_version
12825
12826 # Whether dlopen is supported.
12827 dlopen_support=$enable_dlopen
12828
12829 # Whether dlopen of programs is supported.
12830 dlopen_self=$enable_dlopen_self
12831
12832 # Whether dlopen of statically linked programs is supported.
12833 dlopen_self_static=$enable_dlopen_self_static
12834
12835 # Compiler flag to prevent dynamic linking.
12836 link_static_flag=$lt_lt_prog_compiler_static_CXX
12837
12838 # Compiler flag to turn off builtin functions.
12839 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12840
12841 # Compiler flag to allow reflexive dlopens.
12842 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12843
12844 # Compiler flag to generate shared objects directly from archives.
12845 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12846
12847 # Compiler flag to generate thread-safe objects.
12848 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12849
12850 # Library versioning type.
12851 version_type=$version_type
12852
12853 # Format of library name prefix.
12854 libname_spec=$lt_libname_spec
12855
12856 # List of archive names.  First name is the real one, the rest are links.
12857 # The last name is the one that the linker finds with -lNAME.
12858 library_names_spec=$lt_library_names_spec
12859
12860 # The coded name of the library, if different from the real name.
12861 soname_spec=$lt_soname_spec
12862
12863 # Commands used to build and install an old-style archive.
12864 RANLIB=$lt_RANLIB
12865 old_archive_cmds=$lt_old_archive_cmds_CXX
12866 old_postinstall_cmds=$lt_old_postinstall_cmds
12867 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12868
12869 # Create an old-style archive from a shared archive.
12870 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12871
12872 # Create a temporary old-style archive to link instead of a shared archive.
12873 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12874
12875 # Commands used to build and install a shared archive.
12876 archive_cmds=$lt_archive_cmds_CXX
12877 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12878 postinstall_cmds=$lt_postinstall_cmds
12879 postuninstall_cmds=$lt_postuninstall_cmds
12880
12881 # Commands used to build a loadable module (assumed same as above if empty)
12882 module_cmds=$lt_module_cmds_CXX
12883 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12884
12885 # Commands to strip libraries.
12886 old_striplib=$lt_old_striplib
12887 striplib=$lt_striplib
12888
12889 # Dependencies to place before the objects being linked to create a
12890 # shared library.
12891 predep_objects=$lt_predep_objects_CXX
12892
12893 # Dependencies to place after the objects being linked to create a
12894 # shared library.
12895 postdep_objects=$lt_postdep_objects_CXX
12896
12897 # Dependencies to place before the objects being linked to create a
12898 # shared library.
12899 predeps=$lt_predeps_CXX
12900
12901 # Dependencies to place after the objects being linked to create a
12902 # shared library.
12903 postdeps=$lt_postdeps_CXX
12904
12905 # The library search path used internally by the compiler when linking
12906 # a shared library.
12907 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12908
12909 # Method to check whether dependent libraries are shared objects.
12910 deplibs_check_method=$lt_deplibs_check_method
12911
12912 # Command to use when deplibs_check_method == file_magic.
12913 file_magic_cmd=$lt_file_magic_cmd
12914
12915 # Flag that allows shared libraries with undefined symbols to be built.
12916 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12917
12918 # Flag that forces no undefined symbols.
12919 no_undefined_flag=$lt_no_undefined_flag_CXX
12920
12921 # Commands used to finish a libtool library installation in a directory.
12922 finish_cmds=$lt_finish_cmds
12923
12924 # Same as above, but a single script fragment to be evaled but not shown.
12925 finish_eval=$lt_finish_eval
12926
12927 # Take the output of nm and produce a listing of raw symbols and C names.
12928 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12929
12930 # Transform the output of nm in a proper C declaration
12931 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12932
12933 # Transform the output of nm in a C name address pair
12934 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12935
12936 # This is the shared library runtime path variable.
12937 runpath_var=$runpath_var
12938
12939 # This is the shared library path variable.
12940 shlibpath_var=$shlibpath_var
12941
12942 # Is shlibpath searched before the hard-coded library search path?
12943 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12944
12945 # How to hardcode a shared library path into an executable.
12946 hardcode_action=$hardcode_action_CXX
12947
12948 # Whether we should hardcode library paths into libraries.
12949 hardcode_into_libs=$hardcode_into_libs
12950
12951 # Flag to hardcode \$libdir into a binary during linking.
12952 # This must work even if \$libdir does not exist.
12953 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12954
12955 # If ld is used when linking, flag to hardcode \$libdir into
12956 # a binary during linking. This must work even if \$libdir does
12957 # not exist.
12958 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12959
12960 # Whether we need a single -rpath flag with a separated argument.
12961 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12962
12963 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12964 # resulting binary.
12965 hardcode_direct=$hardcode_direct_CXX
12966
12967 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12968 # resulting binary.
12969 hardcode_minus_L=$hardcode_minus_L_CXX
12970
12971 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12972 # the resulting binary.
12973 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12974
12975 # Set to yes if building a shared library automatically hardcodes DIR into the library
12976 # and all subsequent libraries and executables linked against it.
12977 hardcode_automatic=$hardcode_automatic_CXX
12978
12979 # Variables whose values should be saved in libtool wrapper scripts and
12980 # restored at relink time.
12981 variables_saved_for_relink="$variables_saved_for_relink"
12982
12983 # Whether libtool must link a program against all its dependency libraries.
12984 link_all_deplibs=$link_all_deplibs_CXX
12985
12986 # Compile-time system search path for libraries
12987 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12988
12989 # Run-time system search path for libraries
12990 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12991
12992 # Fix the shell variable \$srcfile for the compiler.
12993 fix_srcfile_path="$fix_srcfile_path_CXX"
12994
12995 # Set to yes if exported symbols are required.
12996 always_export_symbols=$always_export_symbols_CXX
12997
12998 # The commands to list exported symbols.
12999 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13000
13001 # The commands to extract the exported symbol list from a shared archive.
13002 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13003
13004 # Symbols that should not be listed in the preloaded symbols.
13005 exclude_expsyms=$lt_exclude_expsyms_CXX
13006
13007 # Symbols that must always be exported.
13008 include_expsyms=$lt_include_expsyms_CXX
13009
13010 # ### END LIBTOOL TAG CONFIG: $tagname
13011
13012 __EOF__
13013
13014
13015 else
13016   # If there is no Makefile yet, we rely on a make rule to execute
13017   # `config.status --recheck' to rerun these tests and create the
13018   # libtool script then.
13019   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13020   if test -f "$ltmain_in"; then
13021     test -f Makefile && make "$ltmain"
13022   fi
13023 fi
13024
13025
13026 ac_ext=c
13027 ac_cpp='$CPP $CPPFLAGS'
13028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13031
13032 CC=$lt_save_CC
13033 LDCXX=$LD
13034 LD=$lt_save_LD
13035 GCC=$lt_save_GCC
13036 with_gnu_ldcxx=$with_gnu_ld
13037 with_gnu_ld=$lt_save_with_gnu_ld
13038 lt_cv_path_LDCXX=$lt_cv_path_LD
13039 lt_cv_path_LD=$lt_save_path_LD
13040 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13041 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13042
13043         else
13044           tagname=""
13045         fi
13046         ;;
13047
13048       F77)
13049         if test -n "$F77" && test "X$F77" != "Xno"; then
13050
13051 ac_ext=f
13052 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13053 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13054 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13055
13056
13057 archive_cmds_need_lc_F77=no
13058 allow_undefined_flag_F77=
13059 always_export_symbols_F77=no
13060 archive_expsym_cmds_F77=
13061 export_dynamic_flag_spec_F77=
13062 hardcode_direct_F77=no
13063 hardcode_libdir_flag_spec_F77=
13064 hardcode_libdir_flag_spec_ld_F77=
13065 hardcode_libdir_separator_F77=
13066 hardcode_minus_L_F77=no
13067 hardcode_automatic_F77=no
13068 module_cmds_F77=
13069 module_expsym_cmds_F77=
13070 link_all_deplibs_F77=unknown
13071 old_archive_cmds_F77=$old_archive_cmds
13072 no_undefined_flag_F77=
13073 whole_archive_flag_spec_F77=
13074 enable_shared_with_static_runtimes_F77=no
13075
13076 # Source file extension for f77 test sources.
13077 ac_ext=f
13078
13079 # Object file extension for compiled f77 test sources.
13080 objext=o
13081 objext_F77=$objext
13082
13083 # Code to be used in simple compile tests
13084 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13085
13086 # Code to be used in simple link tests
13087 lt_simple_link_test_code="      program t\n      end\n"
13088
13089 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13090
13091 # If no C compiler was specified, use CC.
13092 LTCC=${LTCC-"$CC"}
13093
13094 # Allow CC to be a program name with arguments.
13095 compiler=$CC
13096
13097
13098 # Allow CC to be a program name with arguments.
13099 lt_save_CC="$CC"
13100 CC=${F77-"f77"}
13101 compiler=$CC
13102 compiler_F77=$CC
13103 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13104
13105 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13106 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13107 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13108 echo "${ECHO_T}$can_build_shared" >&6
13109
13110 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13111 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13112 test "$can_build_shared" = "no" && enable_shared=no
13113
13114 # On AIX, shared libraries and static libraries use the same namespace, and
13115 # are all built from PIC.
13116 case "$host_os" in
13117 aix3*)
13118   test "$enable_shared" = yes && enable_static=no
13119   if test -n "$RANLIB"; then
13120     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13121     postinstall_cmds='$RANLIB $lib'
13122   fi
13123   ;;
13124 aix4*)
13125   test "$enable_shared" = yes && enable_static=no
13126   ;;
13127 esac
13128 echo "$as_me:$LINENO: result: $enable_shared" >&5
13129 echo "${ECHO_T}$enable_shared" >&6
13130
13131 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13132 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13133 # Make sure either enable_shared or enable_static is yes.
13134 test "$enable_shared" = yes || enable_static=yes
13135 echo "$as_me:$LINENO: result: $enable_static" >&5
13136 echo "${ECHO_T}$enable_static" >&6
13137
13138 test "$ld_shlibs_F77" = no && can_build_shared=no
13139
13140 GCC_F77="$G77"
13141 LD_F77="$LD"
13142
13143 lt_prog_compiler_wl_F77=
13144 lt_prog_compiler_pic_F77=
13145 lt_prog_compiler_static_F77=
13146
13147 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13148 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13149
13150   if test "$GCC" = yes; then
13151     lt_prog_compiler_wl_F77='-Wl,'
13152     lt_prog_compiler_static_F77='-static'
13153
13154     case $host_os in
13155       aix*)
13156       # All AIX code is PIC.
13157       if test "$host_cpu" = ia64; then
13158         # AIX 5 now supports IA64 processor
13159         lt_prog_compiler_static_F77='-Bstatic'
13160       fi
13161       ;;
13162
13163     amigaos*)
13164       # FIXME: we need at least 68020 code to build shared libraries, but
13165       # adding the `-m68020' flag to GCC prevents building anything better,
13166       # like `-m68040'.
13167       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13168       ;;
13169
13170     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13171       # PIC is the default for these OSes.
13172       ;;
13173
13174     mingw* | pw32* | os2*)
13175       # This hack is so that the source file can tell whether it is being
13176       # built for inclusion in a dll (and should export symbols for example).
13177       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13178       ;;
13179
13180     darwin* | rhapsody*)
13181       # PIC is the default on this platform
13182       # Common symbols not allowed in MH_DYLIB files
13183       lt_prog_compiler_pic_F77='-fno-common'
13184       ;;
13185
13186     msdosdjgpp*)
13187       # Just because we use GCC doesn't mean we suddenly get shared libraries
13188       # on systems that don't support them.
13189       lt_prog_compiler_can_build_shared_F77=no
13190       enable_shared=no
13191       ;;
13192
13193     sysv4*MP*)
13194       if test -d /usr/nec; then
13195         lt_prog_compiler_pic_F77=-Kconform_pic
13196       fi
13197       ;;
13198
13199     hpux*)
13200       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13201       # not for PA HP-UX.
13202       case "$host_cpu" in
13203       hppa*64*|ia64*)
13204         # +Z the default
13205         ;;
13206       *)
13207         lt_prog_compiler_pic_F77='-fPIC'
13208         ;;
13209       esac
13210       ;;
13211
13212     *)
13213       lt_prog_compiler_pic_F77='-fPIC'
13214       ;;
13215     esac
13216   else
13217     # PORTME Check for flag to pass linker flags through the system compiler.
13218     case $host_os in
13219     aix*)
13220       lt_prog_compiler_wl_F77='-Wl,'
13221       if test "$host_cpu" = ia64; then
13222         # AIX 5 now supports IA64 processor
13223         lt_prog_compiler_static_F77='-Bstatic'
13224       else
13225         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13226       fi
13227       ;;
13228
13229     mingw* | pw32* | os2*)
13230       # This hack is so that the source file can tell whether it is being
13231       # built for inclusion in a dll (and should export symbols for example).
13232       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13233       ;;
13234
13235     hpux9* | hpux10* | hpux11*)
13236       lt_prog_compiler_wl_F77='-Wl,'
13237       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13238       # not for PA HP-UX.
13239       case "$host_cpu" in
13240       hppa*64*|ia64*)
13241         # +Z the default
13242         ;;
13243       *)
13244         lt_prog_compiler_pic_F77='+Z'
13245         ;;
13246       esac
13247       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13248       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13249       ;;
13250
13251     irix5* | irix6* | nonstopux*)
13252       lt_prog_compiler_wl_F77='-Wl,'
13253       # PIC (with -KPIC) is the default.
13254       lt_prog_compiler_static_F77='-non_shared'
13255       ;;
13256
13257     newsos6)
13258       lt_prog_compiler_pic_F77='-KPIC'
13259       lt_prog_compiler_static_F77='-Bstatic'
13260       ;;
13261
13262     linux*)
13263       case $CC in
13264       icc* | ecc*)
13265         lt_prog_compiler_wl_F77='-Wl,'
13266         lt_prog_compiler_pic_F77='-KPIC'
13267         lt_prog_compiler_static_F77='-static'
13268         ;;
13269       ccc*)
13270         lt_prog_compiler_wl_F77='-Wl,'
13271         # All Alpha code is PIC.
13272         lt_prog_compiler_static_F77='-non_shared'
13273         ;;
13274       esac
13275       ;;
13276
13277     osf3* | osf4* | osf5*)
13278       lt_prog_compiler_wl_F77='-Wl,'
13279       # All OSF/1 code is PIC.
13280       lt_prog_compiler_static_F77='-non_shared'
13281       ;;
13282
13283     sco3.2v5*)
13284       lt_prog_compiler_pic_F77='-Kpic'
13285       lt_prog_compiler_static_F77='-dn'
13286       ;;
13287
13288     solaris*)
13289       lt_prog_compiler_wl_F77='-Wl,'
13290       lt_prog_compiler_pic_F77='-KPIC'
13291       lt_prog_compiler_static_F77='-Bstatic'
13292       ;;
13293
13294     sunos4*)
13295       lt_prog_compiler_wl_F77='-Qoption ld '
13296       lt_prog_compiler_pic_F77='-PIC'
13297       lt_prog_compiler_static_F77='-Bstatic'
13298       ;;
13299
13300     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13301       lt_prog_compiler_wl_F77='-Wl,'
13302       lt_prog_compiler_pic_F77='-KPIC'
13303       lt_prog_compiler_static_F77='-Bstatic'
13304       ;;
13305
13306     sysv4*MP*)
13307       if test -d /usr/nec ;then
13308         lt_prog_compiler_pic_F77='-Kconform_pic'
13309         lt_prog_compiler_static_F77='-Bstatic'
13310       fi
13311       ;;
13312
13313     uts4*)
13314       lt_prog_compiler_pic_F77='-pic'
13315       lt_prog_compiler_static_F77='-Bstatic'
13316       ;;
13317
13318     *)
13319       lt_prog_compiler_can_build_shared_F77=no
13320       ;;
13321     esac
13322   fi
13323
13324 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13325 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13326
13327 #
13328 # Check to make sure the PIC flag actually works.
13329 #
13330 if test -n "$lt_prog_compiler_pic_F77"; then
13331
13332 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13333 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13334 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13335   echo $ECHO_N "(cached) $ECHO_C" >&6
13336 else
13337   lt_prog_compiler_pic_works_F77=no
13338   ac_outfile=conftest.$ac_objext
13339    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13340    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13341    # Insert the option either (1) after the last *FLAGS variable, or
13342    # (2) before a word containing "conftest.", or (3) at the end.
13343    # Note that $ac_compile itself does not contain backslashes and begins
13344    # with a dollar sign (not a hyphen), so the echo should work correctly.
13345    # The option is referenced via a variable to avoid confusing sed.
13346    lt_compile=`echo "$ac_compile" | $SED \
13347    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13348    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13349    -e 's:$: $lt_compiler_flag:'`
13350    (eval echo "\"\$as_me:13350: $lt_compile\"" >&5)
13351    (eval "$lt_compile" 2>conftest.err)
13352    ac_status=$?
13353    cat conftest.err >&5
13354    echo "$as_me:13354: \$? = $ac_status" >&5
13355    if (exit $ac_status) && test -s "$ac_outfile"; then
13356      # The compiler can only warn and ignore the option if not recognized
13357      # So say no if there are warnings
13358      if test ! -s conftest.err; then
13359        lt_prog_compiler_pic_works_F77=yes
13360      fi
13361    fi
13362    $rm conftest*
13363
13364 fi
13365 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13366 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13367
13368 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13369     case $lt_prog_compiler_pic_F77 in
13370      "" | " "*) ;;
13371      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13372      esac
13373 else
13374     lt_prog_compiler_pic_F77=
13375      lt_prog_compiler_can_build_shared_F77=no
13376 fi
13377
13378 fi
13379 case "$host_os" in
13380   # For platforms which do not support PIC, -DPIC is meaningless:
13381   *djgpp*)
13382     lt_prog_compiler_pic_F77=
13383     ;;
13384   *)
13385     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13386     ;;
13387 esac
13388
13389 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13390 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13391 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13392   echo $ECHO_N "(cached) $ECHO_C" >&6
13393 else
13394   lt_cv_prog_compiler_c_o_F77=no
13395    $rm -r conftest 2>/dev/null
13396    mkdir conftest
13397    cd conftest
13398    mkdir out
13399    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13400
13401    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13402    # that will create temporary files in the current directory regardless of
13403    # the output directory.  Thus, making CWD read-only will cause this test
13404    # to fail, enabling locking or at least warning the user not to do parallel
13405    # builds.
13406    chmod -w .
13407
13408    lt_compiler_flag="-o out/conftest2.$ac_objext"
13409    # Insert the option either (1) after the last *FLAGS variable, or
13410    # (2) before a word containing "conftest.", or (3) at the end.
13411    # Note that $ac_compile itself does not contain backslashes and begins
13412    # with a dollar sign (not a hyphen), so the echo should work correctly.
13413    lt_compile=`echo "$ac_compile" | $SED \
13414    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13415    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13416    -e 's:$: $lt_compiler_flag:'`
13417    (eval echo "\"\$as_me:13417: $lt_compile\"" >&5)
13418    (eval "$lt_compile" 2>out/conftest.err)
13419    ac_status=$?
13420    cat out/conftest.err >&5
13421    echo "$as_me:13421: \$? = $ac_status" >&5
13422    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13423    then
13424      # The compiler can only warn and ignore the option if not recognized
13425      # So say no if there are warnings
13426      if test ! -s out/conftest.err; then
13427        lt_cv_prog_compiler_c_o_F77=yes
13428      fi
13429    fi
13430    chmod u+w .
13431    $rm conftest*
13432    # SGI C++ compiler will create directory out/ii_files/ for
13433    # template instantiation
13434    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13435    $rm out/* && rmdir out
13436    cd ..
13437    rmdir conftest
13438    $rm conftest*
13439
13440 fi
13441 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13442 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13443
13444
13445 hard_links="nottested"
13446 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13447   # do not overwrite the value of need_locks provided by the user
13448   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13449 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13450   hard_links=yes
13451   $rm conftest*
13452   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13453   touch conftest.a
13454   ln conftest.a conftest.b 2>&5 || hard_links=no
13455   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13456   echo "$as_me:$LINENO: result: $hard_links" >&5
13457 echo "${ECHO_T}$hard_links" >&6
13458   if test "$hard_links" = no; then
13459     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13460 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13461     need_locks=warn
13462   fi
13463 else
13464   need_locks=no
13465 fi
13466
13467 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13468 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13469
13470   runpath_var=
13471   allow_undefined_flag_F77=
13472   enable_shared_with_static_runtimes_F77=no
13473   archive_cmds_F77=
13474   archive_expsym_cmds_F77=
13475   old_archive_From_new_cmds_F77=
13476   old_archive_from_expsyms_cmds_F77=
13477   export_dynamic_flag_spec_F77=
13478   whole_archive_flag_spec_F77=
13479   thread_safe_flag_spec_F77=
13480   hardcode_libdir_flag_spec_F77=
13481   hardcode_libdir_flag_spec_ld_F77=
13482   hardcode_libdir_separator_F77=
13483   hardcode_direct_F77=no
13484   hardcode_minus_L_F77=no
13485   hardcode_shlibpath_var_F77=unsupported
13486   link_all_deplibs_F77=unknown
13487   hardcode_automatic_F77=no
13488   module_cmds_F77=
13489   module_expsym_cmds_F77=
13490   always_export_symbols_F77=no
13491   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13492   # include_expsyms should be a list of space-separated symbols to be *always*
13493   # included in the symbol list
13494   include_expsyms_F77=
13495   # exclude_expsyms can be an extended regexp of symbols to exclude
13496   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13497   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13498   # as well as any symbol that contains `d'.
13499   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13500   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13501   # platforms (ab)use it in PIC code, but their linkers get confused if
13502   # the symbol is explicitly referenced.  Since portable code cannot
13503   # rely on this symbol name, it's probably fine to never include it in
13504   # preloaded symbol tables.
13505   extract_expsyms_cmds=
13506
13507   case $host_os in
13508   cygwin* | mingw* | pw32*)
13509     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13510     # When not using gcc, we currently assume that we are using
13511     # Microsoft Visual C++.
13512     if test "$GCC" != yes; then
13513       with_gnu_ld=no
13514     fi
13515     ;;
13516   openbsd*)
13517     with_gnu_ld=no
13518     ;;
13519   esac
13520
13521   ld_shlibs_F77=yes
13522   if test "$with_gnu_ld" = yes; then
13523     # If archive_cmds runs LD, not CC, wlarc should be empty
13524     wlarc='${wl}'
13525
13526     # See if GNU ld supports shared libraries.
13527     case $host_os in
13528     aix3* | aix4* | aix5*)
13529       # On AIX/PPC, the GNU linker is very broken
13530       if test "$host_cpu" != ia64; then
13531         ld_shlibs_F77=no
13532         cat <<EOF 1>&2
13533
13534 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13535 *** to be unable to reliably create shared libraries on AIX.
13536 *** Therefore, libtool is disabling shared libraries support.  If you
13537 *** really care for shared libraries, you may want to modify your PATH
13538 *** so that a non-GNU linker is found, and then restart.
13539
13540 EOF
13541       fi
13542       ;;
13543
13544     amigaos*)
13545       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)'
13546       hardcode_libdir_flag_spec_F77='-L$libdir'
13547       hardcode_minus_L_F77=yes
13548
13549       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13550       # that the semantics of dynamic libraries on AmigaOS, at least up
13551       # to version 4, is to share data among multiple programs linked
13552       # with the same dynamic library.  Since this doesn't match the
13553       # behavior of shared libraries on other platforms, we can't use
13554       # them.
13555       ld_shlibs_F77=no
13556       ;;
13557
13558     beos*)
13559       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13560         allow_undefined_flag_F77=unsupported
13561         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13562         # support --undefined.  This deserves some investigation.  FIXME
13563         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13564       else
13565         ld_shlibs_F77=no
13566       fi
13567       ;;
13568
13569     cygwin* | mingw* | pw32*)
13570       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13571       # as there is no search path for DLLs.
13572       hardcode_libdir_flag_spec_F77='-L$libdir'
13573       allow_undefined_flag_F77=unsupported
13574       always_export_symbols_F77=no
13575       enable_shared_with_static_runtimes_F77=yes
13576       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13577
13578       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13579         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13580         # If the export-symbols file already is a .def file (1st line
13581         # is EXPORTS), use it as is; otherwise, prepend...
13582         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13583           cp $export_symbols $output_objdir/$soname.def;
13584         else
13585           echo EXPORTS > $output_objdir/$soname.def;
13586           cat $export_symbols >> $output_objdir/$soname.def;
13587         fi~
13588         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13589       else
13590         ld_shlibs=no
13591       fi
13592       ;;
13593
13594     netbsd*)
13595       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13596         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13597         wlarc=
13598       else
13599         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13600         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13601       fi
13602       ;;
13603
13604     solaris* | sysv5*)
13605       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13606         ld_shlibs_F77=no
13607         cat <<EOF 1>&2
13608
13609 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13610 *** create shared libraries on Solaris systems.  Therefore, libtool
13611 *** is disabling shared libraries support.  We urge you to upgrade GNU
13612 *** binutils to release 2.9.1 or newer.  Another option is to modify
13613 *** your PATH or compiler configuration so that the native linker is
13614 *** used, and then restart.
13615
13616 EOF
13617       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13618         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13619         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13620       else
13621         ld_shlibs_F77=no
13622       fi
13623       ;;
13624
13625     sunos4*)
13626       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13627       wlarc=
13628       hardcode_direct_F77=yes
13629       hardcode_shlibpath_var_F77=no
13630       ;;
13631
13632   linux*)
13633     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13634         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13635         archive_cmds_F77="$tmp_archive_cmds"
13636       supports_anon_versioning=no
13637       case `$LD -v 2>/dev/null` in
13638         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13639         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13640         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13641         *\ 2.11.*) ;; # other 2.11 versions
13642         *) supports_anon_versioning=yes ;;
13643       esac
13644       if test $supports_anon_versioning = yes; then
13645         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13646 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13647 $echo "local: *; };" >> $output_objdir/$libname.ver~
13648         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13649       else
13650         archive_expsym_cmds_F77="$tmp_archive_cmds"
13651       fi
13652     else
13653       ld_shlibs_F77=no
13654     fi
13655     ;;
13656
13657     *)
13658       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13659         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13660         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13661       else
13662         ld_shlibs_F77=no
13663       fi
13664       ;;
13665     esac
13666
13667     if test "$ld_shlibs_F77" = yes; then
13668       runpath_var=LD_RUN_PATH
13669       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13670       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13671       # ancient GNU ld didn't support --whole-archive et. al.
13672       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13673         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13674       else
13675         whole_archive_flag_spec_F77=
13676       fi
13677     fi
13678   else
13679     # PORTME fill in a description of your system's linker (not GNU ld)
13680     case $host_os in
13681     aix3*)
13682       allow_undefined_flag_F77=unsupported
13683       always_export_symbols_F77=yes
13684       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'
13685       # Note: this linker hardcodes the directories in LIBPATH if there
13686       # are no directories specified by -L.
13687       hardcode_minus_L_F77=yes
13688       if test "$GCC" = yes && test -z "$link_static_flag"; then
13689         # Neither direct hardcoding nor static linking is supported with a
13690         # broken collect2.
13691         hardcode_direct_F77=unsupported
13692       fi
13693       ;;
13694
13695     aix4* | aix5*)
13696       if test "$host_cpu" = ia64; then
13697         # On IA64, the linker does run time linking by default, so we don't
13698         # have to do anything special.
13699         aix_use_runtimelinking=no
13700         exp_sym_flag='-Bexport'
13701         no_entry_flag=""
13702       else
13703         # If we're using GNU nm, then we don't want the "-C" option.
13704         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13705         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13706           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'
13707         else
13708           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'
13709         fi
13710         aix_use_runtimelinking=no
13711
13712         # Test if we are trying to use run time linking or normal
13713         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13714         # need to do runtime linking.
13715         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13716           for ld_flag in $LDFLAGS; do
13717           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13718             aix_use_runtimelinking=yes
13719             break
13720           fi
13721           done
13722         esac
13723
13724         exp_sym_flag='-bexport'
13725         no_entry_flag='-bnoentry'
13726       fi
13727
13728       # When large executables or shared objects are built, AIX ld can
13729       # have problems creating the table of contents.  If linking a library
13730       # or program results in "error TOC overflow" add -mminimal-toc to
13731       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13732       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13733
13734       archive_cmds_F77=''
13735       hardcode_direct_F77=yes
13736       hardcode_libdir_separator_F77=':'
13737       link_all_deplibs_F77=yes
13738
13739       if test "$GCC" = yes; then
13740         case $host_os in aix4.012|aix4.012.*)
13741         # We only want to do this on AIX 4.2 and lower, the check
13742         # below for broken collect2 doesn't work under 4.3+
13743           collect2name=`${CC} -print-prog-name=collect2`
13744           if test -f "$collect2name" && \
13745            strings "$collect2name" | grep resolve_lib_name >/dev/null
13746           then
13747           # We have reworked collect2
13748           hardcode_direct_F77=yes
13749           else
13750           # We have old collect2
13751           hardcode_direct_F77=unsupported
13752           # It fails to find uninstalled libraries when the uninstalled
13753           # path is not listed in the libpath.  Setting hardcode_minus_L
13754           # to unsupported forces relinking
13755           hardcode_minus_L_F77=yes
13756           hardcode_libdir_flag_spec_F77='-L$libdir'
13757           hardcode_libdir_separator_F77=
13758           fi
13759         esac
13760         shared_flag='-shared'
13761       else
13762         # not using gcc
13763         if test "$host_cpu" = ia64; then
13764         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13765         # chokes on -Wl,-G. The following line is correct:
13766           shared_flag='-G'
13767         else
13768         if test "$aix_use_runtimelinking" = yes; then
13769             shared_flag='${wl}-G'
13770           else
13771             shared_flag='${wl}-bM:SRE'
13772         fi
13773         fi
13774       fi
13775
13776       # It seems that -bexpall does not export symbols beginning with
13777       # underscore (_), so it is better to generate a list of symbols to export.
13778       always_export_symbols_F77=yes
13779       if test "$aix_use_runtimelinking" = yes; then
13780         # Warning - without using the other runtime loading flags (-brtl),
13781         # -berok will link without error, but may produce a broken library.
13782         allow_undefined_flag_F77='-berok'
13783        # Determine the default libpath from the value encoded in an empty executable.
13784        cat >conftest.$ac_ext <<_ACEOF
13785       program main
13786
13787       end
13788 _ACEOF
13789 rm -f conftest.$ac_objext conftest$ac_exeext
13790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13791   (eval $ac_link) 2>conftest.er1
13792   ac_status=$?
13793   grep -v '^ *+' conftest.er1 >conftest.err
13794   rm -f conftest.er1
13795   cat conftest.err >&5
13796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797   (exit $ac_status); } &&
13798          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
13799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13800   (eval $ac_try) 2>&5
13801   ac_status=$?
13802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803   (exit $ac_status); }; } &&
13804          { ac_try='test -s conftest$ac_exeext'
13805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13806   (eval $ac_try) 2>&5
13807   ac_status=$?
13808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809   (exit $ac_status); }; }; then
13810
13811 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13812 }'`
13813 # Check for a 64-bit object if we didn't find anything.
13814 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; }
13815 }'`; fi
13816 else
13817   echo "$as_me: failed program was:" >&5
13818 sed 's/^/| /' conftest.$ac_ext >&5
13819
13820 fi
13821 rm -f conftest.err conftest.$ac_objext \
13822       conftest$ac_exeext conftest.$ac_ext
13823 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13824
13825        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13826         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13827        else
13828         if test "$host_cpu" = ia64; then
13829           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13830           allow_undefined_flag_F77="-z nodefs"
13831           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13832         else
13833          # Determine the default libpath from the value encoded in an empty executable.
13834          cat >conftest.$ac_ext <<_ACEOF
13835       program main
13836
13837       end
13838 _ACEOF
13839 rm -f conftest.$ac_objext conftest$ac_exeext
13840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13841   (eval $ac_link) 2>conftest.er1
13842   ac_status=$?
13843   grep -v '^ *+' conftest.er1 >conftest.err
13844   rm -f conftest.er1
13845   cat conftest.err >&5
13846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847   (exit $ac_status); } &&
13848          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
13849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13850   (eval $ac_try) 2>&5
13851   ac_status=$?
13852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853   (exit $ac_status); }; } &&
13854          { ac_try='test -s conftest$ac_exeext'
13855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13856   (eval $ac_try) 2>&5
13857   ac_status=$?
13858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859   (exit $ac_status); }; }; then
13860
13861 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13862 }'`
13863 # Check for a 64-bit object if we didn't find anything.
13864 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; }
13865 }'`; fi
13866 else
13867   echo "$as_me: failed program was:" >&5
13868 sed 's/^/| /' conftest.$ac_ext >&5
13869
13870 fi
13871 rm -f conftest.err conftest.$ac_objext \
13872       conftest$ac_exeext conftest.$ac_ext
13873 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13874
13875          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13876           # Warning - without using the other run time loading flags,
13877           # -berok will link without error, but may produce a broken library.
13878           no_undefined_flag_F77=' ${wl}-bernotok'
13879           allow_undefined_flag_F77=' ${wl}-berok'
13880           # -bexpall does not export symbols beginning with underscore (_)
13881           always_export_symbols_F77=yes
13882           # Exported symbols can be pulled into shared objects from archives
13883           whole_archive_flag_spec_F77=' '
13884           archive_cmds_need_lc_F77=yes
13885           # This is similar to how AIX traditionally builds it's shared libraries.
13886           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13887         fi
13888       fi
13889       ;;
13890
13891     amigaos*)
13892       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)'
13893       hardcode_libdir_flag_spec_F77='-L$libdir'
13894       hardcode_minus_L_F77=yes
13895       # see comment about different semantics on the GNU ld section
13896       ld_shlibs_F77=no
13897       ;;
13898
13899     bsdi4*)
13900       export_dynamic_flag_spec_F77=-rdynamic
13901       ;;
13902
13903     cygwin* | mingw* | pw32*)
13904       # When not using gcc, we currently assume that we are using
13905       # Microsoft Visual C++.
13906       # hardcode_libdir_flag_spec is actually meaningless, as there is
13907       # no search path for DLLs.
13908       hardcode_libdir_flag_spec_F77=' '
13909       allow_undefined_flag_F77=unsupported
13910       # Tell ltmain to make .lib files, not .a files.
13911       libext=lib
13912       # Tell ltmain to make .dll files, not .so files.
13913       shrext=".dll"
13914       # FIXME: Setting linknames here is a bad hack.
13915       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13916       # The linker will automatically build a .lib file if we build a DLL.
13917       old_archive_From_new_cmds_F77='true'
13918       # FIXME: Should let the user specify the lib program.
13919       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13920       fix_srcfile_path='`cygpath -w "$srcfile"`'
13921       enable_shared_with_static_runtimes_F77=yes
13922       ;;
13923
13924     darwin* | rhapsody*)
13925     if test "$GXX" = yes ; then
13926       archive_cmds_need_lc_F77=no
13927       case "$host_os" in
13928       rhapsody* | darwin1.[012])
13929         allow_undefined_flag_F77='-undefined suppress'
13930         ;;
13931       *) # Darwin 1.3 on
13932       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13933         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13934       else
13935         case ${MACOSX_DEPLOYMENT_TARGET} in
13936           10.[012])
13937             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13938             ;;
13939           10.*)
13940             allow_undefined_flag_F77='-undefined dynamic_lookup'
13941             ;;
13942         esac
13943       fi
13944         ;;
13945       esac
13946         lt_int_apple_cc_single_mod=no
13947         output_verbose_link_cmd='echo'
13948         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13949           lt_int_apple_cc_single_mod=yes
13950         fi
13951         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13952           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13953         else
13954         archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13955       fi
13956       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13957       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13958         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13959           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13960         else
13961           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13962         fi
13963           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}'
13964       hardcode_direct_F77=no
13965       hardcode_automatic_F77=yes
13966       hardcode_shlibpath_var_F77=unsupported
13967       whole_archive_flag_spec_F77='-all_load $convenience'
13968       link_all_deplibs_F77=yes
13969     else
13970       ld_shlibs_F77=no
13971     fi
13972       ;;
13973
13974     dgux*)
13975       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13976       hardcode_libdir_flag_spec_F77='-L$libdir'
13977       hardcode_shlibpath_var_F77=no
13978       ;;
13979
13980     freebsd1*)
13981       ld_shlibs_F77=no
13982       ;;
13983
13984     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13985     # support.  Future versions do this automatically, but an explicit c++rt0.o
13986     # does not break anything, and helps significantly (at the cost of a little
13987     # extra space).
13988     freebsd2.2*)
13989       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13990       hardcode_libdir_flag_spec_F77='-R$libdir'
13991       hardcode_direct_F77=yes
13992       hardcode_shlibpath_var_F77=no
13993       ;;
13994
13995     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13996     freebsd2*)
13997       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13998       hardcode_direct_F77=yes
13999       hardcode_minus_L_F77=yes
14000       hardcode_shlibpath_var_F77=no
14001       ;;
14002
14003     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14004     freebsd* | kfreebsd*-gnu)
14005       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14006       hardcode_libdir_flag_spec_F77='-R$libdir'
14007       hardcode_direct_F77=yes
14008       hardcode_shlibpath_var_F77=no
14009       ;;
14010
14011     hpux9*)
14012       if test "$GCC" = yes; then
14013         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'
14014       else
14015         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'
14016       fi
14017       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14018       hardcode_libdir_separator_F77=:
14019       hardcode_direct_F77=yes
14020
14021       # hardcode_minus_L: Not really in the search PATH,
14022       # but as the default location of the library.
14023       hardcode_minus_L_F77=yes
14024       export_dynamic_flag_spec_F77='${wl}-E'
14025       ;;
14026
14027     hpux10* | hpux11*)
14028       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14029         case "$host_cpu" in
14030         hppa*64*|ia64*)
14031           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14032           ;;
14033         *)
14034           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14035           ;;
14036         esac
14037       else
14038         case "$host_cpu" in
14039         hppa*64*|ia64*)
14040           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14041           ;;
14042         *)
14043           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14044           ;;
14045         esac
14046       fi
14047       if test "$with_gnu_ld" = no; then
14048         case "$host_cpu" in
14049         hppa*64*)
14050           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14051           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14052           hardcode_libdir_separator_F77=:
14053           hardcode_direct_F77=no
14054           hardcode_shlibpath_var_F77=no
14055           ;;
14056         ia64*)
14057           hardcode_libdir_flag_spec_F77='-L$libdir'
14058           hardcode_direct_F77=no
14059           hardcode_shlibpath_var_F77=no
14060
14061           # hardcode_minus_L: Not really in the search PATH,
14062           # but as the default location of the library.
14063           hardcode_minus_L_F77=yes
14064           ;;
14065         *)
14066           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14067           hardcode_libdir_separator_F77=:
14068           hardcode_direct_F77=yes
14069           export_dynamic_flag_spec_F77='${wl}-E'
14070
14071           # hardcode_minus_L: Not really in the search PATH,
14072           # but as the default location of the library.
14073           hardcode_minus_L_F77=yes
14074           ;;
14075         esac
14076       fi
14077       ;;
14078
14079     irix5* | irix6* | nonstopux*)
14080       if test "$GCC" = yes; then
14081         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'
14082       else
14083         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'
14084         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14085       fi
14086       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14087       hardcode_libdir_separator_F77=:
14088       link_all_deplibs_F77=yes
14089       ;;
14090
14091     netbsd*)
14092       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14093         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14094       else
14095         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14096       fi
14097       hardcode_libdir_flag_spec_F77='-R$libdir'
14098       hardcode_direct_F77=yes
14099       hardcode_shlibpath_var_F77=no
14100       ;;
14101
14102     newsos6)
14103       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14104       hardcode_direct_F77=yes
14105       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14106       hardcode_libdir_separator_F77=:
14107       hardcode_shlibpath_var_F77=no
14108       ;;
14109
14110     openbsd*)
14111       hardcode_direct_F77=yes
14112       hardcode_shlibpath_var_F77=no
14113       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14114         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14115         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14116         export_dynamic_flag_spec_F77='${wl}-E'
14117       else
14118        case $host_os in
14119          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14120            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14121            hardcode_libdir_flag_spec_F77='-R$libdir'
14122            ;;
14123          *)
14124            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14125            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14126            ;;
14127        esac
14128       fi
14129       ;;
14130
14131     os2*)
14132       hardcode_libdir_flag_spec_F77='-L$libdir'
14133       hardcode_minus_L_F77=yes
14134       allow_undefined_flag_F77=unsupported
14135       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'
14136       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14137       ;;
14138
14139     osf3*)
14140       if test "$GCC" = yes; then
14141         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14142         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'
14143       else
14144         allow_undefined_flag_F77=' -expect_unresolved \*'
14145         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'
14146       fi
14147       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14148       hardcode_libdir_separator_F77=:
14149       ;;
14150
14151     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14152       if test "$GCC" = yes; then
14153         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14154         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'
14155         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14156       else
14157         allow_undefined_flag_F77=' -expect_unresolved \*'
14158         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'
14159         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~
14160         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14161
14162         # Both c and cxx compiler support -rpath directly
14163         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14164       fi
14165       hardcode_libdir_separator_F77=:
14166       ;;
14167
14168     sco3.2v5*)
14169       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14170       hardcode_shlibpath_var_F77=no
14171       export_dynamic_flag_spec_F77='${wl}-Bexport'
14172       runpath_var=LD_RUN_PATH
14173       hardcode_runpath_var=yes
14174       ;;
14175
14176     solaris*)
14177       no_undefined_flag_F77=' -z text'
14178       if test "$GCC" = yes; then
14179         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14180         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14181           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14182       else
14183         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14184         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14185         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14186       fi
14187       hardcode_libdir_flag_spec_F77='-R$libdir'
14188       hardcode_shlibpath_var_F77=no
14189       case $host_os in
14190       solaris2.[0-5] | solaris2.[0-5].*) ;;
14191       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14192         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14193       esac
14194       link_all_deplibs_F77=yes
14195       ;;
14196
14197     sunos4*)
14198       if test "x$host_vendor" = xsequent; then
14199         # Use $CC to link under sequent, because it throws in some extra .o
14200         # files that make .init and .fini sections work.
14201         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14202       else
14203         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14204       fi
14205       hardcode_libdir_flag_spec_F77='-L$libdir'
14206       hardcode_direct_F77=yes
14207       hardcode_minus_L_F77=yes
14208       hardcode_shlibpath_var_F77=no
14209       ;;
14210
14211     sysv4)
14212       case $host_vendor in
14213         sni)
14214           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14215           hardcode_direct_F77=yes # is this really true???
14216         ;;
14217         siemens)
14218           ## LD is ld it makes a PLAMLIB
14219           ## CC just makes a GrossModule.
14220           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14221           reload_cmds_F77='$CC -r -o $output$reload_objs'
14222           hardcode_direct_F77=no
14223         ;;
14224         motorola)
14225           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14226           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14227         ;;
14228       esac
14229       runpath_var='LD_RUN_PATH'
14230       hardcode_shlibpath_var_F77=no
14231       ;;
14232
14233     sysv4.3*)
14234       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14235       hardcode_shlibpath_var_F77=no
14236       export_dynamic_flag_spec_F77='-Bexport'
14237       ;;
14238
14239     sysv4*MP*)
14240       if test -d /usr/nec; then
14241         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14242         hardcode_shlibpath_var_F77=no
14243         runpath_var=LD_RUN_PATH
14244         hardcode_runpath_var=yes
14245         ld_shlibs_F77=yes
14246       fi
14247       ;;
14248
14249     sysv4.2uw2*)
14250       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14251       hardcode_direct_F77=yes
14252       hardcode_minus_L_F77=no
14253       hardcode_shlibpath_var_F77=no
14254       hardcode_runpath_var=yes
14255       runpath_var=LD_RUN_PATH
14256       ;;
14257
14258    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14259       no_undefined_flag_F77='${wl}-z ${wl}text'
14260       if test "$GCC" = yes; then
14261         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14262       else
14263         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14264       fi
14265       runpath_var='LD_RUN_PATH'
14266       hardcode_shlibpath_var_F77=no
14267       ;;
14268
14269     sysv5*)
14270       no_undefined_flag_F77=' -z text'
14271       # $CC -shared without GNU ld will not create a library from C++
14272       # object files and a static libstdc++, better avoid it by now
14273       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14274       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14275                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14276       hardcode_libdir_flag_spec_F77=
14277       hardcode_shlibpath_var_F77=no
14278       runpath_var='LD_RUN_PATH'
14279       ;;
14280
14281     uts4*)
14282       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14283       hardcode_libdir_flag_spec_F77='-L$libdir'
14284       hardcode_shlibpath_var_F77=no
14285       ;;
14286
14287     *)
14288       ld_shlibs_F77=no
14289       ;;
14290     esac
14291   fi
14292
14293 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14294 echo "${ECHO_T}$ld_shlibs_F77" >&6
14295 test "$ld_shlibs_F77" = no && can_build_shared=no
14296
14297 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14298 if test "$GCC" = yes; then
14299   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14300 fi
14301
14302 #
14303 # Do we need to explicitly link libc?
14304 #
14305 case "x$archive_cmds_need_lc_F77" in
14306 x|xyes)
14307   # Assume -lc should be added
14308   archive_cmds_need_lc_F77=yes
14309
14310   if test "$enable_shared" = yes && test "$GCC" = yes; then
14311     case $archive_cmds_F77 in
14312     *'~'*)
14313       # FIXME: we may have to deal with multi-command sequences.
14314       ;;
14315     '$CC '*)
14316       # Test whether the compiler implicitly links with -lc since on some
14317       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14318       # to ld, don't add -lc before -lgcc.
14319       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14320 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14321       $rm conftest*
14322       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14323
14324       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14325   (eval $ac_compile) 2>&5
14326   ac_status=$?
14327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328   (exit $ac_status); } 2>conftest.err; then
14329         soname=conftest
14330         lib=conftest
14331         libobjs=conftest.$ac_objext
14332         deplibs=
14333         wl=$lt_prog_compiler_wl_F77
14334         compiler_flags=-v
14335         linker_flags=-v
14336         verstring=
14337         output_objdir=.
14338         libname=conftest
14339         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14340         allow_undefined_flag_F77=
14341         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14342   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14343   ac_status=$?
14344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345   (exit $ac_status); }
14346         then
14347           archive_cmds_need_lc_F77=no
14348         else
14349           archive_cmds_need_lc_F77=yes
14350         fi
14351         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14352       else
14353         cat conftest.err 1>&5
14354       fi
14355       $rm conftest*
14356       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14357 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14358       ;;
14359     esac
14360   fi
14361   ;;
14362 esac
14363
14364 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14365 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14366 library_names_spec=
14367 libname_spec='lib$name'
14368 soname_spec=
14369 shrext=".so"
14370 postinstall_cmds=
14371 postuninstall_cmds=
14372 finish_cmds=
14373 finish_eval=
14374 shlibpath_var=
14375 shlibpath_overrides_runpath=unknown
14376 version_type=none
14377 dynamic_linker="$host_os ld.so"
14378 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14379 if test "$GCC" = yes; then
14380   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14381   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14382     # if the path contains ";" then we assume it to be the separator
14383     # otherwise default to the standard path separator (i.e. ":") - it is
14384     # assumed that no part of a normal pathname contains ";" but that should
14385     # okay in the real world where ";" in dirpaths is itself problematic.
14386     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14387   else
14388     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14389   fi
14390 else
14391   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14392 fi
14393 need_lib_prefix=unknown
14394 hardcode_into_libs=no
14395
14396 # when you set need_version to no, make sure it does not cause -set_version
14397 # flags to be left without arguments
14398 need_version=unknown
14399
14400 case $host_os in
14401 aix3*)
14402   version_type=linux
14403   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14404   shlibpath_var=LIBPATH
14405
14406   # AIX 3 has no versioning support, so we append a major version to the name.
14407   soname_spec='${libname}${release}${shared_ext}$major'
14408   ;;
14409
14410 aix4* | aix5*)
14411   version_type=linux
14412   need_lib_prefix=no
14413   need_version=no
14414   hardcode_into_libs=yes
14415   if test "$host_cpu" = ia64; then
14416     # AIX 5 supports IA64
14417     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14418     shlibpath_var=LD_LIBRARY_PATH
14419   else
14420     # With GCC up to 2.95.x, collect2 would create an import file
14421     # for dependence libraries.  The import file would start with
14422     # the line `#! .'.  This would cause the generated library to
14423     # depend on `.', always an invalid library.  This was fixed in
14424     # development snapshots of GCC prior to 3.0.
14425     case $host_os in
14426       aix4 | aix4.[01] | aix4.[01].*)
14427       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14428            echo ' yes '
14429            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14430         :
14431       else
14432         can_build_shared=no
14433       fi
14434       ;;
14435     esac
14436     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14437     # soname into executable. Probably we can add versioning support to
14438     # collect2, so additional links can be useful in future.
14439     if test "$aix_use_runtimelinking" = yes; then
14440       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14441       # instead of lib<name>.a to let people know that these are not
14442       # typical AIX shared libraries.
14443       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14444     else
14445       # We preserve .a as extension for shared libraries through AIX4.2
14446       # and later when we are not doing run time linking.
14447       library_names_spec='${libname}${release}.a $libname.a'
14448       soname_spec='${libname}${release}${shared_ext}$major'
14449     fi
14450     shlibpath_var=LIBPATH
14451   fi
14452   ;;
14453
14454 amigaos*)
14455   library_names_spec='$libname.ixlibrary $libname.a'
14456   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14457   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'
14458   ;;
14459
14460 beos*)
14461   library_names_spec='${libname}${shared_ext}'
14462   dynamic_linker="$host_os ld.so"
14463   shlibpath_var=LIBRARY_PATH
14464   ;;
14465
14466 bsdi4*)
14467   version_type=linux
14468   need_version=no
14469   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14470   soname_spec='${libname}${release}${shared_ext}$major'
14471   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14472   shlibpath_var=LD_LIBRARY_PATH
14473   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14474   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14475   # the default ld.so.conf also contains /usr/contrib/lib and
14476   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14477   # libtool to hard-code these into programs
14478   ;;
14479
14480 cygwin* | mingw* | pw32*)
14481   version_type=windows
14482   shrext=".dll"
14483   need_version=no
14484   need_lib_prefix=no
14485
14486   case $GCC,$host_os in
14487   yes,cygwin* | yes,mingw* | yes,pw32*)
14488     library_names_spec='$libname.dll.a'
14489     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14490     postinstall_cmds='base_file=`basename \${file}`~
14491       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14492       dldir=$destdir/`dirname \$dlpath`~
14493       test -d \$dldir || mkdir -p \$dldir~
14494       $install_prog $dir/$dlname \$dldir/$dlname'
14495     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14496       dlpath=$dir/\$dldll~
14497        $rm \$dlpath'
14498     shlibpath_overrides_runpath=yes
14499
14500     case $host_os in
14501     cygwin*)
14502       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14503       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14504       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14505       ;;
14506     mingw*)
14507       # MinGW DLLs use traditional 'lib' prefix
14508       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14509       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14510       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14511         # It is most probably a Windows format PATH printed by
14512         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14513         # path with ; separators, and with drive letters. We can handle the
14514         # drive letters (cygwin fileutils understands them), so leave them,
14515         # especially as we might pass files found there to a mingw objdump,
14516         # which wouldn't understand a cygwinified path. Ahh.
14517         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14518       else
14519         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14520       fi
14521       ;;
14522     pw32*)
14523       # pw32 DLLs use 'pw' prefix rather than 'lib'
14524       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14525       ;;
14526     esac
14527     ;;
14528
14529   *)
14530     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14531     ;;
14532   esac
14533   dynamic_linker='Win32 ld.exe'
14534   # FIXME: first we should search . and the directory the executable is in
14535   shlibpath_var=PATH
14536   ;;
14537
14538 darwin* | rhapsody*)
14539   dynamic_linker="$host_os dyld"
14540   version_type=darwin
14541   need_lib_prefix=no
14542   need_version=no
14543   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14544   soname_spec='${libname}${release}${major}$shared_ext'
14545   shlibpath_overrides_runpath=yes
14546   shlibpath_var=DYLD_LIBRARY_PATH
14547   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14548   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14549   if test "$GCC" = yes; then
14550     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"`
14551   else
14552     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14553   fi
14554   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14555   ;;
14556
14557 dgux*)
14558   version_type=linux
14559   need_lib_prefix=no
14560   need_version=no
14561   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14562   soname_spec='${libname}${release}${shared_ext}$major'
14563   shlibpath_var=LD_LIBRARY_PATH
14564   ;;
14565
14566 freebsd1*)
14567   dynamic_linker=no
14568   ;;
14569
14570 kfreebsd*-gnu)
14571   version_type=linux
14572   need_lib_prefix=no
14573   need_version=no
14574   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14575   soname_spec='${libname}${release}${shared_ext}$major'
14576   shlibpath_var=LD_LIBRARY_PATH
14577   shlibpath_overrides_runpath=no
14578   hardcode_into_libs=yes
14579   dynamic_linker='GNU ld.so'
14580   ;;
14581
14582 freebsd*)
14583   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14584   version_type=freebsd-$objformat
14585   case $version_type in
14586     freebsd-elf*)
14587       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14588       need_version=no
14589       need_lib_prefix=no
14590       ;;
14591     freebsd-*)
14592       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14593       need_version=yes
14594       ;;
14595   esac
14596   shlibpath_var=LD_LIBRARY_PATH
14597   case $host_os in
14598   freebsd2*)
14599     shlibpath_overrides_runpath=yes
14600     ;;
14601   freebsd3.01* | freebsdelf3.01*)
14602     shlibpath_overrides_runpath=yes
14603     hardcode_into_libs=yes
14604     ;;
14605   *) # from 3.2 on
14606     shlibpath_overrides_runpath=no
14607     hardcode_into_libs=yes
14608     ;;
14609   esac
14610   ;;
14611
14612 gnu*)
14613   version_type=linux
14614   need_lib_prefix=no
14615   need_version=no
14616   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14617   soname_spec='${libname}${release}${shared_ext}$major'
14618   shlibpath_var=LD_LIBRARY_PATH
14619   hardcode_into_libs=yes
14620   ;;
14621
14622 hpux9* | hpux10* | hpux11*)
14623   # Give a soname corresponding to the major version so that dld.sl refuses to
14624   # link against other versions.
14625   version_type=sunos
14626   need_lib_prefix=no
14627   need_version=no
14628   case "$host_cpu" in
14629   ia64*)
14630     shrext='.so'
14631     hardcode_into_libs=yes
14632     dynamic_linker="$host_os dld.so"
14633     shlibpath_var=LD_LIBRARY_PATH
14634     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14635     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14636     soname_spec='${libname}${release}${shared_ext}$major'
14637     if test "X$HPUX_IA64_MODE" = X32; then
14638       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14639     else
14640       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14641     fi
14642     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14643     ;;
14644    hppa*64*)
14645      shrext='.sl'
14646      hardcode_into_libs=yes
14647      dynamic_linker="$host_os dld.sl"
14648      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14649      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14650      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14651      soname_spec='${libname}${release}${shared_ext}$major'
14652      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14653      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14654      ;;
14655    *)
14656     shrext='.sl'
14657     dynamic_linker="$host_os dld.sl"
14658     shlibpath_var=SHLIB_PATH
14659     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14660     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14661     soname_spec='${libname}${release}${shared_ext}$major'
14662     ;;
14663   esac
14664   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14665   postinstall_cmds='chmod 555 $lib'
14666   ;;
14667
14668 irix5* | irix6* | nonstopux*)
14669   case $host_os in
14670     nonstopux*) version_type=nonstopux ;;
14671     *)
14672         if test "$lt_cv_prog_gnu_ld" = yes; then
14673                 version_type=linux
14674         else
14675                 version_type=irix
14676         fi ;;
14677   esac
14678   need_lib_prefix=no
14679   need_version=no
14680   soname_spec='${libname}${release}${shared_ext}$major'
14681   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14682   case $host_os in
14683   irix5* | nonstopux*)
14684     libsuff= shlibsuff=
14685     ;;
14686   *)
14687     case $LD in # libtool.m4 will add one of these switches to LD
14688     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14689       libsuff= shlibsuff= libmagic=32-bit;;
14690     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14691       libsuff=32 shlibsuff=N32 libmagic=N32;;
14692     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14693       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14694     *) libsuff= shlibsuff= libmagic=never-match;;
14695     esac
14696     ;;
14697   esac
14698   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14699   shlibpath_overrides_runpath=no
14700   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14701   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14702   hardcode_into_libs=yes
14703   ;;
14704
14705 # No shared lib support for Linux oldld, aout, or coff.
14706 linux*oldld* | linux*aout* | linux*coff*)
14707   dynamic_linker=no
14708   ;;
14709
14710 # This must be Linux ELF.
14711 linux*)
14712   version_type=linux
14713   need_lib_prefix=no
14714   need_version=no
14715   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14716   soname_spec='${libname}${release}${shared_ext}$major'
14717   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14718   shlibpath_var=LD_LIBRARY_PATH
14719   shlibpath_overrides_runpath=no
14720   # This implies no fast_install, which is unacceptable.
14721   # Some rework will be needed to allow for fast_install
14722   # before this can be enabled.
14723   hardcode_into_libs=yes
14724
14725   # Append ld.so.conf contents to the search path
14726   if test -f /etc/ld.so.conf; then
14727     ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
14728     sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
14729   fi
14730
14731   # We used to test for /lib/ld.so.1 and disable shared libraries on
14732   # powerpc, because MkLinux only supported shared libraries with the
14733   # GNU dynamic linker.  Since this was broken with cross compilers,
14734   # most powerpc-linux boxes support dynamic linking these days and
14735   # people can always --disable-shared, the test was removed, and we
14736   # assume the GNU/Linux dynamic linker is in use.
14737   dynamic_linker='GNU/Linux ld.so'
14738   ;;
14739
14740 knetbsd*-gnu)
14741   version_type=linux
14742   need_lib_prefix=no
14743   need_version=no
14744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14745   soname_spec='${libname}${release}${shared_ext}$major'
14746   shlibpath_var=LD_LIBRARY_PATH
14747   shlibpath_overrides_runpath=no
14748   hardcode_into_libs=yes
14749   dynamic_linker='GNU ld.so'
14750   ;;
14751
14752 netbsd*)
14753   version_type=sunos
14754   need_lib_prefix=no
14755   need_version=no
14756   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14757     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14758     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14759     dynamic_linker='NetBSD (a.out) ld.so'
14760   else
14761     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14762     soname_spec='${libname}${release}${shared_ext}$major'
14763     dynamic_linker='NetBSD ld.elf_so'
14764   fi
14765   shlibpath_var=LD_LIBRARY_PATH
14766   shlibpath_overrides_runpath=yes
14767   hardcode_into_libs=yes
14768   ;;
14769
14770 newsos6)
14771   version_type=linux
14772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14773   shlibpath_var=LD_LIBRARY_PATH
14774   shlibpath_overrides_runpath=yes
14775   ;;
14776
14777 nto-qnx*)
14778   version_type=linux
14779   need_lib_prefix=no
14780   need_version=no
14781   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14782   soname_spec='${libname}${release}${shared_ext}$major'
14783   shlibpath_var=LD_LIBRARY_PATH
14784   shlibpath_overrides_runpath=yes
14785   ;;
14786
14787 openbsd*)
14788   version_type=sunos
14789   need_lib_prefix=no
14790   need_version=yes
14791   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14792   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14793   shlibpath_var=LD_LIBRARY_PATH
14794   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14795     case $host_os in
14796       openbsd2.[89] | openbsd2.[89].*)
14797         shlibpath_overrides_runpath=no
14798         ;;
14799       *)
14800         shlibpath_overrides_runpath=yes
14801         ;;
14802       esac
14803   else
14804     shlibpath_overrides_runpath=yes
14805   fi
14806   ;;
14807
14808 os2*)
14809   libname_spec='$name'
14810   shrext=".dll"
14811   need_lib_prefix=no
14812   library_names_spec='$libname${shared_ext} $libname.a'
14813   dynamic_linker='OS/2 ld.exe'
14814   shlibpath_var=LIBPATH
14815   ;;
14816
14817 osf3* | osf4* | osf5*)
14818   version_type=osf
14819   need_lib_prefix=no
14820   need_version=no
14821   soname_spec='${libname}${release}${shared_ext}$major'
14822   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14823   shlibpath_var=LD_LIBRARY_PATH
14824   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14825   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14826   ;;
14827
14828 sco3.2v5*)
14829   version_type=osf
14830   soname_spec='${libname}${release}${shared_ext}$major'
14831   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14832   shlibpath_var=LD_LIBRARY_PATH
14833   ;;
14834
14835 solaris*)
14836   version_type=linux
14837   need_lib_prefix=no
14838   need_version=no
14839   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14840   soname_spec='${libname}${release}${shared_ext}$major'
14841   shlibpath_var=LD_LIBRARY_PATH
14842   shlibpath_overrides_runpath=yes
14843   hardcode_into_libs=yes
14844   # ldd complains unless libraries are executable
14845   postinstall_cmds='chmod +x $lib'
14846   ;;
14847
14848 sunos4*)
14849   version_type=sunos
14850   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14851   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14852   shlibpath_var=LD_LIBRARY_PATH
14853   shlibpath_overrides_runpath=yes
14854   if test "$with_gnu_ld" = yes; then
14855     need_lib_prefix=no
14856   fi
14857   need_version=yes
14858   ;;
14859
14860 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14861   version_type=linux
14862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14863   soname_spec='${libname}${release}${shared_ext}$major'
14864   shlibpath_var=LD_LIBRARY_PATH
14865   case $host_vendor in
14866     sni)
14867       shlibpath_overrides_runpath=no
14868       need_lib_prefix=no
14869       export_dynamic_flag_spec='${wl}-Blargedynsym'
14870       runpath_var=LD_RUN_PATH
14871       ;;
14872     siemens)
14873       need_lib_prefix=no
14874       ;;
14875     motorola)
14876       need_lib_prefix=no
14877       need_version=no
14878       shlibpath_overrides_runpath=no
14879       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14880       ;;
14881   esac
14882   ;;
14883
14884 sysv4*MP*)
14885   if test -d /usr/nec ;then
14886     version_type=linux
14887     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14888     soname_spec='$libname${shared_ext}.$major'
14889     shlibpath_var=LD_LIBRARY_PATH
14890   fi
14891   ;;
14892
14893 uts4*)
14894   version_type=linux
14895   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14896   soname_spec='${libname}${release}${shared_ext}$major'
14897   shlibpath_var=LD_LIBRARY_PATH
14898   ;;
14899
14900 *)
14901   dynamic_linker=no
14902   ;;
14903 esac
14904 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14905 echo "${ECHO_T}$dynamic_linker" >&6
14906 test "$dynamic_linker" = no && can_build_shared=no
14907
14908 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14909 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14910 hardcode_action_F77=
14911 if test -n "$hardcode_libdir_flag_spec_F77" || \
14912    test -n "$runpath_var F77" || \
14913    test "X$hardcode_automatic_F77"="Xyes" ; then
14914
14915   # We can hardcode non-existant directories.
14916   if test "$hardcode_direct_F77" != no &&
14917      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14918      # have to relink, otherwise we might link with an installed library
14919      # when we should be linking with a yet-to-be-installed one
14920      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14921      test "$hardcode_minus_L_F77" != no; then
14922     # Linking always hardcodes the temporary library directory.
14923     hardcode_action_F77=relink
14924   else
14925     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14926     hardcode_action_F77=immediate
14927   fi
14928 else
14929   # We cannot hardcode anything, or else we can only hardcode existing
14930   # directories.
14931   hardcode_action_F77=unsupported
14932 fi
14933 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14934 echo "${ECHO_T}$hardcode_action_F77" >&6
14935
14936 if test "$hardcode_action_F77" = relink; then
14937   # Fast installation is not supported
14938   enable_fast_install=no
14939 elif test "$shlibpath_overrides_runpath" = yes ||
14940      test "$enable_shared" = no; then
14941   # Fast installation is not necessary
14942   enable_fast_install=needless
14943 fi
14944
14945 striplib=
14946 old_striplib=
14947 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14948 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14949 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14950   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14951   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14952   echo "$as_me:$LINENO: result: yes" >&5
14953 echo "${ECHO_T}yes" >&6
14954 else
14955 # FIXME - insert some real tests, host_os isn't really good enough
14956   case $host_os in
14957    darwin*)
14958        if test -n "$STRIP" ; then
14959          striplib="$STRIP -x"
14960          echo "$as_me:$LINENO: result: yes" >&5
14961 echo "${ECHO_T}yes" >&6
14962        else
14963   echo "$as_me:$LINENO: result: no" >&5
14964 echo "${ECHO_T}no" >&6
14965 fi
14966        ;;
14967    *)
14968   echo "$as_me:$LINENO: result: no" >&5
14969 echo "${ECHO_T}no" >&6
14970     ;;
14971   esac
14972 fi
14973
14974
14975
14976 # The else clause should only fire when bootstrapping the
14977 # libtool distribution, otherwise you forgot to ship ltmain.sh
14978 # with your package, and you will get complaints that there are
14979 # no rules to generate ltmain.sh.
14980 if test -f "$ltmain"; then
14981   # See if we are running on zsh, and set the options which allow our commands through
14982   # without removal of \ escapes.
14983   if test -n "${ZSH_VERSION+set}" ; then
14984     setopt NO_GLOB_SUBST
14985   fi
14986   # Now quote all the things that may contain metacharacters while being
14987   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14988   # variables and quote the copies for generation of the libtool script.
14989   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14990     SED SHELL STRIP \
14991     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14992     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14993     deplibs_check_method reload_flag reload_cmds need_locks \
14994     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14995     lt_cv_sys_global_symbol_to_c_name_address \
14996     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14997     old_postinstall_cmds old_postuninstall_cmds \
14998     compiler_F77 \
14999     CC_F77 \
15000     LD_F77 \
15001     lt_prog_compiler_wl_F77 \
15002     lt_prog_compiler_pic_F77 \
15003     lt_prog_compiler_static_F77 \
15004     lt_prog_compiler_no_builtin_flag_F77 \
15005     export_dynamic_flag_spec_F77 \
15006     thread_safe_flag_spec_F77 \
15007     whole_archive_flag_spec_F77 \
15008     enable_shared_with_static_runtimes_F77 \
15009     old_archive_cmds_F77 \
15010     old_archive_from_new_cmds_F77 \
15011     predep_objects_F77 \
15012     postdep_objects_F77 \
15013     predeps_F77 \
15014     postdeps_F77 \
15015     compiler_lib_search_path_F77 \
15016     archive_cmds_F77 \
15017     archive_expsym_cmds_F77 \
15018     postinstall_cmds_F77 \
15019     postuninstall_cmds_F77 \
15020     old_archive_from_expsyms_cmds_F77 \
15021     allow_undefined_flag_F77 \
15022     no_undefined_flag_F77 \
15023     export_symbols_cmds_F77 \
15024     hardcode_libdir_flag_spec_F77 \
15025     hardcode_libdir_flag_spec_ld_F77 \
15026     hardcode_libdir_separator_F77 \
15027     hardcode_automatic_F77 \
15028     module_cmds_F77 \
15029     module_expsym_cmds_F77 \
15030     lt_cv_prog_compiler_c_o_F77 \
15031     exclude_expsyms_F77 \
15032     include_expsyms_F77; do
15033
15034     case $var in
15035     old_archive_cmds_F77 | \
15036     old_archive_from_new_cmds_F77 | \
15037     archive_cmds_F77 | \
15038     archive_expsym_cmds_F77 | \
15039     module_cmds_F77 | \
15040     module_expsym_cmds_F77 | \
15041     old_archive_from_expsyms_cmds_F77 | \
15042     export_symbols_cmds_F77 | \
15043     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15044     postinstall_cmds | postuninstall_cmds | \
15045     old_postinstall_cmds | old_postuninstall_cmds | \
15046     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15047       # Double-quote double-evaled strings.
15048       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15049       ;;
15050     *)
15051       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15052       ;;
15053     esac
15054   done
15055
15056   case $lt_echo in
15057   *'\$0 --fallback-echo"')
15058     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15059     ;;
15060   esac
15061
15062 cfgfile="$ofile"
15063
15064   cat <<__EOF__ >> "$cfgfile"
15065 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15066
15067 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15068
15069 # Shell to use when invoking shell scripts.
15070 SHELL=$lt_SHELL
15071
15072 # Whether or not to build shared libraries.
15073 build_libtool_libs=$enable_shared
15074
15075 # Whether or not to build static libraries.
15076 build_old_libs=$enable_static
15077
15078 # Whether or not to add -lc for building shared libraries.
15079 build_libtool_need_lc=$archive_cmds_need_lc_F77
15080
15081 # Whether or not to disallow shared libs when runtime libs are static
15082 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15083
15084 # Whether or not to optimize for fast installation.
15085 fast_install=$enable_fast_install
15086
15087 # The host system.
15088 host_alias=$host_alias
15089 host=$host
15090
15091 # An echo program that does not interpret backslashes.
15092 echo=$lt_echo
15093
15094 # The archiver.
15095 AR=$lt_AR
15096 AR_FLAGS=$lt_AR_FLAGS
15097
15098 # A C compiler.
15099 LTCC=$lt_LTCC
15100
15101 # A language-specific compiler.
15102 CC=$lt_compiler_F77
15103
15104 # Is the compiler the GNU C compiler?
15105 with_gcc=$GCC_F77
15106
15107 # An ERE matcher.
15108 EGREP=$lt_EGREP
15109
15110 # The linker used to build libraries.
15111 LD=$lt_LD_F77
15112
15113 # Whether we need hard or soft links.
15114 LN_S=$lt_LN_S
15115
15116 # A BSD-compatible nm program.
15117 NM=$lt_NM
15118
15119 # A symbol stripping program
15120 STRIP=$lt_STRIP
15121
15122 # Used to examine libraries when file_magic_cmd begins "file"
15123 MAGIC_CMD=$MAGIC_CMD
15124
15125 # Used on cygwin: DLL creation program.
15126 DLLTOOL="$DLLTOOL"
15127
15128 # Used on cygwin: object dumper.
15129 OBJDUMP="$OBJDUMP"
15130
15131 # Used on cygwin: assembler.
15132 AS="$AS"
15133
15134 # The name of the directory that contains temporary libtool files.
15135 objdir=$objdir
15136
15137 # How to create reloadable object files.
15138 reload_flag=$lt_reload_flag
15139 reload_cmds=$lt_reload_cmds
15140
15141 # How to pass a linker flag through the compiler.
15142 wl=$lt_lt_prog_compiler_wl_F77
15143
15144 # Object file suffix (normally "o").
15145 objext="$ac_objext"
15146
15147 # Old archive suffix (normally "a").
15148 libext="$libext"
15149
15150 # Shared library suffix (normally ".so").
15151 shrext='$shrext'
15152
15153 # Executable file suffix (normally "").
15154 exeext="$exeext"
15155
15156 # Additional compiler flags for building library objects.
15157 pic_flag=$lt_lt_prog_compiler_pic_F77
15158 pic_mode=$pic_mode
15159
15160 # What is the maximum length of a command?
15161 max_cmd_len=$lt_cv_sys_max_cmd_len
15162
15163 # Does compiler simultaneously support -c and -o options?
15164 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15165
15166 # Must we lock files when doing compilation ?
15167 need_locks=$lt_need_locks
15168
15169 # Do we need the lib prefix for modules?
15170 need_lib_prefix=$need_lib_prefix
15171
15172 # Do we need a version for libraries?
15173 need_version=$need_version
15174
15175 # Whether dlopen is supported.
15176 dlopen_support=$enable_dlopen
15177
15178 # Whether dlopen of programs is supported.
15179 dlopen_self=$enable_dlopen_self
15180
15181 # Whether dlopen of statically linked programs is supported.
15182 dlopen_self_static=$enable_dlopen_self_static
15183
15184 # Compiler flag to prevent dynamic linking.
15185 link_static_flag=$lt_lt_prog_compiler_static_F77
15186
15187 # Compiler flag to turn off builtin functions.
15188 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15189
15190 # Compiler flag to allow reflexive dlopens.
15191 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15192
15193 # Compiler flag to generate shared objects directly from archives.
15194 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15195
15196 # Compiler flag to generate thread-safe objects.
15197 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15198
15199 # Library versioning type.
15200 version_type=$version_type
15201
15202 # Format of library name prefix.
15203 libname_spec=$lt_libname_spec
15204
15205 # List of archive names.  First name is the real one, the rest are links.
15206 # The last name is the one that the linker finds with -lNAME.
15207 library_names_spec=$lt_library_names_spec
15208
15209 # The coded name of the library, if different from the real name.
15210 soname_spec=$lt_soname_spec
15211
15212 # Commands used to build and install an old-style archive.
15213 RANLIB=$lt_RANLIB
15214 old_archive_cmds=$lt_old_archive_cmds_F77
15215 old_postinstall_cmds=$lt_old_postinstall_cmds
15216 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15217
15218 # Create an old-style archive from a shared archive.
15219 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15220
15221 # Create a temporary old-style archive to link instead of a shared archive.
15222 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15223
15224 # Commands used to build and install a shared archive.
15225 archive_cmds=$lt_archive_cmds_F77
15226 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15227 postinstall_cmds=$lt_postinstall_cmds
15228 postuninstall_cmds=$lt_postuninstall_cmds
15229
15230 # Commands used to build a loadable module (assumed same as above if empty)
15231 module_cmds=$lt_module_cmds_F77
15232 module_expsym_cmds=$lt_module_expsym_cmds_F77
15233
15234 # Commands to strip libraries.
15235 old_striplib=$lt_old_striplib
15236 striplib=$lt_striplib
15237
15238 # Dependencies to place before the objects being linked to create a
15239 # shared library.
15240 predep_objects=$lt_predep_objects_F77
15241
15242 # Dependencies to place after the objects being linked to create a
15243 # shared library.
15244 postdep_objects=$lt_postdep_objects_F77
15245
15246 # Dependencies to place before the objects being linked to create a
15247 # shared library.
15248 predeps=$lt_predeps_F77
15249
15250 # Dependencies to place after the objects being linked to create a
15251 # shared library.
15252 postdeps=$lt_postdeps_F77
15253
15254 # The library search path used internally by the compiler when linking
15255 # a shared library.
15256 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15257
15258 # Method to check whether dependent libraries are shared objects.
15259 deplibs_check_method=$lt_deplibs_check_method
15260
15261 # Command to use when deplibs_check_method == file_magic.
15262 file_magic_cmd=$lt_file_magic_cmd
15263
15264 # Flag that allows shared libraries with undefined symbols to be built.
15265 allow_undefined_flag=$lt_allow_undefined_flag_F77
15266
15267 # Flag that forces no undefined symbols.
15268 no_undefined_flag=$lt_no_undefined_flag_F77
15269
15270 # Commands used to finish a libtool library installation in a directory.
15271 finish_cmds=$lt_finish_cmds
15272
15273 # Same as above, but a single script fragment to be evaled but not shown.
15274 finish_eval=$lt_finish_eval
15275
15276 # Take the output of nm and produce a listing of raw symbols and C names.
15277 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15278
15279 # Transform the output of nm in a proper C declaration
15280 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15281
15282 # Transform the output of nm in a C name address pair
15283 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15284
15285 # This is the shared library runtime path variable.
15286 runpath_var=$runpath_var
15287
15288 # This is the shared library path variable.
15289 shlibpath_var=$shlibpath_var
15290
15291 # Is shlibpath searched before the hard-coded library search path?
15292 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15293
15294 # How to hardcode a shared library path into an executable.
15295 hardcode_action=$hardcode_action_F77
15296
15297 # Whether we should hardcode library paths into libraries.
15298 hardcode_into_libs=$hardcode_into_libs
15299
15300 # Flag to hardcode \$libdir into a binary during linking.
15301 # This must work even if \$libdir does not exist.
15302 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15303
15304 # If ld is used when linking, flag to hardcode \$libdir into
15305 # a binary during linking. This must work even if \$libdir does
15306 # not exist.
15307 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15308
15309 # Whether we need a single -rpath flag with a separated argument.
15310 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15311
15312 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15313 # resulting binary.
15314 hardcode_direct=$hardcode_direct_F77
15315
15316 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15317 # resulting binary.
15318 hardcode_minus_L=$hardcode_minus_L_F77
15319
15320 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15321 # the resulting binary.
15322 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15323
15324 # Set to yes if building a shared library automatically hardcodes DIR into the library
15325 # and all subsequent libraries and executables linked against it.
15326 hardcode_automatic=$hardcode_automatic_F77
15327
15328 # Variables whose values should be saved in libtool wrapper scripts and
15329 # restored at relink time.
15330 variables_saved_for_relink="$variables_saved_for_relink"
15331
15332 # Whether libtool must link a program against all its dependency libraries.
15333 link_all_deplibs=$link_all_deplibs_F77
15334
15335 # Compile-time system search path for libraries
15336 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15337
15338 # Run-time system search path for libraries
15339 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15340
15341 # Fix the shell variable \$srcfile for the compiler.
15342 fix_srcfile_path="$fix_srcfile_path_F77"
15343
15344 # Set to yes if exported symbols are required.
15345 always_export_symbols=$always_export_symbols_F77
15346
15347 # The commands to list exported symbols.
15348 export_symbols_cmds=$lt_export_symbols_cmds_F77
15349
15350 # The commands to extract the exported symbol list from a shared archive.
15351 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15352
15353 # Symbols that should not be listed in the preloaded symbols.
15354 exclude_expsyms=$lt_exclude_expsyms_F77
15355
15356 # Symbols that must always be exported.
15357 include_expsyms=$lt_include_expsyms_F77
15358
15359 # ### END LIBTOOL TAG CONFIG: $tagname
15360
15361 __EOF__
15362
15363
15364 else
15365   # If there is no Makefile yet, we rely on a make rule to execute
15366   # `config.status --recheck' to rerun these tests and create the
15367   # libtool script then.
15368   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15369   if test -f "$ltmain_in"; then
15370     test -f Makefile && make "$ltmain"
15371   fi
15372 fi
15373
15374
15375 ac_ext=c
15376 ac_cpp='$CPP $CPPFLAGS'
15377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15380
15381 CC="$lt_save_CC"
15382
15383         else
15384           tagname=""
15385         fi
15386         ;;
15387
15388       GCJ)
15389         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15390
15391
15392
15393 # Source file extension for Java test sources.
15394 ac_ext=java
15395
15396 # Object file extension for compiled Java test sources.
15397 objext=o
15398 objext_GCJ=$objext
15399
15400 # Code to be used in simple compile tests
15401 lt_simple_compile_test_code="class foo {}\n"
15402
15403 # Code to be used in simple link tests
15404 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15405
15406 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15407
15408 # If no C compiler was specified, use CC.
15409 LTCC=${LTCC-"$CC"}
15410
15411 # Allow CC to be a program name with arguments.
15412 compiler=$CC
15413
15414
15415 # Allow CC to be a program name with arguments.
15416 lt_save_CC="$CC"
15417 CC=${GCJ-"gcj"}
15418 compiler=$CC
15419 compiler_GCJ=$CC
15420
15421 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15422 archive_cmds_need_lc_GCJ=no
15423
15424
15425 lt_prog_compiler_no_builtin_flag_GCJ=
15426
15427 if test "$GCC" = yes; then
15428   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15429
15430
15431 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15432 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15433 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15434   echo $ECHO_N "(cached) $ECHO_C" >&6
15435 else
15436   lt_cv_prog_compiler_rtti_exceptions=no
15437   ac_outfile=conftest.$ac_objext
15438    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15439    lt_compiler_flag="-fno-rtti -fno-exceptions"
15440    # Insert the option either (1) after the last *FLAGS variable, or
15441    # (2) before a word containing "conftest.", or (3) at the end.
15442    # Note that $ac_compile itself does not contain backslashes and begins
15443    # with a dollar sign (not a hyphen), so the echo should work correctly.
15444    # The option is referenced via a variable to avoid confusing sed.
15445    lt_compile=`echo "$ac_compile" | $SED \
15446    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15447    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15448    -e 's:$: $lt_compiler_flag:'`
15449    (eval echo "\"\$as_me:15449: $lt_compile\"" >&5)
15450    (eval "$lt_compile" 2>conftest.err)
15451    ac_status=$?
15452    cat conftest.err >&5
15453    echo "$as_me:15453: \$? = $ac_status" >&5
15454    if (exit $ac_status) && test -s "$ac_outfile"; then
15455      # The compiler can only warn and ignore the option if not recognized
15456      # So say no if there are warnings
15457      if test ! -s conftest.err; then
15458        lt_cv_prog_compiler_rtti_exceptions=yes
15459      fi
15460    fi
15461    $rm conftest*
15462
15463 fi
15464 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15465 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15466
15467 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15468     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15469 else
15470     :
15471 fi
15472
15473 fi
15474
15475 lt_prog_compiler_wl_GCJ=
15476 lt_prog_compiler_pic_GCJ=
15477 lt_prog_compiler_static_GCJ=
15478
15479 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15480 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15481
15482   if test "$GCC" = yes; then
15483     lt_prog_compiler_wl_GCJ='-Wl,'
15484     lt_prog_compiler_static_GCJ='-static'
15485
15486     case $host_os in
15487       aix*)
15488       # All AIX code is PIC.
15489       if test "$host_cpu" = ia64; then
15490         # AIX 5 now supports IA64 processor
15491         lt_prog_compiler_static_GCJ='-Bstatic'
15492       fi
15493       ;;
15494
15495     amigaos*)
15496       # FIXME: we need at least 68020 code to build shared libraries, but
15497       # adding the `-m68020' flag to GCC prevents building anything better,
15498       # like `-m68040'.
15499       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15500       ;;
15501
15502     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15503       # PIC is the default for these OSes.
15504       ;;
15505
15506     mingw* | pw32* | os2*)
15507       # This hack is so that the source file can tell whether it is being
15508       # built for inclusion in a dll (and should export symbols for example).
15509       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15510       ;;
15511
15512     darwin* | rhapsody*)
15513       # PIC is the default on this platform
15514       # Common symbols not allowed in MH_DYLIB files
15515       lt_prog_compiler_pic_GCJ='-fno-common'
15516       ;;
15517
15518     msdosdjgpp*)
15519       # Just because we use GCC doesn't mean we suddenly get shared libraries
15520       # on systems that don't support them.
15521       lt_prog_compiler_can_build_shared_GCJ=no
15522       enable_shared=no
15523       ;;
15524
15525     sysv4*MP*)
15526       if test -d /usr/nec; then
15527         lt_prog_compiler_pic_GCJ=-Kconform_pic
15528       fi
15529       ;;
15530
15531     hpux*)
15532       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15533       # not for PA HP-UX.
15534       case "$host_cpu" in
15535       hppa*64*|ia64*)
15536         # +Z the default
15537         ;;
15538       *)
15539         lt_prog_compiler_pic_GCJ='-fPIC'
15540         ;;
15541       esac
15542       ;;
15543
15544     *)
15545       lt_prog_compiler_pic_GCJ='-fPIC'
15546       ;;
15547     esac
15548   else
15549     # PORTME Check for flag to pass linker flags through the system compiler.
15550     case $host_os in
15551     aix*)
15552       lt_prog_compiler_wl_GCJ='-Wl,'
15553       if test "$host_cpu" = ia64; then
15554         # AIX 5 now supports IA64 processor
15555         lt_prog_compiler_static_GCJ='-Bstatic'
15556       else
15557         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15558       fi
15559       ;;
15560
15561     mingw* | pw32* | os2*)
15562       # This hack is so that the source file can tell whether it is being
15563       # built for inclusion in a dll (and should export symbols for example).
15564       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15565       ;;
15566
15567     hpux9* | hpux10* | hpux11*)
15568       lt_prog_compiler_wl_GCJ='-Wl,'
15569       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15570       # not for PA HP-UX.
15571       case "$host_cpu" in
15572       hppa*64*|ia64*)
15573         # +Z the default
15574         ;;
15575       *)
15576         lt_prog_compiler_pic_GCJ='+Z'
15577         ;;
15578       esac
15579       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15580       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15581       ;;
15582
15583     irix5* | irix6* | nonstopux*)
15584       lt_prog_compiler_wl_GCJ='-Wl,'
15585       # PIC (with -KPIC) is the default.
15586       lt_prog_compiler_static_GCJ='-non_shared'
15587       ;;
15588
15589     newsos6)
15590       lt_prog_compiler_pic_GCJ='-KPIC'
15591       lt_prog_compiler_static_GCJ='-Bstatic'
15592       ;;
15593
15594     linux*)
15595       case $CC in
15596       icc* | ecc*)
15597         lt_prog_compiler_wl_GCJ='-Wl,'
15598         lt_prog_compiler_pic_GCJ='-KPIC'
15599         lt_prog_compiler_static_GCJ='-static'
15600         ;;
15601       ccc*)
15602         lt_prog_compiler_wl_GCJ='-Wl,'
15603         # All Alpha code is PIC.
15604         lt_prog_compiler_static_GCJ='-non_shared'
15605         ;;
15606       esac
15607       ;;
15608
15609     osf3* | osf4* | osf5*)
15610       lt_prog_compiler_wl_GCJ='-Wl,'
15611       # All OSF/1 code is PIC.
15612       lt_prog_compiler_static_GCJ='-non_shared'
15613       ;;
15614
15615     sco3.2v5*)
15616       lt_prog_compiler_pic_GCJ='-Kpic'
15617       lt_prog_compiler_static_GCJ='-dn'
15618       ;;
15619
15620     solaris*)
15621       lt_prog_compiler_wl_GCJ='-Wl,'
15622       lt_prog_compiler_pic_GCJ='-KPIC'
15623       lt_prog_compiler_static_GCJ='-Bstatic'
15624       ;;
15625
15626     sunos4*)
15627       lt_prog_compiler_wl_GCJ='-Qoption ld '
15628       lt_prog_compiler_pic_GCJ='-PIC'
15629       lt_prog_compiler_static_GCJ='-Bstatic'
15630       ;;
15631
15632     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15633       lt_prog_compiler_wl_GCJ='-Wl,'
15634       lt_prog_compiler_pic_GCJ='-KPIC'
15635       lt_prog_compiler_static_GCJ='-Bstatic'
15636       ;;
15637
15638     sysv4*MP*)
15639       if test -d /usr/nec ;then
15640         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15641         lt_prog_compiler_static_GCJ='-Bstatic'
15642       fi
15643       ;;
15644
15645     uts4*)
15646       lt_prog_compiler_pic_GCJ='-pic'
15647       lt_prog_compiler_static_GCJ='-Bstatic'
15648       ;;
15649
15650     *)
15651       lt_prog_compiler_can_build_shared_GCJ=no
15652       ;;
15653     esac
15654   fi
15655
15656 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15657 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15658
15659 #
15660 # Check to make sure the PIC flag actually works.
15661 #
15662 if test -n "$lt_prog_compiler_pic_GCJ"; then
15663
15664 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15665 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15666 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15667   echo $ECHO_N "(cached) $ECHO_C" >&6
15668 else
15669   lt_prog_compiler_pic_works_GCJ=no
15670   ac_outfile=conftest.$ac_objext
15671    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15672    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15673    # Insert the option either (1) after the last *FLAGS variable, or
15674    # (2) before a word containing "conftest.", or (3) at the end.
15675    # Note that $ac_compile itself does not contain backslashes and begins
15676    # with a dollar sign (not a hyphen), so the echo should work correctly.
15677    # The option is referenced via a variable to avoid confusing sed.
15678    lt_compile=`echo "$ac_compile" | $SED \
15679    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15680    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15681    -e 's:$: $lt_compiler_flag:'`
15682    (eval echo "\"\$as_me:15682: $lt_compile\"" >&5)
15683    (eval "$lt_compile" 2>conftest.err)
15684    ac_status=$?
15685    cat conftest.err >&5
15686    echo "$as_me:15686: \$? = $ac_status" >&5
15687    if (exit $ac_status) && test -s "$ac_outfile"; then
15688      # The compiler can only warn and ignore the option if not recognized
15689      # So say no if there are warnings
15690      if test ! -s conftest.err; then
15691        lt_prog_compiler_pic_works_GCJ=yes
15692      fi
15693    fi
15694    $rm conftest*
15695
15696 fi
15697 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15698 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15699
15700 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15701     case $lt_prog_compiler_pic_GCJ in
15702      "" | " "*) ;;
15703      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15704      esac
15705 else
15706     lt_prog_compiler_pic_GCJ=
15707      lt_prog_compiler_can_build_shared_GCJ=no
15708 fi
15709
15710 fi
15711 case "$host_os" in
15712   # For platforms which do not support PIC, -DPIC is meaningless:
15713   *djgpp*)
15714     lt_prog_compiler_pic_GCJ=
15715     ;;
15716   *)
15717     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15718     ;;
15719 esac
15720
15721 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15722 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15723 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15724   echo $ECHO_N "(cached) $ECHO_C" >&6
15725 else
15726   lt_cv_prog_compiler_c_o_GCJ=no
15727    $rm -r conftest 2>/dev/null
15728    mkdir conftest
15729    cd conftest
15730    mkdir out
15731    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15732
15733    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15734    # that will create temporary files in the current directory regardless of
15735    # the output directory.  Thus, making CWD read-only will cause this test
15736    # to fail, enabling locking or at least warning the user not to do parallel
15737    # builds.
15738    chmod -w .
15739
15740    lt_compiler_flag="-o out/conftest2.$ac_objext"
15741    # Insert the option either (1) after the last *FLAGS variable, or
15742    # (2) before a word containing "conftest.", or (3) at the end.
15743    # Note that $ac_compile itself does not contain backslashes and begins
15744    # with a dollar sign (not a hyphen), so the echo should work correctly.
15745    lt_compile=`echo "$ac_compile" | $SED \
15746    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15747    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15748    -e 's:$: $lt_compiler_flag:'`
15749    (eval echo "\"\$as_me:15749: $lt_compile\"" >&5)
15750    (eval "$lt_compile" 2>out/conftest.err)
15751    ac_status=$?
15752    cat out/conftest.err >&5
15753    echo "$as_me:15753: \$? = $ac_status" >&5
15754    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15755    then
15756      # The compiler can only warn and ignore the option if not recognized
15757      # So say no if there are warnings
15758      if test ! -s out/conftest.err; then
15759        lt_cv_prog_compiler_c_o_GCJ=yes
15760      fi
15761    fi
15762    chmod u+w .
15763    $rm conftest*
15764    # SGI C++ compiler will create directory out/ii_files/ for
15765    # template instantiation
15766    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15767    $rm out/* && rmdir out
15768    cd ..
15769    rmdir conftest
15770    $rm conftest*
15771
15772 fi
15773 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15774 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15775
15776
15777 hard_links="nottested"
15778 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15779   # do not overwrite the value of need_locks provided by the user
15780   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15781 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15782   hard_links=yes
15783   $rm conftest*
15784   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15785   touch conftest.a
15786   ln conftest.a conftest.b 2>&5 || hard_links=no
15787   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15788   echo "$as_me:$LINENO: result: $hard_links" >&5
15789 echo "${ECHO_T}$hard_links" >&6
15790   if test "$hard_links" = no; then
15791     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15792 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15793     need_locks=warn
15794   fi
15795 else
15796   need_locks=no
15797 fi
15798
15799 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15800 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15801
15802   runpath_var=
15803   allow_undefined_flag_GCJ=
15804   enable_shared_with_static_runtimes_GCJ=no
15805   archive_cmds_GCJ=
15806   archive_expsym_cmds_GCJ=
15807   old_archive_From_new_cmds_GCJ=
15808   old_archive_from_expsyms_cmds_GCJ=
15809   export_dynamic_flag_spec_GCJ=
15810   whole_archive_flag_spec_GCJ=
15811   thread_safe_flag_spec_GCJ=
15812   hardcode_libdir_flag_spec_GCJ=
15813   hardcode_libdir_flag_spec_ld_GCJ=
15814   hardcode_libdir_separator_GCJ=
15815   hardcode_direct_GCJ=no
15816   hardcode_minus_L_GCJ=no
15817   hardcode_shlibpath_var_GCJ=unsupported
15818   link_all_deplibs_GCJ=unknown
15819   hardcode_automatic_GCJ=no
15820   module_cmds_GCJ=
15821   module_expsym_cmds_GCJ=
15822   always_export_symbols_GCJ=no
15823   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15824   # include_expsyms should be a list of space-separated symbols to be *always*
15825   # included in the symbol list
15826   include_expsyms_GCJ=
15827   # exclude_expsyms can be an extended regexp of symbols to exclude
15828   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15829   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15830   # as well as any symbol that contains `d'.
15831   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15832   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15833   # platforms (ab)use it in PIC code, but their linkers get confused if
15834   # the symbol is explicitly referenced.  Since portable code cannot
15835   # rely on this symbol name, it's probably fine to never include it in
15836   # preloaded symbol tables.
15837   extract_expsyms_cmds=
15838
15839   case $host_os in
15840   cygwin* | mingw* | pw32*)
15841     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15842     # When not using gcc, we currently assume that we are using
15843     # Microsoft Visual C++.
15844     if test "$GCC" != yes; then
15845       with_gnu_ld=no
15846     fi
15847     ;;
15848   openbsd*)
15849     with_gnu_ld=no
15850     ;;
15851   esac
15852
15853   ld_shlibs_GCJ=yes
15854   if test "$with_gnu_ld" = yes; then
15855     # If archive_cmds runs LD, not CC, wlarc should be empty
15856     wlarc='${wl}'
15857
15858     # See if GNU ld supports shared libraries.
15859     case $host_os in
15860     aix3* | aix4* | aix5*)
15861       # On AIX/PPC, the GNU linker is very broken
15862       if test "$host_cpu" != ia64; then
15863         ld_shlibs_GCJ=no
15864         cat <<EOF 1>&2
15865
15866 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15867 *** to be unable to reliably create shared libraries on AIX.
15868 *** Therefore, libtool is disabling shared libraries support.  If you
15869 *** really care for shared libraries, you may want to modify your PATH
15870 *** so that a non-GNU linker is found, and then restart.
15871
15872 EOF
15873       fi
15874       ;;
15875
15876     amigaos*)
15877       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)'
15878       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15879       hardcode_minus_L_GCJ=yes
15880
15881       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15882       # that the semantics of dynamic libraries on AmigaOS, at least up
15883       # to version 4, is to share data among multiple programs linked
15884       # with the same dynamic library.  Since this doesn't match the
15885       # behavior of shared libraries on other platforms, we can't use
15886       # them.
15887       ld_shlibs_GCJ=no
15888       ;;
15889
15890     beos*)
15891       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15892         allow_undefined_flag_GCJ=unsupported
15893         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15894         # support --undefined.  This deserves some investigation.  FIXME
15895         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15896       else
15897         ld_shlibs_GCJ=no
15898       fi
15899       ;;
15900
15901     cygwin* | mingw* | pw32*)
15902       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15903       # as there is no search path for DLLs.
15904       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15905       allow_undefined_flag_GCJ=unsupported
15906       always_export_symbols_GCJ=no
15907       enable_shared_with_static_runtimes_GCJ=yes
15908       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15909
15910       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15911         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15912         # If the export-symbols file already is a .def file (1st line
15913         # is EXPORTS), use it as is; otherwise, prepend...
15914         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15915           cp $export_symbols $output_objdir/$soname.def;
15916         else
15917           echo EXPORTS > $output_objdir/$soname.def;
15918           cat $export_symbols >> $output_objdir/$soname.def;
15919         fi~
15920         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15921       else
15922         ld_shlibs=no
15923       fi
15924       ;;
15925
15926     netbsd*)
15927       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15928         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15929         wlarc=
15930       else
15931         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15932         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15933       fi
15934       ;;
15935
15936     solaris* | sysv5*)
15937       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15938         ld_shlibs_GCJ=no
15939         cat <<EOF 1>&2
15940
15941 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15942 *** create shared libraries on Solaris systems.  Therefore, libtool
15943 *** is disabling shared libraries support.  We urge you to upgrade GNU
15944 *** binutils to release 2.9.1 or newer.  Another option is to modify
15945 *** your PATH or compiler configuration so that the native linker is
15946 *** used, and then restart.
15947
15948 EOF
15949       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15950         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15951         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15952       else
15953         ld_shlibs_GCJ=no
15954       fi
15955       ;;
15956
15957     sunos4*)
15958       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15959       wlarc=
15960       hardcode_direct_GCJ=yes
15961       hardcode_shlibpath_var_GCJ=no
15962       ;;
15963
15964   linux*)
15965     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15966         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15967         archive_cmds_GCJ="$tmp_archive_cmds"
15968       supports_anon_versioning=no
15969       case `$LD -v 2>/dev/null` in
15970         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15971         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15972         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15973         *\ 2.11.*) ;; # other 2.11 versions
15974         *) supports_anon_versioning=yes ;;
15975       esac
15976       if test $supports_anon_versioning = yes; then
15977         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15978 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15979 $echo "local: *; };" >> $output_objdir/$libname.ver~
15980         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15981       else
15982         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15983       fi
15984     else
15985       ld_shlibs_GCJ=no
15986     fi
15987     ;;
15988
15989     *)
15990       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15991         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15992         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15993       else
15994         ld_shlibs_GCJ=no
15995       fi
15996       ;;
15997     esac
15998
15999     if test "$ld_shlibs_GCJ" = yes; then
16000       runpath_var=LD_RUN_PATH
16001       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16002       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16003       # ancient GNU ld didn't support --whole-archive et. al.
16004       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16005         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16006       else
16007         whole_archive_flag_spec_GCJ=
16008       fi
16009     fi
16010   else
16011     # PORTME fill in a description of your system's linker (not GNU ld)
16012     case $host_os in
16013     aix3*)
16014       allow_undefined_flag_GCJ=unsupported
16015       always_export_symbols_GCJ=yes
16016       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'
16017       # Note: this linker hardcodes the directories in LIBPATH if there
16018       # are no directories specified by -L.
16019       hardcode_minus_L_GCJ=yes
16020       if test "$GCC" = yes && test -z "$link_static_flag"; then
16021         # Neither direct hardcoding nor static linking is supported with a
16022         # broken collect2.
16023         hardcode_direct_GCJ=unsupported
16024       fi
16025       ;;
16026
16027     aix4* | aix5*)
16028       if test "$host_cpu" = ia64; then
16029         # On IA64, the linker does run time linking by default, so we don't
16030         # have to do anything special.
16031         aix_use_runtimelinking=no
16032         exp_sym_flag='-Bexport'
16033         no_entry_flag=""
16034       else
16035         # If we're using GNU nm, then we don't want the "-C" option.
16036         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16037         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16038           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'
16039         else
16040           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'
16041         fi
16042         aix_use_runtimelinking=no
16043
16044         # Test if we are trying to use run time linking or normal
16045         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16046         # need to do runtime linking.
16047         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16048           for ld_flag in $LDFLAGS; do
16049           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16050             aix_use_runtimelinking=yes
16051             break
16052           fi
16053           done
16054         esac
16055
16056         exp_sym_flag='-bexport'
16057         no_entry_flag='-bnoentry'
16058       fi
16059
16060       # When large executables or shared objects are built, AIX ld can
16061       # have problems creating the table of contents.  If linking a library
16062       # or program results in "error TOC overflow" add -mminimal-toc to
16063       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16064       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16065
16066       archive_cmds_GCJ=''
16067       hardcode_direct_GCJ=yes
16068       hardcode_libdir_separator_GCJ=':'
16069       link_all_deplibs_GCJ=yes
16070
16071       if test "$GCC" = yes; then
16072         case $host_os in aix4.012|aix4.012.*)
16073         # We only want to do this on AIX 4.2 and lower, the check
16074         # below for broken collect2 doesn't work under 4.3+
16075           collect2name=`${CC} -print-prog-name=collect2`
16076           if test -f "$collect2name" && \
16077            strings "$collect2name" | grep resolve_lib_name >/dev/null
16078           then
16079           # We have reworked collect2
16080           hardcode_direct_GCJ=yes
16081           else
16082           # We have old collect2
16083           hardcode_direct_GCJ=unsupported
16084           # It fails to find uninstalled libraries when the uninstalled
16085           # path is not listed in the libpath.  Setting hardcode_minus_L
16086           # to unsupported forces relinking
16087           hardcode_minus_L_GCJ=yes
16088           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16089           hardcode_libdir_separator_GCJ=
16090           fi
16091         esac
16092         shared_flag='-shared'
16093       else
16094         # not using gcc
16095         if test "$host_cpu" = ia64; then
16096         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16097         # chokes on -Wl,-G. The following line is correct:
16098           shared_flag='-G'
16099         else
16100         if test "$aix_use_runtimelinking" = yes; then
16101             shared_flag='${wl}-G'
16102           else
16103             shared_flag='${wl}-bM:SRE'
16104         fi
16105         fi
16106       fi
16107
16108       # It seems that -bexpall does not export symbols beginning with
16109       # underscore (_), so it is better to generate a list of symbols to export.
16110       always_export_symbols_GCJ=yes
16111       if test "$aix_use_runtimelinking" = yes; then
16112         # Warning - without using the other runtime loading flags (-brtl),
16113         # -berok will link without error, but may produce a broken library.
16114         allow_undefined_flag_GCJ='-berok'
16115        # Determine the default libpath from the value encoded in an empty executable.
16116        cat >conftest.$ac_ext <<_ACEOF
16117 /* confdefs.h.  */
16118 _ACEOF
16119 cat confdefs.h >>conftest.$ac_ext
16120 cat >>conftest.$ac_ext <<_ACEOF
16121 /* end confdefs.h.  */
16122
16123 int
16124 main ()
16125 {
16126
16127   ;
16128   return 0;
16129 }
16130 _ACEOF
16131 rm -f conftest.$ac_objext conftest$ac_exeext
16132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16133   (eval $ac_link) 2>conftest.er1
16134   ac_status=$?
16135   grep -v '^ *+' conftest.er1 >conftest.err
16136   rm -f conftest.er1
16137   cat conftest.err >&5
16138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139   (exit $ac_status); } &&
16140          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16142   (eval $ac_try) 2>&5
16143   ac_status=$?
16144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145   (exit $ac_status); }; } &&
16146          { ac_try='test -s conftest$ac_exeext'
16147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16148   (eval $ac_try) 2>&5
16149   ac_status=$?
16150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151   (exit $ac_status); }; }; then
16152
16153 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16154 }'`
16155 # Check for a 64-bit object if we didn't find anything.
16156 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; }
16157 }'`; fi
16158 else
16159   echo "$as_me: failed program was:" >&5
16160 sed 's/^/| /' conftest.$ac_ext >&5
16161
16162 fi
16163 rm -f conftest.err conftest.$ac_objext \
16164       conftest$ac_exeext conftest.$ac_ext
16165 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16166
16167        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16168         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16169        else
16170         if test "$host_cpu" = ia64; then
16171           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16172           allow_undefined_flag_GCJ="-z nodefs"
16173           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16174         else
16175          # Determine the default libpath from the value encoded in an empty executable.
16176          cat >conftest.$ac_ext <<_ACEOF
16177 /* confdefs.h.  */
16178 _ACEOF
16179 cat confdefs.h >>conftest.$ac_ext
16180 cat >>conftest.$ac_ext <<_ACEOF
16181 /* end confdefs.h.  */
16182
16183 int
16184 main ()
16185 {
16186
16187   ;
16188   return 0;
16189 }
16190 _ACEOF
16191 rm -f conftest.$ac_objext conftest$ac_exeext
16192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16193   (eval $ac_link) 2>conftest.er1
16194   ac_status=$?
16195   grep -v '^ *+' conftest.er1 >conftest.err
16196   rm -f conftest.er1
16197   cat conftest.err >&5
16198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199   (exit $ac_status); } &&
16200          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16202   (eval $ac_try) 2>&5
16203   ac_status=$?
16204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205   (exit $ac_status); }; } &&
16206          { ac_try='test -s conftest$ac_exeext'
16207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16208   (eval $ac_try) 2>&5
16209   ac_status=$?
16210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211   (exit $ac_status); }; }; then
16212
16213 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16214 }'`
16215 # Check for a 64-bit object if we didn't find anything.
16216 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; }
16217 }'`; fi
16218 else
16219   echo "$as_me: failed program was:" >&5
16220 sed 's/^/| /' conftest.$ac_ext >&5
16221
16222 fi
16223 rm -f conftest.err conftest.$ac_objext \
16224       conftest$ac_exeext conftest.$ac_ext
16225 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16226
16227          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16228           # Warning - without using the other run time loading flags,
16229           # -berok will link without error, but may produce a broken library.
16230           no_undefined_flag_GCJ=' ${wl}-bernotok'
16231           allow_undefined_flag_GCJ=' ${wl}-berok'
16232           # -bexpall does not export symbols beginning with underscore (_)
16233           always_export_symbols_GCJ=yes
16234           # Exported symbols can be pulled into shared objects from archives
16235           whole_archive_flag_spec_GCJ=' '
16236           archive_cmds_need_lc_GCJ=yes
16237           # This is similar to how AIX traditionally builds it's shared libraries.
16238           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16239         fi
16240       fi
16241       ;;
16242
16243     amigaos*)
16244       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)'
16245       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16246       hardcode_minus_L_GCJ=yes
16247       # see comment about different semantics on the GNU ld section
16248       ld_shlibs_GCJ=no
16249       ;;
16250
16251     bsdi4*)
16252       export_dynamic_flag_spec_GCJ=-rdynamic
16253       ;;
16254
16255     cygwin* | mingw* | pw32*)
16256       # When not using gcc, we currently assume that we are using
16257       # Microsoft Visual C++.
16258       # hardcode_libdir_flag_spec is actually meaningless, as there is
16259       # no search path for DLLs.
16260       hardcode_libdir_flag_spec_GCJ=' '
16261       allow_undefined_flag_GCJ=unsupported
16262       # Tell ltmain to make .lib files, not .a files.
16263       libext=lib
16264       # Tell ltmain to make .dll files, not .so files.
16265       shrext=".dll"
16266       # FIXME: Setting linknames here is a bad hack.
16267       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16268       # The linker will automatically build a .lib file if we build a DLL.
16269       old_archive_From_new_cmds_GCJ='true'
16270       # FIXME: Should let the user specify the lib program.
16271       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16272       fix_srcfile_path='`cygpath -w "$srcfile"`'
16273       enable_shared_with_static_runtimes_GCJ=yes
16274       ;;
16275
16276     darwin* | rhapsody*)
16277     if test "$GXX" = yes ; then
16278       archive_cmds_need_lc_GCJ=no
16279       case "$host_os" in
16280       rhapsody* | darwin1.[012])
16281         allow_undefined_flag_GCJ='-undefined suppress'
16282         ;;
16283       *) # Darwin 1.3 on
16284       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16285         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16286       else
16287         case ${MACOSX_DEPLOYMENT_TARGET} in
16288           10.[012])
16289             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16290             ;;
16291           10.*)
16292             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16293             ;;
16294         esac
16295       fi
16296         ;;
16297       esac
16298         lt_int_apple_cc_single_mod=no
16299         output_verbose_link_cmd='echo'
16300         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16301           lt_int_apple_cc_single_mod=yes
16302         fi
16303         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16304           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16305         else
16306         archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16307       fi
16308       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16309       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16310         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16311           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16312         else
16313           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16314         fi
16315           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}'
16316       hardcode_direct_GCJ=no
16317       hardcode_automatic_GCJ=yes
16318       hardcode_shlibpath_var_GCJ=unsupported
16319       whole_archive_flag_spec_GCJ='-all_load $convenience'
16320       link_all_deplibs_GCJ=yes
16321     else
16322       ld_shlibs_GCJ=no
16323     fi
16324       ;;
16325
16326     dgux*)
16327       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16328       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16329       hardcode_shlibpath_var_GCJ=no
16330       ;;
16331
16332     freebsd1*)
16333       ld_shlibs_GCJ=no
16334       ;;
16335
16336     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16337     # support.  Future versions do this automatically, but an explicit c++rt0.o
16338     # does not break anything, and helps significantly (at the cost of a little
16339     # extra space).
16340     freebsd2.2*)
16341       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16342       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16343       hardcode_direct_GCJ=yes
16344       hardcode_shlibpath_var_GCJ=no
16345       ;;
16346
16347     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16348     freebsd2*)
16349       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16350       hardcode_direct_GCJ=yes
16351       hardcode_minus_L_GCJ=yes
16352       hardcode_shlibpath_var_GCJ=no
16353       ;;
16354
16355     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16356     freebsd* | kfreebsd*-gnu)
16357       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16358       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16359       hardcode_direct_GCJ=yes
16360       hardcode_shlibpath_var_GCJ=no
16361       ;;
16362
16363     hpux9*)
16364       if test "$GCC" = yes; then
16365         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'
16366       else
16367         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'
16368       fi
16369       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16370       hardcode_libdir_separator_GCJ=:
16371       hardcode_direct_GCJ=yes
16372
16373       # hardcode_minus_L: Not really in the search PATH,
16374       # but as the default location of the library.
16375       hardcode_minus_L_GCJ=yes
16376       export_dynamic_flag_spec_GCJ='${wl}-E'
16377       ;;
16378
16379     hpux10* | hpux11*)
16380       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16381         case "$host_cpu" in
16382         hppa*64*|ia64*)
16383           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16384           ;;
16385         *)
16386           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16387           ;;
16388         esac
16389       else
16390         case "$host_cpu" in
16391         hppa*64*|ia64*)
16392           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16393           ;;
16394         *)
16395           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16396           ;;
16397         esac
16398       fi
16399       if test "$with_gnu_ld" = no; then
16400         case "$host_cpu" in
16401         hppa*64*)
16402           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16403           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16404           hardcode_libdir_separator_GCJ=:
16405           hardcode_direct_GCJ=no
16406           hardcode_shlibpath_var_GCJ=no
16407           ;;
16408         ia64*)
16409           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16410           hardcode_direct_GCJ=no
16411           hardcode_shlibpath_var_GCJ=no
16412
16413           # hardcode_minus_L: Not really in the search PATH,
16414           # but as the default location of the library.
16415           hardcode_minus_L_GCJ=yes
16416           ;;
16417         *)
16418           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16419           hardcode_libdir_separator_GCJ=:
16420           hardcode_direct_GCJ=yes
16421           export_dynamic_flag_spec_GCJ='${wl}-E'
16422
16423           # hardcode_minus_L: Not really in the search PATH,
16424           # but as the default location of the library.
16425           hardcode_minus_L_GCJ=yes
16426           ;;
16427         esac
16428       fi
16429       ;;
16430
16431     irix5* | irix6* | nonstopux*)
16432       if test "$GCC" = yes; then
16433         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'
16434       else
16435         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'
16436         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16437       fi
16438       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16439       hardcode_libdir_separator_GCJ=:
16440       link_all_deplibs_GCJ=yes
16441       ;;
16442
16443     netbsd*)
16444       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16445         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16446       else
16447         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16448       fi
16449       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16450       hardcode_direct_GCJ=yes
16451       hardcode_shlibpath_var_GCJ=no
16452       ;;
16453
16454     newsos6)
16455       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16456       hardcode_direct_GCJ=yes
16457       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16458       hardcode_libdir_separator_GCJ=:
16459       hardcode_shlibpath_var_GCJ=no
16460       ;;
16461
16462     openbsd*)
16463       hardcode_direct_GCJ=yes
16464       hardcode_shlibpath_var_GCJ=no
16465       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16466         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16467         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16468         export_dynamic_flag_spec_GCJ='${wl}-E'
16469       else
16470        case $host_os in
16471          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16472            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16473            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16474            ;;
16475          *)
16476            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16477            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16478            ;;
16479        esac
16480       fi
16481       ;;
16482
16483     os2*)
16484       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16485       hardcode_minus_L_GCJ=yes
16486       allow_undefined_flag_GCJ=unsupported
16487       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'
16488       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16489       ;;
16490
16491     osf3*)
16492       if test "$GCC" = yes; then
16493         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16494         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'
16495       else
16496         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16497         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'
16498       fi
16499       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16500       hardcode_libdir_separator_GCJ=:
16501       ;;
16502
16503     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16504       if test "$GCC" = yes; then
16505         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16506         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'
16507         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16508       else
16509         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16510         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'
16511         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~
16512         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16513
16514         # Both c and cxx compiler support -rpath directly
16515         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16516       fi
16517       hardcode_libdir_separator_GCJ=:
16518       ;;
16519
16520     sco3.2v5*)
16521       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16522       hardcode_shlibpath_var_GCJ=no
16523       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16524       runpath_var=LD_RUN_PATH
16525       hardcode_runpath_var=yes
16526       ;;
16527
16528     solaris*)
16529       no_undefined_flag_GCJ=' -z text'
16530       if test "$GCC" = yes; then
16531         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16532         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16533           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16534       else
16535         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16536         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16537         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16538       fi
16539       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16540       hardcode_shlibpath_var_GCJ=no
16541       case $host_os in
16542       solaris2.[0-5] | solaris2.[0-5].*) ;;
16543       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16544         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16545       esac
16546       link_all_deplibs_GCJ=yes
16547       ;;
16548
16549     sunos4*)
16550       if test "x$host_vendor" = xsequent; then
16551         # Use $CC to link under sequent, because it throws in some extra .o
16552         # files that make .init and .fini sections work.
16553         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16554       else
16555         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16556       fi
16557       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16558       hardcode_direct_GCJ=yes
16559       hardcode_minus_L_GCJ=yes
16560       hardcode_shlibpath_var_GCJ=no
16561       ;;
16562
16563     sysv4)
16564       case $host_vendor in
16565         sni)
16566           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16567           hardcode_direct_GCJ=yes # is this really true???
16568         ;;
16569         siemens)
16570           ## LD is ld it makes a PLAMLIB
16571           ## CC just makes a GrossModule.
16572           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16573           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16574           hardcode_direct_GCJ=no
16575         ;;
16576         motorola)
16577           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16578           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16579         ;;
16580       esac
16581       runpath_var='LD_RUN_PATH'
16582       hardcode_shlibpath_var_GCJ=no
16583       ;;
16584
16585     sysv4.3*)
16586       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16587       hardcode_shlibpath_var_GCJ=no
16588       export_dynamic_flag_spec_GCJ='-Bexport'
16589       ;;
16590
16591     sysv4*MP*)
16592       if test -d /usr/nec; then
16593         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16594         hardcode_shlibpath_var_GCJ=no
16595         runpath_var=LD_RUN_PATH
16596         hardcode_runpath_var=yes
16597         ld_shlibs_GCJ=yes
16598       fi
16599       ;;
16600
16601     sysv4.2uw2*)
16602       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16603       hardcode_direct_GCJ=yes
16604       hardcode_minus_L_GCJ=no
16605       hardcode_shlibpath_var_GCJ=no
16606       hardcode_runpath_var=yes
16607       runpath_var=LD_RUN_PATH
16608       ;;
16609
16610    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16611       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16612       if test "$GCC" = yes; then
16613         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16614       else
16615         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16616       fi
16617       runpath_var='LD_RUN_PATH'
16618       hardcode_shlibpath_var_GCJ=no
16619       ;;
16620
16621     sysv5*)
16622       no_undefined_flag_GCJ=' -z text'
16623       # $CC -shared without GNU ld will not create a library from C++
16624       # object files and a static libstdc++, better avoid it by now
16625       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16626       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16627                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16628       hardcode_libdir_flag_spec_GCJ=
16629       hardcode_shlibpath_var_GCJ=no
16630       runpath_var='LD_RUN_PATH'
16631       ;;
16632
16633     uts4*)
16634       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16635       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16636       hardcode_shlibpath_var_GCJ=no
16637       ;;
16638
16639     *)
16640       ld_shlibs_GCJ=no
16641       ;;
16642     esac
16643   fi
16644
16645 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16646 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16647 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16648
16649 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16650 if test "$GCC" = yes; then
16651   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16652 fi
16653
16654 #
16655 # Do we need to explicitly link libc?
16656 #
16657 case "x$archive_cmds_need_lc_GCJ" in
16658 x|xyes)
16659   # Assume -lc should be added
16660   archive_cmds_need_lc_GCJ=yes
16661
16662   if test "$enable_shared" = yes && test "$GCC" = yes; then
16663     case $archive_cmds_GCJ in
16664     *'~'*)
16665       # FIXME: we may have to deal with multi-command sequences.
16666       ;;
16667     '$CC '*)
16668       # Test whether the compiler implicitly links with -lc since on some
16669       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16670       # to ld, don't add -lc before -lgcc.
16671       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16672 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16673       $rm conftest*
16674       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16675
16676       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16677   (eval $ac_compile) 2>&5
16678   ac_status=$?
16679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680   (exit $ac_status); } 2>conftest.err; then
16681         soname=conftest
16682         lib=conftest
16683         libobjs=conftest.$ac_objext
16684         deplibs=
16685         wl=$lt_prog_compiler_wl_GCJ
16686         compiler_flags=-v
16687         linker_flags=-v
16688         verstring=
16689         output_objdir=.
16690         libname=conftest
16691         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16692         allow_undefined_flag_GCJ=
16693         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16694   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16695   ac_status=$?
16696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697   (exit $ac_status); }
16698         then
16699           archive_cmds_need_lc_GCJ=no
16700         else
16701           archive_cmds_need_lc_GCJ=yes
16702         fi
16703         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16704       else
16705         cat conftest.err 1>&5
16706       fi
16707       $rm conftest*
16708       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16709 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16710       ;;
16711     esac
16712   fi
16713   ;;
16714 esac
16715
16716 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16717 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16718 library_names_spec=
16719 libname_spec='lib$name'
16720 soname_spec=
16721 shrext=".so"
16722 postinstall_cmds=
16723 postuninstall_cmds=
16724 finish_cmds=
16725 finish_eval=
16726 shlibpath_var=
16727 shlibpath_overrides_runpath=unknown
16728 version_type=none
16729 dynamic_linker="$host_os ld.so"
16730 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16731 if test "$GCC" = yes; then
16732   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16733   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16734     # if the path contains ";" then we assume it to be the separator
16735     # otherwise default to the standard path separator (i.e. ":") - it is
16736     # assumed that no part of a normal pathname contains ";" but that should
16737     # okay in the real world where ";" in dirpaths is itself problematic.
16738     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16739   else
16740     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16741   fi
16742 else
16743   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16744 fi
16745 need_lib_prefix=unknown
16746 hardcode_into_libs=no
16747
16748 # when you set need_version to no, make sure it does not cause -set_version
16749 # flags to be left without arguments
16750 need_version=unknown
16751
16752 case $host_os in
16753 aix3*)
16754   version_type=linux
16755   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16756   shlibpath_var=LIBPATH
16757
16758   # AIX 3 has no versioning support, so we append a major version to the name.
16759   soname_spec='${libname}${release}${shared_ext}$major'
16760   ;;
16761
16762 aix4* | aix5*)
16763   version_type=linux
16764   need_lib_prefix=no
16765   need_version=no
16766   hardcode_into_libs=yes
16767   if test "$host_cpu" = ia64; then
16768     # AIX 5 supports IA64
16769     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16770     shlibpath_var=LD_LIBRARY_PATH
16771   else
16772     # With GCC up to 2.95.x, collect2 would create an import file
16773     # for dependence libraries.  The import file would start with
16774     # the line `#! .'.  This would cause the generated library to
16775     # depend on `.', always an invalid library.  This was fixed in
16776     # development snapshots of GCC prior to 3.0.
16777     case $host_os in
16778       aix4 | aix4.[01] | aix4.[01].*)
16779       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16780            echo ' yes '
16781            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16782         :
16783       else
16784         can_build_shared=no
16785       fi
16786       ;;
16787     esac
16788     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16789     # soname into executable. Probably we can add versioning support to
16790     # collect2, so additional links can be useful in future.
16791     if test "$aix_use_runtimelinking" = yes; then
16792       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16793       # instead of lib<name>.a to let people know that these are not
16794       # typical AIX shared libraries.
16795       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16796     else
16797       # We preserve .a as extension for shared libraries through AIX4.2
16798       # and later when we are not doing run time linking.
16799       library_names_spec='${libname}${release}.a $libname.a'
16800       soname_spec='${libname}${release}${shared_ext}$major'
16801     fi
16802     shlibpath_var=LIBPATH
16803   fi
16804   ;;
16805
16806 amigaos*)
16807   library_names_spec='$libname.ixlibrary $libname.a'
16808   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16809   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'
16810   ;;
16811
16812 beos*)
16813   library_names_spec='${libname}${shared_ext}'
16814   dynamic_linker="$host_os ld.so"
16815   shlibpath_var=LIBRARY_PATH
16816   ;;
16817
16818 bsdi4*)
16819   version_type=linux
16820   need_version=no
16821   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16822   soname_spec='${libname}${release}${shared_ext}$major'
16823   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16824   shlibpath_var=LD_LIBRARY_PATH
16825   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16826   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16827   # the default ld.so.conf also contains /usr/contrib/lib and
16828   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16829   # libtool to hard-code these into programs
16830   ;;
16831
16832 cygwin* | mingw* | pw32*)
16833   version_type=windows
16834   shrext=".dll"
16835   need_version=no
16836   need_lib_prefix=no
16837
16838   case $GCC,$host_os in
16839   yes,cygwin* | yes,mingw* | yes,pw32*)
16840     library_names_spec='$libname.dll.a'
16841     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16842     postinstall_cmds='base_file=`basename \${file}`~
16843       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16844       dldir=$destdir/`dirname \$dlpath`~
16845       test -d \$dldir || mkdir -p \$dldir~
16846       $install_prog $dir/$dlname \$dldir/$dlname'
16847     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16848       dlpath=$dir/\$dldll~
16849        $rm \$dlpath'
16850     shlibpath_overrides_runpath=yes
16851
16852     case $host_os in
16853     cygwin*)
16854       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16855       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16856       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16857       ;;
16858     mingw*)
16859       # MinGW DLLs use traditional 'lib' prefix
16860       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16861       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16862       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16863         # It is most probably a Windows format PATH printed by
16864         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16865         # path with ; separators, and with drive letters. We can handle the
16866         # drive letters (cygwin fileutils understands them), so leave them,
16867         # especially as we might pass files found there to a mingw objdump,
16868         # which wouldn't understand a cygwinified path. Ahh.
16869         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16870       else
16871         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16872       fi
16873       ;;
16874     pw32*)
16875       # pw32 DLLs use 'pw' prefix rather than 'lib'
16876       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16877       ;;
16878     esac
16879     ;;
16880
16881   *)
16882     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16883     ;;
16884   esac
16885   dynamic_linker='Win32 ld.exe'
16886   # FIXME: first we should search . and the directory the executable is in
16887   shlibpath_var=PATH
16888   ;;
16889
16890 darwin* | rhapsody*)
16891   dynamic_linker="$host_os dyld"
16892   version_type=darwin
16893   need_lib_prefix=no
16894   need_version=no
16895   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16896   soname_spec='${libname}${release}${major}$shared_ext'
16897   shlibpath_overrides_runpath=yes
16898   shlibpath_var=DYLD_LIBRARY_PATH
16899   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16900   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16901   if test "$GCC" = yes; then
16902     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"`
16903   else
16904     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16905   fi
16906   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16907   ;;
16908
16909 dgux*)
16910   version_type=linux
16911   need_lib_prefix=no
16912   need_version=no
16913   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16914   soname_spec='${libname}${release}${shared_ext}$major'
16915   shlibpath_var=LD_LIBRARY_PATH
16916   ;;
16917
16918 freebsd1*)
16919   dynamic_linker=no
16920   ;;
16921
16922 kfreebsd*-gnu)
16923   version_type=linux
16924   need_lib_prefix=no
16925   need_version=no
16926   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16927   soname_spec='${libname}${release}${shared_ext}$major'
16928   shlibpath_var=LD_LIBRARY_PATH
16929   shlibpath_overrides_runpath=no
16930   hardcode_into_libs=yes
16931   dynamic_linker='GNU ld.so'
16932   ;;
16933
16934 freebsd*)
16935   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16936   version_type=freebsd-$objformat
16937   case $version_type in
16938     freebsd-elf*)
16939       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16940       need_version=no
16941       need_lib_prefix=no
16942       ;;
16943     freebsd-*)
16944       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16945       need_version=yes
16946       ;;
16947   esac
16948   shlibpath_var=LD_LIBRARY_PATH
16949   case $host_os in
16950   freebsd2*)
16951     shlibpath_overrides_runpath=yes
16952     ;;
16953   freebsd3.01* | freebsdelf3.01*)
16954     shlibpath_overrides_runpath=yes
16955     hardcode_into_libs=yes
16956     ;;
16957   *) # from 3.2 on
16958     shlibpath_overrides_runpath=no
16959     hardcode_into_libs=yes
16960     ;;
16961   esac
16962   ;;
16963
16964 gnu*)
16965   version_type=linux
16966   need_lib_prefix=no
16967   need_version=no
16968   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16969   soname_spec='${libname}${release}${shared_ext}$major'
16970   shlibpath_var=LD_LIBRARY_PATH
16971   hardcode_into_libs=yes
16972   ;;
16973
16974 hpux9* | hpux10* | hpux11*)
16975   # Give a soname corresponding to the major version so that dld.sl refuses to
16976   # link against other versions.
16977   version_type=sunos
16978   need_lib_prefix=no
16979   need_version=no
16980   case "$host_cpu" in
16981   ia64*)
16982     shrext='.so'
16983     hardcode_into_libs=yes
16984     dynamic_linker="$host_os dld.so"
16985     shlibpath_var=LD_LIBRARY_PATH
16986     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16987     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16988     soname_spec='${libname}${release}${shared_ext}$major'
16989     if test "X$HPUX_IA64_MODE" = X32; then
16990       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16991     else
16992       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16993     fi
16994     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16995     ;;
16996    hppa*64*)
16997      shrext='.sl'
16998      hardcode_into_libs=yes
16999      dynamic_linker="$host_os dld.sl"
17000      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17001      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17002      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17003      soname_spec='${libname}${release}${shared_ext}$major'
17004      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17005      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17006      ;;
17007    *)
17008     shrext='.sl'
17009     dynamic_linker="$host_os dld.sl"
17010     shlibpath_var=SHLIB_PATH
17011     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17012     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17013     soname_spec='${libname}${release}${shared_ext}$major'
17014     ;;
17015   esac
17016   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17017   postinstall_cmds='chmod 555 $lib'
17018   ;;
17019
17020 irix5* | irix6* | nonstopux*)
17021   case $host_os in
17022     nonstopux*) version_type=nonstopux ;;
17023     *)
17024         if test "$lt_cv_prog_gnu_ld" = yes; then
17025                 version_type=linux
17026         else
17027                 version_type=irix
17028         fi ;;
17029   esac
17030   need_lib_prefix=no
17031   need_version=no
17032   soname_spec='${libname}${release}${shared_ext}$major'
17033   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17034   case $host_os in
17035   irix5* | nonstopux*)
17036     libsuff= shlibsuff=
17037     ;;
17038   *)
17039     case $LD in # libtool.m4 will add one of these switches to LD
17040     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17041       libsuff= shlibsuff= libmagic=32-bit;;
17042     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17043       libsuff=32 shlibsuff=N32 libmagic=N32;;
17044     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17045       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17046     *) libsuff= shlibsuff= libmagic=never-match;;
17047     esac
17048     ;;
17049   esac
17050   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17051   shlibpath_overrides_runpath=no
17052   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17053   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17054   hardcode_into_libs=yes
17055   ;;
17056
17057 # No shared lib support for Linux oldld, aout, or coff.
17058 linux*oldld* | linux*aout* | linux*coff*)
17059   dynamic_linker=no
17060   ;;
17061
17062 # This must be Linux ELF.
17063 linux*)
17064   version_type=linux
17065   need_lib_prefix=no
17066   need_version=no
17067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17068   soname_spec='${libname}${release}${shared_ext}$major'
17069   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17070   shlibpath_var=LD_LIBRARY_PATH
17071   shlibpath_overrides_runpath=no
17072   # This implies no fast_install, which is unacceptable.
17073   # Some rework will be needed to allow for fast_install
17074   # before this can be enabled.
17075   hardcode_into_libs=yes
17076
17077   # Append ld.so.conf contents to the search path
17078   if test -f /etc/ld.so.conf; then
17079     ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
17080     sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
17081   fi
17082
17083   # We used to test for /lib/ld.so.1 and disable shared libraries on
17084   # powerpc, because MkLinux only supported shared libraries with the
17085   # GNU dynamic linker.  Since this was broken with cross compilers,
17086   # most powerpc-linux boxes support dynamic linking these days and
17087   # people can always --disable-shared, the test was removed, and we
17088   # assume the GNU/Linux dynamic linker is in use.
17089   dynamic_linker='GNU/Linux ld.so'
17090   ;;
17091
17092 knetbsd*-gnu)
17093   version_type=linux
17094   need_lib_prefix=no
17095   need_version=no
17096   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17097   soname_spec='${libname}${release}${shared_ext}$major'
17098   shlibpath_var=LD_LIBRARY_PATH
17099   shlibpath_overrides_runpath=no
17100   hardcode_into_libs=yes
17101   dynamic_linker='GNU ld.so'
17102   ;;
17103
17104 netbsd*)
17105   version_type=sunos
17106   need_lib_prefix=no
17107   need_version=no
17108   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17109     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17110     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17111     dynamic_linker='NetBSD (a.out) ld.so'
17112   else
17113     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
17114     soname_spec='${libname}${release}${shared_ext}$major'
17115     dynamic_linker='NetBSD ld.elf_so'
17116   fi
17117   shlibpath_var=LD_LIBRARY_PATH
17118   shlibpath_overrides_runpath=yes
17119   hardcode_into_libs=yes
17120   ;;
17121
17122 newsos6)
17123   version_type=linux
17124   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17125   shlibpath_var=LD_LIBRARY_PATH
17126   shlibpath_overrides_runpath=yes
17127   ;;
17128
17129 nto-qnx*)
17130   version_type=linux
17131   need_lib_prefix=no
17132   need_version=no
17133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17134   soname_spec='${libname}${release}${shared_ext}$major'
17135   shlibpath_var=LD_LIBRARY_PATH
17136   shlibpath_overrides_runpath=yes
17137   ;;
17138
17139 openbsd*)
17140   version_type=sunos
17141   need_lib_prefix=no
17142   need_version=yes
17143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17144   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17145   shlibpath_var=LD_LIBRARY_PATH
17146   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17147     case $host_os in
17148       openbsd2.[89] | openbsd2.[89].*)
17149         shlibpath_overrides_runpath=no
17150         ;;
17151       *)
17152         shlibpath_overrides_runpath=yes
17153         ;;
17154       esac
17155   else
17156     shlibpath_overrides_runpath=yes
17157   fi
17158   ;;
17159
17160 os2*)
17161   libname_spec='$name'
17162   shrext=".dll"
17163   need_lib_prefix=no
17164   library_names_spec='$libname${shared_ext} $libname.a'
17165   dynamic_linker='OS/2 ld.exe'
17166   shlibpath_var=LIBPATH
17167   ;;
17168
17169 osf3* | osf4* | osf5*)
17170   version_type=osf
17171   need_lib_prefix=no
17172   need_version=no
17173   soname_spec='${libname}${release}${shared_ext}$major'
17174   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17175   shlibpath_var=LD_LIBRARY_PATH
17176   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17177   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17178   ;;
17179
17180 sco3.2v5*)
17181   version_type=osf
17182   soname_spec='${libname}${release}${shared_ext}$major'
17183   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17184   shlibpath_var=LD_LIBRARY_PATH
17185   ;;
17186
17187 solaris*)
17188   version_type=linux
17189   need_lib_prefix=no
17190   need_version=no
17191   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17192   soname_spec='${libname}${release}${shared_ext}$major'
17193   shlibpath_var=LD_LIBRARY_PATH
17194   shlibpath_overrides_runpath=yes
17195   hardcode_into_libs=yes
17196   # ldd complains unless libraries are executable
17197   postinstall_cmds='chmod +x $lib'
17198   ;;
17199
17200 sunos4*)
17201   version_type=sunos
17202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17203   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17204   shlibpath_var=LD_LIBRARY_PATH
17205   shlibpath_overrides_runpath=yes
17206   if test "$with_gnu_ld" = yes; then
17207     need_lib_prefix=no
17208   fi
17209   need_version=yes
17210   ;;
17211
17212 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17213   version_type=linux
17214   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17215   soname_spec='${libname}${release}${shared_ext}$major'
17216   shlibpath_var=LD_LIBRARY_PATH
17217   case $host_vendor in
17218     sni)
17219       shlibpath_overrides_runpath=no
17220       need_lib_prefix=no
17221       export_dynamic_flag_spec='${wl}-Blargedynsym'
17222       runpath_var=LD_RUN_PATH
17223       ;;
17224     siemens)
17225       need_lib_prefix=no
17226       ;;
17227     motorola)
17228       need_lib_prefix=no
17229       need_version=no
17230       shlibpath_overrides_runpath=no
17231       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17232       ;;
17233   esac
17234   ;;
17235
17236 sysv4*MP*)
17237   if test -d /usr/nec ;then
17238     version_type=linux
17239     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17240     soname_spec='$libname${shared_ext}.$major'
17241     shlibpath_var=LD_LIBRARY_PATH
17242   fi
17243   ;;
17244
17245 uts4*)
17246   version_type=linux
17247   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17248   soname_spec='${libname}${release}${shared_ext}$major'
17249   shlibpath_var=LD_LIBRARY_PATH
17250   ;;
17251
17252 *)
17253   dynamic_linker=no
17254   ;;
17255 esac
17256 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17257 echo "${ECHO_T}$dynamic_linker" >&6
17258 test "$dynamic_linker" = no && can_build_shared=no
17259
17260 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17261 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17262 hardcode_action_GCJ=
17263 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17264    test -n "$runpath_var GCJ" || \
17265    test "X$hardcode_automatic_GCJ"="Xyes" ; then
17266
17267   # We can hardcode non-existant directories.
17268   if test "$hardcode_direct_GCJ" != no &&
17269      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17270      # have to relink, otherwise we might link with an installed library
17271      # when we should be linking with a yet-to-be-installed one
17272      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17273      test "$hardcode_minus_L_GCJ" != no; then
17274     # Linking always hardcodes the temporary library directory.
17275     hardcode_action_GCJ=relink
17276   else
17277     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17278     hardcode_action_GCJ=immediate
17279   fi
17280 else
17281   # We cannot hardcode anything, or else we can only hardcode existing
17282   # directories.
17283   hardcode_action_GCJ=unsupported
17284 fi
17285 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17286 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17287
17288 if test "$hardcode_action_GCJ" = relink; then
17289   # Fast installation is not supported
17290   enable_fast_install=no
17291 elif test "$shlibpath_overrides_runpath" = yes ||
17292      test "$enable_shared" = no; then
17293   # Fast installation is not necessary
17294   enable_fast_install=needless
17295 fi
17296
17297 striplib=
17298 old_striplib=
17299 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17300 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17301 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17302   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17303   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17304   echo "$as_me:$LINENO: result: yes" >&5
17305 echo "${ECHO_T}yes" >&6
17306 else
17307 # FIXME - insert some real tests, host_os isn't really good enough
17308   case $host_os in
17309    darwin*)
17310        if test -n "$STRIP" ; then
17311          striplib="$STRIP -x"
17312          echo "$as_me:$LINENO: result: yes" >&5
17313 echo "${ECHO_T}yes" >&6
17314        else
17315   echo "$as_me:$LINENO: result: no" >&5
17316 echo "${ECHO_T}no" >&6
17317 fi
17318        ;;
17319    *)
17320   echo "$as_me:$LINENO: result: no" >&5
17321 echo "${ECHO_T}no" >&6
17322     ;;
17323   esac
17324 fi
17325
17326 if test "x$enable_dlopen" != xyes; then
17327   enable_dlopen=unknown
17328   enable_dlopen_self=unknown
17329   enable_dlopen_self_static=unknown
17330 else
17331   lt_cv_dlopen=no
17332   lt_cv_dlopen_libs=
17333
17334   case $host_os in
17335   beos*)
17336     lt_cv_dlopen="load_add_on"
17337     lt_cv_dlopen_libs=
17338     lt_cv_dlopen_self=yes
17339     ;;
17340
17341   mingw* | pw32*)
17342     lt_cv_dlopen="LoadLibrary"
17343     lt_cv_dlopen_libs=
17344    ;;
17345
17346   cygwin*)
17347     lt_cv_dlopen="dlopen"
17348     lt_cv_dlopen_libs=
17349    ;;
17350
17351   darwin*)
17352   # if libdl is installed we need to link against it
17353     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17354 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17355 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17356   echo $ECHO_N "(cached) $ECHO_C" >&6
17357 else
17358   ac_check_lib_save_LIBS=$LIBS
17359 LIBS="-ldl  $LIBS"
17360 cat >conftest.$ac_ext <<_ACEOF
17361 /* confdefs.h.  */
17362 _ACEOF
17363 cat confdefs.h >>conftest.$ac_ext
17364 cat >>conftest.$ac_ext <<_ACEOF
17365 /* end confdefs.h.  */
17366
17367 /* Override any gcc2 internal prototype to avoid an error.  */
17368 #ifdef __cplusplus
17369 extern "C"
17370 #endif
17371 /* We use char because int might match the return type of a gcc2
17372    builtin and then its argument prototype would still apply.  */
17373 char dlopen ();
17374 int
17375 main ()
17376 {
17377 dlopen ();
17378   ;
17379   return 0;
17380 }
17381 _ACEOF
17382 rm -f conftest.$ac_objext conftest$ac_exeext
17383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17384   (eval $ac_link) 2>conftest.er1
17385   ac_status=$?
17386   grep -v '^ *+' conftest.er1 >conftest.err
17387   rm -f conftest.er1
17388   cat conftest.err >&5
17389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390   (exit $ac_status); } &&
17391          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17393   (eval $ac_try) 2>&5
17394   ac_status=$?
17395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396   (exit $ac_status); }; } &&
17397          { ac_try='test -s conftest$ac_exeext'
17398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17399   (eval $ac_try) 2>&5
17400   ac_status=$?
17401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402   (exit $ac_status); }; }; then
17403   ac_cv_lib_dl_dlopen=yes
17404 else
17405   echo "$as_me: failed program was:" >&5
17406 sed 's/^/| /' conftest.$ac_ext >&5
17407
17408 ac_cv_lib_dl_dlopen=no
17409 fi
17410 rm -f conftest.err conftest.$ac_objext \
17411       conftest$ac_exeext conftest.$ac_ext
17412 LIBS=$ac_check_lib_save_LIBS
17413 fi
17414 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17415 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17416 if test $ac_cv_lib_dl_dlopen = yes; then
17417   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17418 else
17419
17420     lt_cv_dlopen="dyld"
17421     lt_cv_dlopen_libs=
17422     lt_cv_dlopen_self=yes
17423
17424 fi
17425
17426    ;;
17427
17428   *)
17429     echo "$as_me:$LINENO: checking for shl_load" >&5
17430 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17431 if test "${ac_cv_func_shl_load+set}" = set; then
17432   echo $ECHO_N "(cached) $ECHO_C" >&6
17433 else
17434   cat >conftest.$ac_ext <<_ACEOF
17435 /* confdefs.h.  */
17436 _ACEOF
17437 cat confdefs.h >>conftest.$ac_ext
17438 cat >>conftest.$ac_ext <<_ACEOF
17439 /* end confdefs.h.  */
17440 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17441    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17442 #define shl_load innocuous_shl_load
17443
17444 /* System header to define __stub macros and hopefully few prototypes,
17445     which can conflict with char shl_load (); below.
17446     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17447     <limits.h> exists even on freestanding compilers.  */
17448
17449 #ifdef __STDC__
17450 # include <limits.h>
17451 #else
17452 # include <assert.h>
17453 #endif
17454
17455 #undef shl_load
17456
17457 /* Override any gcc2 internal prototype to avoid an error.  */
17458 #ifdef __cplusplus
17459 extern "C"
17460 {
17461 #endif
17462 /* We use char because int might match the return type of a gcc2
17463    builtin and then its argument prototype would still apply.  */
17464 char shl_load ();
17465 /* The GNU C library defines this for functions which it implements
17466     to always fail with ENOSYS.  Some functions are actually named
17467     something starting with __ and the normal name is an alias.  */
17468 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17469 choke me
17470 #else
17471 char (*f) () = shl_load;
17472 #endif
17473 #ifdef __cplusplus
17474 }
17475 #endif
17476
17477 int
17478 main ()
17479 {
17480 return f != shl_load;
17481   ;
17482   return 0;
17483 }
17484 _ACEOF
17485 rm -f conftest.$ac_objext conftest$ac_exeext
17486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17487   (eval $ac_link) 2>conftest.er1
17488   ac_status=$?
17489   grep -v '^ *+' conftest.er1 >conftest.err
17490   rm -f conftest.er1
17491   cat conftest.err >&5
17492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493   (exit $ac_status); } &&
17494          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17496   (eval $ac_try) 2>&5
17497   ac_status=$?
17498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499   (exit $ac_status); }; } &&
17500          { ac_try='test -s conftest$ac_exeext'
17501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17502   (eval $ac_try) 2>&5
17503   ac_status=$?
17504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505   (exit $ac_status); }; }; then
17506   ac_cv_func_shl_load=yes
17507 else
17508   echo "$as_me: failed program was:" >&5
17509 sed 's/^/| /' conftest.$ac_ext >&5
17510
17511 ac_cv_func_shl_load=no
17512 fi
17513 rm -f conftest.err conftest.$ac_objext \
17514       conftest$ac_exeext conftest.$ac_ext
17515 fi
17516 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17517 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17518 if test $ac_cv_func_shl_load = yes; then
17519   lt_cv_dlopen="shl_load"
17520 else
17521   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17522 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17523 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17524   echo $ECHO_N "(cached) $ECHO_C" >&6
17525 else
17526   ac_check_lib_save_LIBS=$LIBS
17527 LIBS="-ldld  $LIBS"
17528 cat >conftest.$ac_ext <<_ACEOF
17529 /* confdefs.h.  */
17530 _ACEOF
17531 cat confdefs.h >>conftest.$ac_ext
17532 cat >>conftest.$ac_ext <<_ACEOF
17533 /* end confdefs.h.  */
17534
17535 /* Override any gcc2 internal prototype to avoid an error.  */
17536 #ifdef __cplusplus
17537 extern "C"
17538 #endif
17539 /* We use char because int might match the return type of a gcc2
17540    builtin and then its argument prototype would still apply.  */
17541 char shl_load ();
17542 int
17543 main ()
17544 {
17545 shl_load ();
17546   ;
17547   return 0;
17548 }
17549 _ACEOF
17550 rm -f conftest.$ac_objext conftest$ac_exeext
17551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17552   (eval $ac_link) 2>conftest.er1
17553   ac_status=$?
17554   grep -v '^ *+' conftest.er1 >conftest.err
17555   rm -f conftest.er1
17556   cat conftest.err >&5
17557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558   (exit $ac_status); } &&
17559          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17561   (eval $ac_try) 2>&5
17562   ac_status=$?
17563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564   (exit $ac_status); }; } &&
17565          { ac_try='test -s conftest$ac_exeext'
17566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17567   (eval $ac_try) 2>&5
17568   ac_status=$?
17569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570   (exit $ac_status); }; }; then
17571   ac_cv_lib_dld_shl_load=yes
17572 else
17573   echo "$as_me: failed program was:" >&5
17574 sed 's/^/| /' conftest.$ac_ext >&5
17575
17576 ac_cv_lib_dld_shl_load=no
17577 fi
17578 rm -f conftest.err conftest.$ac_objext \
17579       conftest$ac_exeext conftest.$ac_ext
17580 LIBS=$ac_check_lib_save_LIBS
17581 fi
17582 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17583 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17584 if test $ac_cv_lib_dld_shl_load = yes; then
17585   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17586 else
17587   echo "$as_me:$LINENO: checking for dlopen" >&5
17588 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17589 if test "${ac_cv_func_dlopen+set}" = set; then
17590   echo $ECHO_N "(cached) $ECHO_C" >&6
17591 else
17592   cat >conftest.$ac_ext <<_ACEOF
17593 /* confdefs.h.  */
17594 _ACEOF
17595 cat confdefs.h >>conftest.$ac_ext
17596 cat >>conftest.$ac_ext <<_ACEOF
17597 /* end confdefs.h.  */
17598 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17599    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17600 #define dlopen innocuous_dlopen
17601
17602 /* System header to define __stub macros and hopefully few prototypes,
17603     which can conflict with char dlopen (); below.
17604     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17605     <limits.h> exists even on freestanding compilers.  */
17606
17607 #ifdef __STDC__
17608 # include <limits.h>
17609 #else
17610 # include <assert.h>
17611 #endif
17612
17613 #undef dlopen
17614
17615 /* Override any gcc2 internal prototype to avoid an error.  */
17616 #ifdef __cplusplus
17617 extern "C"
17618 {
17619 #endif
17620 /* We use char because int might match the return type of a gcc2
17621    builtin and then its argument prototype would still apply.  */
17622 char dlopen ();
17623 /* The GNU C library defines this for functions which it implements
17624     to always fail with ENOSYS.  Some functions are actually named
17625     something starting with __ and the normal name is an alias.  */
17626 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17627 choke me
17628 #else
17629 char (*f) () = dlopen;
17630 #endif
17631 #ifdef __cplusplus
17632 }
17633 #endif
17634
17635 int
17636 main ()
17637 {
17638 return f != dlopen;
17639   ;
17640   return 0;
17641 }
17642 _ACEOF
17643 rm -f conftest.$ac_objext conftest$ac_exeext
17644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17645   (eval $ac_link) 2>conftest.er1
17646   ac_status=$?
17647   grep -v '^ *+' conftest.er1 >conftest.err
17648   rm -f conftest.er1
17649   cat conftest.err >&5
17650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651   (exit $ac_status); } &&
17652          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17654   (eval $ac_try) 2>&5
17655   ac_status=$?
17656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657   (exit $ac_status); }; } &&
17658          { ac_try='test -s conftest$ac_exeext'
17659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17660   (eval $ac_try) 2>&5
17661   ac_status=$?
17662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663   (exit $ac_status); }; }; then
17664   ac_cv_func_dlopen=yes
17665 else
17666   echo "$as_me: failed program was:" >&5
17667 sed 's/^/| /' conftest.$ac_ext >&5
17668
17669 ac_cv_func_dlopen=no
17670 fi
17671 rm -f conftest.err conftest.$ac_objext \
17672       conftest$ac_exeext conftest.$ac_ext
17673 fi
17674 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17675 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17676 if test $ac_cv_func_dlopen = yes; then
17677   lt_cv_dlopen="dlopen"
17678 else
17679   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17680 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17681 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17682   echo $ECHO_N "(cached) $ECHO_C" >&6
17683 else
17684   ac_check_lib_save_LIBS=$LIBS
17685 LIBS="-ldl  $LIBS"
17686 cat >conftest.$ac_ext <<_ACEOF
17687 /* confdefs.h.  */
17688 _ACEOF
17689 cat confdefs.h >>conftest.$ac_ext
17690 cat >>conftest.$ac_ext <<_ACEOF
17691 /* end confdefs.h.  */
17692
17693 /* Override any gcc2 internal prototype to avoid an error.  */
17694 #ifdef __cplusplus
17695 extern "C"
17696 #endif
17697 /* We use char because int might match the return type of a gcc2
17698    builtin and then its argument prototype would still apply.  */
17699 char dlopen ();
17700 int
17701 main ()
17702 {
17703 dlopen ();
17704   ;
17705   return 0;
17706 }
17707 _ACEOF
17708 rm -f conftest.$ac_objext conftest$ac_exeext
17709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17710   (eval $ac_link) 2>conftest.er1
17711   ac_status=$?
17712   grep -v '^ *+' conftest.er1 >conftest.err
17713   rm -f conftest.er1
17714   cat conftest.err >&5
17715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716   (exit $ac_status); } &&
17717          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17719   (eval $ac_try) 2>&5
17720   ac_status=$?
17721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722   (exit $ac_status); }; } &&
17723          { ac_try='test -s conftest$ac_exeext'
17724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17725   (eval $ac_try) 2>&5
17726   ac_status=$?
17727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728   (exit $ac_status); }; }; then
17729   ac_cv_lib_dl_dlopen=yes
17730 else
17731   echo "$as_me: failed program was:" >&5
17732 sed 's/^/| /' conftest.$ac_ext >&5
17733
17734 ac_cv_lib_dl_dlopen=no
17735 fi
17736 rm -f conftest.err conftest.$ac_objext \
17737       conftest$ac_exeext conftest.$ac_ext
17738 LIBS=$ac_check_lib_save_LIBS
17739 fi
17740 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17741 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17742 if test $ac_cv_lib_dl_dlopen = yes; then
17743   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17744 else
17745   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17746 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17747 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17748   echo $ECHO_N "(cached) $ECHO_C" >&6
17749 else
17750   ac_check_lib_save_LIBS=$LIBS
17751 LIBS="-lsvld  $LIBS"
17752 cat >conftest.$ac_ext <<_ACEOF
17753 /* confdefs.h.  */
17754 _ACEOF
17755 cat confdefs.h >>conftest.$ac_ext
17756 cat >>conftest.$ac_ext <<_ACEOF
17757 /* end confdefs.h.  */
17758
17759 /* Override any gcc2 internal prototype to avoid an error.  */
17760 #ifdef __cplusplus
17761 extern "C"
17762 #endif
17763 /* We use char because int might match the return type of a gcc2
17764    builtin and then its argument prototype would still apply.  */
17765 char dlopen ();
17766 int
17767 main ()
17768 {
17769 dlopen ();
17770   ;
17771   return 0;
17772 }
17773 _ACEOF
17774 rm -f conftest.$ac_objext conftest$ac_exeext
17775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17776   (eval $ac_link) 2>conftest.er1
17777   ac_status=$?
17778   grep -v '^ *+' conftest.er1 >conftest.err
17779   rm -f conftest.er1
17780   cat conftest.err >&5
17781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782   (exit $ac_status); } &&
17783          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17785   (eval $ac_try) 2>&5
17786   ac_status=$?
17787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788   (exit $ac_status); }; } &&
17789          { ac_try='test -s conftest$ac_exeext'
17790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17791   (eval $ac_try) 2>&5
17792   ac_status=$?
17793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794   (exit $ac_status); }; }; then
17795   ac_cv_lib_svld_dlopen=yes
17796 else
17797   echo "$as_me: failed program was:" >&5
17798 sed 's/^/| /' conftest.$ac_ext >&5
17799
17800 ac_cv_lib_svld_dlopen=no
17801 fi
17802 rm -f conftest.err conftest.$ac_objext \
17803       conftest$ac_exeext conftest.$ac_ext
17804 LIBS=$ac_check_lib_save_LIBS
17805 fi
17806 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17807 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17808 if test $ac_cv_lib_svld_dlopen = yes; then
17809   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17810 else
17811   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17812 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17813 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17814   echo $ECHO_N "(cached) $ECHO_C" >&6
17815 else
17816   ac_check_lib_save_LIBS=$LIBS
17817 LIBS="-ldld  $LIBS"
17818 cat >conftest.$ac_ext <<_ACEOF
17819 /* confdefs.h.  */
17820 _ACEOF
17821 cat confdefs.h >>conftest.$ac_ext
17822 cat >>conftest.$ac_ext <<_ACEOF
17823 /* end confdefs.h.  */
17824
17825 /* Override any gcc2 internal prototype to avoid an error.  */
17826 #ifdef __cplusplus
17827 extern "C"
17828 #endif
17829 /* We use char because int might match the return type of a gcc2
17830    builtin and then its argument prototype would still apply.  */
17831 char dld_link ();
17832 int
17833 main ()
17834 {
17835 dld_link ();
17836   ;
17837   return 0;
17838 }
17839 _ACEOF
17840 rm -f conftest.$ac_objext conftest$ac_exeext
17841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17842   (eval $ac_link) 2>conftest.er1
17843   ac_status=$?
17844   grep -v '^ *+' conftest.er1 >conftest.err
17845   rm -f conftest.er1
17846   cat conftest.err >&5
17847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848   (exit $ac_status); } &&
17849          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17851   (eval $ac_try) 2>&5
17852   ac_status=$?
17853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854   (exit $ac_status); }; } &&
17855          { ac_try='test -s conftest$ac_exeext'
17856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17857   (eval $ac_try) 2>&5
17858   ac_status=$?
17859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860   (exit $ac_status); }; }; then
17861   ac_cv_lib_dld_dld_link=yes
17862 else
17863   echo "$as_me: failed program was:" >&5
17864 sed 's/^/| /' conftest.$ac_ext >&5
17865
17866 ac_cv_lib_dld_dld_link=no
17867 fi
17868 rm -f conftest.err conftest.$ac_objext \
17869       conftest$ac_exeext conftest.$ac_ext
17870 LIBS=$ac_check_lib_save_LIBS
17871 fi
17872 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17873 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17874 if test $ac_cv_lib_dld_dld_link = yes; then
17875   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17876 fi
17877
17878
17879 fi
17880
17881
17882 fi
17883
17884
17885 fi
17886
17887
17888 fi
17889
17890
17891 fi
17892
17893     ;;
17894   esac
17895
17896   if test "x$lt_cv_dlopen" != xno; then
17897     enable_dlopen=yes
17898   else
17899     enable_dlopen=no
17900   fi
17901
17902   case $lt_cv_dlopen in
17903   dlopen)
17904     save_CPPFLAGS="$CPPFLAGS"
17905     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17906
17907     save_LDFLAGS="$LDFLAGS"
17908     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17909
17910     save_LIBS="$LIBS"
17911     LIBS="$lt_cv_dlopen_libs $LIBS"
17912
17913     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17914 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17915 if test "${lt_cv_dlopen_self+set}" = set; then
17916   echo $ECHO_N "(cached) $ECHO_C" >&6
17917 else
17918           if test "$cross_compiling" = yes; then :
17919   lt_cv_dlopen_self=cross
17920 else
17921   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17922   lt_status=$lt_dlunknown
17923   cat > conftest.$ac_ext <<EOF
17924 #line 17924 "configure"
17925 #include "confdefs.h"
17926
17927 #if HAVE_DLFCN_H
17928 #include <dlfcn.h>
17929 #endif
17930
17931 #include <stdio.h>
17932
17933 #ifdef RTLD_GLOBAL
17934 #  define LT_DLGLOBAL           RTLD_GLOBAL
17935 #else
17936 #  ifdef DL_GLOBAL
17937 #    define LT_DLGLOBAL         DL_GLOBAL
17938 #  else
17939 #    define LT_DLGLOBAL         0
17940 #  endif
17941 #endif
17942
17943 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17944    find out it does not work in some platform. */
17945 #ifndef LT_DLLAZY_OR_NOW
17946 #  ifdef RTLD_LAZY
17947 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17948 #  else
17949 #    ifdef DL_LAZY
17950 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17951 #    else
17952 #      ifdef RTLD_NOW
17953 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17954 #      else
17955 #        ifdef DL_NOW
17956 #          define LT_DLLAZY_OR_NOW      DL_NOW
17957 #        else
17958 #          define LT_DLLAZY_OR_NOW      0
17959 #        endif
17960 #      endif
17961 #    endif
17962 #  endif
17963 #endif
17964
17965 #ifdef __cplusplus
17966 extern "C" void exit (int);
17967 #endif
17968
17969 void fnord() { int i=42;}
17970 int main ()
17971 {
17972   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17973   int status = $lt_dlunknown;
17974
17975   if (self)
17976     {
17977       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17978       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17979       /* dlclose (self); */
17980     }
17981
17982     exit (status);
17983 }
17984 EOF
17985   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17986   (eval $ac_link) 2>&5
17987   ac_status=$?
17988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17989   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17990     (./conftest; exit; ) 2>/dev/null
17991     lt_status=$?
17992     case x$lt_status in
17993       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17994       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17995       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17996     esac
17997   else :
17998     # compilation failed
17999     lt_cv_dlopen_self=no
18000   fi
18001 fi
18002 rm -fr conftest*
18003
18004
18005 fi
18006 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18007 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18008
18009     if test "x$lt_cv_dlopen_self" = xyes; then
18010       LDFLAGS="$LDFLAGS $link_static_flag"
18011       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18012 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18013 if test "${lt_cv_dlopen_self_static+set}" = set; then
18014   echo $ECHO_N "(cached) $ECHO_C" >&6
18015 else
18016           if test "$cross_compiling" = yes; then :
18017   lt_cv_dlopen_self_static=cross
18018 else
18019   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18020   lt_status=$lt_dlunknown
18021   cat > conftest.$ac_ext <<EOF
18022 #line 18022 "configure"
18023 #include "confdefs.h"
18024
18025 #if HAVE_DLFCN_H
18026 #include <dlfcn.h>
18027 #endif
18028
18029 #include <stdio.h>
18030
18031 #ifdef RTLD_GLOBAL
18032 #  define LT_DLGLOBAL           RTLD_GLOBAL
18033 #else
18034 #  ifdef DL_GLOBAL
18035 #    define LT_DLGLOBAL         DL_GLOBAL
18036 #  else
18037 #    define LT_DLGLOBAL         0
18038 #  endif
18039 #endif
18040
18041 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18042    find out it does not work in some platform. */
18043 #ifndef LT_DLLAZY_OR_NOW
18044 #  ifdef RTLD_LAZY
18045 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18046 #  else
18047 #    ifdef DL_LAZY
18048 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18049 #    else
18050 #      ifdef RTLD_NOW
18051 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18052 #      else
18053 #        ifdef DL_NOW
18054 #          define LT_DLLAZY_OR_NOW      DL_NOW
18055 #        else
18056 #          define LT_DLLAZY_OR_NOW      0
18057 #        endif
18058 #      endif
18059 #    endif
18060 #  endif
18061 #endif
18062
18063 #ifdef __cplusplus
18064 extern "C" void exit (int);
18065 #endif
18066
18067 void fnord() { int i=42;}
18068 int main ()
18069 {
18070   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18071   int status = $lt_dlunknown;
18072
18073   if (self)
18074     {
18075       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18076       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18077       /* dlclose (self); */
18078     }
18079
18080     exit (status);
18081 }
18082 EOF
18083   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18084   (eval $ac_link) 2>&5
18085   ac_status=$?
18086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18088     (./conftest; exit; ) 2>/dev/null
18089     lt_status=$?
18090     case x$lt_status in
18091       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18092       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18093       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18094     esac
18095   else :
18096     # compilation failed
18097     lt_cv_dlopen_self_static=no
18098   fi
18099 fi
18100 rm -fr conftest*
18101
18102
18103 fi
18104 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18105 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18106     fi
18107
18108     CPPFLAGS="$save_CPPFLAGS"
18109     LDFLAGS="$save_LDFLAGS"
18110     LIBS="$save_LIBS"
18111     ;;
18112   esac
18113
18114   case $lt_cv_dlopen_self in
18115   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18116   *) enable_dlopen_self=unknown ;;
18117   esac
18118
18119   case $lt_cv_dlopen_self_static in
18120   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18121   *) enable_dlopen_self_static=unknown ;;
18122   esac
18123 fi
18124
18125
18126 # The else clause should only fire when bootstrapping the
18127 # libtool distribution, otherwise you forgot to ship ltmain.sh
18128 # with your package, and you will get complaints that there are
18129 # no rules to generate ltmain.sh.
18130 if test -f "$ltmain"; then
18131   # See if we are running on zsh, and set the options which allow our commands through
18132   # without removal of \ escapes.
18133   if test -n "${ZSH_VERSION+set}" ; then
18134     setopt NO_GLOB_SUBST
18135   fi
18136   # Now quote all the things that may contain metacharacters while being
18137   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18138   # variables and quote the copies for generation of the libtool script.
18139   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18140     SED SHELL STRIP \
18141     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18142     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18143     deplibs_check_method reload_flag reload_cmds need_locks \
18144     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18145     lt_cv_sys_global_symbol_to_c_name_address \
18146     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18147     old_postinstall_cmds old_postuninstall_cmds \
18148     compiler_GCJ \
18149     CC_GCJ \
18150     LD_GCJ \
18151     lt_prog_compiler_wl_GCJ \
18152     lt_prog_compiler_pic_GCJ \
18153     lt_prog_compiler_static_GCJ \
18154     lt_prog_compiler_no_builtin_flag_GCJ \
18155     export_dynamic_flag_spec_GCJ \
18156     thread_safe_flag_spec_GCJ \
18157     whole_archive_flag_spec_GCJ \
18158     enable_shared_with_static_runtimes_GCJ \
18159     old_archive_cmds_GCJ \
18160     old_archive_from_new_cmds_GCJ \
18161     predep_objects_GCJ \
18162     postdep_objects_GCJ \
18163     predeps_GCJ \
18164     postdeps_GCJ \
18165     compiler_lib_search_path_GCJ \
18166     archive_cmds_GCJ \
18167     archive_expsym_cmds_GCJ \
18168     postinstall_cmds_GCJ \
18169     postuninstall_cmds_GCJ \
18170     old_archive_from_expsyms_cmds_GCJ \
18171     allow_undefined_flag_GCJ \
18172     no_undefined_flag_GCJ \
18173     export_symbols_cmds_GCJ \
18174     hardcode_libdir_flag_spec_GCJ \
18175     hardcode_libdir_flag_spec_ld_GCJ \
18176     hardcode_libdir_separator_GCJ \
18177     hardcode_automatic_GCJ \
18178     module_cmds_GCJ \
18179     module_expsym_cmds_GCJ \
18180     lt_cv_prog_compiler_c_o_GCJ \
18181     exclude_expsyms_GCJ \
18182     include_expsyms_GCJ; do
18183
18184     case $var in
18185     old_archive_cmds_GCJ | \
18186     old_archive_from_new_cmds_GCJ | \
18187     archive_cmds_GCJ | \
18188     archive_expsym_cmds_GCJ | \
18189     module_cmds_GCJ | \
18190     module_expsym_cmds_GCJ | \
18191     old_archive_from_expsyms_cmds_GCJ | \
18192     export_symbols_cmds_GCJ | \
18193     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18194     postinstall_cmds | postuninstall_cmds | \
18195     old_postinstall_cmds | old_postuninstall_cmds | \
18196     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18197       # Double-quote double-evaled strings.
18198       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18199       ;;
18200     *)
18201       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18202       ;;
18203     esac
18204   done
18205
18206   case $lt_echo in
18207   *'\$0 --fallback-echo"')
18208     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18209     ;;
18210   esac
18211
18212 cfgfile="$ofile"
18213
18214   cat <<__EOF__ >> "$cfgfile"
18215 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18216
18217 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18218
18219 # Shell to use when invoking shell scripts.
18220 SHELL=$lt_SHELL
18221
18222 # Whether or not to build shared libraries.
18223 build_libtool_libs=$enable_shared
18224
18225 # Whether or not to build static libraries.
18226 build_old_libs=$enable_static
18227
18228 # Whether or not to add -lc for building shared libraries.
18229 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18230
18231 # Whether or not to disallow shared libs when runtime libs are static
18232 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18233
18234 # Whether or not to optimize for fast installation.
18235 fast_install=$enable_fast_install
18236
18237 # The host system.
18238 host_alias=$host_alias
18239 host=$host
18240
18241 # An echo program that does not interpret backslashes.
18242 echo=$lt_echo
18243
18244 # The archiver.
18245 AR=$lt_AR
18246 AR_FLAGS=$lt_AR_FLAGS
18247
18248 # A C compiler.
18249 LTCC=$lt_LTCC
18250
18251 # A language-specific compiler.
18252 CC=$lt_compiler_GCJ
18253
18254 # Is the compiler the GNU C compiler?
18255 with_gcc=$GCC_GCJ
18256
18257 # An ERE matcher.
18258 EGREP=$lt_EGREP
18259
18260 # The linker used to build libraries.
18261 LD=$lt_LD_GCJ
18262
18263 # Whether we need hard or soft links.
18264 LN_S=$lt_LN_S
18265
18266 # A BSD-compatible nm program.
18267 NM=$lt_NM
18268
18269 # A symbol stripping program
18270 STRIP=$lt_STRIP
18271
18272 # Used to examine libraries when file_magic_cmd begins "file"
18273 MAGIC_CMD=$MAGIC_CMD
18274
18275 # Used on cygwin: DLL creation program.
18276 DLLTOOL="$DLLTOOL"
18277
18278 # Used on cygwin: object dumper.
18279 OBJDUMP="$OBJDUMP"
18280
18281 # Used on cygwin: assembler.
18282 AS="$AS"
18283
18284 # The name of the directory that contains temporary libtool files.
18285 objdir=$objdir
18286
18287 # How to create reloadable object files.
18288 reload_flag=$lt_reload_flag
18289 reload_cmds=$lt_reload_cmds
18290
18291 # How to pass a linker flag through the compiler.
18292 wl=$lt_lt_prog_compiler_wl_GCJ
18293
18294 # Object file suffix (normally "o").
18295 objext="$ac_objext"
18296
18297 # Old archive suffix (normally "a").
18298 libext="$libext"
18299
18300 # Shared library suffix (normally ".so").
18301 shrext='$shrext'
18302
18303 # Executable file suffix (normally "").
18304 exeext="$exeext"
18305
18306 # Additional compiler flags for building library objects.
18307 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18308 pic_mode=$pic_mode
18309
18310 # What is the maximum length of a command?
18311 max_cmd_len=$lt_cv_sys_max_cmd_len
18312
18313 # Does compiler simultaneously support -c and -o options?
18314 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18315
18316 # Must we lock files when doing compilation ?
18317 need_locks=$lt_need_locks
18318
18319 # Do we need the lib prefix for modules?
18320 need_lib_prefix=$need_lib_prefix
18321
18322 # Do we need a version for libraries?
18323 need_version=$need_version
18324
18325 # Whether dlopen is supported.
18326 dlopen_support=$enable_dlopen
18327
18328 # Whether dlopen of programs is supported.
18329 dlopen_self=$enable_dlopen_self
18330
18331 # Whether dlopen of statically linked programs is supported.
18332 dlopen_self_static=$enable_dlopen_self_static
18333
18334 # Compiler flag to prevent dynamic linking.
18335 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18336
18337 # Compiler flag to turn off builtin functions.
18338 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18339
18340 # Compiler flag to allow reflexive dlopens.
18341 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18342
18343 # Compiler flag to generate shared objects directly from archives.
18344 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18345
18346 # Compiler flag to generate thread-safe objects.
18347 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18348
18349 # Library versioning type.
18350 version_type=$version_type
18351
18352 # Format of library name prefix.
18353 libname_spec=$lt_libname_spec
18354
18355 # List of archive names.  First name is the real one, the rest are links.
18356 # The last name is the one that the linker finds with -lNAME.
18357 library_names_spec=$lt_library_names_spec
18358
18359 # The coded name of the library, if different from the real name.
18360 soname_spec=$lt_soname_spec
18361
18362 # Commands used to build and install an old-style archive.
18363 RANLIB=$lt_RANLIB
18364 old_archive_cmds=$lt_old_archive_cmds_GCJ
18365 old_postinstall_cmds=$lt_old_postinstall_cmds
18366 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18367
18368 # Create an old-style archive from a shared archive.
18369 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18370
18371 # Create a temporary old-style archive to link instead of a shared archive.
18372 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18373
18374 # Commands used to build and install a shared archive.
18375 archive_cmds=$lt_archive_cmds_GCJ
18376 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18377 postinstall_cmds=$lt_postinstall_cmds
18378 postuninstall_cmds=$lt_postuninstall_cmds
18379
18380 # Commands used to build a loadable module (assumed same as above if empty)
18381 module_cmds=$lt_module_cmds_GCJ
18382 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18383
18384 # Commands to strip libraries.
18385 old_striplib=$lt_old_striplib
18386 striplib=$lt_striplib
18387
18388 # Dependencies to place before the objects being linked to create a
18389 # shared library.
18390 predep_objects=$lt_predep_objects_GCJ
18391
18392 # Dependencies to place after the objects being linked to create a
18393 # shared library.
18394 postdep_objects=$lt_postdep_objects_GCJ
18395
18396 # Dependencies to place before the objects being linked to create a
18397 # shared library.
18398 predeps=$lt_predeps_GCJ
18399
18400 # Dependencies to place after the objects being linked to create a
18401 # shared library.
18402 postdeps=$lt_postdeps_GCJ
18403
18404 # The library search path used internally by the compiler when linking
18405 # a shared library.
18406 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18407
18408 # Method to check whether dependent libraries are shared objects.
18409 deplibs_check_method=$lt_deplibs_check_method
18410
18411 # Command to use when deplibs_check_method == file_magic.
18412 file_magic_cmd=$lt_file_magic_cmd
18413
18414 # Flag that allows shared libraries with undefined symbols to be built.
18415 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18416
18417 # Flag that forces no undefined symbols.
18418 no_undefined_flag=$lt_no_undefined_flag_GCJ
18419
18420 # Commands used to finish a libtool library installation in a directory.
18421 finish_cmds=$lt_finish_cmds
18422
18423 # Same as above, but a single script fragment to be evaled but not shown.
18424 finish_eval=$lt_finish_eval
18425
18426 # Take the output of nm and produce a listing of raw symbols and C names.
18427 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18428
18429 # Transform the output of nm in a proper C declaration
18430 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18431
18432 # Transform the output of nm in a C name address pair
18433 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18434
18435 # This is the shared library runtime path variable.
18436 runpath_var=$runpath_var
18437
18438 # This is the shared library path variable.
18439 shlibpath_var=$shlibpath_var
18440
18441 # Is shlibpath searched before the hard-coded library search path?
18442 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18443
18444 # How to hardcode a shared library path into an executable.
18445 hardcode_action=$hardcode_action_GCJ
18446
18447 # Whether we should hardcode library paths into libraries.
18448 hardcode_into_libs=$hardcode_into_libs
18449
18450 # Flag to hardcode \$libdir into a binary during linking.
18451 # This must work even if \$libdir does not exist.
18452 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18453
18454 # If ld is used when linking, flag to hardcode \$libdir into
18455 # a binary during linking. This must work even if \$libdir does
18456 # not exist.
18457 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18458
18459 # Whether we need a single -rpath flag with a separated argument.
18460 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18461
18462 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18463 # resulting binary.
18464 hardcode_direct=$hardcode_direct_GCJ
18465
18466 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18467 # resulting binary.
18468 hardcode_minus_L=$hardcode_minus_L_GCJ
18469
18470 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18471 # the resulting binary.
18472 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18473
18474 # Set to yes if building a shared library automatically hardcodes DIR into the library
18475 # and all subsequent libraries and executables linked against it.
18476 hardcode_automatic=$hardcode_automatic_GCJ
18477
18478 # Variables whose values should be saved in libtool wrapper scripts and
18479 # restored at relink time.
18480 variables_saved_for_relink="$variables_saved_for_relink"
18481
18482 # Whether libtool must link a program against all its dependency libraries.
18483 link_all_deplibs=$link_all_deplibs_GCJ
18484
18485 # Compile-time system search path for libraries
18486 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18487
18488 # Run-time system search path for libraries
18489 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18490
18491 # Fix the shell variable \$srcfile for the compiler.
18492 fix_srcfile_path="$fix_srcfile_path_GCJ"
18493
18494 # Set to yes if exported symbols are required.
18495 always_export_symbols=$always_export_symbols_GCJ
18496
18497 # The commands to list exported symbols.
18498 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18499
18500 # The commands to extract the exported symbol list from a shared archive.
18501 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18502
18503 # Symbols that should not be listed in the preloaded symbols.
18504 exclude_expsyms=$lt_exclude_expsyms_GCJ
18505
18506 # Symbols that must always be exported.
18507 include_expsyms=$lt_include_expsyms_GCJ
18508
18509 # ### END LIBTOOL TAG CONFIG: $tagname
18510
18511 __EOF__
18512
18513
18514 else
18515   # If there is no Makefile yet, we rely on a make rule to execute
18516   # `config.status --recheck' to rerun these tests and create the
18517   # libtool script then.
18518   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18519   if test -f "$ltmain_in"; then
18520     test -f Makefile && make "$ltmain"
18521   fi
18522 fi
18523
18524
18525 ac_ext=c
18526 ac_cpp='$CPP $CPPFLAGS'
18527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18530
18531 CC="$lt_save_CC"
18532
18533         else
18534           tagname=""
18535         fi
18536         ;;
18537
18538       RC)
18539
18540
18541
18542 # Source file extension for RC test sources.
18543 ac_ext=rc
18544
18545 # Object file extension for compiled RC test sources.
18546 objext=o
18547 objext_RC=$objext
18548
18549 # Code to be used in simple compile tests
18550 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18551
18552 # Code to be used in simple link tests
18553 lt_simple_link_test_code="$lt_simple_compile_test_code"
18554
18555 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18556
18557 # If no C compiler was specified, use CC.
18558 LTCC=${LTCC-"$CC"}
18559
18560 # Allow CC to be a program name with arguments.
18561 compiler=$CC
18562
18563
18564 # Allow CC to be a program name with arguments.
18565 lt_save_CC="$CC"
18566 CC=${RC-"windres"}
18567 compiler=$CC
18568 compiler_RC=$CC
18569 lt_cv_prog_compiler_c_o_RC=yes
18570
18571 # The else clause should only fire when bootstrapping the
18572 # libtool distribution, otherwise you forgot to ship ltmain.sh
18573 # with your package, and you will get complaints that there are
18574 # no rules to generate ltmain.sh.
18575 if test -f "$ltmain"; then
18576   # See if we are running on zsh, and set the options which allow our commands through
18577   # without removal of \ escapes.
18578   if test -n "${ZSH_VERSION+set}" ; then
18579     setopt NO_GLOB_SUBST
18580   fi
18581   # Now quote all the things that may contain metacharacters while being
18582   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18583   # variables and quote the copies for generation of the libtool script.
18584   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18585     SED SHELL STRIP \
18586     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18587     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18588     deplibs_check_method reload_flag reload_cmds need_locks \
18589     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18590     lt_cv_sys_global_symbol_to_c_name_address \
18591     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18592     old_postinstall_cmds old_postuninstall_cmds \
18593     compiler_RC \
18594     CC_RC \
18595     LD_RC \
18596     lt_prog_compiler_wl_RC \
18597     lt_prog_compiler_pic_RC \
18598     lt_prog_compiler_static_RC \
18599     lt_prog_compiler_no_builtin_flag_RC \
18600     export_dynamic_flag_spec_RC \
18601     thread_safe_flag_spec_RC \
18602     whole_archive_flag_spec_RC \
18603     enable_shared_with_static_runtimes_RC \
18604     old_archive_cmds_RC \
18605     old_archive_from_new_cmds_RC \
18606     predep_objects_RC \
18607     postdep_objects_RC \
18608     predeps_RC \
18609     postdeps_RC \
18610     compiler_lib_search_path_RC \
18611     archive_cmds_RC \
18612     archive_expsym_cmds_RC \
18613     postinstall_cmds_RC \
18614     postuninstall_cmds_RC \
18615     old_archive_from_expsyms_cmds_RC \
18616     allow_undefined_flag_RC \
18617     no_undefined_flag_RC \
18618     export_symbols_cmds_RC \
18619     hardcode_libdir_flag_spec_RC \
18620     hardcode_libdir_flag_spec_ld_RC \
18621     hardcode_libdir_separator_RC \
18622     hardcode_automatic_RC \
18623     module_cmds_RC \
18624     module_expsym_cmds_RC \
18625     lt_cv_prog_compiler_c_o_RC \
18626     exclude_expsyms_RC \
18627     include_expsyms_RC; do
18628
18629     case $var in
18630     old_archive_cmds_RC | \
18631     old_archive_from_new_cmds_RC | \
18632     archive_cmds_RC | \
18633     archive_expsym_cmds_RC | \
18634     module_cmds_RC | \
18635     module_expsym_cmds_RC | \
18636     old_archive_from_expsyms_cmds_RC | \
18637     export_symbols_cmds_RC | \
18638     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18639     postinstall_cmds | postuninstall_cmds | \
18640     old_postinstall_cmds | old_postuninstall_cmds | \
18641     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18642       # Double-quote double-evaled strings.
18643       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18644       ;;
18645     *)
18646       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18647       ;;
18648     esac
18649   done
18650
18651   case $lt_echo in
18652   *'\$0 --fallback-echo"')
18653     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18654     ;;
18655   esac
18656
18657 cfgfile="$ofile"
18658
18659   cat <<__EOF__ >> "$cfgfile"
18660 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18661
18662 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18663
18664 # Shell to use when invoking shell scripts.
18665 SHELL=$lt_SHELL
18666
18667 # Whether or not to build shared libraries.
18668 build_libtool_libs=$enable_shared
18669
18670 # Whether or not to build static libraries.
18671 build_old_libs=$enable_static
18672
18673 # Whether or not to add -lc for building shared libraries.
18674 build_libtool_need_lc=$archive_cmds_need_lc_RC
18675
18676 # Whether or not to disallow shared libs when runtime libs are static
18677 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18678
18679 # Whether or not to optimize for fast installation.
18680 fast_install=$enable_fast_install
18681
18682 # The host system.
18683 host_alias=$host_alias
18684 host=$host
18685
18686 # An echo program that does not interpret backslashes.
18687 echo=$lt_echo
18688
18689 # The archiver.
18690 AR=$lt_AR
18691 AR_FLAGS=$lt_AR_FLAGS
18692
18693 # A C compiler.
18694 LTCC=$lt_LTCC
18695
18696 # A language-specific compiler.
18697 CC=$lt_compiler_RC
18698
18699 # Is the compiler the GNU C compiler?
18700 with_gcc=$GCC_RC
18701
18702 # An ERE matcher.
18703 EGREP=$lt_EGREP
18704
18705 # The linker used to build libraries.
18706 LD=$lt_LD_RC
18707
18708 # Whether we need hard or soft links.
18709 LN_S=$lt_LN_S
18710
18711 # A BSD-compatible nm program.
18712 NM=$lt_NM
18713
18714 # A symbol stripping program
18715 STRIP=$lt_STRIP
18716
18717 # Used to examine libraries when file_magic_cmd begins "file"
18718 MAGIC_CMD=$MAGIC_CMD
18719
18720 # Used on cygwin: DLL creation program.
18721 DLLTOOL="$DLLTOOL"
18722
18723 # Used on cygwin: object dumper.
18724 OBJDUMP="$OBJDUMP"
18725
18726 # Used on cygwin: assembler.
18727 AS="$AS"
18728
18729 # The name of the directory that contains temporary libtool files.
18730 objdir=$objdir
18731
18732 # How to create reloadable object files.
18733 reload_flag=$lt_reload_flag
18734 reload_cmds=$lt_reload_cmds
18735
18736 # How to pass a linker flag through the compiler.
18737 wl=$lt_lt_prog_compiler_wl_RC
18738
18739 # Object file suffix (normally "o").
18740 objext="$ac_objext"
18741
18742 # Old archive suffix (normally "a").
18743 libext="$libext"
18744
18745 # Shared library suffix (normally ".so").
18746 shrext='$shrext'
18747
18748 # Executable file suffix (normally "").
18749 exeext="$exeext"
18750
18751 # Additional compiler flags for building library objects.
18752 pic_flag=$lt_lt_prog_compiler_pic_RC
18753 pic_mode=$pic_mode
18754
18755 # What is the maximum length of a command?
18756 max_cmd_len=$lt_cv_sys_max_cmd_len
18757
18758 # Does compiler simultaneously support -c and -o options?
18759 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18760
18761 # Must we lock files when doing compilation ?
18762 need_locks=$lt_need_locks
18763
18764 # Do we need the lib prefix for modules?
18765 need_lib_prefix=$need_lib_prefix
18766
18767 # Do we need a version for libraries?
18768 need_version=$need_version
18769
18770 # Whether dlopen is supported.
18771 dlopen_support=$enable_dlopen
18772
18773 # Whether dlopen of programs is supported.
18774 dlopen_self=$enable_dlopen_self
18775
18776 # Whether dlopen of statically linked programs is supported.
18777 dlopen_self_static=$enable_dlopen_self_static
18778
18779 # Compiler flag to prevent dynamic linking.
18780 link_static_flag=$lt_lt_prog_compiler_static_RC
18781
18782 # Compiler flag to turn off builtin functions.
18783 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18784
18785 # Compiler flag to allow reflexive dlopens.
18786 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18787
18788 # Compiler flag to generate shared objects directly from archives.
18789 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18790
18791 # Compiler flag to generate thread-safe objects.
18792 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18793
18794 # Library versioning type.
18795 version_type=$version_type
18796
18797 # Format of library name prefix.
18798 libname_spec=$lt_libname_spec
18799
18800 # List of archive names.  First name is the real one, the rest are links.
18801 # The last name is the one that the linker finds with -lNAME.
18802 library_names_spec=$lt_library_names_spec
18803
18804 # The coded name of the library, if different from the real name.
18805 soname_spec=$lt_soname_spec
18806
18807 # Commands used to build and install an old-style archive.
18808 RANLIB=$lt_RANLIB
18809 old_archive_cmds=$lt_old_archive_cmds_RC
18810 old_postinstall_cmds=$lt_old_postinstall_cmds
18811 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18812
18813 # Create an old-style archive from a shared archive.
18814 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18815
18816 # Create a temporary old-style archive to link instead of a shared archive.
18817 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18818
18819 # Commands used to build and install a shared archive.
18820 archive_cmds=$lt_archive_cmds_RC
18821 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18822 postinstall_cmds=$lt_postinstall_cmds
18823 postuninstall_cmds=$lt_postuninstall_cmds
18824
18825 # Commands used to build a loadable module (assumed same as above if empty)
18826 module_cmds=$lt_module_cmds_RC
18827 module_expsym_cmds=$lt_module_expsym_cmds_RC
18828
18829 # Commands to strip libraries.
18830 old_striplib=$lt_old_striplib
18831 striplib=$lt_striplib
18832
18833 # Dependencies to place before the objects being linked to create a
18834 # shared library.
18835 predep_objects=$lt_predep_objects_RC
18836
18837 # Dependencies to place after the objects being linked to create a
18838 # shared library.
18839 postdep_objects=$lt_postdep_objects_RC
18840
18841 # Dependencies to place before the objects being linked to create a
18842 # shared library.
18843 predeps=$lt_predeps_RC
18844
18845 # Dependencies to place after the objects being linked to create a
18846 # shared library.
18847 postdeps=$lt_postdeps_RC
18848
18849 # The library search path used internally by the compiler when linking
18850 # a shared library.
18851 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18852
18853 # Method to check whether dependent libraries are shared objects.
18854 deplibs_check_method=$lt_deplibs_check_method
18855
18856 # Command to use when deplibs_check_method == file_magic.
18857 file_magic_cmd=$lt_file_magic_cmd
18858
18859 # Flag that allows shared libraries with undefined symbols to be built.
18860 allow_undefined_flag=$lt_allow_undefined_flag_RC
18861
18862 # Flag that forces no undefined symbols.
18863 no_undefined_flag=$lt_no_undefined_flag_RC
18864
18865 # Commands used to finish a libtool library installation in a directory.
18866 finish_cmds=$lt_finish_cmds
18867
18868 # Same as above, but a single script fragment to be evaled but not shown.
18869 finish_eval=$lt_finish_eval
18870
18871 # Take the output of nm and produce a listing of raw symbols and C names.
18872 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18873
18874 # Transform the output of nm in a proper C declaration
18875 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18876
18877 # Transform the output of nm in a C name address pair
18878 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18879
18880 # This is the shared library runtime path variable.
18881 runpath_var=$runpath_var
18882
18883 # This is the shared library path variable.
18884 shlibpath_var=$shlibpath_var
18885
18886 # Is shlibpath searched before the hard-coded library search path?
18887 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18888
18889 # How to hardcode a shared library path into an executable.
18890 hardcode_action=$hardcode_action_RC
18891
18892 # Whether we should hardcode library paths into libraries.
18893 hardcode_into_libs=$hardcode_into_libs
18894
18895 # Flag to hardcode \$libdir into a binary during linking.
18896 # This must work even if \$libdir does not exist.
18897 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18898
18899 # If ld is used when linking, flag to hardcode \$libdir into
18900 # a binary during linking. This must work even if \$libdir does
18901 # not exist.
18902 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18903
18904 # Whether we need a single -rpath flag with a separated argument.
18905 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18906
18907 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18908 # resulting binary.
18909 hardcode_direct=$hardcode_direct_RC
18910
18911 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18912 # resulting binary.
18913 hardcode_minus_L=$hardcode_minus_L_RC
18914
18915 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18916 # the resulting binary.
18917 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18918
18919 # Set to yes if building a shared library automatically hardcodes DIR into the library
18920 # and all subsequent libraries and executables linked against it.
18921 hardcode_automatic=$hardcode_automatic_RC
18922
18923 # Variables whose values should be saved in libtool wrapper scripts and
18924 # restored at relink time.
18925 variables_saved_for_relink="$variables_saved_for_relink"
18926
18927 # Whether libtool must link a program against all its dependency libraries.
18928 link_all_deplibs=$link_all_deplibs_RC
18929
18930 # Compile-time system search path for libraries
18931 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18932
18933 # Run-time system search path for libraries
18934 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18935
18936 # Fix the shell variable \$srcfile for the compiler.
18937 fix_srcfile_path="$fix_srcfile_path_RC"
18938
18939 # Set to yes if exported symbols are required.
18940 always_export_symbols=$always_export_symbols_RC
18941
18942 # The commands to list exported symbols.
18943 export_symbols_cmds=$lt_export_symbols_cmds_RC
18944
18945 # The commands to extract the exported symbol list from a shared archive.
18946 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18947
18948 # Symbols that should not be listed in the preloaded symbols.
18949 exclude_expsyms=$lt_exclude_expsyms_RC
18950
18951 # Symbols that must always be exported.
18952 include_expsyms=$lt_include_expsyms_RC
18953
18954 # ### END LIBTOOL TAG CONFIG: $tagname
18955
18956 __EOF__
18957
18958
18959 else
18960   # If there is no Makefile yet, we rely on a make rule to execute
18961   # `config.status --recheck' to rerun these tests and create the
18962   # libtool script then.
18963   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18964   if test -f "$ltmain_in"; then
18965     test -f Makefile && make "$ltmain"
18966   fi
18967 fi
18968
18969
18970 ac_ext=c
18971 ac_cpp='$CPP $CPPFLAGS'
18972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18975
18976 CC="$lt_save_CC"
18977
18978         ;;
18979
18980       *)
18981         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18982 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18983    { (exit 1); exit 1; }; }
18984         ;;
18985       esac
18986
18987       # Append the new tag name to the list of available tags.
18988       if test -n "$tagname" ; then
18989       available_tags="$available_tags $tagname"
18990     fi
18991     fi
18992   done
18993   IFS="$lt_save_ifs"
18994
18995   # Now substitute the updated list of available tags.
18996   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18997     mv "${ofile}T" "$ofile"
18998     chmod +x "$ofile"
18999   else
19000     rm -f "${ofile}T"
19001     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19002 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19003    { (exit 1); exit 1; }; }
19004   fi
19005 fi
19006
19007
19008
19009 # This can be used to rebuild libtool when needed
19010 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19011
19012 # Always use our own libtool.
19013 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19014
19015 # Prevent multiple expansion
19016
19017
19018
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035
19036
19037         # Extract the first word of "gtkdoc-mkdb", so it can be a program name with args.
19038 set dummy gtkdoc-mkdb; ac_word=$2
19039 echo "$as_me:$LINENO: checking for $ac_word" >&5
19040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19041 if test "${ac_cv_prog_GTKDOC+set}" = set; then
19042   echo $ECHO_N "(cached) $ECHO_C" >&6
19043 else
19044   if test -n "$GTKDOC"; then
19045   ac_cv_prog_GTKDOC="$GTKDOC" # Let the user override the test.
19046 else
19047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19048 for as_dir in $PATH
19049 do
19050   IFS=$as_save_IFS
19051   test -z "$as_dir" && as_dir=.
19052   for ac_exec_ext in '' $ac_executable_extensions; do
19053   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19054     ac_cv_prog_GTKDOC="true"
19055     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19056     break 2
19057   fi
19058 done
19059 done
19060
19061   test -z "$ac_cv_prog_GTKDOC" && ac_cv_prog_GTKDOC="false"
19062 fi
19063 fi
19064 GTKDOC=$ac_cv_prog_GTKDOC
19065 if test -n "$GTKDOC"; then
19066   echo "$as_me:$LINENO: result: $GTKDOC" >&5
19067 echo "${ECHO_T}$GTKDOC" >&6
19068 else
19069   echo "$as_me:$LINENO: result: no" >&5
19070 echo "${ECHO_T}no" >&6
19071 fi
19072
19073
19074
19075 if $GTKDOC; then
19076   HAVE_GTK_DOC_TRUE=
19077   HAVE_GTK_DOC_FALSE='#'
19078 else
19079   HAVE_GTK_DOC_TRUE='#'
19080   HAVE_GTK_DOC_FALSE=
19081 fi
19082
19083
19084
19085                 # Check whether --enable-gtk-doc or --disable-gtk-doc was given.
19086 if test "${enable_gtk_doc+set}" = set; then
19087   enableval="$enable_gtk_doc"
19088   enable_gtk_doc="$enableval"
19089 else
19090   enable_gtk_doc=auto
19091 fi;
19092
19093         if test x$enable_gtk_doc = xauto ; then
19094           if test x$GTKDOC = xtrue ; then
19095             enable_gtk_doc=yes
19096           else
19097             enable_gtk_doc=no
19098           fi
19099         fi
19100
19101
19102
19103 if test x$enable_gtk_doc = xyes; then
19104   ENABLE_GTK_DOC_TRUE=
19105   ENABLE_GTK_DOC_FALSE='#'
19106 else
19107   ENABLE_GTK_DOC_TRUE='#'
19108   ENABLE_GTK_DOC_FALSE=
19109 fi
19110
19111
19112
19113 # declare the modules (no optional module)
19114
19115 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
19116 ACLOCAL="$ACLOCAL -I acmacro"
19117
19118
19119 ac_ext=c
19120 ac_cpp='$CPP $CPPFLAGS'
19121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19124 if test -n "$ac_tool_prefix"; then
19125   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19126 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19127 echo "$as_me:$LINENO: checking for $ac_word" >&5
19128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19129 if test "${ac_cv_prog_CC+set}" = set; then
19130   echo $ECHO_N "(cached) $ECHO_C" >&6
19131 else
19132   if test -n "$CC"; then
19133   ac_cv_prog_CC="$CC" # Let the user override the test.
19134 else
19135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19136 for as_dir in $PATH
19137 do
19138   IFS=$as_save_IFS
19139   test -z "$as_dir" && as_dir=.
19140   for ac_exec_ext in '' $ac_executable_extensions; do
19141   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19142     ac_cv_prog_CC="${ac_tool_prefix}gcc"
19143     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19144     break 2
19145   fi
19146 done
19147 done
19148
19149 fi
19150 fi
19151 CC=$ac_cv_prog_CC
19152 if test -n "$CC"; then
19153   echo "$as_me:$LINENO: result: $CC" >&5
19154 echo "${ECHO_T}$CC" >&6
19155 else
19156   echo "$as_me:$LINENO: result: no" >&5
19157 echo "${ECHO_T}no" >&6
19158 fi
19159
19160 fi
19161 if test -z "$ac_cv_prog_CC"; then
19162   ac_ct_CC=$CC
19163   # Extract the first word of "gcc", so it can be a program name with args.
19164 set dummy gcc; ac_word=$2
19165 echo "$as_me:$LINENO: checking for $ac_word" >&5
19166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19167 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19168   echo $ECHO_N "(cached) $ECHO_C" >&6
19169 else
19170   if test -n "$ac_ct_CC"; then
19171   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19172 else
19173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19174 for as_dir in $PATH
19175 do
19176   IFS=$as_save_IFS
19177   test -z "$as_dir" && as_dir=.
19178   for ac_exec_ext in '' $ac_executable_extensions; do
19179   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19180     ac_cv_prog_ac_ct_CC="gcc"
19181     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19182     break 2
19183   fi
19184 done
19185 done
19186
19187 fi
19188 fi
19189 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19190 if test -n "$ac_ct_CC"; then
19191   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19192 echo "${ECHO_T}$ac_ct_CC" >&6
19193 else
19194   echo "$as_me:$LINENO: result: no" >&5
19195 echo "${ECHO_T}no" >&6
19196 fi
19197
19198   CC=$ac_ct_CC
19199 else
19200   CC="$ac_cv_prog_CC"
19201 fi
19202
19203 if test -z "$CC"; then
19204   if test -n "$ac_tool_prefix"; then
19205   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19206 set dummy ${ac_tool_prefix}cc; ac_word=$2
19207 echo "$as_me:$LINENO: checking for $ac_word" >&5
19208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19209 if test "${ac_cv_prog_CC+set}" = set; then
19210   echo $ECHO_N "(cached) $ECHO_C" >&6
19211 else
19212   if test -n "$CC"; then
19213   ac_cv_prog_CC="$CC" # Let the user override the test.
19214 else
19215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19216 for as_dir in $PATH
19217 do
19218   IFS=$as_save_IFS
19219   test -z "$as_dir" && as_dir=.
19220   for ac_exec_ext in '' $ac_executable_extensions; do
19221   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19222     ac_cv_prog_CC="${ac_tool_prefix}cc"
19223     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19224     break 2
19225   fi
19226 done
19227 done
19228
19229 fi
19230 fi
19231 CC=$ac_cv_prog_CC
19232 if test -n "$CC"; then
19233   echo "$as_me:$LINENO: result: $CC" >&5
19234 echo "${ECHO_T}$CC" >&6
19235 else
19236   echo "$as_me:$LINENO: result: no" >&5
19237 echo "${ECHO_T}no" >&6
19238 fi
19239
19240 fi
19241 if test -z "$ac_cv_prog_CC"; then
19242   ac_ct_CC=$CC
19243   # Extract the first word of "cc", so it can be a program name with args.
19244 set dummy cc; ac_word=$2
19245 echo "$as_me:$LINENO: checking for $ac_word" >&5
19246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19247 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19248   echo $ECHO_N "(cached) $ECHO_C" >&6
19249 else
19250   if test -n "$ac_ct_CC"; then
19251   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19252 else
19253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19254 for as_dir in $PATH
19255 do
19256   IFS=$as_save_IFS
19257   test -z "$as_dir" && as_dir=.
19258   for ac_exec_ext in '' $ac_executable_extensions; do
19259   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19260     ac_cv_prog_ac_ct_CC="cc"
19261     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19262     break 2
19263   fi
19264 done
19265 done
19266
19267 fi
19268 fi
19269 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19270 if test -n "$ac_ct_CC"; then
19271   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19272 echo "${ECHO_T}$ac_ct_CC" >&6
19273 else
19274   echo "$as_me:$LINENO: result: no" >&5
19275 echo "${ECHO_T}no" >&6
19276 fi
19277
19278   CC=$ac_ct_CC
19279 else
19280   CC="$ac_cv_prog_CC"
19281 fi
19282
19283 fi
19284 if test -z "$CC"; then
19285   # Extract the first word of "cc", so it can be a program name with args.
19286 set dummy cc; ac_word=$2
19287 echo "$as_me:$LINENO: checking for $ac_word" >&5
19288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19289 if test "${ac_cv_prog_CC+set}" = set; then
19290   echo $ECHO_N "(cached) $ECHO_C" >&6
19291 else
19292   if test -n "$CC"; then
19293   ac_cv_prog_CC="$CC" # Let the user override the test.
19294 else
19295   ac_prog_rejected=no
19296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19297 for as_dir in $PATH
19298 do
19299   IFS=$as_save_IFS
19300   test -z "$as_dir" && as_dir=.
19301   for ac_exec_ext in '' $ac_executable_extensions; do
19302   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19303     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19304        ac_prog_rejected=yes
19305        continue
19306      fi
19307     ac_cv_prog_CC="cc"
19308     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19309     break 2
19310   fi
19311 done
19312 done
19313
19314 if test $ac_prog_rejected = yes; then
19315   # We found a bogon in the path, so make sure we never use it.
19316   set dummy $ac_cv_prog_CC
19317   shift
19318   if test $# != 0; then
19319     # We chose a different compiler from the bogus one.
19320     # However, it has the same basename, so the bogon will be chosen
19321     # first if we set CC to just the basename; use the full file name.
19322     shift
19323     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19324   fi
19325 fi
19326 fi
19327 fi
19328 CC=$ac_cv_prog_CC
19329 if test -n "$CC"; then
19330   echo "$as_me:$LINENO: result: $CC" >&5
19331 echo "${ECHO_T}$CC" >&6
19332 else
19333   echo "$as_me:$LINENO: result: no" >&5
19334 echo "${ECHO_T}no" >&6
19335 fi
19336
19337 fi
19338 if test -z "$CC"; then
19339   if test -n "$ac_tool_prefix"; then
19340   for ac_prog in cl
19341   do
19342     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19343 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19344 echo "$as_me:$LINENO: checking for $ac_word" >&5
19345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19346 if test "${ac_cv_prog_CC+set}" = set; then
19347   echo $ECHO_N "(cached) $ECHO_C" >&6
19348 else
19349   if test -n "$CC"; then
19350   ac_cv_prog_CC="$CC" # Let the user override the test.
19351 else
19352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19353 for as_dir in $PATH
19354 do
19355   IFS=$as_save_IFS
19356   test -z "$as_dir" && as_dir=.
19357   for ac_exec_ext in '' $ac_executable_extensions; do
19358   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19359     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19360     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19361     break 2
19362   fi
19363 done
19364 done
19365
19366 fi
19367 fi
19368 CC=$ac_cv_prog_CC
19369 if test -n "$CC"; then
19370   echo "$as_me:$LINENO: result: $CC" >&5
19371 echo "${ECHO_T}$CC" >&6
19372 else
19373   echo "$as_me:$LINENO: result: no" >&5
19374 echo "${ECHO_T}no" >&6
19375 fi
19376
19377     test -n "$CC" && break
19378   done
19379 fi
19380 if test -z "$CC"; then
19381   ac_ct_CC=$CC
19382   for ac_prog in cl
19383 do
19384   # Extract the first word of "$ac_prog", so it can be a program name with args.
19385 set dummy $ac_prog; ac_word=$2
19386 echo "$as_me:$LINENO: checking for $ac_word" >&5
19387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19388 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19389   echo $ECHO_N "(cached) $ECHO_C" >&6
19390 else
19391   if test -n "$ac_ct_CC"; then
19392   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19393 else
19394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19395 for as_dir in $PATH
19396 do
19397   IFS=$as_save_IFS
19398   test -z "$as_dir" && as_dir=.
19399   for ac_exec_ext in '' $ac_executable_extensions; do
19400   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19401     ac_cv_prog_ac_ct_CC="$ac_prog"
19402     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19403     break 2
19404   fi
19405 done
19406 done
19407
19408 fi
19409 fi
19410 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19411 if test -n "$ac_ct_CC"; then
19412   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19413 echo "${ECHO_T}$ac_ct_CC" >&6
19414 else
19415   echo "$as_me:$LINENO: result: no" >&5
19416 echo "${ECHO_T}no" >&6
19417 fi
19418
19419   test -n "$ac_ct_CC" && break
19420 done
19421
19422   CC=$ac_ct_CC
19423 fi
19424
19425 fi
19426
19427
19428 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19429 See \`config.log' for more details." >&5
19430 echo "$as_me: error: no acceptable C compiler found in \$PATH
19431 See \`config.log' for more details." >&2;}
19432    { (exit 1); exit 1; }; }
19433
19434 # Provide some information about the compiler.
19435 echo "$as_me:$LINENO:" \
19436      "checking for C compiler version" >&5
19437 ac_compiler=`set X $ac_compile; echo $2`
19438 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19439   (eval $ac_compiler --version </dev/null >&5) 2>&5
19440   ac_status=$?
19441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442   (exit $ac_status); }
19443 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19444   (eval $ac_compiler -v </dev/null >&5) 2>&5
19445   ac_status=$?
19446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447   (exit $ac_status); }
19448 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19449   (eval $ac_compiler -V </dev/null >&5) 2>&5
19450   ac_status=$?
19451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452   (exit $ac_status); }
19453
19454 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19455 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19456 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19457   echo $ECHO_N "(cached) $ECHO_C" >&6
19458 else
19459   cat >conftest.$ac_ext <<_ACEOF
19460 /* confdefs.h.  */
19461 _ACEOF
19462 cat confdefs.h >>conftest.$ac_ext
19463 cat >>conftest.$ac_ext <<_ACEOF
19464 /* end confdefs.h.  */
19465
19466 int
19467 main ()
19468 {
19469 #ifndef __GNUC__
19470        choke me
19471 #endif
19472
19473   ;
19474   return 0;
19475 }
19476 _ACEOF
19477 rm -f conftest.$ac_objext
19478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19479   (eval $ac_compile) 2>conftest.er1
19480   ac_status=$?
19481   grep -v '^ *+' conftest.er1 >conftest.err
19482   rm -f conftest.er1
19483   cat conftest.err >&5
19484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485   (exit $ac_status); } &&
19486          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19488   (eval $ac_try) 2>&5
19489   ac_status=$?
19490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491   (exit $ac_status); }; } &&
19492          { ac_try='test -s conftest.$ac_objext'
19493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19494   (eval $ac_try) 2>&5
19495   ac_status=$?
19496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19497   (exit $ac_status); }; }; then
19498   ac_compiler_gnu=yes
19499 else
19500   echo "$as_me: failed program was:" >&5
19501 sed 's/^/| /' conftest.$ac_ext >&5
19502
19503 ac_compiler_gnu=no
19504 fi
19505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19506 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19507
19508 fi
19509 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19510 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19511 GCC=`test $ac_compiler_gnu = yes && echo yes`
19512 ac_test_CFLAGS=${CFLAGS+set}
19513 ac_save_CFLAGS=$CFLAGS
19514 CFLAGS="-g"
19515 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19516 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19517 if test "${ac_cv_prog_cc_g+set}" = set; then
19518   echo $ECHO_N "(cached) $ECHO_C" >&6
19519 else
19520   cat >conftest.$ac_ext <<_ACEOF
19521 /* confdefs.h.  */
19522 _ACEOF
19523 cat confdefs.h >>conftest.$ac_ext
19524 cat >>conftest.$ac_ext <<_ACEOF
19525 /* end confdefs.h.  */
19526
19527 int
19528 main ()
19529 {
19530
19531   ;
19532   return 0;
19533 }
19534 _ACEOF
19535 rm -f conftest.$ac_objext
19536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19537   (eval $ac_compile) 2>conftest.er1
19538   ac_status=$?
19539   grep -v '^ *+' conftest.er1 >conftest.err
19540   rm -f conftest.er1
19541   cat conftest.err >&5
19542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543   (exit $ac_status); } &&
19544          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19546   (eval $ac_try) 2>&5
19547   ac_status=$?
19548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549   (exit $ac_status); }; } &&
19550          { ac_try='test -s conftest.$ac_objext'
19551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19552   (eval $ac_try) 2>&5
19553   ac_status=$?
19554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555   (exit $ac_status); }; }; then
19556   ac_cv_prog_cc_g=yes
19557 else
19558   echo "$as_me: failed program was:" >&5
19559 sed 's/^/| /' conftest.$ac_ext >&5
19560
19561 ac_cv_prog_cc_g=no
19562 fi
19563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19564 fi
19565 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19566 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19567 if test "$ac_test_CFLAGS" = set; then
19568   CFLAGS=$ac_save_CFLAGS
19569 elif test $ac_cv_prog_cc_g = yes; then
19570   if test "$GCC" = yes; then
19571     CFLAGS="-g -O2"
19572   else
19573     CFLAGS="-g"
19574   fi
19575 else
19576   if test "$GCC" = yes; then
19577     CFLAGS="-O2"
19578   else
19579     CFLAGS=
19580   fi
19581 fi
19582 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19583 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19584 if test "${ac_cv_prog_cc_stdc+set}" = set; then
19585   echo $ECHO_N "(cached) $ECHO_C" >&6
19586 else
19587   ac_cv_prog_cc_stdc=no
19588 ac_save_CC=$CC
19589 cat >conftest.$ac_ext <<_ACEOF
19590 /* confdefs.h.  */
19591 _ACEOF
19592 cat confdefs.h >>conftest.$ac_ext
19593 cat >>conftest.$ac_ext <<_ACEOF
19594 /* end confdefs.h.  */
19595 #include <stdarg.h>
19596 #include <stdio.h>
19597 #include <sys/types.h>
19598 #include <sys/stat.h>
19599 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19600 struct buf { int x; };
19601 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19602 static char *e (p, i)
19603      char **p;
19604      int i;
19605 {
19606   return p[i];
19607 }
19608 static char *f (char * (*g) (char **, int), char **p, ...)
19609 {
19610   char *s;
19611   va_list v;
19612   va_start (v,p);
19613   s = g (p, va_arg (v,int));
19614   va_end (v);
19615   return s;
19616 }
19617
19618 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
19619    function prototypes and stuff, but not '\xHH' hex character constants.
19620    These don't provoke an error unfortunately, instead are silently treated
19621    as 'x'.  The following induces an error, until -std1 is added to get
19622    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
19623    array size at least.  It's necessary to write '\x00'==0 to get something
19624    that's true only with -std1.  */
19625 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19626
19627 int test (int i, double x);
19628 struct s1 {int (*f) (int a);};
19629 struct s2 {int (*f) (double a);};
19630 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19631 int argc;
19632 char **argv;
19633 int
19634 main ()
19635 {
19636 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
19637   ;
19638   return 0;
19639 }
19640 _ACEOF
19641 # Don't try gcc -ansi; that turns off useful extensions and
19642 # breaks some systems' header files.
19643 # AIX                   -qlanglvl=ansi
19644 # Ultrix and OSF/1      -std1
19645 # HP-UX 10.20 and later -Ae
19646 # HP-UX older versions  -Aa -D_HPUX_SOURCE
19647 # SVR4                  -Xc -D__EXTENSIONS__
19648 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19649 do
19650   CC="$ac_save_CC $ac_arg"
19651   rm -f conftest.$ac_objext
19652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19653   (eval $ac_compile) 2>conftest.er1
19654   ac_status=$?
19655   grep -v '^ *+' conftest.er1 >conftest.err
19656   rm -f conftest.er1
19657   cat conftest.err >&5
19658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659   (exit $ac_status); } &&
19660          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19662   (eval $ac_try) 2>&5
19663   ac_status=$?
19664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665   (exit $ac_status); }; } &&
19666          { ac_try='test -s conftest.$ac_objext'
19667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19668   (eval $ac_try) 2>&5
19669   ac_status=$?
19670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671   (exit $ac_status); }; }; then
19672   ac_cv_prog_cc_stdc=$ac_arg
19673 break
19674 else
19675   echo "$as_me: failed program was:" >&5
19676 sed 's/^/| /' conftest.$ac_ext >&5
19677
19678 fi
19679 rm -f conftest.err conftest.$ac_objext
19680 done
19681 rm -f conftest.$ac_ext conftest.$ac_objext
19682 CC=$ac_save_CC
19683
19684 fi
19685
19686 case "x$ac_cv_prog_cc_stdc" in
19687   x|xno)
19688     echo "$as_me:$LINENO: result: none needed" >&5
19689 echo "${ECHO_T}none needed" >&6 ;;
19690   *)
19691     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19692 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19693     CC="$CC $ac_cv_prog_cc_stdc" ;;
19694 esac
19695
19696 # Some people use a C++ compiler to compile C.  Since we use `exit',
19697 # in C++ we need to declare it.  In case someone uses the same compiler
19698 # for both compiling C and C++ we need to have the C++ compiler decide
19699 # the declaration of exit, since it's the most demanding environment.
19700 cat >conftest.$ac_ext <<_ACEOF
19701 #ifndef __cplusplus
19702   choke me
19703 #endif
19704 _ACEOF
19705 rm -f conftest.$ac_objext
19706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19707   (eval $ac_compile) 2>conftest.er1
19708   ac_status=$?
19709   grep -v '^ *+' conftest.er1 >conftest.err
19710   rm -f conftest.er1
19711   cat conftest.err >&5
19712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713   (exit $ac_status); } &&
19714          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19716   (eval $ac_try) 2>&5
19717   ac_status=$?
19718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719   (exit $ac_status); }; } &&
19720          { ac_try='test -s conftest.$ac_objext'
19721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19722   (eval $ac_try) 2>&5
19723   ac_status=$?
19724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725   (exit $ac_status); }; }; then
19726   for ac_declaration in \
19727    '' \
19728    'extern "C" void std::exit (int) throw (); using std::exit;' \
19729    'extern "C" void std::exit (int); using std::exit;' \
19730    'extern "C" void exit (int) throw ();' \
19731    'extern "C" void exit (int);' \
19732    'void exit (int);'
19733 do
19734   cat >conftest.$ac_ext <<_ACEOF
19735 /* confdefs.h.  */
19736 _ACEOF
19737 cat confdefs.h >>conftest.$ac_ext
19738 cat >>conftest.$ac_ext <<_ACEOF
19739 /* end confdefs.h.  */
19740 $ac_declaration
19741 #include <stdlib.h>
19742 int
19743 main ()
19744 {
19745 exit (42);
19746   ;
19747   return 0;
19748 }
19749 _ACEOF
19750 rm -f conftest.$ac_objext
19751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19752   (eval $ac_compile) 2>conftest.er1
19753   ac_status=$?
19754   grep -v '^ *+' conftest.er1 >conftest.err
19755   rm -f conftest.er1
19756   cat conftest.err >&5
19757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758   (exit $ac_status); } &&
19759          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19761   (eval $ac_try) 2>&5
19762   ac_status=$?
19763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764   (exit $ac_status); }; } &&
19765          { ac_try='test -s conftest.$ac_objext'
19766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19767   (eval $ac_try) 2>&5
19768   ac_status=$?
19769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770   (exit $ac_status); }; }; then
19771   :
19772 else
19773   echo "$as_me: failed program was:" >&5
19774 sed 's/^/| /' conftest.$ac_ext >&5
19775
19776 continue
19777 fi
19778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19779   cat >conftest.$ac_ext <<_ACEOF
19780 /* confdefs.h.  */
19781 _ACEOF
19782 cat confdefs.h >>conftest.$ac_ext
19783 cat >>conftest.$ac_ext <<_ACEOF
19784 /* end confdefs.h.  */
19785 $ac_declaration
19786 int
19787 main ()
19788 {
19789 exit (42);
19790   ;
19791   return 0;
19792 }
19793 _ACEOF
19794 rm -f conftest.$ac_objext
19795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19796   (eval $ac_compile) 2>conftest.er1
19797   ac_status=$?
19798   grep -v '^ *+' conftest.er1 >conftest.err
19799   rm -f conftest.er1
19800   cat conftest.err >&5
19801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802   (exit $ac_status); } &&
19803          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19805   (eval $ac_try) 2>&5
19806   ac_status=$?
19807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808   (exit $ac_status); }; } &&
19809          { ac_try='test -s conftest.$ac_objext'
19810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19811   (eval $ac_try) 2>&5
19812   ac_status=$?
19813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814   (exit $ac_status); }; }; then
19815   break
19816 else
19817   echo "$as_me: failed program was:" >&5
19818 sed 's/^/| /' conftest.$ac_ext >&5
19819
19820 fi
19821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19822 done
19823 rm -f conftest*
19824 if test -n "$ac_declaration"; then
19825   echo '#ifdef __cplusplus' >>confdefs.h
19826   echo $ac_declaration      >>confdefs.h
19827   echo '#endif'             >>confdefs.h
19828 fi
19829
19830 else
19831   echo "$as_me: failed program was:" >&5
19832 sed 's/^/| /' conftest.$ac_ext >&5
19833
19834 fi
19835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19836 ac_ext=c
19837 ac_cpp='$CPP $CPPFLAGS'
19838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19841
19842 depcc="$CC"   am_compiler_list=
19843
19844 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19845 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19846 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19847   echo $ECHO_N "(cached) $ECHO_C" >&6
19848 else
19849   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19850   # We make a subdir and do the tests there.  Otherwise we can end up
19851   # making bogus files that we don't know about and never remove.  For
19852   # instance it was reported that on HP-UX the gcc test will end up
19853   # making a dummy file named `D' -- because `-MD' means `put the output
19854   # in D'.
19855   mkdir conftest.dir
19856   # Copy depcomp to subdir because otherwise we won't find it if we're
19857   # using a relative directory.
19858   cp "$am_depcomp" conftest.dir
19859   cd conftest.dir
19860   # We will build objects and dependencies in a subdirectory because
19861   # it helps to detect inapplicable dependency modes.  For instance
19862   # both Tru64's cc and ICC support -MD to output dependencies as a
19863   # side effect of compilation, but ICC will put the dependencies in
19864   # the current directory while Tru64 will put them in the object
19865   # directory.
19866   mkdir sub
19867
19868   am_cv_CC_dependencies_compiler_type=none
19869   if test "$am_compiler_list" = ""; then
19870      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19871   fi
19872   for depmode in $am_compiler_list; do
19873     # Setup a source with many dependencies, because some compilers
19874     # like to wrap large dependency lists on column 80 (with \), and
19875     # we should not choose a depcomp mode which is confused by this.
19876     #
19877     # We need to recreate these files for each test, as the compiler may
19878     # overwrite some of them when testing with obscure command lines.
19879     # This happens at least with the AIX C compiler.
19880     : > sub/conftest.c
19881     for i in 1 2 3 4 5 6; do
19882       echo '#include "conftst'$i'.h"' >> sub/conftest.c
19883       : > sub/conftst$i.h
19884     done
19885     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19886
19887     case $depmode in
19888     nosideeffect)
19889       # after this tag, mechanisms are not by side-effect, so they'll
19890       # only be used when explicitly requested
19891       if test "x$enable_dependency_tracking" = xyes; then
19892         continue
19893       else
19894         break
19895       fi
19896       ;;
19897     none) break ;;
19898     esac
19899     # We check with `-c' and `-o' for the sake of the "dashmstdout"
19900     # mode.  It turns out that the SunPro C++ compiler does not properly
19901     # handle `-M -o', and we need to detect this.
19902     if depmode=$depmode \
19903        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19904        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19905        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19906          >/dev/null 2>conftest.err &&
19907        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19908        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19909        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19910       # icc doesn't choke on unknown options, it will just issue warnings
19911       # (even with -Werror).  So we grep stderr for any message
19912       # that says an option was ignored.
19913       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
19914         am_cv_CC_dependencies_compiler_type=$depmode
19915         break
19916       fi
19917     fi
19918   done
19919
19920   cd ..
19921   rm -rf conftest.dir
19922 else
19923   am_cv_CC_dependencies_compiler_type=none
19924 fi
19925
19926 fi
19927 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19928 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19929 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19930
19931
19932
19933 if
19934   test "x$enable_dependency_tracking" != xno \
19935   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19936   am__fastdepCC_TRUE=
19937   am__fastdepCC_FALSE='#'
19938 else
19939   am__fastdepCC_TRUE='#'
19940   am__fastdepCC_FALSE=
19941 fi
19942
19943
19944 ac_ext=f
19945 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
19946 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19947 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
19948 if test -n "$ac_tool_prefix"; then
19949   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
19950   do
19951     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19952 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19953 echo "$as_me:$LINENO: checking for $ac_word" >&5
19954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19955 if test "${ac_cv_prog_F77+set}" = set; then
19956   echo $ECHO_N "(cached) $ECHO_C" >&6
19957 else
19958   if test -n "$F77"; then
19959   ac_cv_prog_F77="$F77" # Let the user override the test.
19960 else
19961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19962 for as_dir in $PATH
19963 do
19964   IFS=$as_save_IFS
19965   test -z "$as_dir" && as_dir=.
19966   for ac_exec_ext in '' $ac_executable_extensions; do
19967   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19968     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
19969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19970     break 2
19971   fi
19972 done
19973 done
19974
19975 fi
19976 fi
19977 F77=$ac_cv_prog_F77
19978 if test -n "$F77"; then
19979   echo "$as_me:$LINENO: result: $F77" >&5
19980 echo "${ECHO_T}$F77" >&6
19981 else
19982   echo "$as_me:$LINENO: result: no" >&5
19983 echo "${ECHO_T}no" >&6
19984 fi
19985
19986     test -n "$F77" && break
19987   done
19988 fi
19989 if test -z "$F77"; then
19990   ac_ct_F77=$F77
19991   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
19992 do
19993   # Extract the first word of "$ac_prog", so it can be a program name with args.
19994 set dummy $ac_prog; ac_word=$2
19995 echo "$as_me:$LINENO: checking for $ac_word" >&5
19996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19997 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
19998   echo $ECHO_N "(cached) $ECHO_C" >&6
19999 else
20000   if test -n "$ac_ct_F77"; then
20001   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
20002 else
20003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20004 for as_dir in $PATH
20005 do
20006   IFS=$as_save_IFS
20007   test -z "$as_dir" && as_dir=.
20008   for ac_exec_ext in '' $ac_executable_extensions; do
20009   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20010     ac_cv_prog_ac_ct_F77="$ac_prog"
20011     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20012     break 2
20013   fi
20014 done
20015 done
20016
20017 fi
20018 fi
20019 ac_ct_F77=$ac_cv_prog_ac_ct_F77
20020 if test -n "$ac_ct_F77"; then
20021   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
20022 echo "${ECHO_T}$ac_ct_F77" >&6
20023 else
20024   echo "$as_me:$LINENO: result: no" >&5
20025 echo "${ECHO_T}no" >&6
20026 fi
20027
20028   test -n "$ac_ct_F77" && break
20029 done
20030
20031   F77=$ac_ct_F77
20032 fi
20033
20034
20035 # Provide some information about the compiler.
20036 echo "$as_me:20036:" \
20037      "checking for Fortran 77 compiler version" >&5
20038 ac_compiler=`set X $ac_compile; echo $2`
20039 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
20040   (eval $ac_compiler --version </dev/null >&5) 2>&5
20041   ac_status=$?
20042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20043   (exit $ac_status); }
20044 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
20045   (eval $ac_compiler -v </dev/null >&5) 2>&5
20046   ac_status=$?
20047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048   (exit $ac_status); }
20049 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
20050   (eval $ac_compiler -V </dev/null >&5) 2>&5
20051   ac_status=$?
20052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053   (exit $ac_status); }
20054 rm -f a.out
20055
20056 # If we don't use `.F' as extension, the preprocessor is not run on the
20057 # input file.  (Note that this only needs to work for GNU compilers.)
20058 ac_save_ext=$ac_ext
20059 ac_ext=F
20060 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
20061 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
20062 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
20063   echo $ECHO_N "(cached) $ECHO_C" >&6
20064 else
20065   cat >conftest.$ac_ext <<_ACEOF
20066       program main
20067 #ifndef __GNUC__
20068        choke me
20069 #endif
20070
20071       end
20072 _ACEOF
20073 rm -f conftest.$ac_objext
20074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20075   (eval $ac_compile) 2>conftest.er1
20076   ac_status=$?
20077   grep -v '^ *+' conftest.er1 >conftest.err
20078   rm -f conftest.er1
20079   cat conftest.err >&5
20080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081   (exit $ac_status); } &&
20082          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
20083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20084   (eval $ac_try) 2>&5
20085   ac_status=$?
20086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20087   (exit $ac_status); }; } &&
20088          { ac_try='test -s conftest.$ac_objext'
20089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20090   (eval $ac_try) 2>&5
20091   ac_status=$?
20092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093   (exit $ac_status); }; }; then
20094   ac_compiler_gnu=yes
20095 else
20096   echo "$as_me: failed program was:" >&5
20097 sed 's/^/| /' conftest.$ac_ext >&5
20098
20099 ac_compiler_gnu=no
20100 fi
20101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20102 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
20103
20104 fi
20105 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
20106 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
20107 ac_ext=$ac_save_ext
20108 ac_test_FFLAGS=${FFLAGS+set}
20109 ac_save_FFLAGS=$FFLAGS
20110 FFLAGS=
20111 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
20112 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
20113 if test "${ac_cv_prog_f77_g+set}" = set; then
20114   echo $ECHO_N "(cached) $ECHO_C" >&6
20115 else
20116   FFLAGS=-g
20117 cat >conftest.$ac_ext <<_ACEOF
20118       program main
20119
20120       end
20121 _ACEOF
20122 rm -f conftest.$ac_objext
20123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20124   (eval $ac_compile) 2>conftest.er1
20125   ac_status=$?
20126   grep -v '^ *+' conftest.er1 >conftest.err
20127   rm -f conftest.er1
20128   cat conftest.err >&5
20129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20130   (exit $ac_status); } &&
20131          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
20132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20133   (eval $ac_try) 2>&5
20134   ac_status=$?
20135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20136   (exit $ac_status); }; } &&
20137          { ac_try='test -s conftest.$ac_objext'
20138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20139   (eval $ac_try) 2>&5
20140   ac_status=$?
20141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142   (exit $ac_status); }; }; then
20143   ac_cv_prog_f77_g=yes
20144 else
20145   echo "$as_me: failed program was:" >&5
20146 sed 's/^/| /' conftest.$ac_ext >&5
20147
20148 ac_cv_prog_f77_g=no
20149 fi
20150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20151
20152 fi
20153 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
20154 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
20155 if test "$ac_test_FFLAGS" = set; then
20156   FFLAGS=$ac_save_FFLAGS
20157 elif test $ac_cv_prog_f77_g = yes; then
20158   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
20159     FFLAGS="-g -O2"
20160   else
20161     FFLAGS="-g"
20162   fi
20163 else
20164   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
20165     FFLAGS="-O2"
20166   else
20167     FFLAGS=
20168   fi
20169 fi
20170
20171 G77=`test $ac_compiler_gnu = yes && echo yes`
20172 ac_ext=c
20173 ac_cpp='$CPP $CPPFLAGS'
20174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20177
20178 ac_ext=f
20179 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20180 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20181 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20182 echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
20183 echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
20184 if test "${ac_cv_prog_f77_v+set}" = set; then
20185   echo $ECHO_N "(cached) $ECHO_C" >&6
20186 else
20187   cat >conftest.$ac_ext <<_ACEOF
20188       program main
20189
20190       end
20191 _ACEOF
20192 rm -f conftest.$ac_objext
20193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20194   (eval $ac_compile) 2>conftest.er1
20195   ac_status=$?
20196   grep -v '^ *+' conftest.er1 >conftest.err
20197   rm -f conftest.er1
20198   cat conftest.err >&5
20199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200   (exit $ac_status); } &&
20201          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
20202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20203   (eval $ac_try) 2>&5
20204   ac_status=$?
20205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206   (exit $ac_status); }; } &&
20207          { ac_try='test -s conftest.$ac_objext'
20208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20209   (eval $ac_try) 2>&5
20210   ac_status=$?
20211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212   (exit $ac_status); }; }; then
20213   ac_cv_prog_f77_v=
20214 # Try some options frequently used verbose output
20215 for ac_verb in -v -verbose --verbose -V -\#\#\#; do
20216   cat >conftest.$ac_ext <<_ACEOF
20217       program main
20218
20219       end
20220 _ACEOF
20221
20222 # Compile and link our simple test program by passing a flag (argument
20223 # 1 to this macro) to the Fortran compiler in order to get
20224 # "verbose" output that we can then parse for the Fortran linker
20225 # flags.
20226 ac_save_FFLAGS=$FFLAGS
20227 FFLAGS="$FFLAGS $ac_verb"
20228 (eval echo $as_me:20228: \"$ac_link\") >&5
20229 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
20230 echo "$ac_f77_v_output" >&5
20231 FFLAGS=$ac_save_FFLAGS
20232
20233 rm -f conftest*
20234
20235 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
20236 # /foo, /bar, and /baz are search directories for the Fortran linker.
20237 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
20238 ac_f77_v_output="`echo $ac_f77_v_output |
20239         grep 'LPATH is:' |
20240         sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
20241
20242 case $ac_f77_v_output in
20243   # If we are using xlf then replace all the commas with spaces.
20244   *xlfentry*)
20245     ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
20246
20247   # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
20248   # $LIBS confuse us, and the libraries appear later in the output anyway).
20249   *mGLOB_options_string*)
20250     ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
20251
20252   # If we are using Cray Fortran then delete quotes.
20253   # Use "\"" instead of '"' for font-lock-mode.
20254   # FIXME: a more general fix for quoted arguments with spaces?
20255   *cft90*)
20256     ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
20257 esac
20258
20259
20260   # look for -l* and *.a constructs in the output
20261   for ac_arg in $ac_f77_v_output; do
20262      case $ac_arg in
20263         [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
20264           ac_cv_prog_f77_v=$ac_verb
20265           break 2 ;;
20266      esac
20267   done
20268 done
20269 if test -z "$ac_cv_prog_f77_v"; then
20270    { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
20271 echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
20272 fi
20273 else
20274   echo "$as_me: failed program was:" >&5
20275 sed 's/^/| /' conftest.$ac_ext >&5
20276
20277 { echo "$as_me:$LINENO: WARNING: compilation failed" >&5
20278 echo "$as_me: WARNING: compilation failed" >&2;}
20279 fi
20280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20281
20282 fi
20283 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
20284 echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
20285 echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
20286 echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
20287 if test "${ac_cv_f77_libs+set}" = set; then
20288   echo $ECHO_N "(cached) $ECHO_C" >&6
20289 else
20290   if test "x$FLIBS" != "x"; then
20291   ac_cv_f77_libs="$FLIBS" # Let the user override the test.
20292 else
20293
20294 cat >conftest.$ac_ext <<_ACEOF
20295       program main
20296
20297       end
20298 _ACEOF
20299
20300 # Compile and link our simple test program by passing a flag (argument
20301 # 1 to this macro) to the Fortran compiler in order to get
20302 # "verbose" output that we can then parse for the Fortran linker
20303 # flags.
20304 ac_save_FFLAGS=$FFLAGS
20305 FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
20306 (eval echo $as_me:20306: \"$ac_link\") >&5
20307 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
20308 echo "$ac_f77_v_output" >&5
20309 FFLAGS=$ac_save_FFLAGS
20310
20311 rm -f conftest*
20312
20313 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
20314 # /foo, /bar, and /baz are search directories for the Fortran linker.
20315 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
20316 ac_f77_v_output="`echo $ac_f77_v_output |
20317         grep 'LPATH is:' |
20318         sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
20319
20320 case $ac_f77_v_output in
20321   # If we are using xlf then replace all the commas with spaces.
20322   *xlfentry*)
20323     ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
20324
20325   # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
20326   # $LIBS confuse us, and the libraries appear later in the output anyway).
20327   *mGLOB_options_string*)
20328     ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
20329
20330   # If we are using Cray Fortran then delete quotes.
20331   # Use "\"" instead of '"' for font-lock-mode.
20332   # FIXME: a more general fix for quoted arguments with spaces?
20333   *cft90*)
20334     ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
20335 esac
20336
20337
20338
20339 ac_cv_f77_libs=
20340
20341 # Save positional arguments (if any)
20342 ac_save_positional="$@"
20343
20344 set X $ac_f77_v_output
20345 while test $# != 1; do
20346   shift
20347   ac_arg=$1
20348   case $ac_arg in
20349         [\\/]*.a | ?:[\\/]*.a)
20350             ac_exists=false
20351   for ac_i in $ac_cv_f77_libs; do
20352     if test x"$ac_arg" = x"$ac_i"; then
20353       ac_exists=true
20354       break
20355     fi
20356   done
20357
20358   if test x"$ac_exists" = xtrue; then
20359   :
20360 else
20361   ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
20362 fi
20363
20364           ;;
20365         -bI:*)
20366             ac_exists=false
20367   for ac_i in $ac_cv_f77_libs; do
20368     if test x"$ac_arg" = x"$ac_i"; then
20369       ac_exists=true
20370       break
20371     fi
20372   done
20373
20374   if test x"$ac_exists" = xtrue; then
20375   :
20376 else
20377   if test "$ac_compiler_gnu" = yes; then
20378   for ac_link_opt in $ac_arg; do
20379     ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
20380   done
20381 else
20382   ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
20383 fi
20384 fi
20385
20386           ;;
20387           # Ignore these flags.
20388         -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
20389           ;;
20390         -lkernel32)
20391           test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
20392           ;;
20393         -[LRuY])
20394           # These flags, when seen by themselves, take an argument.
20395           # We remove the space between option and argument and re-iterate
20396           # unless we find an empty arg or a new option (starting with -)
20397           case $2 in
20398              "" | -*);;
20399              *)
20400                 ac_arg="$ac_arg$2"
20401                 shift; shift
20402                 set X $ac_arg "$@"
20403                 ;;
20404           esac
20405           ;;
20406         -YP,*)
20407           for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
20408               ac_exists=false
20409   for ac_i in $ac_cv_f77_libs; do
20410     if test x"$ac_j" = x"$ac_i"; then
20411       ac_exists=true
20412       break
20413     fi
20414   done
20415
20416   if test x"$ac_exists" = xtrue; then
20417   :
20418 else
20419   ac_arg="$ac_arg $ac_j"
20420                                ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
20421 fi
20422
20423           done
20424           ;;
20425         -[lLR]*)
20426             ac_exists=false
20427   for ac_i in $ac_cv_f77_libs; do
20428     if test x"$ac_arg" = x"$ac_i"; then
20429       ac_exists=true
20430       break
20431     fi
20432   done
20433
20434   if test x"$ac_exists" = xtrue; then
20435   :
20436 else
20437   ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
20438 fi
20439
20440           ;;
20441           # Ignore everything else.
20442   esac
20443 done
20444 # restore positional arguments
20445 set X $ac_save_positional; shift
20446
20447 # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
20448 # then we insist that the "run path" must be an absolute path (i.e. it
20449 # must begin with a "/").
20450 case `(uname -sr) 2>/dev/null` in
20451    "SunOS 5"*)
20452       ac_ld_run_path=`echo $ac_f77_v_output |
20453                         sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
20454       test "x$ac_ld_run_path" != x &&
20455         if test "$ac_compiler_gnu" = yes; then
20456   for ac_link_opt in $ac_ld_run_path; do
20457     ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
20458   done
20459 else
20460   ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
20461 fi
20462       ;;
20463 esac
20464 fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
20465
20466 fi
20467 echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
20468 echo "${ECHO_T}$ac_cv_f77_libs" >&6
20469 FLIBS="$ac_cv_f77_libs"
20470
20471
20472 ac_ext=c
20473 ac_cpp='$CPP $CPPFLAGS'
20474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20477
20478 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
20479 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
20480 # Just in case
20481 sleep 1
20482 echo timestamp > conftest.file
20483 # Do `set' in a subshell so we don't clobber the current shell's
20484 # arguments.  Must try -L first in case configure is actually a
20485 # symlink; some systems play weird games with the mod time of symlinks
20486 # (eg FreeBSD returns the mod time of the symlink's containing
20487 # directory).
20488 if (
20489    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
20490    if test "$*" = "X"; then
20491       # -L didn't work.
20492       set X `ls -t $srcdir/configure conftest.file`
20493    fi
20494    rm -f conftest.file
20495    if test "$*" != "X $srcdir/configure conftest.file" \
20496       && test "$*" != "X conftest.file $srcdir/configure"; then
20497
20498       # If neither matched, then we have a broken ls.  This can happen
20499       # if, for instance, CONFIG_SHELL is bash and it inherits a
20500       # broken ls alias from the environment.  This has actually
20501       # happened.  Such a system could not be considered "sane".
20502       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
20503 alias in your environment" >&5
20504 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
20505 alias in your environment" >&2;}
20506    { (exit 1); exit 1; }; }
20507    fi
20508
20509    test "$2" = conftest.file
20510    )
20511 then
20512    # Ok.
20513    :
20514 else
20515    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
20516 Check your system clock" >&5
20517 echo "$as_me: error: newly created file is older than distributed files!
20518 Check your system clock" >&2;}
20519    { (exit 1); exit 1; }; }
20520 fi
20521 echo "$as_me:$LINENO: result: yes" >&5
20522 echo "${ECHO_T}yes" >&6
20523 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20524 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
20525 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
20526 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
20527   echo $ECHO_N "(cached) $ECHO_C" >&6
20528 else
20529   cat >conftest.make <<\_ACEOF
20530 all:
20531         @echo 'ac_maketemp="$(MAKE)"'
20532 _ACEOF
20533 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20534 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
20535 if test -n "$ac_maketemp"; then
20536   eval ac_cv_prog_make_${ac_make}_set=yes
20537 else
20538   eval ac_cv_prog_make_${ac_make}_set=no
20539 fi
20540 rm -f conftest.make
20541 fi
20542 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
20543   echo "$as_me:$LINENO: result: yes" >&5
20544 echo "${ECHO_T}yes" >&6
20545   SET_MAKE=
20546 else
20547   echo "$as_me:$LINENO: result: no" >&5
20548 echo "${ECHO_T}no" >&6
20549   SET_MAKE="MAKE=${MAKE-make}"
20550 fi
20551
20552
20553 # Checks for header files.
20554 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20555 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20556 if test "${ac_cv_header_stdc+set}" = set; then
20557   echo $ECHO_N "(cached) $ECHO_C" >&6
20558 else
20559   cat >conftest.$ac_ext <<_ACEOF
20560 /* confdefs.h.  */
20561 _ACEOF
20562 cat confdefs.h >>conftest.$ac_ext
20563 cat >>conftest.$ac_ext <<_ACEOF
20564 /* end confdefs.h.  */
20565 #include <stdlib.h>
20566 #include <stdarg.h>
20567 #include <string.h>
20568 #include <float.h>
20569
20570 int
20571 main ()
20572 {
20573
20574   ;
20575   return 0;
20576 }
20577 _ACEOF
20578 rm -f conftest.$ac_objext
20579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20580   (eval $ac_compile) 2>conftest.er1
20581   ac_status=$?
20582   grep -v '^ *+' conftest.er1 >conftest.err
20583   rm -f conftest.er1
20584   cat conftest.err >&5
20585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20586   (exit $ac_status); } &&
20587          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20589   (eval $ac_try) 2>&5
20590   ac_status=$?
20591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20592   (exit $ac_status); }; } &&
20593          { ac_try='test -s conftest.$ac_objext'
20594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20595   (eval $ac_try) 2>&5
20596   ac_status=$?
20597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20598   (exit $ac_status); }; }; then
20599   ac_cv_header_stdc=yes
20600 else
20601   echo "$as_me: failed program was:" >&5
20602 sed 's/^/| /' conftest.$ac_ext >&5
20603
20604 ac_cv_header_stdc=no
20605 fi
20606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20607
20608 if test $ac_cv_header_stdc = yes; then
20609   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20610   cat >conftest.$ac_ext <<_ACEOF
20611 /* confdefs.h.  */
20612 _ACEOF
20613 cat confdefs.h >>conftest.$ac_ext
20614 cat >>conftest.$ac_ext <<_ACEOF
20615 /* end confdefs.h.  */
20616 #include <string.h>
20617
20618 _ACEOF
20619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20620   $EGREP "memchr" >/dev/null 2>&1; then
20621   :
20622 else
20623   ac_cv_header_stdc=no
20624 fi
20625 rm -f conftest*
20626
20627 fi
20628
20629 if test $ac_cv_header_stdc = yes; then
20630   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20631   cat >conftest.$ac_ext <<_ACEOF
20632 /* confdefs.h.  */
20633 _ACEOF
20634 cat confdefs.h >>conftest.$ac_ext
20635 cat >>conftest.$ac_ext <<_ACEOF
20636 /* end confdefs.h.  */
20637 #include <stdlib.h>
20638
20639 _ACEOF
20640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20641   $EGREP "free" >/dev/null 2>&1; then
20642   :
20643 else
20644   ac_cv_header_stdc=no
20645 fi
20646 rm -f conftest*
20647
20648 fi
20649
20650 if test $ac_cv_header_stdc = yes; then
20651   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20652   if test "$cross_compiling" = yes; then
20653   :
20654 else
20655   cat >conftest.$ac_ext <<_ACEOF
20656 /* confdefs.h.  */
20657 _ACEOF
20658 cat confdefs.h >>conftest.$ac_ext
20659 cat >>conftest.$ac_ext <<_ACEOF
20660 /* end confdefs.h.  */
20661 #include <ctype.h>
20662 #if ((' ' & 0x0FF) == 0x020)
20663 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20664 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20665 #else
20666 # define ISLOWER(c) \
20667                    (('a' <= (c) && (c) <= 'i') \
20668                      || ('j' <= (c) && (c) <= 'r') \
20669                      || ('s' <= (c) && (c) <= 'z'))
20670 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20671 #endif
20672
20673 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20674 int
20675 main ()
20676 {
20677   int i;
20678   for (i = 0; i < 256; i++)
20679     if (XOR (islower (i), ISLOWER (i))
20680         || toupper (i) != TOUPPER (i))
20681       exit(2);
20682   exit (0);
20683 }
20684 _ACEOF
20685 rm -f conftest$ac_exeext
20686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20687   (eval $ac_link) 2>&5
20688   ac_status=$?
20689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20690   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20692   (eval $ac_try) 2>&5
20693   ac_status=$?
20694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695   (exit $ac_status); }; }; then
20696   :
20697 else
20698   echo "$as_me: program exited with status $ac_status" >&5
20699 echo "$as_me: failed program was:" >&5
20700 sed 's/^/| /' conftest.$ac_ext >&5
20701
20702 ( exit $ac_status )
20703 ac_cv_header_stdc=no
20704 fi
20705 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20706 fi
20707 fi
20708 fi
20709 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20710 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20711 if test $ac_cv_header_stdc = yes; then
20712
20713 cat >>confdefs.h <<\_ACEOF
20714 #define STDC_HEADERS 1
20715 _ACEOF
20716
20717 fi
20718
20719
20720
20721
20722
20723 for ac_header in stddef.h stdlib.h string.h unistd.h
20724 do
20725 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20727   echo "$as_me:$LINENO: checking for $ac_header" >&5
20728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20730   echo $ECHO_N "(cached) $ECHO_C" >&6
20731 fi
20732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20733 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20734 else
20735   # Is the header compilable?
20736 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20737 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20738 cat >conftest.$ac_ext <<_ACEOF
20739 /* confdefs.h.  */
20740 _ACEOF
20741 cat confdefs.h >>conftest.$ac_ext
20742 cat >>conftest.$ac_ext <<_ACEOF
20743 /* end confdefs.h.  */
20744 $ac_includes_default
20745 #include <$ac_header>
20746 _ACEOF
20747 rm -f conftest.$ac_objext
20748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20749   (eval $ac_compile) 2>conftest.er1
20750   ac_status=$?
20751   grep -v '^ *+' conftest.er1 >conftest.err
20752   rm -f conftest.er1
20753   cat conftest.err >&5
20754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20755   (exit $ac_status); } &&
20756          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20758   (eval $ac_try) 2>&5
20759   ac_status=$?
20760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20761   (exit $ac_status); }; } &&
20762          { ac_try='test -s conftest.$ac_objext'
20763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20764   (eval $ac_try) 2>&5
20765   ac_status=$?
20766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767   (exit $ac_status); }; }; then
20768   ac_header_compiler=yes
20769 else
20770   echo "$as_me: failed program was:" >&5
20771 sed 's/^/| /' conftest.$ac_ext >&5
20772
20773 ac_header_compiler=no
20774 fi
20775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20776 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20777 echo "${ECHO_T}$ac_header_compiler" >&6
20778
20779 # Is the header present?
20780 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20781 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20782 cat >conftest.$ac_ext <<_ACEOF
20783 /* confdefs.h.  */
20784 _ACEOF
20785 cat confdefs.h >>conftest.$ac_ext
20786 cat >>conftest.$ac_ext <<_ACEOF
20787 /* end confdefs.h.  */
20788 #include <$ac_header>
20789 _ACEOF
20790 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20791   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20792   ac_status=$?
20793   grep -v '^ *+' conftest.er1 >conftest.err
20794   rm -f conftest.er1
20795   cat conftest.err >&5
20796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797   (exit $ac_status); } >/dev/null; then
20798   if test -s conftest.err; then
20799     ac_cpp_err=$ac_c_preproc_warn_flag
20800     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20801   else
20802     ac_cpp_err=
20803   fi
20804 else
20805   ac_cpp_err=yes
20806 fi
20807 if test -z "$ac_cpp_err"; then
20808   ac_header_preproc=yes
20809 else
20810   echo "$as_me: failed program was:" >&5
20811 sed 's/^/| /' conftest.$ac_ext >&5
20812
20813   ac_header_preproc=no
20814 fi
20815 rm -f conftest.err conftest.$ac_ext
20816 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20817 echo "${ECHO_T}$ac_header_preproc" >&6
20818
20819 # So?  What about this header?
20820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20821   yes:no: )
20822     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20823 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20824     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20825 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20826     ac_header_preproc=yes
20827     ;;
20828   no:yes:* )
20829     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20830 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20831     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20832 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20833     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20834 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20835     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20836 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20837     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20838 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20839     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20840 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20841     (
20842       cat <<\_ASBOX
20843 ## ----------------------------------------- ##
20844 ## Report this to martin.quinson@ens-lyon.fr ##
20845 ## ----------------------------------------- ##
20846 _ASBOX
20847     ) |
20848       sed "s/^/$as_me: WARNING:     /" >&2
20849     ;;
20850 esac
20851 echo "$as_me:$LINENO: checking for $ac_header" >&5
20852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20854   echo $ECHO_N "(cached) $ECHO_C" >&6
20855 else
20856   eval "$as_ac_Header=\$ac_header_preproc"
20857 fi
20858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20859 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20860
20861 fi
20862 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20863   cat >>confdefs.h <<_ACEOF
20864 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20865 _ACEOF
20866
20867 fi
20868
20869 done
20870
20871
20872 # Checks for typedefs, structures, and compiler characteristics.
20873 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20874 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20875 if test "${ac_cv_c_const+set}" = set; then
20876   echo $ECHO_N "(cached) $ECHO_C" >&6
20877 else
20878   cat >conftest.$ac_ext <<_ACEOF
20879 /* confdefs.h.  */
20880 _ACEOF
20881 cat confdefs.h >>conftest.$ac_ext
20882 cat >>conftest.$ac_ext <<_ACEOF
20883 /* end confdefs.h.  */
20884
20885 int
20886 main ()
20887 {
20888 /* FIXME: Include the comments suggested by Paul. */
20889 #ifndef __cplusplus
20890   /* Ultrix mips cc rejects this.  */
20891   typedef int charset[2];
20892   const charset x;
20893   /* SunOS 4.1.1 cc rejects this.  */
20894   char const *const *ccp;
20895   char **p;
20896   /* NEC SVR4.0.2 mips cc rejects this.  */
20897   struct point {int x, y;};
20898   static struct point const zero = {0,0};
20899   /* AIX XL C 1.02.0.0 rejects this.
20900      It does not let you subtract one const X* pointer from another in
20901      an arm of an if-expression whose if-part is not a constant
20902      expression */
20903   const char *g = "string";
20904   ccp = &g + (g ? g-g : 0);
20905   /* HPUX 7.0 cc rejects these. */
20906   ++ccp;
20907   p = (char**) ccp;
20908   ccp = (char const *const *) p;
20909   { /* SCO 3.2v4 cc rejects this.  */
20910     char *t;
20911     char const *s = 0 ? (char *) 0 : (char const *) 0;
20912
20913     *t++ = 0;
20914   }
20915   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20916     int x[] = {25, 17};
20917     const int *foo = &x[0];
20918     ++foo;
20919   }
20920   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20921     typedef const int *iptr;
20922     iptr p = 0;
20923     ++p;
20924   }
20925   { /* AIX XL C 1.02.0.0 rejects this saying
20926        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20927     struct s { int j; const int *ap[3]; };
20928     struct s *b; b->j = 5;
20929   }
20930   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20931     const int foo = 10;
20932   }
20933 #endif
20934
20935   ;
20936   return 0;
20937 }
20938 _ACEOF
20939 rm -f conftest.$ac_objext
20940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20941   (eval $ac_compile) 2>conftest.er1
20942   ac_status=$?
20943   grep -v '^ *+' conftest.er1 >conftest.err
20944   rm -f conftest.er1
20945   cat conftest.err >&5
20946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20947   (exit $ac_status); } &&
20948          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20950   (eval $ac_try) 2>&5
20951   ac_status=$?
20952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20953   (exit $ac_status); }; } &&
20954          { ac_try='test -s conftest.$ac_objext'
20955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20956   (eval $ac_try) 2>&5
20957   ac_status=$?
20958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20959   (exit $ac_status); }; }; then
20960   ac_cv_c_const=yes
20961 else
20962   echo "$as_me: failed program was:" >&5
20963 sed 's/^/| /' conftest.$ac_ext >&5
20964
20965 ac_cv_c_const=no
20966 fi
20967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20968 fi
20969 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20970 echo "${ECHO_T}$ac_cv_c_const" >&6
20971 if test $ac_cv_c_const = no; then
20972
20973 cat >>confdefs.h <<\_ACEOF
20974 #define const
20975 _ACEOF
20976
20977 fi
20978
20979 echo "$as_me:$LINENO: checking for inline" >&5
20980 echo $ECHO_N "checking for inline... $ECHO_C" >&6
20981 if test "${ac_cv_c_inline+set}" = set; then
20982   echo $ECHO_N "(cached) $ECHO_C" >&6
20983 else
20984   ac_cv_c_inline=no
20985 for ac_kw in inline __inline__ __inline; do
20986   cat >conftest.$ac_ext <<_ACEOF
20987 /* confdefs.h.  */
20988 _ACEOF
20989 cat confdefs.h >>conftest.$ac_ext
20990 cat >>conftest.$ac_ext <<_ACEOF
20991 /* end confdefs.h.  */
20992 #ifndef __cplusplus
20993 typedef int foo_t;
20994 static $ac_kw foo_t static_foo () {return 0; }
20995 $ac_kw foo_t foo () {return 0; }
20996 #endif
20997
20998 _ACEOF
20999 rm -f conftest.$ac_objext
21000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21001   (eval $ac_compile) 2>conftest.er1
21002   ac_status=$?
21003   grep -v '^ *+' conftest.er1 >conftest.err
21004   rm -f conftest.er1
21005   cat conftest.err >&5
21006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007   (exit $ac_status); } &&
21008          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21010   (eval $ac_try) 2>&5
21011   ac_status=$?
21012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013   (exit $ac_status); }; } &&
21014          { ac_try='test -s conftest.$ac_objext'
21015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21016   (eval $ac_try) 2>&5
21017   ac_status=$?
21018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019   (exit $ac_status); }; }; then
21020   ac_cv_c_inline=$ac_kw; break
21021 else
21022   echo "$as_me: failed program was:" >&5
21023 sed 's/^/| /' conftest.$ac_ext >&5
21024
21025 fi
21026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21027 done
21028
21029 fi
21030 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21031 echo "${ECHO_T}$ac_cv_c_inline" >&6
21032
21033
21034 case $ac_cv_c_inline in
21035   inline | yes) ;;
21036   *)
21037     case $ac_cv_c_inline in
21038       no) ac_val=;;
21039       *) ac_val=$ac_cv_c_inline;;
21040     esac
21041     cat >>confdefs.h <<_ACEOF
21042 #ifndef __cplusplus
21043 #define inline $ac_val
21044 #endif
21045 _ACEOF
21046     ;;
21047 esac
21048
21049 echo "$as_me:$LINENO: checking for size_t" >&5
21050 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21051 if test "${ac_cv_type_size_t+set}" = set; then
21052   echo $ECHO_N "(cached) $ECHO_C" >&6
21053 else
21054   cat >conftest.$ac_ext <<_ACEOF
21055 /* confdefs.h.  */
21056 _ACEOF
21057 cat confdefs.h >>conftest.$ac_ext
21058 cat >>conftest.$ac_ext <<_ACEOF
21059 /* end confdefs.h.  */
21060 $ac_includes_default
21061 int
21062 main ()
21063 {
21064 if ((size_t *) 0)
21065   return 0;
21066 if (sizeof (size_t))
21067   return 0;
21068   ;
21069   return 0;
21070 }
21071 _ACEOF
21072 rm -f conftest.$ac_objext
21073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21074   (eval $ac_compile) 2>conftest.er1
21075   ac_status=$?
21076   grep -v '^ *+' conftest.er1 >conftest.err
21077   rm -f conftest.er1
21078   cat conftest.err >&5
21079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080   (exit $ac_status); } &&
21081          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21083   (eval $ac_try) 2>&5
21084   ac_status=$?
21085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086   (exit $ac_status); }; } &&
21087          { ac_try='test -s conftest.$ac_objext'
21088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21089   (eval $ac_try) 2>&5
21090   ac_status=$?
21091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21092   (exit $ac_status); }; }; then
21093   ac_cv_type_size_t=yes
21094 else
21095   echo "$as_me: failed program was:" >&5
21096 sed 's/^/| /' conftest.$ac_ext >&5
21097
21098 ac_cv_type_size_t=no
21099 fi
21100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21101 fi
21102 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21103 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21104 if test $ac_cv_type_size_t = yes; then
21105   :
21106 else
21107
21108 cat >>confdefs.h <<_ACEOF
21109 #define size_t unsigned
21110 _ACEOF
21111
21112 fi
21113
21114
21115 # Checks for library functions.
21116
21117 for ac_header in stdlib.h
21118 do
21119 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21120 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21121   echo "$as_me:$LINENO: checking for $ac_header" >&5
21122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21124   echo $ECHO_N "(cached) $ECHO_C" >&6
21125 fi
21126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21127 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21128 else
21129   # Is the header compilable?
21130 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21131 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21132 cat >conftest.$ac_ext <<_ACEOF
21133 /* confdefs.h.  */
21134 _ACEOF
21135 cat confdefs.h >>conftest.$ac_ext
21136 cat >>conftest.$ac_ext <<_ACEOF
21137 /* end confdefs.h.  */
21138 $ac_includes_default
21139 #include <$ac_header>
21140 _ACEOF
21141 rm -f conftest.$ac_objext
21142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21143   (eval $ac_compile) 2>conftest.er1
21144   ac_status=$?
21145   grep -v '^ *+' conftest.er1 >conftest.err
21146   rm -f conftest.er1
21147   cat conftest.err >&5
21148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149   (exit $ac_status); } &&
21150          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21152   (eval $ac_try) 2>&5
21153   ac_status=$?
21154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21155   (exit $ac_status); }; } &&
21156          { ac_try='test -s conftest.$ac_objext'
21157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21158   (eval $ac_try) 2>&5
21159   ac_status=$?
21160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21161   (exit $ac_status); }; }; then
21162   ac_header_compiler=yes
21163 else
21164   echo "$as_me: failed program was:" >&5
21165 sed 's/^/| /' conftest.$ac_ext >&5
21166
21167 ac_header_compiler=no
21168 fi
21169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21170 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21171 echo "${ECHO_T}$ac_header_compiler" >&6
21172
21173 # Is the header present?
21174 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21175 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21176 cat >conftest.$ac_ext <<_ACEOF
21177 /* confdefs.h.  */
21178 _ACEOF
21179 cat confdefs.h >>conftest.$ac_ext
21180 cat >>conftest.$ac_ext <<_ACEOF
21181 /* end confdefs.h.  */
21182 #include <$ac_header>
21183 _ACEOF
21184 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21185   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21186   ac_status=$?
21187   grep -v '^ *+' conftest.er1 >conftest.err
21188   rm -f conftest.er1
21189   cat conftest.err >&5
21190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191   (exit $ac_status); } >/dev/null; then
21192   if test -s conftest.err; then
21193     ac_cpp_err=$ac_c_preproc_warn_flag
21194     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21195   else
21196     ac_cpp_err=
21197   fi
21198 else
21199   ac_cpp_err=yes
21200 fi
21201 if test -z "$ac_cpp_err"; then
21202   ac_header_preproc=yes
21203 else
21204   echo "$as_me: failed program was:" >&5
21205 sed 's/^/| /' conftest.$ac_ext >&5
21206
21207   ac_header_preproc=no
21208 fi
21209 rm -f conftest.err conftest.$ac_ext
21210 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21211 echo "${ECHO_T}$ac_header_preproc" >&6
21212
21213 # So?  What about this header?
21214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21215   yes:no: )
21216     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21217 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21218     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21219 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21220     ac_header_preproc=yes
21221     ;;
21222   no:yes:* )
21223     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21224 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21225     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21226 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21227     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21228 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21229     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21230 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21231     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21232 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21233     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21234 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21235     (
21236       cat <<\_ASBOX
21237 ## ----------------------------------------- ##
21238 ## Report this to martin.quinson@ens-lyon.fr ##
21239 ## ----------------------------------------- ##
21240 _ASBOX
21241     ) |
21242       sed "s/^/$as_me: WARNING:     /" >&2
21243     ;;
21244 esac
21245 echo "$as_me:$LINENO: checking for $ac_header" >&5
21246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21248   echo $ECHO_N "(cached) $ECHO_C" >&6
21249 else
21250   eval "$as_ac_Header=\$ac_header_preproc"
21251 fi
21252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21253 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21254
21255 fi
21256 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21257   cat >>confdefs.h <<_ACEOF
21258 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21259 _ACEOF
21260
21261 fi
21262
21263 done
21264
21265 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
21266 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
21267 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
21268   echo $ECHO_N "(cached) $ECHO_C" >&6
21269 else
21270   if test "$cross_compiling" = yes; then
21271   ac_cv_func_malloc_0_nonnull=no
21272 else
21273   cat >conftest.$ac_ext <<_ACEOF
21274 /* confdefs.h.  */
21275 _ACEOF
21276 cat confdefs.h >>conftest.$ac_ext
21277 cat >>conftest.$ac_ext <<_ACEOF
21278 /* end confdefs.h.  */
21279 #if STDC_HEADERS || HAVE_STDLIB_H
21280 # include <stdlib.h>
21281 #else
21282 char *malloc ();
21283 #endif
21284
21285 int
21286 main ()
21287 {
21288 exit (malloc (0) ? 0 : 1);
21289   ;
21290   return 0;
21291 }
21292 _ACEOF
21293 rm -f conftest$ac_exeext
21294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21295   (eval $ac_link) 2>&5
21296   ac_status=$?
21297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21300   (eval $ac_try) 2>&5
21301   ac_status=$?
21302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21303   (exit $ac_status); }; }; then
21304   ac_cv_func_malloc_0_nonnull=yes
21305 else
21306   echo "$as_me: program exited with status $ac_status" >&5
21307 echo "$as_me: failed program was:" >&5
21308 sed 's/^/| /' conftest.$ac_ext >&5
21309
21310 ( exit $ac_status )
21311 ac_cv_func_malloc_0_nonnull=no
21312 fi
21313 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21314 fi
21315 fi
21316 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
21317 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
21318 if test $ac_cv_func_malloc_0_nonnull = yes; then
21319
21320 cat >>confdefs.h <<\_ACEOF
21321 #define HAVE_MALLOC 1
21322 _ACEOF
21323
21324 else
21325   cat >>confdefs.h <<\_ACEOF
21326 #define HAVE_MALLOC 0
21327 _ACEOF
21328
21329    case $LIBOBJS in
21330     "malloc.$ac_objext"   | \
21331   *" malloc.$ac_objext"   | \
21332     "malloc.$ac_objext "* | \
21333   *" malloc.$ac_objext "* ) ;;
21334   *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
21335 esac
21336
21337
21338 cat >>confdefs.h <<\_ACEOF
21339 #define malloc rpl_malloc
21340 _ACEOF
21341
21342 fi
21343
21344
21345
21346 echo "$as_me:$LINENO: checking for working memcmp" >&5
21347 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21348 if test "${ac_cv_func_memcmp_working+set}" = set; then
21349   echo $ECHO_N "(cached) $ECHO_C" >&6
21350 else
21351   if test "$cross_compiling" = yes; then
21352   ac_cv_func_memcmp_working=no
21353 else
21354   cat >conftest.$ac_ext <<_ACEOF
21355 /* confdefs.h.  */
21356 _ACEOF
21357 cat confdefs.h >>conftest.$ac_ext
21358 cat >>conftest.$ac_ext <<_ACEOF
21359 /* end confdefs.h.  */
21360 $ac_includes_default
21361 int
21362 main ()
21363 {
21364
21365   /* Some versions of memcmp are not 8-bit clean.  */
21366   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21367   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21368     exit (1);
21369
21370   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21371      or more and with at least one buffer not starting on a 4-byte boundary.
21372      William Lewis provided this test program.   */
21373   {
21374     char foo[21];
21375     char bar[21];
21376     int i;
21377     for (i = 0; i < 4; i++)
21378       {
21379         char *a = foo + i;
21380         char *b = bar + i;
21381         strcpy (a, "--------01111111");
21382         strcpy (b, "--------10000000");
21383         if (memcmp (a, b, 16) >= 0)
21384           exit (1);
21385       }
21386     exit (0);
21387   }
21388
21389   ;
21390   return 0;
21391 }
21392 _ACEOF
21393 rm -f conftest$ac_exeext
21394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21395   (eval $ac_link) 2>&5
21396   ac_status=$?
21397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21400   (eval $ac_try) 2>&5
21401   ac_status=$?
21402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21403   (exit $ac_status); }; }; then
21404   ac_cv_func_memcmp_working=yes
21405 else
21406   echo "$as_me: program exited with status $ac_status" >&5
21407 echo "$as_me: failed program was:" >&5
21408 sed 's/^/| /' conftest.$ac_ext >&5
21409
21410 ( exit $ac_status )
21411 ac_cv_func_memcmp_working=no
21412 fi
21413 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21414 fi
21415 fi
21416 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21417 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21418 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
21419     "memcmp.$ac_objext"   | \
21420   *" memcmp.$ac_objext"   | \
21421     "memcmp.$ac_objext "* | \
21422   *" memcmp.$ac_objext "* ) ;;
21423   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
21424 esac
21425
21426
21427
21428
21429
21430 for ac_func in memset strchr strerror
21431 do
21432 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21433 echo "$as_me:$LINENO: checking for $ac_func" >&5
21434 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21435 if eval "test \"\${$as_ac_var+set}\" = set"; then
21436   echo $ECHO_N "(cached) $ECHO_C" >&6
21437 else
21438   cat >conftest.$ac_ext <<_ACEOF
21439 /* confdefs.h.  */
21440 _ACEOF
21441 cat confdefs.h >>conftest.$ac_ext
21442 cat >>conftest.$ac_ext <<_ACEOF
21443 /* end confdefs.h.  */
21444 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21445    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21446 #define $ac_func innocuous_$ac_func
21447
21448 /* System header to define __stub macros and hopefully few prototypes,
21449     which can conflict with char $ac_func (); below.
21450     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21451     <limits.h> exists even on freestanding compilers.  */
21452
21453 #ifdef __STDC__
21454 # include <limits.h>
21455 #else
21456 # include <assert.h>
21457 #endif
21458
21459 #undef $ac_func
21460
21461 /* Override any gcc2 internal prototype to avoid an error.  */
21462 #ifdef __cplusplus
21463 extern "C"
21464 {
21465 #endif
21466 /* We use char because int might match the return type of a gcc2
21467    builtin and then its argument prototype would still apply.  */
21468 char $ac_func ();
21469 /* The GNU C library defines this for functions which it implements
21470     to always fail with ENOSYS.  Some functions are actually named
21471     something starting with __ and the normal name is an alias.  */
21472 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21473 choke me
21474 #else
21475 char (*f) () = $ac_func;
21476 #endif
21477 #ifdef __cplusplus
21478 }
21479 #endif
21480
21481 int
21482 main ()
21483 {
21484 return f != $ac_func;
21485   ;
21486   return 0;
21487 }
21488 _ACEOF
21489 rm -f conftest.$ac_objext conftest$ac_exeext
21490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21491   (eval $ac_link) 2>conftest.er1
21492   ac_status=$?
21493   grep -v '^ *+' conftest.er1 >conftest.err
21494   rm -f conftest.er1
21495   cat conftest.err >&5
21496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497   (exit $ac_status); } &&
21498          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21500   (eval $ac_try) 2>&5
21501   ac_status=$?
21502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21503   (exit $ac_status); }; } &&
21504          { ac_try='test -s conftest$ac_exeext'
21505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21506   (eval $ac_try) 2>&5
21507   ac_status=$?
21508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509   (exit $ac_status); }; }; then
21510   eval "$as_ac_var=yes"
21511 else
21512   echo "$as_me: failed program was:" >&5
21513 sed 's/^/| /' conftest.$ac_ext >&5
21514
21515 eval "$as_ac_var=no"
21516 fi
21517 rm -f conftest.err conftest.$ac_objext \
21518       conftest$ac_exeext conftest.$ac_ext
21519 fi
21520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21521 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21522 if test `eval echo '${'$as_ac_var'}'` = yes; then
21523   cat >>confdefs.h <<_ACEOF
21524 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21525 _ACEOF
21526
21527 fi
21528 done
21529
21530
21531
21532   echo "BEGINING OF ACI-PACKAGE-SAVED(XML)">&5;
21533   # Extract the first word of "xml2-config", so it can be a program name with args.
21534 set dummy xml2-config; ac_word=$2
21535 echo "$as_me:$LINENO: checking for $ac_word" >&5
21536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21537 if test "${ac_cv_path_ACI_CACHE_PROG+set}" = set; then
21538   echo $ECHO_N "(cached) $ECHO_C" >&6
21539 else
21540   case $ACI_CACHE_PROG in
21541   [\\/]* | ?:[\\/]*)
21542   ac_cv_path_ACI_CACHE_PROG="$ACI_CACHE_PROG" # Let the user override the test with a path.
21543   ;;
21544   *)
21545   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21546 for as_dir in $PATH
21547 do
21548   IFS=$as_save_IFS
21549   test -z "$as_dir" && as_dir=.
21550   for ac_exec_ext in '' $ac_executable_extensions; do
21551   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21552     ac_cv_path_ACI_CACHE_PROG="$as_dir/$ac_word$ac_exec_ext"
21553     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21554     break 2
21555   fi
21556 done
21557 done
21558
21559   test -z "$ac_cv_path_ACI_CACHE_PROG" && ac_cv_path_ACI_CACHE_PROG="no"
21560   ;;
21561 esac
21562 fi
21563 ACI_CACHE_PROG=$ac_cv_path_ACI_CACHE_PROG
21564
21565 if test -n "$ACI_CACHE_PROG"; then
21566   echo "$as_me:$LINENO: result: $ACI_CACHE_PROG" >&5
21567 echo "${ECHO_T}$ACI_CACHE_PROG" >&6
21568 else
21569   echo "$as_me:$LINENO: result: no" >&5
21570 echo "${ECHO_T}no" >&6
21571 fi
21572
21573   aci_module_desc_XML="XML library (version XML2)"
21574     aci_pkg_config_XML=xml2-config
21575     aci_packages="$aci_packages XML"
21576   if test x$ACI_CACHE_PROG = xno; then
21577     HAVE_XML=no
21578     CFLAGS_XML=""
21579     LIBS_XML=""
21580     :
21581   else
21582     HAVE_XML=yes
21583     CFLAGS_XML=`$ACI_CACHE_PROG --cflags `
21584     LIBS_XML=`$ACI_CACHE_PROG --libs `
21585     echo >/dev/null
21586   fi
21587           echo "END OF ACI-PACKAGE-SAVED(XML)">&5;
21588
21589
21590
21591
21592
21593
21594
21595
21596
21597
21598         aci_nameok=`echo SimGrid|sed 'y/-/./'`
21599         if test "xSimGrid" != "x$aci_nameok" ; then
21600           { { echo "$as_me:$LINENO: error: ACI error: Please no '-' in package name. (ie, SimGrid is not a valid name)" >&5
21601 echo "$as_me: error: ACI error: Please no '-' in package name. (ie, SimGrid is not a valid name)" >&2;}
21602    { (exit 1); exit 1; }; }
21603         fi
21604         echo "BEGINING OF ACI-PACKAGE(SimGrid)">&5;
21605         aci_module_desc_SimGrid="the SimGrid simulator"
21606                 aci_packages="$aci_packages SimGrid"
21607
21608
21609 # Check whether --with-SimGrid or --without-SimGrid was given.
21610 if test "${with_SimGrid+set}" = set; then
21611   withval="$with_SimGrid"
21612   with_SimGrid=$withval
21613            good=yes
21614            if test "$withval" = yes ; then good=no; fi
21615            if test "$withval" = no ; then good=no; fi
21616            if test $good = no ; then
21617              { { echo "$as_me:$LINENO: error: You gave me --with-SimGrid=$withval. I wait for a location, not yes or no (use --enable-the SimGrid simulator or --disable-the SimGrid simulator for that)" >&5
21618 echo "$as_me: error: You gave me --with-SimGrid=$withval. I wait for a location, not yes or no (use --enable-the SimGrid simulator or --disable-the SimGrid simulator for that)" >&2;}
21619    { (exit 1); exit 1; }; }
21620            fi
21621            aci_pkg_prefix_SimGrid="$withval"
21622            CFLAGS_SimGrid="-I$withval/include $CFLAGS_SimGrid"
21623            LIBS_SimGrid="-L$withval/lib $LIBS_SimGrid"
21624
21625 fi;
21626
21627
21628 # Check whether --with-SimGrid-includes or --without-SimGrid-includes was given.
21629 if test "${with_SimGrid_includes+set}" = set; then
21630   withval="$with_SimGrid_includes"
21631   CFLAGS_SimGrid="-I$withval $CFLAGS_SimGrid"
21632            aci_pkg_inc_SimGrid="$withval"
21633
21634 fi;
21635
21636
21637 # Check whether --with-SimGrid-libraries or --without-SimGrid-libraries was given.
21638 if test "${with_SimGrid_libraries+set}" = set; then
21639   withval="$with_SimGrid_libraries"
21640   LIBS_SimGrid="-L$withval $LIBS_SimGrid"
21641              aci_pkg_lib_SimGrid="$withval"
21642 fi;
21643
21644
21645 # Check whether --with-SimGrid-extra or --without-SimGrid-extra was given.
21646 if test "${with_SimGrid_extra+set}" = set; then
21647   withval="$with_SimGrid_extra"
21648   LIBS_SimGrid=`echo $withval|sed 's/!/ /g'`" $LIBS_SimGrid"
21649              aci_pkg_extra_SimGrid="$withval"
21650 fi;
21651
21652
21653                                 OLD_LDFLAGS=$LDFLAGS
21654         OLD_CFLAGS=$CFLAGS
21655         OLD_CPPFLAGS=$CPPFLAGS
21656
21657                 i=`echo -lsimgrid|wc -l`
21658         if test $i != 1 && test $i != 0 ; then
21659           { { echo "$as_me:$LINENO: error: Badly formed args for function ACI-PACKAGE.
21660             please no newline and no tab." >&5
21661 echo "$as_me: error: Badly formed args for function ACI-PACKAGE.
21662             please no newline and no tab." >&2;}
21663    { (exit 1); exit 1; }; }
21664         fi
21665
21666         ac_func_search_save_LIBS="$LIBS"
21667         ac_func_search_save_this_LIBS="$LIBS_SimGrid"
21668         aci_found="no"
21669         echo "----------------------------------------" >&5
21670         echo "$as_me:$LINENO: checking for SimGrid. Can I access SG_init without new libs" >&5
21671 echo $ECHO_N "checking for SimGrid. Can I access SG_init without new libs... $ECHO_C" >&6
21672         cat >conftest.$ac_ext <<_ACEOF
21673 /* confdefs.h.  */
21674 _ACEOF
21675 cat confdefs.h >>conftest.$ac_ext
21676 cat >>conftest.$ac_ext <<_ACEOF
21677 /* end confdefs.h.  */
21678
21679 /* Override any gcc2 internal prototype to avoid an error.  */
21680 #ifdef __cplusplus
21681 extern "C"
21682 #endif
21683 /* We use char because int might match the return type of a gcc2
21684    builtin and then its argument prototype would still apply.  */
21685 char SG_init ();
21686 int
21687 main ()
21688 {
21689 SG_init ();
21690   ;
21691   return 0;
21692 }
21693 _ACEOF
21694 rm -f conftest.$ac_objext conftest$ac_exeext
21695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21696   (eval $ac_link) 2>conftest.er1
21697   ac_status=$?
21698   grep -v '^ *+' conftest.er1 >conftest.err
21699   rm -f conftest.er1
21700   cat conftest.err >&5
21701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21702   (exit $ac_status); } &&
21703          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21705   (eval $ac_try) 2>&5
21706   ac_status=$?
21707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21708   (exit $ac_status); }; } &&
21709          { ac_try='test -s conftest$ac_exeext'
21710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21711   (eval $ac_try) 2>&5
21712   ac_status=$?
21713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714   (exit $ac_status); }; }; then
21715   echo "$as_me:$LINENO: result: yes" >&5
21716 echo "${ECHO_T}yes" >&6 aci_found="yes"
21717 else
21718   echo "$as_me: failed program was:" >&5
21719 sed 's/^/| /' conftest.$ac_ext >&5
21720
21721 echo "$as_me:$LINENO: result: no" >&5
21722 echo "${ECHO_T}no" >&6
21723 fi
21724 rm -f conftest.err conftest.$ac_objext \
21725       conftest$ac_exeext conftest.$ac_ext
21726         if test "$aci_found" = "no"; then
21727           if test -n "$LIBS_SimGrid" ; then
21728             LIBS="$LIBS_SimGrid"
21729             echo "----------------------------------------" >&5
21730             echo "$as_me:$LINENO: checking for SimGrid. Can I access SG_init the specified extra args" >&5
21731 echo $ECHO_N "checking for SimGrid. Can I access SG_init the specified extra args... $ECHO_C" >&6
21732             cat >conftest.$ac_ext <<_ACEOF
21733 /* confdefs.h.  */
21734 _ACEOF
21735 cat confdefs.h >>conftest.$ac_ext
21736 cat >>conftest.$ac_ext <<_ACEOF
21737 /* end confdefs.h.  */
21738
21739 /* Override any gcc2 internal prototype to avoid an error.  */
21740 #ifdef __cplusplus
21741 extern "C"
21742 #endif
21743 /* We use char because int might match the return type of a gcc2
21744    builtin and then its argument prototype would still apply.  */
21745 char SG_init ();
21746 int
21747 main ()
21748 {
21749 SG_init ();
21750   ;
21751   return 0;
21752 }
21753 _ACEOF
21754 rm -f conftest.$ac_objext conftest$ac_exeext
21755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21756   (eval $ac_link) 2>conftest.er1
21757   ac_status=$?
21758   grep -v '^ *+' conftest.er1 >conftest.err
21759   rm -f conftest.er1
21760   cat conftest.err >&5
21761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21762   (exit $ac_status); } &&
21763          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21765   (eval $ac_try) 2>&5
21766   ac_status=$?
21767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21768   (exit $ac_status); }; } &&
21769          { ac_try='test -s conftest$ac_exeext'
21770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21771   (eval $ac_try) 2>&5
21772   ac_status=$?
21773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21774   (exit $ac_status); }; }; then
21775   aci_found="yes"
21776 else
21777   echo "$as_me: failed program was:" >&5
21778 sed 's/^/| /' conftest.$ac_ext >&5
21779
21780 aci_found="no"
21781 fi
21782 rm -f conftest.err conftest.$ac_objext \
21783       conftest$ac_exeext conftest.$ac_ext
21784             echo "$as_me:$LINENO: result: $aci_found" >&5
21785 echo "${ECHO_T}$aci_found" >&6
21786           fi
21787         fi
21788         for i in -lsimgrid
21789         do
21790           if test "x$aci_found" = "xno"; then
21791             LIBS_SimGrid=`echo "$i $ac_func_search_save_this_LIBS"|sed 's/!/ /g'`
21792             LIBS="$LIBS_SimGrid $ac_func_search_save_LIBS"
21793             echo "----------------------------------------" >&5
21794             echo "$as_me:$LINENO: checking for SimGrid. Can I access SG_init with $LIBS_SimGrid" >&5
21795 echo $ECHO_N "checking for SimGrid. Can I access SG_init with $LIBS_SimGrid... $ECHO_C" >&6
21796             cat >conftest.$ac_ext <<_ACEOF
21797 /* confdefs.h.  */
21798 _ACEOF
21799 cat confdefs.h >>conftest.$ac_ext
21800 cat >>conftest.$ac_ext <<_ACEOF
21801 /* end confdefs.h.  */
21802
21803 /* Override any gcc2 internal prototype to avoid an error.  */
21804 #ifdef __cplusplus
21805 extern "C"
21806 #endif
21807 /* We use char because int might match the return type of a gcc2
21808    builtin and then its argument prototype would still apply.  */
21809 char SG_init ();
21810 int
21811 main ()
21812 {
21813 SG_init ();
21814   ;
21815   return 0;
21816 }
21817 _ACEOF
21818 rm -f conftest.$ac_objext conftest$ac_exeext
21819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21820   (eval $ac_link) 2>conftest.er1
21821   ac_status=$?
21822   grep -v '^ *+' conftest.er1 >conftest.err
21823   rm -f conftest.er1
21824   cat conftest.err >&5
21825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826   (exit $ac_status); } &&
21827          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21829   (eval $ac_try) 2>&5
21830   ac_status=$?
21831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21832   (exit $ac_status); }; } &&
21833          { ac_try='test -s conftest$ac_exeext'
21834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21835   (eval $ac_try) 2>&5
21836   ac_status=$?
21837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838   (exit $ac_status); }; }; then
21839   aci_found="yes"
21840 else
21841   echo "$as_me: failed program was:" >&5
21842 sed 's/^/| /' conftest.$ac_ext >&5
21843
21844 aci_found="no"
21845 fi
21846 rm -f conftest.err conftest.$ac_objext \
21847       conftest$ac_exeext conftest.$ac_ext
21848             echo "$as_me:$LINENO: result: $aci_found" >&5
21849 echo "${ECHO_T}$aci_found" >&6
21850           fi
21851         done
21852         LIBS="$ac_func_search_save_LIBS"
21853
21854                                 if test "x$aci_found" = "xyes" && test "x"simgrid.h != "x" ; then
21855           CPPFLAGS="$CPPFLAGS $CFLAGS_SimGrid"
21856           echo "CPPFLAGS=$CPPFLAGS">&5;
21857           if test "${ac_cv_header_simgrid_h+set}" = set; then
21858   echo "$as_me:$LINENO: checking for simgrid.h" >&5
21859 echo $ECHO_N "checking for simgrid.h... $ECHO_C" >&6
21860 if test "${ac_cv_header_simgrid_h+set}" = set; then
21861   echo $ECHO_N "(cached) $ECHO_C" >&6
21862 fi
21863 echo "$as_me:$LINENO: result: $ac_cv_header_simgrid_h" >&5
21864 echo "${ECHO_T}$ac_cv_header_simgrid_h" >&6
21865 else
21866   # Is the header compilable?
21867 echo "$as_me:$LINENO: checking simgrid.h usability" >&5
21868 echo $ECHO_N "checking simgrid.h usability... $ECHO_C" >&6
21869 cat >conftest.$ac_ext <<_ACEOF
21870 /* confdefs.h.  */
21871 _ACEOF
21872 cat confdefs.h >>conftest.$ac_ext
21873 cat >>conftest.$ac_ext <<_ACEOF
21874 /* end confdefs.h.  */
21875 $ac_includes_default
21876 #include <simgrid.h>
21877 _ACEOF
21878 rm -f conftest.$ac_objext
21879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21880   (eval $ac_compile) 2>conftest.er1
21881   ac_status=$?
21882   grep -v '^ *+' conftest.er1 >conftest.err
21883   rm -f conftest.er1
21884   cat conftest.err >&5
21885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886   (exit $ac_status); } &&
21887          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21889   (eval $ac_try) 2>&5
21890   ac_status=$?
21891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892   (exit $ac_status); }; } &&
21893          { ac_try='test -s conftest.$ac_objext'
21894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21895   (eval $ac_try) 2>&5
21896   ac_status=$?
21897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898   (exit $ac_status); }; }; then
21899   ac_header_compiler=yes
21900 else
21901   echo "$as_me: failed program was:" >&5
21902 sed 's/^/| /' conftest.$ac_ext >&5
21903
21904 ac_header_compiler=no
21905 fi
21906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21907 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21908 echo "${ECHO_T}$ac_header_compiler" >&6
21909
21910 # Is the header present?
21911 echo "$as_me:$LINENO: checking simgrid.h presence" >&5
21912 echo $ECHO_N "checking simgrid.h presence... $ECHO_C" >&6
21913 cat >conftest.$ac_ext <<_ACEOF
21914 /* confdefs.h.  */
21915 _ACEOF
21916 cat confdefs.h >>conftest.$ac_ext
21917 cat >>conftest.$ac_ext <<_ACEOF
21918 /* end confdefs.h.  */
21919 #include <simgrid.h>
21920 _ACEOF
21921 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21922   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21923   ac_status=$?
21924   grep -v '^ *+' conftest.er1 >conftest.err
21925   rm -f conftest.er1
21926   cat conftest.err >&5
21927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928   (exit $ac_status); } >/dev/null; then
21929   if test -s conftest.err; then
21930     ac_cpp_err=$ac_c_preproc_warn_flag
21931     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21932   else
21933     ac_cpp_err=
21934   fi
21935 else
21936   ac_cpp_err=yes
21937 fi
21938 if test -z "$ac_cpp_err"; then
21939   ac_header_preproc=yes
21940 else
21941   echo "$as_me: failed program was:" >&5
21942 sed 's/^/| /' conftest.$ac_ext >&5
21943
21944   ac_header_preproc=no
21945 fi
21946 rm -f conftest.err conftest.$ac_ext
21947 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21948 echo "${ECHO_T}$ac_header_preproc" >&6
21949
21950 # So?  What about this header?
21951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21952   yes:no: )
21953     { echo "$as_me:$LINENO: WARNING: simgrid.h: accepted by the compiler, rejected by the preprocessor!" >&5
21954 echo "$as_me: WARNING: simgrid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21955     { echo "$as_me:$LINENO: WARNING: simgrid.h: proceeding with the compiler's result" >&5
21956 echo "$as_me: WARNING: simgrid.h: proceeding with the compiler's result" >&2;}
21957     ac_header_preproc=yes
21958     ;;
21959   no:yes:* )
21960     { echo "$as_me:$LINENO: WARNING: simgrid.h: present but cannot be compiled" >&5
21961 echo "$as_me: WARNING: simgrid.h: present but cannot be compiled" >&2;}
21962     { echo "$as_me:$LINENO: WARNING: simgrid.h:     check for missing prerequisite headers?" >&5
21963 echo "$as_me: WARNING: simgrid.h:     check for missing prerequisite headers?" >&2;}
21964     { echo "$as_me:$LINENO: WARNING: simgrid.h: see the Autoconf documentation" >&5
21965 echo "$as_me: WARNING: simgrid.h: see the Autoconf documentation" >&2;}
21966     { echo "$as_me:$LINENO: WARNING: simgrid.h:     section \"Present But Cannot Be Compiled\"" >&5
21967 echo "$as_me: WARNING: simgrid.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21968     { echo "$as_me:$LINENO: WARNING: simgrid.h: proceeding with the preprocessor's result" >&5
21969 echo "$as_me: WARNING: simgrid.h: proceeding with the preprocessor's result" >&2;}
21970     { echo "$as_me:$LINENO: WARNING: simgrid.h: in the future, the compiler will take precedence" >&5
21971 echo "$as_me: WARNING: simgrid.h: in the future, the compiler will take precedence" >&2;}
21972     (
21973       cat <<\_ASBOX
21974 ## ----------------------------------------- ##
21975 ## Report this to martin.quinson@ens-lyon.fr ##
21976 ## ----------------------------------------- ##
21977 _ASBOX
21978     ) |
21979       sed "s/^/$as_me: WARNING:     /" >&2
21980     ;;
21981 esac
21982 echo "$as_me:$LINENO: checking for simgrid.h" >&5
21983 echo $ECHO_N "checking for simgrid.h... $ECHO_C" >&6
21984 if test "${ac_cv_header_simgrid_h+set}" = set; then
21985   echo $ECHO_N "(cached) $ECHO_C" >&6
21986 else
21987   ac_cv_header_simgrid_h=$ac_header_preproc
21988 fi
21989 echo "$as_me:$LINENO: result: $ac_cv_header_simgrid_h" >&5
21990 echo "${ECHO_T}$ac_cv_header_simgrid_h" >&6
21991
21992 fi
21993 if test $ac_cv_header_simgrid_h = yes; then
21994   good=yes
21995 else
21996   good=no
21997 fi
21998
21999
22000         fi
22001         if test "x$aci_found" = "xno" ; then
22002                                    { { echo "$as_me:$LINENO: error: Can't find the package SimGrid. Please install it, or if it is installed, tell me where with the --with-SimGrid argument (see ./configure --help=short)." >&5
22003 echo "$as_me: error: Can't find the package SimGrid. Please install it, or if it is installed, tell me where with the --with-SimGrid argument (see ./configure --help=short)." >&2;}
22004    { (exit 1); exit 1; }; }
22005         else
22006                         HAVE_SimGrid="yes"
22007                 echo >/dev/null
22008         fi
22009         if test "x$HAVE_SimGrid" != "xyes" ; then
22010           CFLAGS_SimGrid=""
22011           LIBS_SimGrid=""
22012         fi
22013
22014
22015
22016
22017         echo "END OF ACI-PACKAGE(SimGrid)">&5;
22018                 LDFLAGS=$OLDLDFLAGS
22019         CPPFLAGS=$OLDCPPFLAGS
22020         CFLAGS=$OLDCFLAGS
22021
22022
22023
22024 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
22025 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
22026     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
22027 if test "${enable_maintainer_mode+set}" = set; then
22028   enableval="$enable_maintainer_mode"
22029   USE_MAINTAINER_MODE=$enableval
22030 else
22031   USE_MAINTAINER_MODE=no
22032 fi;
22033   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
22034 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
22035
22036
22037 if test $USE_MAINTAINER_MODE = yes; then
22038   MAINTAINER_MODE_TRUE=
22039   MAINTAINER_MODE_FALSE='#'
22040 else
22041   MAINTAINER_MODE_TRUE='#'
22042   MAINTAINER_MODE_FALSE=
22043 fi
22044
22045   MAINT=$MAINTAINER_MODE_TRUE
22046
22047
22048 if test x$USE_MAINTAINER_MODE = xyes
22049 then
22050
22051   # Check whether --enable-compile-warnings or --disable-compile-warnings was given.
22052 if test "${enable_compile_warnings+set}" = set; then
22053   enableval="$enable_compile_warnings"
22054
22055 else
22056   enable_compile_warnings=yes
22057 fi;
22058
22059   echo "$as_me:$LINENO: checking what warning flags to pass to the C compiler" >&5
22060 echo $ECHO_N "checking what warning flags to pass to the C compiler... $ECHO_C" >&6
22061   warnCFLAGS=
22062   if test "x$GCC" != xyes; then
22063     enable_compile_warnings=no
22064   fi
22065
22066   if test "x$enable_compile_warnings" != "xno"; then
22067     if test "x$GCC" = "xyes"; then
22068       case " $CFLAGS " in
22069       *-Wall*) ;;
22070       *) warnCFLAGS="-g -Wall -Wunused" ;;
22071       esac
22072
22073       ## -W is not all that useful.  And it cannot be controlled
22074       ## with individual -Wno-xxx flags, unlike -Wall
22075       if test "x$enable_compile_warnings" = "xyes"; then
22076         warnCFLAGS="$warnCFLAGS  -Wmissing-prototypes -Wmissing-declarations\
22077                     -finline-functions  -Wshadow -Wpointer-arith \
22078                     -Wwrite-strings -Wno-unused-function -Werror"
22079       fi
22080     fi
22081   fi
22082   echo "$as_me:$LINENO: result: $warnCFLAGS" >&5
22083 echo "${ECHO_T}$warnCFLAGS" >&6
22084
22085   # Check whether --enable-iso-c or --disable-iso-c was given.
22086 if test "${enable_iso_c+set}" = set; then
22087   enableval="$enable_iso_c"
22088
22089 else
22090   enable_iso_c=no
22091 fi;
22092
22093   echo "$as_me:$LINENO: checking what language compliance flags to pass to the C compiler" >&5
22094 echo $ECHO_N "checking what language compliance flags to pass to the C compiler... $ECHO_C" >&6
22095   complCFLAGS=
22096   if test "x$enable_iso_c" != "xno"; then
22097     if test "x$GCC" = "xyes"; then
22098       case " $CFLAGS " in
22099       *-ansi*) ;;
22100       *) complCFLAGS="$complCFLAGS -ansi" ;;
22101       esac
22102
22103       case " $CFLAGS " in
22104       *-pedantic*) ;;
22105       *) complCFLAGS="$complCFLAGS -pedantic" ;;
22106       esac
22107     fi
22108   fi
22109   echo "$as_me:$LINENO: result: $complCFLAGS" >&5
22110 echo "${ECHO_T}$complCFLAGS" >&6
22111   if test "x$cflags_set" != "xyes"; then
22112     CFLAGS="$CFLAGS $warnCFLAGS $complCFLAGS"
22113     cflags_set=yes
22114
22115   fi
22116
22117 fi
22118
22119
22120
22121
22122
22123 # Extract the first word of "bash", so it can be a program name with args.
22124 set dummy bash; ac_word=$2
22125 echo "$as_me:$LINENO: checking for $ac_word" >&5
22126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22127 if test "${ac_cv_prog_BASH+set}" = set; then
22128   echo $ECHO_N "(cached) $ECHO_C" >&6
22129 else
22130   if test -n "$BASH"; then
22131   ac_cv_prog_BASH="$BASH" # Let the user override the test.
22132 else
22133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22134 for as_dir in $PATH
22135 do
22136   IFS=$as_save_IFS
22137   test -z "$as_dir" && as_dir=.
22138   for ac_exec_ext in '' $ac_executable_extensions; do
22139   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22140     ac_cv_prog_BASH="`which bash`"
22141     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22142     break 2
22143   fi
22144 done
22145 done
22146
22147   test -z "$ac_cv_prog_BASH" && ac_cv_prog_BASH="/bin/sh"
22148 fi
22149 fi
22150 BASH=$ac_cv_prog_BASH
22151 if test -n "$BASH"; then
22152   echo "$as_me:$LINENO: result: $BASH" >&5
22153 echo "${ECHO_T}$BASH" >&6
22154 else
22155   echo "$as_me:$LINENO: result: no" >&5
22156 echo "${ECHO_T}no" >&6
22157 fi
22158
22159 WARNING="This file is generated, do not edit"
22160
22161
22162                                                                                                                         ac_config_files="$ac_config_files Makefile src/Makefile src/base/Makefile src/base/Tests/Makefile src/base/Tests/gs_example src/modules/Makefile src/examples/Makefile src/examples/ping/Makefile src/examples/bandwidth/Makefile src/examples/saturate/Makefile src/examples/alnem/Makefile doc/Makefile"
22163
22164
22165 cat >confcache <<\_ACEOF
22166 # This file is a shell script that caches the results of configure
22167 # tests run on this system so they can be shared between configure
22168 # scripts and configure runs, see configure's option --config-cache.
22169 # It is not useful on other systems.  If it contains results you don't
22170 # want to keep, you may remove or edit it.
22171 #
22172 # config.status only pays attention to the cache file if you give it
22173 # the --recheck option to rerun configure.
22174 #
22175 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22176 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22177 # following values.
22178
22179 _ACEOF
22180
22181 # The following way of writing the cache mishandles newlines in values,
22182 # but we know of no workaround that is simple, portable, and efficient.
22183 # So, don't put newlines in cache variables' values.
22184 # Ultrix sh set writes to stderr and can't be redirected directly,
22185 # and sets the high bit in the cache file unless we assign to the vars.
22186 {
22187   (set) 2>&1 |
22188     case `(ac_space=' '; set | grep ac_space) 2>&1` in
22189     *ac_space=\ *)
22190       # `set' does not quote correctly, so add quotes (double-quote
22191       # substitution turns \\\\ into \\, and sed turns \\ into \).
22192       sed -n \
22193         "s/'/'\\\\''/g;
22194           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22195       ;;
22196     *)
22197       # `set' quotes correctly as required by POSIX, so do not add quotes.
22198       sed -n \
22199         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22200       ;;
22201     esac;
22202 } |
22203   sed '
22204      t clear
22205      : clear
22206      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22207      t end
22208      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22209      : end' >>confcache
22210 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22211   if test -w $cache_file; then
22212     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22213     cat confcache >$cache_file
22214   else
22215     echo "not updating unwritable cache $cache_file"
22216   fi
22217 fi
22218 rm -f confcache
22219
22220 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22221 # Let make expand exec_prefix.
22222 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22223
22224 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22225 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22226 # trailing colons and then remove the whole line if VPATH becomes empty
22227 # (actually we leave an empty line to preserve line numbers).
22228 if test "x$srcdir" = x.; then
22229   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22230 s/:*\$(srcdir):*/:/;
22231 s/:*\${srcdir}:*/:/;
22232 s/:*@srcdir@:*/:/;
22233 s/^\([^=]*=[     ]*\):*/\1/;
22234 s/:*$//;
22235 s/^[^=]*=[       ]*$//;
22236 }'
22237 fi
22238
22239 DEFS=-DHAVE_CONFIG_H
22240
22241 ac_libobjs=
22242 ac_ltlibobjs=
22243 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22244   # 1. Remove the extension, and $U if already installed.
22245   ac_i=`echo "$ac_i" |
22246          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22247   # 2. Add them.
22248   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22249   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22250 done
22251 LIBOBJS=$ac_libobjs
22252
22253 LTLIBOBJS=$ac_ltlibobjs
22254
22255
22256 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22257   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22258 Usually this means the macro was only invoked conditionally." >&5
22259 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22260 Usually this means the macro was only invoked conditionally." >&2;}
22261    { (exit 1); exit 1; }; }
22262 fi
22263 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22264   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22265 Usually this means the macro was only invoked conditionally." >&5
22266 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22267 Usually this means the macro was only invoked conditionally." >&2;}
22268    { (exit 1); exit 1; }; }
22269 fi
22270 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22271   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22272 Usually this means the macro was only invoked conditionally." >&5
22273 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22274 Usually this means the macro was only invoked conditionally." >&2;}
22275    { (exit 1); exit 1; }; }
22276 fi
22277 if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then
22278   { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK_DOC\" was never defined.
22279 Usually this means the macro was only invoked conditionally." >&5
22280 echo "$as_me: error: conditional \"HAVE_GTK_DOC\" was never defined.
22281 Usually this means the macro was only invoked conditionally." >&2;}
22282    { (exit 1); exit 1; }; }
22283 fi
22284 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
22285   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK_DOC\" was never defined.
22286 Usually this means the macro was only invoked conditionally." >&5
22287 echo "$as_me: error: conditional \"ENABLE_GTK_DOC\" was never defined.
22288 Usually this means the macro was only invoked conditionally." >&2;}
22289    { (exit 1); exit 1; }; }
22290 fi
22291 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22292   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22293 Usually this means the macro was only invoked conditionally." >&5
22294 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22295 Usually this means the macro was only invoked conditionally." >&2;}
22296    { (exit 1); exit 1; }; }
22297 fi
22298 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22299   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22300 Usually this means the macro was only invoked conditionally." >&5
22301 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22302 Usually this means the macro was only invoked conditionally." >&2;}
22303    { (exit 1); exit 1; }; }
22304 fi
22305
22306 : ${CONFIG_STATUS=./config.status}
22307 ac_clean_files_save=$ac_clean_files
22308 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22309 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22310 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22311 cat >$CONFIG_STATUS <<_ACEOF
22312 #! $SHELL
22313 # Generated by $as_me.
22314 # Run this file to recreate the current configuration.
22315 # Compiler output produced by configure, useful for debugging
22316 # configure, is in config.log if it exists.
22317
22318 debug=false
22319 ac_cs_recheck=false
22320 ac_cs_silent=false
22321 SHELL=\${CONFIG_SHELL-$SHELL}
22322 _ACEOF
22323
22324 cat >>$CONFIG_STATUS <<\_ACEOF
22325 ## --------------------- ##
22326 ## M4sh Initialization.  ##
22327 ## --------------------- ##
22328
22329 # Be Bourne compatible
22330 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22331   emulate sh
22332   NULLCMD=:
22333   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22334   # is contrary to our usage.  Disable this feature.
22335   alias -g '${1+"$@"}'='"$@"'
22336 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22337   set -o posix
22338 fi
22339 DUALCASE=1; export DUALCASE # for MKS sh
22340
22341 # Support unset when possible.
22342 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22343   as_unset=unset
22344 else
22345   as_unset=false
22346 fi
22347
22348
22349 # Work around bugs in pre-3.0 UWIN ksh.
22350 $as_unset ENV MAIL MAILPATH
22351 PS1='$ '
22352 PS2='> '
22353 PS4='+ '
22354
22355 # NLS nuisances.
22356 for as_var in \
22357   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22358   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22359   LC_TELEPHONE LC_TIME
22360 do
22361   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22362     eval $as_var=C; export $as_var
22363   else
22364     $as_unset $as_var
22365   fi
22366 done
22367
22368 # Required to use basename.
22369 if expr a : '\(a\)' >/dev/null 2>&1; then
22370   as_expr=expr
22371 else
22372   as_expr=false
22373 fi
22374
22375 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22376   as_basename=basename
22377 else
22378   as_basename=false
22379 fi
22380
22381
22382 # Name of the executable.
22383 as_me=`$as_basename "$0" ||
22384 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22385          X"$0" : 'X\(//\)$' \| \
22386          X"$0" : 'X\(/\)$' \| \
22387          .     : '\(.\)' 2>/dev/null ||
22388 echo X/"$0" |
22389     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22390           /^X\/\(\/\/\)$/{ s//\1/; q; }
22391           /^X\/\(\/\).*/{ s//\1/; q; }
22392           s/.*/./; q'`
22393
22394
22395 # PATH needs CR, and LINENO needs CR and PATH.
22396 # Avoid depending upon Character Ranges.
22397 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22398 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22399 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22400 as_cr_digits='0123456789'
22401 as_cr_alnum=$as_cr_Letters$as_cr_digits
22402
22403 # The user is always right.
22404 if test "${PATH_SEPARATOR+set}" != set; then
22405   echo "#! /bin/sh" >conf$$.sh
22406   echo  "exit 0"   >>conf$$.sh
22407   chmod +x conf$$.sh
22408   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22409     PATH_SEPARATOR=';'
22410   else
22411     PATH_SEPARATOR=:
22412   fi
22413   rm -f conf$$.sh
22414 fi
22415
22416
22417   as_lineno_1=$LINENO
22418   as_lineno_2=$LINENO
22419   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22420   test "x$as_lineno_1" != "x$as_lineno_2" &&
22421   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
22422   # Find who we are.  Look in the path if we contain no path at all
22423   # relative or not.
22424   case $0 in
22425     *[\\/]* ) as_myself=$0 ;;
22426     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22427 for as_dir in $PATH
22428 do
22429   IFS=$as_save_IFS
22430   test -z "$as_dir" && as_dir=.
22431   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22432 done
22433
22434        ;;
22435   esac
22436   # We did not find ourselves, most probably we were run as `sh COMMAND'
22437   # in which case we are not to be found in the path.
22438   if test "x$as_myself" = x; then
22439     as_myself=$0
22440   fi
22441   if test ! -f "$as_myself"; then
22442     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22443 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22444    { (exit 1); exit 1; }; }
22445   fi
22446   case $CONFIG_SHELL in
22447   '')
22448     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22449 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22450 do
22451   IFS=$as_save_IFS
22452   test -z "$as_dir" && as_dir=.
22453   for as_base in sh bash ksh sh5; do
22454          case $as_dir in
22455          /*)
22456            if ("$as_dir/$as_base" -c '
22457   as_lineno_1=$LINENO
22458   as_lineno_2=$LINENO
22459   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22460   test "x$as_lineno_1" != "x$as_lineno_2" &&
22461   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
22462              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22463              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22464              CONFIG_SHELL=$as_dir/$as_base
22465              export CONFIG_SHELL
22466              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22467            fi;;
22468          esac
22469        done
22470 done
22471 ;;
22472   esac
22473
22474   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22475   # uniformly replaced by the line number.  The first 'sed' inserts a
22476   # line-number line before each line; the second 'sed' does the real
22477   # work.  The second script uses 'N' to pair each line-number line
22478   # with the numbered line, and appends trailing '-' during
22479   # substitution so that $LINENO is not a special case at line end.
22480   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22481   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
22482   sed '=' <$as_myself |
22483     sed '
22484       N
22485       s,$,-,
22486       : loop
22487       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22488       t loop
22489       s,-$,,
22490       s,^['$as_cr_digits']*\n,,
22491     ' >$as_me.lineno &&
22492   chmod +x $as_me.lineno ||
22493     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22494 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22495    { (exit 1); exit 1; }; }
22496
22497   # Don't try to exec as it changes $[0], causing all sort of problems
22498   # (the dirname of $[0] is not the place where we might find the
22499   # original and so on.  Autoconf is especially sensible to this).
22500   . ./$as_me.lineno
22501   # Exit status is that of the last command.
22502   exit
22503 }
22504
22505
22506 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22507   *c*,-n*) ECHO_N= ECHO_C='
22508 ' ECHO_T='      ' ;;
22509   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22510   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
22511 esac
22512
22513 if expr a : '\(a\)' >/dev/null 2>&1; then
22514   as_expr=expr
22515 else
22516   as_expr=false
22517 fi
22518
22519 rm -f conf$$ conf$$.exe conf$$.file
22520 echo >conf$$.file
22521 if ln -s conf$$.file conf$$ 2>/dev/null; then
22522   # We could just check for DJGPP; but this test a) works b) is more generic
22523   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22524   if test -f conf$$.exe; then
22525     # Don't use ln at all; we don't have any links
22526     as_ln_s='cp -p'
22527   else
22528     as_ln_s='ln -s'
22529   fi
22530 elif ln conf$$.file conf$$ 2>/dev/null; then
22531   as_ln_s=ln
22532 else
22533   as_ln_s='cp -p'
22534 fi
22535 rm -f conf$$ conf$$.exe conf$$.file
22536
22537 if mkdir -p . 2>/dev/null; then
22538   as_mkdir_p=:
22539 else
22540   test -d ./-p && rmdir ./-p
22541   as_mkdir_p=false
22542 fi
22543
22544 as_executable_p="test -f"
22545
22546 # Sed expression to map a string onto a valid CPP name.
22547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22548
22549 # Sed expression to map a string onto a valid variable name.
22550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22551
22552
22553 # IFS
22554 # We need space, tab and new line, in precisely that order.
22555 as_nl='
22556 '
22557 IFS="   $as_nl"
22558
22559 # CDPATH.
22560 $as_unset CDPATH
22561
22562 exec 6>&1
22563
22564 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22565 # report actual input values of CONFIG_FILES etc. instead of their
22566 # values after options handling.  Logging --version etc. is OK.
22567 exec 5>>config.log
22568 {
22569   echo
22570   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22571 ## Running $as_me. ##
22572 _ASBOX
22573 } >&5
22574 cat >&5 <<_CSEOF
22575
22576 This file was extended by GRAS $as_me 0.1, which was
22577 generated by GNU Autoconf 2.58.  Invocation command line was
22578
22579   CONFIG_FILES    = $CONFIG_FILES
22580   CONFIG_HEADERS  = $CONFIG_HEADERS
22581   CONFIG_LINKS    = $CONFIG_LINKS
22582   CONFIG_COMMANDS = $CONFIG_COMMANDS
22583   $ $0 $@
22584
22585 _CSEOF
22586 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22587 echo >&5
22588 _ACEOF
22589
22590 # Files that config.status was made for.
22591 if test -n "$ac_config_files"; then
22592   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22593 fi
22594
22595 if test -n "$ac_config_headers"; then
22596   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22597 fi
22598
22599 if test -n "$ac_config_links"; then
22600   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22601 fi
22602
22603 if test -n "$ac_config_commands"; then
22604   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22605 fi
22606
22607 cat >>$CONFIG_STATUS <<\_ACEOF
22608
22609 ac_cs_usage="\
22610 \`$as_me' instantiates files from templates according to the
22611 current configuration.
22612
22613 Usage: $0 [OPTIONS] [FILE]...
22614
22615   -h, --help       print this help, then exit
22616   -V, --version    print version number, then exit
22617   -q, --quiet      do not print progress messages
22618   -d, --debug      don't remove temporary files
22619       --recheck    update $as_me by reconfiguring in the same conditions
22620   --file=FILE[:TEMPLATE]
22621                    instantiate the configuration file FILE
22622   --header=FILE[:TEMPLATE]
22623                    instantiate the configuration header FILE
22624
22625 Configuration files:
22626 $config_files
22627
22628 Configuration headers:
22629 $config_headers
22630
22631 Configuration commands:
22632 $config_commands
22633
22634 Report bugs to <bug-autoconf@gnu.org>."
22635 _ACEOF
22636
22637 cat >>$CONFIG_STATUS <<_ACEOF
22638 ac_cs_version="\\
22639 GRAS config.status 0.1
22640 configured by $0, generated by GNU Autoconf 2.58,
22641   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22642
22643 Copyright (C) 2003 Free Software Foundation, Inc.
22644 This config.status script is free software; the Free Software Foundation
22645 gives unlimited permission to copy, distribute and modify it."
22646 srcdir=$srcdir
22647 INSTALL="$INSTALL"
22648 _ACEOF
22649
22650 cat >>$CONFIG_STATUS <<\_ACEOF
22651 # If no file are specified by the user, then we need to provide default
22652 # value.  By we need to know if files were specified by the user.
22653 ac_need_defaults=:
22654 while test $# != 0
22655 do
22656   case $1 in
22657   --*=*)
22658     ac_option=`expr "x$1" : 'x\([^=]*\)='`
22659     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22660     ac_shift=:
22661     ;;
22662   -*)
22663     ac_option=$1
22664     ac_optarg=$2
22665     ac_shift=shift
22666     ;;
22667   *) # This is not an option, so the user has probably given explicit
22668      # arguments.
22669      ac_option=$1
22670      ac_need_defaults=false;;
22671   esac
22672
22673   case $ac_option in
22674   # Handling of the options.
22675 _ACEOF
22676 cat >>$CONFIG_STATUS <<\_ACEOF
22677   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22678     ac_cs_recheck=: ;;
22679   --version | --vers* | -V )
22680     echo "$ac_cs_version"; exit 0 ;;
22681   --he | --h)
22682     # Conflict between --help and --header
22683     { { echo "$as_me:$LINENO: error: ambiguous option: $1
22684 Try \`$0 --help' for more information." >&5
22685 echo "$as_me: error: ambiguous option: $1
22686 Try \`$0 --help' for more information." >&2;}
22687    { (exit 1); exit 1; }; };;
22688   --help | --hel | -h )
22689     echo "$ac_cs_usage"; exit 0 ;;
22690   --debug | --d* | -d )
22691     debug=: ;;
22692   --file | --fil | --fi | --f )
22693     $ac_shift
22694     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22695     ac_need_defaults=false;;
22696   --header | --heade | --head | --hea )
22697     $ac_shift
22698     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22699     ac_need_defaults=false;;
22700   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22701   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22702     ac_cs_silent=: ;;
22703
22704   # This is an error.
22705   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22706 Try \`$0 --help' for more information." >&5
22707 echo "$as_me: error: unrecognized option: $1
22708 Try \`$0 --help' for more information." >&2;}
22709    { (exit 1); exit 1; }; } ;;
22710
22711   *) ac_config_targets="$ac_config_targets $1" ;;
22712
22713   esac
22714   shift
22715 done
22716
22717 ac_configure_extra_args=
22718
22719 if $ac_cs_silent; then
22720   exec 6>/dev/null
22721   ac_configure_extra_args="$ac_configure_extra_args --silent"
22722 fi
22723
22724 _ACEOF
22725 cat >>$CONFIG_STATUS <<_ACEOF
22726 if \$ac_cs_recheck; then
22727   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22728   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22729 fi
22730
22731 _ACEOF
22732
22733 cat >>$CONFIG_STATUS <<_ACEOF
22734 #
22735 # INIT-COMMANDS section.
22736 #
22737
22738 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22739
22740 _ACEOF
22741
22742
22743
22744 cat >>$CONFIG_STATUS <<\_ACEOF
22745 for ac_config_target in $ac_config_targets
22746 do
22747   case "$ac_config_target" in
22748   # Handling of arguments.
22749   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22750   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22751   "src/base/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/base/Makefile" ;;
22752   "src/base/Tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/base/Tests/Makefile" ;;
22753   "src/base/Tests/gs_example" ) CONFIG_FILES="$CONFIG_FILES src/base/Tests/gs_example" ;;
22754   "src/modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/modules/Makefile" ;;
22755   "src/examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/Makefile" ;;
22756   "src/examples/ping/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/ping/Makefile" ;;
22757   "src/examples/bandwidth/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/bandwidth/Makefile" ;;
22758   "src/examples/saturate/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/saturate/Makefile" ;;
22759   "src/examples/alnem/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/alnem/Makefile" ;;
22760   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22761   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22762   "src/gras_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/gras_config.h" ;;
22763   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22764 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22765    { (exit 1); exit 1; }; };;
22766   esac
22767 done
22768
22769 # If the user did not use the arguments to specify the items to instantiate,
22770 # then the envvar interface is used.  Set only those that are not.
22771 # We use the long form for the default assignment because of an extremely
22772 # bizarre bug on SunOS 4.1.3.
22773 if $ac_need_defaults; then
22774   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22775   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22776   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22777 fi
22778
22779 # Have a temporary directory for convenience.  Make it in the build tree
22780 # simply because there is no reason to put it here, and in addition,
22781 # creating and moving files from /tmp can sometimes cause problems.
22782 # Create a temporary directory, and hook for its removal unless debugging.
22783 $debug ||
22784 {
22785   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22786   trap '{ (exit 1); exit 1; }' 1 2 13 15
22787 }
22788
22789 # Create a (secure) tmp directory for tmp files.
22790
22791 {
22792   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22793   test -n "$tmp" && test -d "$tmp"
22794 }  ||
22795 {
22796   tmp=./confstat$$-$RANDOM
22797   (umask 077 && mkdir $tmp)
22798 } ||
22799 {
22800    echo "$me: cannot create a temporary directory in ." >&2
22801    { (exit 1); exit 1; }
22802 }
22803
22804 _ACEOF
22805
22806 cat >>$CONFIG_STATUS <<_ACEOF
22807
22808 #
22809 # CONFIG_FILES section.
22810 #
22811
22812 # No need to generate the scripts if there are no CONFIG_FILES.
22813 # This happens for instance when ./config.status config.h
22814 if test -n "\$CONFIG_FILES"; then
22815   # Protect against being on the right side of a sed subst in config.status.
22816   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22817    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22818 s,@SHELL@,$SHELL,;t t
22819 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22820 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22821 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22822 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22823 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22824 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22825 s,@exec_prefix@,$exec_prefix,;t t
22826 s,@prefix@,$prefix,;t t
22827 s,@program_transform_name@,$program_transform_name,;t t
22828 s,@bindir@,$bindir,;t t
22829 s,@sbindir@,$sbindir,;t t
22830 s,@libexecdir@,$libexecdir,;t t
22831 s,@datadir@,$datadir,;t t
22832 s,@sysconfdir@,$sysconfdir,;t t
22833 s,@sharedstatedir@,$sharedstatedir,;t t
22834 s,@localstatedir@,$localstatedir,;t t
22835 s,@libdir@,$libdir,;t t
22836 s,@includedir@,$includedir,;t t
22837 s,@oldincludedir@,$oldincludedir,;t t
22838 s,@infodir@,$infodir,;t t
22839 s,@mandir@,$mandir,;t t
22840 s,@build_alias@,$build_alias,;t t
22841 s,@host_alias@,$host_alias,;t t
22842 s,@target_alias@,$target_alias,;t t
22843 s,@DEFS@,$DEFS,;t t
22844 s,@ECHO_C@,$ECHO_C,;t t
22845 s,@ECHO_N@,$ECHO_N,;t t
22846 s,@ECHO_T@,$ECHO_T,;t t
22847 s,@LIBS@,$LIBS,;t t
22848 s,@subdirs@,$subdirs,;t t
22849 s,@build@,$build,;t t
22850 s,@build_cpu@,$build_cpu,;t t
22851 s,@build_vendor@,$build_vendor,;t t
22852 s,@build_os@,$build_os,;t t
22853 s,@host@,$host,;t t
22854 s,@host_cpu@,$host_cpu,;t t
22855 s,@host_vendor@,$host_vendor,;t t
22856 s,@host_os@,$host_os,;t t
22857 s,@target@,$target,;t t
22858 s,@target_cpu@,$target_cpu,;t t
22859 s,@target_vendor@,$target_vendor,;t t
22860 s,@target_os@,$target_os,;t t
22861 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22862 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22863 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22864 s,@CYGPATH_W@,$CYGPATH_W,;t t
22865 s,@PACKAGE@,$PACKAGE,;t t
22866 s,@VERSION@,$VERSION,;t t
22867 s,@ACLOCAL@,$ACLOCAL,;t t
22868 s,@AUTOCONF@,$AUTOCONF,;t t
22869 s,@AUTOMAKE@,$AUTOMAKE,;t t
22870 s,@AUTOHEADER@,$AUTOHEADER,;t t
22871 s,@MAKEINFO@,$MAKEINFO,;t t
22872 s,@AMTAR@,$AMTAR,;t t
22873 s,@install_sh@,$install_sh,;t t
22874 s,@STRIP@,$STRIP,;t t
22875 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22876 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22877 s,@AWK@,$AWK,;t t
22878 s,@SET_MAKE@,$SET_MAKE,;t t
22879 s,@am__leading_dot@,$am__leading_dot,;t t
22880 s,@CC@,$CC,;t t
22881 s,@CFLAGS@,$CFLAGS,;t t
22882 s,@LDFLAGS@,$LDFLAGS,;t t
22883 s,@CPPFLAGS@,$CPPFLAGS,;t t
22884 s,@ac_ct_CC@,$ac_ct_CC,;t t
22885 s,@EXEEXT@,$EXEEXT,;t t
22886 s,@OBJEXT@,$OBJEXT,;t t
22887 s,@DEPDIR@,$DEPDIR,;t t
22888 s,@am__include@,$am__include,;t t
22889 s,@am__quote@,$am__quote,;t t
22890 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22891 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22892 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22893 s,@CCDEPMODE@,$CCDEPMODE,;t t
22894 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22895 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22896 s,@EGREP@,$EGREP,;t t
22897 s,@LN_S@,$LN_S,;t t
22898 s,@ECHO@,$ECHO,;t t
22899 s,@AR@,$AR,;t t
22900 s,@ac_ct_AR@,$ac_ct_AR,;t t
22901 s,@RANLIB@,$RANLIB,;t t
22902 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22903 s,@CPP@,$CPP,;t t
22904 s,@CXX@,$CXX,;t t
22905 s,@CXXFLAGS@,$CXXFLAGS,;t t
22906 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22907 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22908 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22909 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22910 s,@CXXCPP@,$CXXCPP,;t t
22911 s,@F77@,$F77,;t t
22912 s,@FFLAGS@,$FFLAGS,;t t
22913 s,@ac_ct_F77@,$ac_ct_F77,;t t
22914 s,@LIBTOOL@,$LIBTOOL,;t t
22915 s,@GTKDOC@,$GTKDOC,;t t
22916 s,@HAVE_GTK_DOC_TRUE@,$HAVE_GTK_DOC_TRUE,;t t
22917 s,@HAVE_GTK_DOC_FALSE@,$HAVE_GTK_DOC_FALSE,;t t
22918 s,@HAVE_GTK_DOC@,$HAVE_GTK_DOC,;t t
22919 s,@ENABLE_GTK_DOC_TRUE@,$ENABLE_GTK_DOC_TRUE,;t t
22920 s,@ENABLE_GTK_DOC_FALSE@,$ENABLE_GTK_DOC_FALSE,;t t
22921 s,@FLIBS@,$FLIBS,;t t
22922 s,@LIBOBJS@,$LIBOBJS,;t t
22923 s,@ACI_CACHE_PROG@,$ACI_CACHE_PROG,;t t
22924 s,@aci_module_desc_XML@,$aci_module_desc_XML,;t t
22925 s,@aci_pkg_config_XML@,$aci_pkg_config_XML,;t t
22926 s,@HAVE_XML@,$HAVE_XML,;t t
22927 s,@CFLAGS_XML@,$CFLAGS_XML,;t t
22928 s,@LIBS_XML@,$LIBS_XML,;t t
22929 s,@aci_module_desc_SimGrid@,$aci_module_desc_SimGrid,;t t
22930 s,@aci_pkg_prefix_SimGrid@,$aci_pkg_prefix_SimGrid,;t t
22931 s,@aci_pkg_inc_SimGrid@,$aci_pkg_inc_SimGrid,;t t
22932 s,@aci_pkg_lib_SimGrid@,$aci_pkg_lib_SimGrid,;t t
22933 s,@aci_pkg_extra_SimGrid@,$aci_pkg_extra_SimGrid,;t t
22934 s,@HAVE_SimGrid@,$HAVE_SimGrid,;t t
22935 s,@CFLAGS_SimGrid@,$CFLAGS_SimGrid,;t t
22936 s,@LIBS_SimGrid@,$LIBS_SimGrid,;t t
22937 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22938 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22939 s,@MAINT@,$MAINT,;t t
22940 s,@cflags_set@,$cflags_set,;t t
22941 s,@BASH@,$BASH,;t t
22942 s,@WARNING@,$WARNING,;t t
22943 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22944 CEOF
22945
22946 _ACEOF
22947
22948   cat >>$CONFIG_STATUS <<\_ACEOF
22949   # Split the substitutions into bite-sized pieces for seds with
22950   # small command number limits, like on Digital OSF/1 and HP-UX.
22951   ac_max_sed_lines=48
22952   ac_sed_frag=1 # Number of current file.
22953   ac_beg=1 # First line for current file.
22954   ac_end=$ac_max_sed_lines # Line after last line for current file.
22955   ac_more_lines=:
22956   ac_sed_cmds=
22957   while $ac_more_lines; do
22958     if test $ac_beg -gt 1; then
22959       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22960     else
22961       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22962     fi
22963     if test ! -s $tmp/subs.frag; then
22964       ac_more_lines=false
22965     else
22966       # The purpose of the label and of the branching condition is to
22967       # speed up the sed processing (if there are no `@' at all, there
22968       # is no need to browse any of the substitutions).
22969       # These are the two extra sed commands mentioned above.
22970       (echo ':t
22971   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22972       if test -z "$ac_sed_cmds"; then
22973         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22974       else
22975         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22976       fi
22977       ac_sed_frag=`expr $ac_sed_frag + 1`
22978       ac_beg=$ac_end
22979       ac_end=`expr $ac_end + $ac_max_sed_lines`
22980     fi
22981   done
22982   if test -z "$ac_sed_cmds"; then
22983     ac_sed_cmds=cat
22984   fi
22985 fi # test -n "$CONFIG_FILES"
22986
22987 _ACEOF
22988 cat >>$CONFIG_STATUS <<\_ACEOF
22989 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22990   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22991   case $ac_file in
22992   - | *:- | *:-:* ) # input from stdin
22993         cat >$tmp/stdin
22994         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22995         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22996   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22997         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22998   * )   ac_file_in=$ac_file.in ;;
22999   esac
23000
23001   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23002   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23003 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23004          X"$ac_file" : 'X\(//\)[^/]' \| \
23005          X"$ac_file" : 'X\(//\)$' \| \
23006          X"$ac_file" : 'X\(/\)' \| \
23007          .     : '\(.\)' 2>/dev/null ||
23008 echo X"$ac_file" |
23009     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23010           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23011           /^X\(\/\/\)$/{ s//\1/; q; }
23012           /^X\(\/\).*/{ s//\1/; q; }
23013           s/.*/./; q'`
23014   { if $as_mkdir_p; then
23015     mkdir -p "$ac_dir"
23016   else
23017     as_dir="$ac_dir"
23018     as_dirs=
23019     while test ! -d "$as_dir"; do
23020       as_dirs="$as_dir $as_dirs"
23021       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23022 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23023          X"$as_dir" : 'X\(//\)[^/]' \| \
23024          X"$as_dir" : 'X\(//\)$' \| \
23025          X"$as_dir" : 'X\(/\)' \| \
23026          .     : '\(.\)' 2>/dev/null ||
23027 echo X"$as_dir" |
23028     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23029           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23030           /^X\(\/\/\)$/{ s//\1/; q; }
23031           /^X\(\/\).*/{ s//\1/; q; }
23032           s/.*/./; q'`
23033     done
23034     test ! -n "$as_dirs" || mkdir $as_dirs
23035   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23036 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23037    { (exit 1); exit 1; }; }; }
23038
23039   ac_builddir=.
23040
23041 if test "$ac_dir" != .; then
23042   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23043   # A "../" for each directory in $ac_dir_suffix.
23044   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23045 else
23046   ac_dir_suffix= ac_top_builddir=
23047 fi
23048
23049 case $srcdir in
23050   .)  # No --srcdir option.  We are building in place.
23051     ac_srcdir=.
23052     if test -z "$ac_top_builddir"; then
23053        ac_top_srcdir=.
23054     else
23055        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23056     fi ;;
23057   [\\/]* | ?:[\\/]* )  # Absolute path.
23058     ac_srcdir=$srcdir$ac_dir_suffix;
23059     ac_top_srcdir=$srcdir ;;
23060   *) # Relative path.
23061     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23062     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23063 esac
23064
23065 # Do not use `cd foo && pwd` to compute absolute paths, because
23066 # the directories may not exist.
23067 case `pwd` in
23068 .) ac_abs_builddir="$ac_dir";;
23069 *)
23070   case "$ac_dir" in
23071   .) ac_abs_builddir=`pwd`;;
23072   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23073   *) ac_abs_builddir=`pwd`/"$ac_dir";;
23074   esac;;
23075 esac
23076 case $ac_abs_builddir in
23077 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23078 *)
23079   case ${ac_top_builddir}. in
23080   .) ac_abs_top_builddir=$ac_abs_builddir;;
23081   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23082   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23083   esac;;
23084 esac
23085 case $ac_abs_builddir in
23086 .) ac_abs_srcdir=$ac_srcdir;;
23087 *)
23088   case $ac_srcdir in
23089   .) ac_abs_srcdir=$ac_abs_builddir;;
23090   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23091   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23092   esac;;
23093 esac
23094 case $ac_abs_builddir in
23095 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23096 *)
23097   case $ac_top_srcdir in
23098   .) ac_abs_top_srcdir=$ac_abs_builddir;;
23099   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23100   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23101   esac;;
23102 esac
23103
23104
23105   case $INSTALL in
23106   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23107   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23108   esac
23109
23110   if test x"$ac_file" != x-; then
23111     { echo "$as_me:$LINENO: creating $ac_file" >&5
23112 echo "$as_me: creating $ac_file" >&6;}
23113     rm -f "$ac_file"
23114   fi
23115   # Let's still pretend it is `configure' which instantiates (i.e., don't
23116   # use $as_me), people would be surprised to read:
23117   #    /* config.h.  Generated by config.status.  */
23118   if test x"$ac_file" = x-; then
23119     configure_input=
23120   else
23121     configure_input="$ac_file.  "
23122   fi
23123   configure_input=$configure_input"Generated from `echo $ac_file_in |
23124                                      sed 's,.*/,,'` by configure."
23125
23126   # First look for the input files in the build tree, otherwise in the
23127   # src tree.
23128   ac_file_inputs=`IFS=:
23129     for f in $ac_file_in; do
23130       case $f in
23131       -) echo $tmp/stdin ;;
23132       [\\/$]*)
23133          # Absolute (can't be DOS-style, as IFS=:)
23134          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23135 echo "$as_me: error: cannot find input file: $f" >&2;}
23136    { (exit 1); exit 1; }; }
23137          echo "$f";;
23138       *) # Relative
23139          if test -f "$f"; then
23140            # Build tree
23141            echo "$f"
23142          elif test -f "$srcdir/$f"; then
23143            # Source tree
23144            echo "$srcdir/$f"
23145          else
23146            # /dev/null tree
23147            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23148 echo "$as_me: error: cannot find input file: $f" >&2;}
23149    { (exit 1); exit 1; }; }
23150          fi;;
23151       esac
23152     done` || { (exit 1); exit 1; }
23153 _ACEOF
23154 cat >>$CONFIG_STATUS <<_ACEOF
23155   sed "$ac_vpsub
23156 $extrasub
23157 _ACEOF
23158 cat >>$CONFIG_STATUS <<\_ACEOF
23159 :t
23160 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23161 s,@configure_input@,$configure_input,;t t
23162 s,@srcdir@,$ac_srcdir,;t t
23163 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23164 s,@top_srcdir@,$ac_top_srcdir,;t t
23165 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23166 s,@builddir@,$ac_builddir,;t t
23167 s,@abs_builddir@,$ac_abs_builddir,;t t
23168 s,@top_builddir@,$ac_top_builddir,;t t
23169 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23170 s,@INSTALL@,$ac_INSTALL,;t t
23171 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23172   rm -f $tmp/stdin
23173   if test x"$ac_file" != x-; then
23174     mv $tmp/out $ac_file
23175   else
23176     cat $tmp/out
23177     rm -f $tmp/out
23178   fi
23179
23180   # Run the commands associated with the file.
23181   case $ac_file in
23182     Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
23183      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example ;;
23184     src/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
23185      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example ;;
23186     src/base/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
23187      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example ;;
23188     src/base/Tests/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
23189      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example ;;
23190     src/base/Tests/gs_example ) ( cd src/include ; test -e gras || ln -s . gras )
23191      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example ;;
23192     src/modules/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
23193      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example ;;
23194     src/examples/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
23195      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example ;;
23196     src/examples/ping/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
23197      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example ;;
23198     src/examples/bandwidth/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
23199      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example ;;
23200     src/examples/saturate/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
23201      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example ;;
23202     src/examples/alnem/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
23203      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example ;;
23204     doc/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
23205      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example ;;
23206   esac
23207 done
23208 _ACEOF
23209 cat >>$CONFIG_STATUS <<\_ACEOF
23210
23211 #
23212 # CONFIG_HEADER section.
23213 #
23214
23215 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23216 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23217 #
23218 # ac_d sets the value in "#define NAME VALUE" lines.
23219 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
23220 ac_dB='[         ].*$,\1#\2'
23221 ac_dC=' '
23222 ac_dD=',;t'
23223 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23224 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
23225 ac_uB='$,\1#\2define\3'
23226 ac_uC=' '
23227 ac_uD=',;t'
23228
23229 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23230   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23231   case $ac_file in
23232   - | *:- | *:-:* ) # input from stdin
23233         cat >$tmp/stdin
23234         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23235         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23236   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23237         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23238   * )   ac_file_in=$ac_file.in ;;
23239   esac
23240
23241   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23242 echo "$as_me: creating $ac_file" >&6;}
23243
23244   # First look for the input files in the build tree, otherwise in the
23245   # src tree.
23246   ac_file_inputs=`IFS=:
23247     for f in $ac_file_in; do
23248       case $f in
23249       -) echo $tmp/stdin ;;
23250       [\\/$]*)
23251          # Absolute (can't be DOS-style, as IFS=:)
23252          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23253 echo "$as_me: error: cannot find input file: $f" >&2;}
23254    { (exit 1); exit 1; }; }
23255          # Do quote $f, to prevent DOS paths from being IFS'd.
23256          echo "$f";;
23257       *) # Relative
23258          if test -f "$f"; then
23259            # Build tree
23260            echo "$f"
23261          elif test -f "$srcdir/$f"; then
23262            # Source tree
23263            echo "$srcdir/$f"
23264          else
23265            # /dev/null tree
23266            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23267 echo "$as_me: error: cannot find input file: $f" >&2;}
23268    { (exit 1); exit 1; }; }
23269          fi;;
23270       esac
23271     done` || { (exit 1); exit 1; }
23272   # Remove the trailing spaces.
23273   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
23274
23275 _ACEOF
23276
23277 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23278 # `conftest.undefs', that substitutes the proper values into
23279 # config.h.in to produce config.h.  The first handles `#define'
23280 # templates, and the second `#undef' templates.
23281 # And first: Protect against being on the right side of a sed subst in
23282 # config.status.  Protect against being in an unquoted here document
23283 # in config.status.
23284 rm -f conftest.defines conftest.undefs
23285 # Using a here document instead of a string reduces the quoting nightmare.
23286 # Putting comments in sed scripts is not portable.
23287 #
23288 # `end' is used to avoid that the second main sed command (meant for
23289 # 0-ary CPP macros) applies to n-ary macro definitions.
23290 # See the Autoconf documentation for `clear'.
23291 cat >confdef2sed.sed <<\_ACEOF
23292 s/[\\&,]/\\&/g
23293 s,[\\$`],\\&,g
23294 t clear
23295 : clear
23296 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23297 t end
23298 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23299 : end
23300 _ACEOF
23301 # If some macros were called several times there might be several times
23302 # the same #defines, which is useless.  Nevertheless, we may not want to
23303 # sort them, since we want the *last* AC-DEFINE to be honored.
23304 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23305 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23306 rm -f confdef2sed.sed
23307
23308 # This sed command replaces #undef with comments.  This is necessary, for
23309 # example, in the case of _POSIX_SOURCE, which is predefined and required
23310 # on some systems where configure will not decide to define it.
23311 cat >>conftest.undefs <<\_ACEOF
23312 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23313 _ACEOF
23314
23315 # Break up conftest.defines because some shells have a limit on the size
23316 # of here documents, and old seds have small limits too (100 cmds).
23317 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23318 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23319 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23320 echo '  :' >>$CONFIG_STATUS
23321 rm -f conftest.tail
23322 while grep . conftest.defines >/dev/null
23323 do
23324   # Write a limited-size here document to $tmp/defines.sed.
23325   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23326   # Speed up: don't consider the non `#define' lines.
23327   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
23328   # Work around the forget-to-reset-the-flag bug.
23329   echo 't clr' >>$CONFIG_STATUS
23330   echo ': clr' >>$CONFIG_STATUS
23331   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23332   echo 'CEOF
23333   sed -f $tmp/defines.sed $tmp/in >$tmp/out
23334   rm -f $tmp/in
23335   mv $tmp/out $tmp/in
23336 ' >>$CONFIG_STATUS
23337   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23338   rm -f conftest.defines
23339   mv conftest.tail conftest.defines
23340 done
23341 rm -f conftest.defines
23342 echo '  fi # grep' >>$CONFIG_STATUS
23343 echo >>$CONFIG_STATUS
23344
23345 # Break up conftest.undefs because some shells have a limit on the size
23346 # of here documents, and old seds have small limits too (100 cmds).
23347 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
23348 rm -f conftest.tail
23349 while grep . conftest.undefs >/dev/null
23350 do
23351   # Write a limited-size here document to $tmp/undefs.sed.
23352   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23353   # Speed up: don't consider the non `#undef'
23354   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
23355   # Work around the forget-to-reset-the-flag bug.
23356   echo 't clr' >>$CONFIG_STATUS
23357   echo ': clr' >>$CONFIG_STATUS
23358   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23359   echo 'CEOF
23360   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23361   rm -f $tmp/in
23362   mv $tmp/out $tmp/in
23363 ' >>$CONFIG_STATUS
23364   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23365   rm -f conftest.undefs
23366   mv conftest.tail conftest.undefs
23367 done
23368 rm -f conftest.undefs
23369
23370 cat >>$CONFIG_STATUS <<\_ACEOF
23371   # Let's still pretend it is `configure' which instantiates (i.e., don't
23372   # use $as_me), people would be surprised to read:
23373   #    /* config.h.  Generated by config.status.  */
23374   if test x"$ac_file" = x-; then
23375     echo "/* Generated by configure.  */" >$tmp/config.h
23376   else
23377     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
23378   fi
23379   cat $tmp/in >>$tmp/config.h
23380   rm -f $tmp/in
23381   if test x"$ac_file" != x-; then
23382     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23383       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23384 echo "$as_me: $ac_file is unchanged" >&6;}
23385     else
23386       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23387 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23388          X"$ac_file" : 'X\(//\)[^/]' \| \
23389          X"$ac_file" : 'X\(//\)$' \| \
23390          X"$ac_file" : 'X\(/\)' \| \
23391          .     : '\(.\)' 2>/dev/null ||
23392 echo X"$ac_file" |
23393     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23394           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23395           /^X\(\/\/\)$/{ s//\1/; q; }
23396           /^X\(\/\).*/{ s//\1/; q; }
23397           s/.*/./; q'`
23398       { if $as_mkdir_p; then
23399     mkdir -p "$ac_dir"
23400   else
23401     as_dir="$ac_dir"
23402     as_dirs=
23403     while test ! -d "$as_dir"; do
23404       as_dirs="$as_dir $as_dirs"
23405       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23406 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23407          X"$as_dir" : 'X\(//\)[^/]' \| \
23408          X"$as_dir" : 'X\(//\)$' \| \
23409          X"$as_dir" : 'X\(/\)' \| \
23410          .     : '\(.\)' 2>/dev/null ||
23411 echo X"$as_dir" |
23412     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23413           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23414           /^X\(\/\/\)$/{ s//\1/; q; }
23415           /^X\(\/\).*/{ s//\1/; q; }
23416           s/.*/./; q'`
23417     done
23418     test ! -n "$as_dirs" || mkdir $as_dirs
23419   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23420 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23421    { (exit 1); exit 1; }; }; }
23422
23423       rm -f $ac_file
23424       mv $tmp/config.h $ac_file
23425     fi
23426   else
23427     cat $tmp/config.h
23428     rm -f $tmp/config.h
23429   fi
23430 # Compute $ac_file's index in $config_headers.
23431 _am_stamp_count=1
23432 for _am_header in $config_headers :; do
23433   case $_am_header in
23434     $ac_file | $ac_file:* )
23435       break ;;
23436     * )
23437       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23438   esac
23439 done
23440 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
23441 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23442          X$ac_file : 'X\(//\)[^/]' \| \
23443          X$ac_file : 'X\(//\)$' \| \
23444          X$ac_file : 'X\(/\)' \| \
23445          .     : '\(.\)' 2>/dev/null ||
23446 echo X$ac_file |
23447     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23448           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23449           /^X\(\/\/\)$/{ s//\1/; q; }
23450           /^X\(\/\).*/{ s//\1/; q; }
23451           s/.*/./; q'`/stamp-h$_am_stamp_count
23452 done
23453 _ACEOF
23454 cat >>$CONFIG_STATUS <<\_ACEOF
23455
23456 #
23457 # CONFIG_COMMANDS section.
23458 #
23459 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23460   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23461   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23462   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23463 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23464          X"$ac_dest" : 'X\(//\)[^/]' \| \
23465          X"$ac_dest" : 'X\(//\)$' \| \
23466          X"$ac_dest" : 'X\(/\)' \| \
23467          .     : '\(.\)' 2>/dev/null ||
23468 echo X"$ac_dest" |
23469     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23470           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23471           /^X\(\/\/\)$/{ s//\1/; q; }
23472           /^X\(\/\).*/{ s//\1/; q; }
23473           s/.*/./; q'`
23474   { if $as_mkdir_p; then
23475     mkdir -p "$ac_dir"
23476   else
23477     as_dir="$ac_dir"
23478     as_dirs=
23479     while test ! -d "$as_dir"; do
23480       as_dirs="$as_dir $as_dirs"
23481       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23482 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23483          X"$as_dir" : 'X\(//\)[^/]' \| \
23484          X"$as_dir" : 'X\(//\)$' \| \
23485          X"$as_dir" : 'X\(/\)' \| \
23486          .     : '\(.\)' 2>/dev/null ||
23487 echo X"$as_dir" |
23488     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23489           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23490           /^X\(\/\/\)$/{ s//\1/; q; }
23491           /^X\(\/\).*/{ s//\1/; q; }
23492           s/.*/./; q'`
23493     done
23494     test ! -n "$as_dirs" || mkdir $as_dirs
23495   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23496 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23497    { (exit 1); exit 1; }; }; }
23498
23499   ac_builddir=.
23500
23501 if test "$ac_dir" != .; then
23502   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23503   # A "../" for each directory in $ac_dir_suffix.
23504   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23505 else
23506   ac_dir_suffix= ac_top_builddir=
23507 fi
23508
23509 case $srcdir in
23510   .)  # No --srcdir option.  We are building in place.
23511     ac_srcdir=.
23512     if test -z "$ac_top_builddir"; then
23513        ac_top_srcdir=.
23514     else
23515        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23516     fi ;;
23517   [\\/]* | ?:[\\/]* )  # Absolute path.
23518     ac_srcdir=$srcdir$ac_dir_suffix;
23519     ac_top_srcdir=$srcdir ;;
23520   *) # Relative path.
23521     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23522     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23523 esac
23524
23525 # Do not use `cd foo && pwd` to compute absolute paths, because
23526 # the directories may not exist.
23527 case `pwd` in
23528 .) ac_abs_builddir="$ac_dir";;
23529 *)
23530   case "$ac_dir" in
23531   .) ac_abs_builddir=`pwd`;;
23532   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23533   *) ac_abs_builddir=`pwd`/"$ac_dir";;
23534   esac;;
23535 esac
23536 case $ac_abs_builddir in
23537 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23538 *)
23539   case ${ac_top_builddir}. in
23540   .) ac_abs_top_builddir=$ac_abs_builddir;;
23541   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23542   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23543   esac;;
23544 esac
23545 case $ac_abs_builddir in
23546 .) ac_abs_srcdir=$ac_srcdir;;
23547 *)
23548   case $ac_srcdir in
23549   .) ac_abs_srcdir=$ac_abs_builddir;;
23550   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23551   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23552   esac;;
23553 esac
23554 case $ac_abs_builddir in
23555 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23556 *)
23557   case $ac_top_srcdir in
23558   .) ac_abs_top_srcdir=$ac_abs_builddir;;
23559   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23560   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23561   esac;;
23562 esac
23563
23564
23565   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23566 echo "$as_me: executing $ac_dest commands" >&6;}
23567   case $ac_dest in
23568     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23569   # Strip MF so we end up with the name of the file.
23570   mf=`echo "$mf" | sed -e 's/:.*$//'`
23571   # Check whether this is an Automake generated Makefile or not.
23572   # We used to match only the files named `Makefile.in', but
23573   # some people rename them; so instead we look at the file content.
23574   # Grep'ing the first line is not enough: some people post-process
23575   # each Makefile.in and add a new line on top of each file to say so.
23576   # So let's grep whole file.
23577   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23578     dirpart=`(dirname "$mf") 2>/dev/null ||
23579 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23580          X"$mf" : 'X\(//\)[^/]' \| \
23581          X"$mf" : 'X\(//\)$' \| \
23582          X"$mf" : 'X\(/\)' \| \
23583          .     : '\(.\)' 2>/dev/null ||
23584 echo X"$mf" |
23585     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23586           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23587           /^X\(\/\/\)$/{ s//\1/; q; }
23588           /^X\(\/\).*/{ s//\1/; q; }
23589           s/.*/./; q'`
23590   else
23591     continue
23592   fi
23593   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
23594   # Extract the definition of DEP_FILES from the Makefile without
23595   # running `make'.
23596   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
23597   test -z "$DEPDIR" && continue
23598   # When using ansi2knr, U may be empty or an underscore; expand it
23599   U=`sed -n -e '/^U = / s///p' < "$mf"`
23600   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
23601   # We invoke sed twice because it is the simplest approach to
23602   # changing $(DEPDIR) to its actual value in the expansion.
23603   for file in `sed -n -e '
23604     /^DEP_FILES = .*\\\\$/ {
23605       s/^DEP_FILES = //
23606       :loop
23607         s/\\\\$//
23608         p
23609         n
23610         /\\\\$/ b loop
23611       p
23612     }
23613     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
23614        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23615     # Make sure the directory exists.
23616     test -f "$dirpart/$file" && continue
23617     fdir=`(dirname "$file") 2>/dev/null ||
23618 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23619          X"$file" : 'X\(//\)[^/]' \| \
23620          X"$file" : 'X\(//\)$' \| \
23621          X"$file" : 'X\(/\)' \| \
23622          .     : '\(.\)' 2>/dev/null ||
23623 echo X"$file" |
23624     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23625           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23626           /^X\(\/\/\)$/{ s//\1/; q; }
23627           /^X\(\/\).*/{ s//\1/; q; }
23628           s/.*/./; q'`
23629     { if $as_mkdir_p; then
23630     mkdir -p $dirpart/$fdir
23631   else
23632     as_dir=$dirpart/$fdir
23633     as_dirs=
23634     while test ! -d "$as_dir"; do
23635       as_dirs="$as_dir $as_dirs"
23636       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23637 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23638          X"$as_dir" : 'X\(//\)[^/]' \| \
23639          X"$as_dir" : 'X\(//\)$' \| \
23640          X"$as_dir" : 'X\(/\)' \| \
23641          .     : '\(.\)' 2>/dev/null ||
23642 echo X"$as_dir" |
23643     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23644           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23645           /^X\(\/\/\)$/{ s//\1/; q; }
23646           /^X\(\/\).*/{ s//\1/; q; }
23647           s/.*/./; q'`
23648     done
23649     test ! -n "$as_dirs" || mkdir $as_dirs
23650   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23651 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23652    { (exit 1); exit 1; }; }; }
23653
23654     # echo "creating $dirpart/$file"
23655     echo '# dummy' > "$dirpart/$file"
23656   done
23657 done
23658  ;;
23659   esac
23660 done
23661 _ACEOF
23662
23663 cat >>$CONFIG_STATUS <<\_ACEOF
23664
23665 { (exit 0); exit 0; }
23666 _ACEOF
23667 chmod +x $CONFIG_STATUS
23668 ac_clean_files=$ac_clean_files_save
23669
23670
23671 # configure is writing to config.log, and then calls config.status.
23672 # config.status does its own redirection, appending to config.log.
23673 # Unfortunately, on DOS this fails, as config.log is still kept open
23674 # by configure, so config.status won't be able to write to it; its
23675 # output is simply discarded.  So we exec the FD to /dev/null,
23676 # effectively closing config.log, so it can be properly (re)opened and
23677 # appended to by config.status.  When coming back to configure, we
23678 # need to make the FD available again.
23679 if test "$no_create" != yes; then
23680   ac_cs_success=:
23681   ac_config_status_args=
23682   test "$silent" = yes &&
23683     ac_config_status_args="$ac_config_status_args --quiet"
23684   exec 5>/dev/null
23685   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23686   exec 5>>config.log
23687   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23688   # would make configure fail if this is the last instruction.
23689   $ac_cs_success || { (exit 1); exit 1; }
23690 fi
23691
23692 #
23693 # CONFIG_SUBDIRS section.
23694 #
23695 if test "$no_recursion" != yes; then
23696
23697   # Remove --cache-file and --srcdir arguments so they do not pile up.
23698   ac_sub_configure_args=
23699   ac_prev=
23700   for ac_arg in $ac_configure_args; do
23701     if test -n "$ac_prev"; then
23702       ac_prev=
23703       continue
23704     fi
23705     case $ac_arg in
23706     -cache-file | --cache-file | --cache-fil | --cache-fi \
23707     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23708       ac_prev=cache_file ;;
23709     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23710     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23711     | --c=*)
23712       ;;
23713     --config-cache | -C)
23714       ;;
23715     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23716       ac_prev=srcdir ;;
23717     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23718       ;;
23719     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23720       ac_prev=prefix ;;
23721     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23722       ;;
23723     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23724     esac
23725   done
23726
23727   # Always prepend --prefix to ensure using the same prefix
23728   # in subdir configurations.
23729   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
23730
23731   ac_popdir=`pwd`
23732   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23733
23734     # Do not complain, so a configure script can configure whichever
23735     # parts of a large source tree are present.
23736     test -d $srcdir/$ac_dir || continue
23737
23738     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23739 echo "$as_me: configuring in $ac_dir" >&6;}
23740     { if $as_mkdir_p; then
23741     mkdir -p "$ac_dir"
23742   else
23743     as_dir="$ac_dir"
23744     as_dirs=
23745     while test ! -d "$as_dir"; do
23746       as_dirs="$as_dir $as_dirs"
23747       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23748 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23749          X"$as_dir" : 'X\(//\)[^/]' \| \
23750          X"$as_dir" : 'X\(//\)$' \| \
23751          X"$as_dir" : 'X\(/\)' \| \
23752          .     : '\(.\)' 2>/dev/null ||
23753 echo X"$as_dir" |
23754     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23755           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23756           /^X\(\/\/\)$/{ s//\1/; q; }
23757           /^X\(\/\).*/{ s//\1/; q; }
23758           s/.*/./; q'`
23759     done
23760     test ! -n "$as_dirs" || mkdir $as_dirs
23761   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23762 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23763    { (exit 1); exit 1; }; }; }
23764
23765     ac_builddir=.
23766
23767 if test "$ac_dir" != .; then
23768   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23769   # A "../" for each directory in $ac_dir_suffix.
23770   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23771 else
23772   ac_dir_suffix= ac_top_builddir=
23773 fi
23774
23775 case $srcdir in
23776   .)  # No --srcdir option.  We are building in place.
23777     ac_srcdir=.
23778     if test -z "$ac_top_builddir"; then
23779        ac_top_srcdir=.
23780     else
23781        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23782     fi ;;
23783   [\\/]* | ?:[\\/]* )  # Absolute path.
23784     ac_srcdir=$srcdir$ac_dir_suffix;
23785     ac_top_srcdir=$srcdir ;;
23786   *) # Relative path.
23787     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23788     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23789 esac
23790
23791 # Do not use `cd foo && pwd` to compute absolute paths, because
23792 # the directories may not exist.
23793 case `pwd` in
23794 .) ac_abs_builddir="$ac_dir";;
23795 *)
23796   case "$ac_dir" in
23797   .) ac_abs_builddir=`pwd`;;
23798   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23799   *) ac_abs_builddir=`pwd`/"$ac_dir";;
23800   esac;;
23801 esac
23802 case $ac_abs_builddir in
23803 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23804 *)
23805   case ${ac_top_builddir}. in
23806   .) ac_abs_top_builddir=$ac_abs_builddir;;
23807   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23808   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23809   esac;;
23810 esac
23811 case $ac_abs_builddir in
23812 .) ac_abs_srcdir=$ac_srcdir;;
23813 *)
23814   case $ac_srcdir in
23815   .) ac_abs_srcdir=$ac_abs_builddir;;
23816   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23817   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23818   esac;;
23819 esac
23820 case $ac_abs_builddir in
23821 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23822 *)
23823   case $ac_top_srcdir in
23824   .) ac_abs_top_srcdir=$ac_abs_builddir;;
23825   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23826   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23827   esac;;
23828 esac
23829
23830
23831     cd $ac_dir
23832
23833     # Check for guested configure; otherwise get Cygnus style configure.
23834     if test -f $ac_srcdir/configure.gnu; then
23835       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
23836     elif test -f $ac_srcdir/configure; then
23837       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
23838     elif test -f $ac_srcdir/configure.in; then
23839       ac_sub_configure=$ac_configure
23840     else
23841       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23842 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23843       ac_sub_configure=
23844     fi
23845
23846     # The recursion is here.
23847     if test -n "$ac_sub_configure"; then
23848       # Make the cache file name correct relative to the subdirectory.
23849       case $cache_file in
23850       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23851       *) # Relative path.
23852         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
23853       esac
23854
23855       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23856 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23857       # The eval makes quoting arguments work.
23858       eval $ac_sub_configure $ac_sub_configure_args \
23859            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23860         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23861 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23862    { (exit 1); exit 1; }; }
23863     fi
23864
23865     cd "$ac_popdir"
23866   done
23867 fi
23868
23869
23870 echo "
23871
23872 Configuration of package \`${PACKAGE}':
23873
23874         Compiler:       ${CC}
23875
23876         CFlags:         ${CFLAGS}
23877         LDFlags:        ${LDFLAGS}
23878 "
23879
23880 exit 0;