Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Transport becomes a real module
[simgrid.git] / configure
1 #! /bin/sh
2 # From configure.ac Revision: 1.2 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for GRAS 0.0.040129.
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.0.040129'
428 PACKAGE_STRING='GRAS 0.0.040129'
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 HTML_DIR PKG_CONFIG ENABLE_GTK_DOC_TRUE ENABLE_GTK_DOC_FALSE GTK_DOC_USE_LIBTOOL_TRUE GTK_DOC_USE_LIBTOOL_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.0.040129 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.0.040129:";;
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=no
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-html-dir=PATH    path to installed docs
1057   --with-SimGrid=DIR      root directory of the SimGrid simulator installation
1058   --with-SimGrid-includes=DIR
1059                           specify exact include dir for the SimGrid simulator headers
1060   --with-SimGrid-libraries=DIR
1061                           specify exact library dir for the SimGrid simulator library
1062   --with-SimGrid-extra=ARG
1063                           specify extra args to pass to the linker to get the
1064                           the SimGrid simulator library (with no space. A sed to change "!"
1065                           to " " is run)
1066
1067 Some influential environment variables:
1068   CC          C compiler command
1069   CFLAGS      C compiler flags
1070   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1071               nonstandard directory <lib dir>
1072   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1073               headers in a nonstandard directory <include dir>
1074   CPP         C preprocessor
1075   CXX         C++ compiler command
1076   CXXFLAGS    C++ compiler flags
1077   CXXCPP      C++ preprocessor
1078   F77         Fortran 77 compiler command
1079   FFLAGS      Fortran 77 compiler flags
1080
1081 Use these variables to override the choices made by `configure' or to help
1082 it to find libraries and programs with nonstandard names/locations.
1083
1084 Report bugs to <martin.quinson@ens-lyon.fr>.
1085 _ACEOF
1086 fi
1087
1088 if test "$ac_init_help" = "recursive"; then
1089   # If there are subdirs, report their specific --help.
1090   ac_popdir=`pwd`
1091   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1092     test -d $ac_dir || continue
1093     ac_builddir=.
1094
1095 if test "$ac_dir" != .; then
1096   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1097   # A "../" for each directory in $ac_dir_suffix.
1098   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1099 else
1100   ac_dir_suffix= ac_top_builddir=
1101 fi
1102
1103 case $srcdir in
1104   .)  # No --srcdir option.  We are building in place.
1105     ac_srcdir=.
1106     if test -z "$ac_top_builddir"; then
1107        ac_top_srcdir=.
1108     else
1109        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1110     fi ;;
1111   [\\/]* | ?:[\\/]* )  # Absolute path.
1112     ac_srcdir=$srcdir$ac_dir_suffix;
1113     ac_top_srcdir=$srcdir ;;
1114   *) # Relative path.
1115     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1116     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1117 esac
1118
1119 # Do not use `cd foo && pwd` to compute absolute paths, because
1120 # the directories may not exist.
1121 case `pwd` in
1122 .) ac_abs_builddir="$ac_dir";;
1123 *)
1124   case "$ac_dir" in
1125   .) ac_abs_builddir=`pwd`;;
1126   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1127   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1128   esac;;
1129 esac
1130 case $ac_abs_builddir in
1131 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1132 *)
1133   case ${ac_top_builddir}. in
1134   .) ac_abs_top_builddir=$ac_abs_builddir;;
1135   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1136   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1137   esac;;
1138 esac
1139 case $ac_abs_builddir in
1140 .) ac_abs_srcdir=$ac_srcdir;;
1141 *)
1142   case $ac_srcdir in
1143   .) ac_abs_srcdir=$ac_abs_builddir;;
1144   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1145   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1146   esac;;
1147 esac
1148 case $ac_abs_builddir in
1149 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1150 *)
1151   case $ac_top_srcdir in
1152   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1153   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1154   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1155   esac;;
1156 esac
1157
1158     cd $ac_dir
1159     # Check for guested configure; otherwise get Cygnus style configure.
1160     if test -f $ac_srcdir/configure.gnu; then
1161       echo
1162       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1163     elif test -f $ac_srcdir/configure; then
1164       echo
1165       $SHELL $ac_srcdir/configure  --help=recursive
1166     elif test -f $ac_srcdir/configure.ac ||
1167            test -f $ac_srcdir/configure.in; then
1168       echo
1169       $ac_configure --help
1170     else
1171       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1172     fi
1173     cd "$ac_popdir"
1174   done
1175 fi
1176
1177 test -n "$ac_init_help" && exit 0
1178 if $ac_init_version; then
1179   cat <<\_ACEOF
1180 GRAS configure 0.0.040129
1181 generated by GNU Autoconf 2.59
1182
1183 Copyright (C) 2003 Free Software Foundation, Inc.
1184 This configure script is free software; the Free Software Foundation
1185 gives unlimited permission to copy, distribute and modify it.
1186 _ACEOF
1187   exit 0
1188 fi
1189 exec 5>config.log
1190 cat >&5 <<_ACEOF
1191 This file contains any messages produced by compilers while
1192 running configure, to aid debugging if configure makes a mistake.
1193
1194 It was created by GRAS $as_me 0.0.040129, which was
1195 generated by GNU Autoconf 2.59.  Invocation command line was
1196
1197   $ $0 $@
1198
1199 _ACEOF
1200 {
1201 cat <<_ASUNAME
1202 ## --------- ##
1203 ## Platform. ##
1204 ## --------- ##
1205
1206 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1207 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1208 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1209 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1210 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1211
1212 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1213 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1214
1215 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1216 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1217 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1218 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1219 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1220 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1221 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1222
1223 _ASUNAME
1224
1225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1226 for as_dir in $PATH
1227 do
1228   IFS=$as_save_IFS
1229   test -z "$as_dir" && as_dir=.
1230   echo "PATH: $as_dir"
1231 done
1232
1233 } >&5
1234
1235 cat >&5 <<_ACEOF
1236
1237
1238 ## ----------- ##
1239 ## Core tests. ##
1240 ## ----------- ##
1241
1242 _ACEOF
1243
1244
1245 # Keep a trace of the command line.
1246 # Strip out --no-create and --no-recursion so they do not pile up.
1247 # Strip out --silent because we don't want to record it for future runs.
1248 # Also quote any args containing shell meta-characters.
1249 # Make two passes to allow for proper duplicate-argument suppression.
1250 ac_configure_args=
1251 ac_configure_args0=
1252 ac_configure_args1=
1253 ac_sep=
1254 ac_must_keep_next=false
1255 for ac_pass in 1 2
1256 do
1257   for ac_arg
1258   do
1259     case $ac_arg in
1260     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1261     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1262     | -silent | --silent | --silen | --sile | --sil)
1263       continue ;;
1264     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1265       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1266     esac
1267     case $ac_pass in
1268     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1269     2)
1270       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1271       if test $ac_must_keep_next = true; then
1272         ac_must_keep_next=false # Got value, back to normal.
1273       else
1274         case $ac_arg in
1275           *=* | --config-cache | -C | -disable-* | --disable-* \
1276           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1277           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1278           | -with-* | --with-* | -without-* | --without-* | --x)
1279             case "$ac_configure_args0 " in
1280               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1281             esac
1282             ;;
1283           -* ) ac_must_keep_next=true ;;
1284         esac
1285       fi
1286       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1287       # Get rid of the leading space.
1288       ac_sep=" "
1289       ;;
1290     esac
1291   done
1292 done
1293 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1294 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1295
1296 # When interrupted or exit'd, cleanup temporary files, and complete
1297 # config.log.  We remove comments because anyway the quotes in there
1298 # would cause problems or look ugly.
1299 # WARNING: Be sure not to use single quotes in there, as some shells,
1300 # such as our DU 5.0 friend, will then `close' the trap.
1301 trap 'exit_status=$?
1302   # Save into config.log some information that might help in debugging.
1303   {
1304     echo
1305
1306     cat <<\_ASBOX
1307 ## ---------------- ##
1308 ## Cache variables. ##
1309 ## ---------------- ##
1310 _ASBOX
1311     echo
1312     # The following way of writing the cache mishandles newlines in values,
1313 {
1314   (set) 2>&1 |
1315     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1316     *ac_space=\ *)
1317       sed -n \
1318         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1319           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1320       ;;
1321     *)
1322       sed -n \
1323         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1324       ;;
1325     esac;
1326 }
1327     echo
1328
1329     cat <<\_ASBOX
1330 ## ----------------- ##
1331 ## Output variables. ##
1332 ## ----------------- ##
1333 _ASBOX
1334     echo
1335     for ac_var in $ac_subst_vars
1336     do
1337       eval ac_val=$`echo $ac_var`
1338       echo "$ac_var='"'"'$ac_val'"'"'"
1339     done | sort
1340     echo
1341
1342     if test -n "$ac_subst_files"; then
1343       cat <<\_ASBOX
1344 ## ------------- ##
1345 ## Output files. ##
1346 ## ------------- ##
1347 _ASBOX
1348       echo
1349       for ac_var in $ac_subst_files
1350       do
1351         eval ac_val=$`echo $ac_var`
1352         echo "$ac_var='"'"'$ac_val'"'"'"
1353       done | sort
1354       echo
1355     fi
1356
1357     if test -s confdefs.h; then
1358       cat <<\_ASBOX
1359 ## ----------- ##
1360 ## confdefs.h. ##
1361 ## ----------- ##
1362 _ASBOX
1363       echo
1364       sed "/^$/d" confdefs.h | sort
1365       echo
1366     fi
1367     test "$ac_signal" != 0 &&
1368       echo "$as_me: caught signal $ac_signal"
1369     echo "$as_me: exit $exit_status"
1370   } >&5
1371   rm -f core *.core &&
1372   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1373     exit $exit_status
1374      ' 0
1375 for ac_signal in 1 2 13 15; do
1376   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1377 done
1378 ac_signal=0
1379
1380 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1381 rm -rf conftest* confdefs.h
1382 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1383 echo >confdefs.h
1384
1385 # Predefined preprocessor variables.
1386
1387 cat >>confdefs.h <<_ACEOF
1388 #define PACKAGE_NAME "$PACKAGE_NAME"
1389 _ACEOF
1390
1391
1392 cat >>confdefs.h <<_ACEOF
1393 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1394 _ACEOF
1395
1396
1397 cat >>confdefs.h <<_ACEOF
1398 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1399 _ACEOF
1400
1401
1402 cat >>confdefs.h <<_ACEOF
1403 #define PACKAGE_STRING "$PACKAGE_STRING"
1404 _ACEOF
1405
1406
1407 cat >>confdefs.h <<_ACEOF
1408 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1409 _ACEOF
1410
1411
1412 # Let the site file select an alternate cache file if it wants to.
1413 # Prefer explicitly selected file to automatically selected ones.
1414 if test -z "$CONFIG_SITE"; then
1415   if test "x$prefix" != xNONE; then
1416     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1417   else
1418     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1419   fi
1420 fi
1421 for ac_site_file in $CONFIG_SITE; do
1422   if test -r "$ac_site_file"; then
1423     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1424 echo "$as_me: loading site script $ac_site_file" >&6;}
1425     sed 's/^/| /' "$ac_site_file" >&5
1426     . "$ac_site_file"
1427   fi
1428 done
1429
1430 if test -r "$cache_file"; then
1431   # Some versions of bash will fail to source /dev/null (special
1432   # files actually), so we avoid doing that.
1433   if test -f "$cache_file"; then
1434     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1435 echo "$as_me: loading cache $cache_file" >&6;}
1436     case $cache_file in
1437       [\\/]* | ?:[\\/]* ) . $cache_file;;
1438       *)                      . ./$cache_file;;
1439     esac
1440   fi
1441 else
1442   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1443 echo "$as_me: creating cache $cache_file" >&6;}
1444   >$cache_file
1445 fi
1446
1447 # Check that the precious variables saved in the cache have kept the same
1448 # value.
1449 ac_cache_corrupted=false
1450 for ac_var in `(set) 2>&1 |
1451                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1452   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1453   eval ac_new_set=\$ac_env_${ac_var}_set
1454   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1455   eval ac_new_val="\$ac_env_${ac_var}_value"
1456   case $ac_old_set,$ac_new_set in
1457     set,)
1458       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1459 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1460       ac_cache_corrupted=: ;;
1461     ,set)
1462       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1463 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1464       ac_cache_corrupted=: ;;
1465     ,);;
1466     *)
1467       if test "x$ac_old_val" != "x$ac_new_val"; then
1468         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1469 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1470         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1471 echo "$as_me:   former value:  $ac_old_val" >&2;}
1472         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1473 echo "$as_me:   current value: $ac_new_val" >&2;}
1474         ac_cache_corrupted=:
1475       fi;;
1476   esac
1477   # Pass precious variables to config.status.
1478   if test "$ac_new_set" = set; then
1479     case $ac_new_val in
1480     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1481       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1482     *) ac_arg=$ac_var=$ac_new_val ;;
1483     esac
1484     case " $ac_configure_args " in
1485       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1486       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1487     esac
1488   fi
1489 done
1490 if $ac_cache_corrupted; then
1491   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1492 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1493   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1494 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1495    { (exit 1); exit 1; }; }
1496 fi
1497
1498 ac_ext=c
1499 ac_cpp='$CPP $CPPFLAGS'
1500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1532 ac_aux_dir=
1533 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1534   if test -f $ac_dir/install-sh; then
1535     ac_aux_dir=$ac_dir
1536     ac_install_sh="$ac_aux_dir/install-sh -c"
1537     break
1538   elif test -f $ac_dir/install.sh; then
1539     ac_aux_dir=$ac_dir
1540     ac_install_sh="$ac_aux_dir/install.sh -c"
1541     break
1542   elif test -f $ac_dir/shtool; then
1543     ac_aux_dir=$ac_dir
1544     ac_install_sh="$ac_aux_dir/shtool install -c"
1545     break
1546   fi
1547 done
1548 if test -z "$ac_aux_dir"; then
1549   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1550 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1551    { (exit 1); exit 1; }; }
1552 fi
1553 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1554 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1555 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1556
1557
1558
1559 subdirs="$subdirs src/nws_portability"
1560
1561
1562 # Make sure we can run config.sub.
1563 $ac_config_sub sun4 >/dev/null 2>&1 ||
1564   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1565 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1566    { (exit 1); exit 1; }; }
1567
1568 echo "$as_me:$LINENO: checking build system type" >&5
1569 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1570 if test "${ac_cv_build+set}" = set; then
1571   echo $ECHO_N "(cached) $ECHO_C" >&6
1572 else
1573   ac_cv_build_alias=$build_alias
1574 test -z "$ac_cv_build_alias" &&
1575   ac_cv_build_alias=`$ac_config_guess`
1576 test -z "$ac_cv_build_alias" &&
1577   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1578 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1579    { (exit 1); exit 1; }; }
1580 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1581   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1582 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1583    { (exit 1); exit 1; }; }
1584
1585 fi
1586 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1587 echo "${ECHO_T}$ac_cv_build" >&6
1588 build=$ac_cv_build
1589 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1590 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1591 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1592
1593
1594 echo "$as_me:$LINENO: checking host system type" >&5
1595 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1596 if test "${ac_cv_host+set}" = set; then
1597   echo $ECHO_N "(cached) $ECHO_C" >&6
1598 else
1599   ac_cv_host_alias=$host_alias
1600 test -z "$ac_cv_host_alias" &&
1601   ac_cv_host_alias=$ac_cv_build_alias
1602 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1603   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1604 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1605    { (exit 1); exit 1; }; }
1606
1607 fi
1608 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1609 echo "${ECHO_T}$ac_cv_host" >&6
1610 host=$ac_cv_host
1611 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1612 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1613 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1614
1615
1616 echo "$as_me:$LINENO: checking target system type" >&5
1617 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1618 if test "${ac_cv_target+set}" = set; then
1619   echo $ECHO_N "(cached) $ECHO_C" >&6
1620 else
1621   ac_cv_target_alias=$target_alias
1622 test "x$ac_cv_target_alias" = "x" &&
1623   ac_cv_target_alias=$ac_cv_host_alias
1624 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1625   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1626 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1627    { (exit 1); exit 1; }; }
1628
1629 fi
1630 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1631 echo "${ECHO_T}$ac_cv_target" >&6
1632 target=$ac_cv_target
1633 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1634 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1635 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1636
1637
1638 # The aliases save the names the user supplied, while $host etc.
1639 # will get canonicalized.
1640 test -n "$target_alias" &&
1641   test "$program_prefix$program_suffix$program_transform_name" = \
1642     NONENONEs,x,x, &&
1643   program_prefix=${target_alias}-
1644 ac_ext=c
1645 ac_cpp='$CPP $CPPFLAGS'
1646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1649
1650
1651           ac_config_headers="$ac_config_headers src/gras_config.h"
1652
1653 am__api_version="1.7"
1654 # Find a good install program.  We prefer a C program (faster),
1655 # so one script is as good as another.  But avoid the broken or
1656 # incompatible versions:
1657 # SysV /etc/install, /usr/sbin/install
1658 # SunOS /usr/etc/install
1659 # IRIX /sbin/install
1660 # AIX /bin/install
1661 # AmigaOS /C/install, which installs bootblocks on floppy discs
1662 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1663 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1664 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1665 # OS/2's system install, which has a completely different semantic
1666 # ./install, which can be erroneously created by make from ./install.sh.
1667 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1668 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1669 if test -z "$INSTALL"; then
1670 if test "${ac_cv_path_install+set}" = set; then
1671   echo $ECHO_N "(cached) $ECHO_C" >&6
1672 else
1673   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1674 for as_dir in $PATH
1675 do
1676   IFS=$as_save_IFS
1677   test -z "$as_dir" && as_dir=.
1678   # Account for people who put trailing slashes in PATH elements.
1679 case $as_dir/ in
1680   ./ | .// | /cC/* | \
1681   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1682   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1683   /usr/ucb/* ) ;;
1684   *)
1685     # OSF1 and SCO ODT 3.0 have their own names for install.
1686     # Don't use installbsd from OSF since it installs stuff as root
1687     # by default.
1688     for ac_prog in ginstall scoinst install; do
1689       for ac_exec_ext in '' $ac_executable_extensions; do
1690         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1691           if test $ac_prog = install &&
1692             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1693             # AIX install.  It has an incompatible calling convention.
1694             :
1695           elif test $ac_prog = install &&
1696             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1697             # program-specific install script used by HP pwplus--don't use.
1698             :
1699           else
1700             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1701             break 3
1702           fi
1703         fi
1704       done
1705     done
1706     ;;
1707 esac
1708 done
1709
1710
1711 fi
1712   if test "${ac_cv_path_install+set}" = set; then
1713     INSTALL=$ac_cv_path_install
1714   else
1715     # As a last resort, use the slow shell script.  We don't cache a
1716     # path for INSTALL within a source directory, because that will
1717     # break other packages using the cache if that directory is
1718     # removed, or if the path is relative.
1719     INSTALL=$ac_install_sh
1720   fi
1721 fi
1722 echo "$as_me:$LINENO: result: $INSTALL" >&5
1723 echo "${ECHO_T}$INSTALL" >&6
1724
1725 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1726 # It thinks the first close brace ends the variable substitution.
1727 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1728
1729 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1730
1731 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1732
1733 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1734 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1735 # Just in case
1736 sleep 1
1737 echo timestamp > conftest.file
1738 # Do `set' in a subshell so we don't clobber the current shell's
1739 # arguments.  Must try -L first in case configure is actually a
1740 # symlink; some systems play weird games with the mod time of symlinks
1741 # (eg FreeBSD returns the mod time of the symlink's containing
1742 # directory).
1743 if (
1744    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1745    if test "$*" = "X"; then
1746       # -L didn't work.
1747       set X `ls -t $srcdir/configure conftest.file`
1748    fi
1749    rm -f conftest.file
1750    if test "$*" != "X $srcdir/configure conftest.file" \
1751       && test "$*" != "X conftest.file $srcdir/configure"; then
1752
1753       # If neither matched, then we have a broken ls.  This can happen
1754       # if, for instance, CONFIG_SHELL is bash and it inherits a
1755       # broken ls alias from the environment.  This has actually
1756       # happened.  Such a system could not be considered "sane".
1757       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1758 alias in your environment" >&5
1759 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1760 alias in your environment" >&2;}
1761    { (exit 1); exit 1; }; }
1762    fi
1763
1764    test "$2" = conftest.file
1765    )
1766 then
1767    # Ok.
1768    :
1769 else
1770    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1771 Check your system clock" >&5
1772 echo "$as_me: error: newly created file is older than distributed files!
1773 Check your system clock" >&2;}
1774    { (exit 1); exit 1; }; }
1775 fi
1776 echo "$as_me:$LINENO: result: yes" >&5
1777 echo "${ECHO_T}yes" >&6
1778 test "$program_prefix" != NONE &&
1779   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1780 # Use a double $ so make ignores it.
1781 test "$program_suffix" != NONE &&
1782   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1783 # Double any \ or $.  echo might interpret backslashes.
1784 # By default was `s,x,x', remove it if useless.
1785 cat <<\_ACEOF >conftest.sed
1786 s/[\\$]/&&/g;s/;s,x,x,$//
1787 _ACEOF
1788 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1789 rm conftest.sed
1790
1791
1792 # expand $ac_aux_dir to an absolute path
1793 am_aux_dir=`cd $ac_aux_dir && pwd`
1794
1795 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1796 # Use eval to expand $SHELL
1797 if eval "$MISSING --run true"; then
1798   am_missing_run="$MISSING --run "
1799 else
1800   am_missing_run=
1801   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1802 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1803 fi
1804
1805 for ac_prog in gawk mawk nawk awk
1806 do
1807   # Extract the first word of "$ac_prog", so it can be a program name with args.
1808 set dummy $ac_prog; ac_word=$2
1809 echo "$as_me:$LINENO: checking for $ac_word" >&5
1810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1811 if test "${ac_cv_prog_AWK+set}" = set; then
1812   echo $ECHO_N "(cached) $ECHO_C" >&6
1813 else
1814   if test -n "$AWK"; then
1815   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1816 else
1817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1818 for as_dir in $PATH
1819 do
1820   IFS=$as_save_IFS
1821   test -z "$as_dir" && as_dir=.
1822   for ac_exec_ext in '' $ac_executable_extensions; do
1823   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1824     ac_cv_prog_AWK="$ac_prog"
1825     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1826     break 2
1827   fi
1828 done
1829 done
1830
1831 fi
1832 fi
1833 AWK=$ac_cv_prog_AWK
1834 if test -n "$AWK"; then
1835   echo "$as_me:$LINENO: result: $AWK" >&5
1836 echo "${ECHO_T}$AWK" >&6
1837 else
1838   echo "$as_me:$LINENO: result: no" >&5
1839 echo "${ECHO_T}no" >&6
1840 fi
1841
1842   test -n "$AWK" && break
1843 done
1844
1845 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1846 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1847 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1848 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1849   echo $ECHO_N "(cached) $ECHO_C" >&6
1850 else
1851   cat >conftest.make <<\_ACEOF
1852 all:
1853         @echo 'ac_maketemp="$(MAKE)"'
1854 _ACEOF
1855 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1856 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1857 if test -n "$ac_maketemp"; then
1858   eval ac_cv_prog_make_${ac_make}_set=yes
1859 else
1860   eval ac_cv_prog_make_${ac_make}_set=no
1861 fi
1862 rm -f conftest.make
1863 fi
1864 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1865   echo "$as_me:$LINENO: result: yes" >&5
1866 echo "${ECHO_T}yes" >&6
1867   SET_MAKE=
1868 else
1869   echo "$as_me:$LINENO: result: no" >&5
1870 echo "${ECHO_T}no" >&6
1871   SET_MAKE="MAKE=${MAKE-make}"
1872 fi
1873
1874 rm -rf .tst 2>/dev/null
1875 mkdir .tst 2>/dev/null
1876 if test -d .tst; then
1877   am__leading_dot=.
1878 else
1879   am__leading_dot=_
1880 fi
1881 rmdir .tst 2>/dev/null
1882
1883  # test to see if srcdir already configured
1884 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1885    test -f $srcdir/config.status; then
1886   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1887 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1888    { (exit 1); exit 1; }; }
1889 fi
1890
1891 # test whether we have cygpath
1892 if test -z "$CYGPATH_W"; then
1893   if (cygpath --version) >/dev/null 2>/dev/null; then
1894     CYGPATH_W='cygpath -w'
1895   else
1896     CYGPATH_W=echo
1897   fi
1898 fi
1899
1900
1901 # Define the identity of the package.
1902  PACKAGE='gras'
1903  VERSION='0.0.040129'
1904
1905
1906 cat >>confdefs.h <<_ACEOF
1907 #define PACKAGE "$PACKAGE"
1908 _ACEOF
1909
1910
1911 cat >>confdefs.h <<_ACEOF
1912 #define VERSION "$VERSION"
1913 _ACEOF
1914
1915 # Some tools Automake needs.
1916
1917 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1918
1919
1920 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1921
1922
1923 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1924
1925
1926 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1927
1928
1929 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1930
1931
1932 AMTAR=${AMTAR-"${am_missing_run}tar"}
1933
1934 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1935
1936 # Installed binaries are usually stripped using `strip' when the user
1937 # run `make install-strip'.  However `strip' might not be the right
1938 # tool to use in cross-compilation environments, therefore Automake
1939 # will honor the `STRIP' environment variable to overrule this program.
1940 if test "$cross_compiling" != no; then
1941   if test -n "$ac_tool_prefix"; then
1942   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1943 set dummy ${ac_tool_prefix}strip; ac_word=$2
1944 echo "$as_me:$LINENO: checking for $ac_word" >&5
1945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1946 if test "${ac_cv_prog_STRIP+set}" = set; then
1947   echo $ECHO_N "(cached) $ECHO_C" >&6
1948 else
1949   if test -n "$STRIP"; then
1950   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1951 else
1952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1953 for as_dir in $PATH
1954 do
1955   IFS=$as_save_IFS
1956   test -z "$as_dir" && as_dir=.
1957   for ac_exec_ext in '' $ac_executable_extensions; do
1958   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1959     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1960     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1961     break 2
1962   fi
1963 done
1964 done
1965
1966 fi
1967 fi
1968 STRIP=$ac_cv_prog_STRIP
1969 if test -n "$STRIP"; then
1970   echo "$as_me:$LINENO: result: $STRIP" >&5
1971 echo "${ECHO_T}$STRIP" >&6
1972 else
1973   echo "$as_me:$LINENO: result: no" >&5
1974 echo "${ECHO_T}no" >&6
1975 fi
1976
1977 fi
1978 if test -z "$ac_cv_prog_STRIP"; then
1979   ac_ct_STRIP=$STRIP
1980   # Extract the first word of "strip", so it can be a program name with args.
1981 set dummy strip; ac_word=$2
1982 echo "$as_me:$LINENO: checking for $ac_word" >&5
1983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1984 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1985   echo $ECHO_N "(cached) $ECHO_C" >&6
1986 else
1987   if test -n "$ac_ct_STRIP"; then
1988   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1989 else
1990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1991 for as_dir in $PATH
1992 do
1993   IFS=$as_save_IFS
1994   test -z "$as_dir" && as_dir=.
1995   for ac_exec_ext in '' $ac_executable_extensions; do
1996   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1997     ac_cv_prog_ac_ct_STRIP="strip"
1998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1999     break 2
2000   fi
2001 done
2002 done
2003
2004   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2005 fi
2006 fi
2007 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2008 if test -n "$ac_ct_STRIP"; then
2009   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2010 echo "${ECHO_T}$ac_ct_STRIP" >&6
2011 else
2012   echo "$as_me:$LINENO: result: no" >&5
2013 echo "${ECHO_T}no" >&6
2014 fi
2015
2016   STRIP=$ac_ct_STRIP
2017 else
2018   STRIP="$ac_cv_prog_STRIP"
2019 fi
2020
2021 fi
2022 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2023
2024 # We need awk for the "check" target.  The system "awk" is bad on
2025 # some platforms.
2026
2027
2028
2029
2030 # Check whether --enable-shared or --disable-shared was given.
2031 if test "${enable_shared+set}" = set; then
2032   enableval="$enable_shared"
2033   p=${PACKAGE-default}
2034     case $enableval in
2035     yes) enable_shared=yes ;;
2036     no) enable_shared=no ;;
2037     *)
2038       enable_shared=no
2039       # Look at the argument we got.  We use all the common list separators.
2040       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2041       for pkg in $enableval; do
2042         IFS="$lt_save_ifs"
2043         if test "X$pkg" = "X$p"; then
2044           enable_shared=yes
2045         fi
2046       done
2047       IFS="$lt_save_ifs"
2048       ;;
2049     esac
2050 else
2051   enable_shared=yes
2052 fi;
2053
2054 # Check whether --enable-static or --disable-static was given.
2055 if test "${enable_static+set}" = set; then
2056   enableval="$enable_static"
2057   p=${PACKAGE-default}
2058     case $enableval in
2059     yes) enable_static=yes ;;
2060     no) enable_static=no ;;
2061     *)
2062      enable_static=no
2063       # Look at the argument we got.  We use all the common list separators.
2064       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2065       for pkg in $enableval; do
2066         IFS="$lt_save_ifs"
2067         if test "X$pkg" = "X$p"; then
2068           enable_static=yes
2069         fi
2070       done
2071       IFS="$lt_save_ifs"
2072       ;;
2073     esac
2074 else
2075   enable_static=yes
2076 fi;
2077
2078 # Check whether --enable-fast-install or --disable-fast-install was given.
2079 if test "${enable_fast_install+set}" = set; then
2080   enableval="$enable_fast_install"
2081   p=${PACKAGE-default}
2082     case $enableval in
2083     yes) enable_fast_install=yes ;;
2084     no) enable_fast_install=no ;;
2085     *)
2086       enable_fast_install=no
2087       # Look at the argument we got.  We use all the common list separators.
2088       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2089       for pkg in $enableval; do
2090         IFS="$lt_save_ifs"
2091         if test "X$pkg" = "X$p"; then
2092           enable_fast_install=yes
2093         fi
2094       done
2095       IFS="$lt_save_ifs"
2096       ;;
2097     esac
2098 else
2099   enable_fast_install=yes
2100 fi;
2101
2102 DEPDIR="${am__leading_dot}deps"
2103
2104           ac_config_commands="$ac_config_commands depfiles"
2105
2106
2107 am_make=${MAKE-make}
2108 cat > confinc << 'END'
2109 am__doit:
2110         @echo done
2111 .PHONY: am__doit
2112 END
2113 # If we don't find an include directive, just comment out the code.
2114 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2115 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2116 am__include="#"
2117 am__quote=
2118 _am_result=none
2119 # First try GNU make style include.
2120 echo "include confinc" > confmf
2121 # We grep out `Entering directory' and `Leaving directory'
2122 # messages which can occur if `w' ends up in MAKEFLAGS.
2123 # In particular we don't look at `^make:' because GNU make might
2124 # be invoked under some other name (usually "gmake"), in which
2125 # case it prints its new name instead of `make'.
2126 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2127    am__include=include
2128    am__quote=
2129    _am_result=GNU
2130 fi
2131 # Now try BSD make style include.
2132 if test "$am__include" = "#"; then
2133    echo '.include "confinc"' > confmf
2134    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2135       am__include=.include
2136       am__quote="\""
2137       _am_result=BSD
2138    fi
2139 fi
2140
2141
2142 echo "$as_me:$LINENO: result: $_am_result" >&5
2143 echo "${ECHO_T}$_am_result" >&6
2144 rm -f confinc confmf
2145
2146 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2147 if test "${enable_dependency_tracking+set}" = set; then
2148   enableval="$enable_dependency_tracking"
2149
2150 fi;
2151 if test "x$enable_dependency_tracking" != xno; then
2152   am_depcomp="$ac_aux_dir/depcomp"
2153   AMDEPBACKSLASH='\'
2154 fi
2155
2156
2157 if test "x$enable_dependency_tracking" != xno; then
2158   AMDEP_TRUE=
2159   AMDEP_FALSE='#'
2160 else
2161   AMDEP_TRUE='#'
2162   AMDEP_FALSE=
2163 fi
2164
2165
2166
2167 ac_ext=c
2168 ac_cpp='$CPP $CPPFLAGS'
2169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2172 if test -n "$ac_tool_prefix"; then
2173   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2174 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2175 echo "$as_me:$LINENO: checking for $ac_word" >&5
2176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2177 if test "${ac_cv_prog_CC+set}" = set; then
2178   echo $ECHO_N "(cached) $ECHO_C" >&6
2179 else
2180   if test -n "$CC"; then
2181   ac_cv_prog_CC="$CC" # Let the user override the test.
2182 else
2183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2184 for as_dir in $PATH
2185 do
2186   IFS=$as_save_IFS
2187   test -z "$as_dir" && as_dir=.
2188   for ac_exec_ext in '' $ac_executable_extensions; do
2189   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2190     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2192     break 2
2193   fi
2194 done
2195 done
2196
2197 fi
2198 fi
2199 CC=$ac_cv_prog_CC
2200 if test -n "$CC"; then
2201   echo "$as_me:$LINENO: result: $CC" >&5
2202 echo "${ECHO_T}$CC" >&6
2203 else
2204   echo "$as_me:$LINENO: result: no" >&5
2205 echo "${ECHO_T}no" >&6
2206 fi
2207
2208 fi
2209 if test -z "$ac_cv_prog_CC"; then
2210   ac_ct_CC=$CC
2211   # Extract the first word of "gcc", so it can be a program name with args.
2212 set dummy gcc; ac_word=$2
2213 echo "$as_me:$LINENO: checking for $ac_word" >&5
2214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2215 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2216   echo $ECHO_N "(cached) $ECHO_C" >&6
2217 else
2218   if test -n "$ac_ct_CC"; then
2219   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2220 else
2221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2222 for as_dir in $PATH
2223 do
2224   IFS=$as_save_IFS
2225   test -z "$as_dir" && as_dir=.
2226   for ac_exec_ext in '' $ac_executable_extensions; do
2227   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2228     ac_cv_prog_ac_ct_CC="gcc"
2229     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2230     break 2
2231   fi
2232 done
2233 done
2234
2235 fi
2236 fi
2237 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2238 if test -n "$ac_ct_CC"; then
2239   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2240 echo "${ECHO_T}$ac_ct_CC" >&6
2241 else
2242   echo "$as_me:$LINENO: result: no" >&5
2243 echo "${ECHO_T}no" >&6
2244 fi
2245
2246   CC=$ac_ct_CC
2247 else
2248   CC="$ac_cv_prog_CC"
2249 fi
2250
2251 if test -z "$CC"; then
2252   if test -n "$ac_tool_prefix"; then
2253   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2254 set dummy ${ac_tool_prefix}cc; ac_word=$2
2255 echo "$as_me:$LINENO: checking for $ac_word" >&5
2256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2257 if test "${ac_cv_prog_CC+set}" = set; then
2258   echo $ECHO_N "(cached) $ECHO_C" >&6
2259 else
2260   if test -n "$CC"; then
2261   ac_cv_prog_CC="$CC" # Let the user override the test.
2262 else
2263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2264 for as_dir in $PATH
2265 do
2266   IFS=$as_save_IFS
2267   test -z "$as_dir" && as_dir=.
2268   for ac_exec_ext in '' $ac_executable_extensions; do
2269   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2270     ac_cv_prog_CC="${ac_tool_prefix}cc"
2271     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2272     break 2
2273   fi
2274 done
2275 done
2276
2277 fi
2278 fi
2279 CC=$ac_cv_prog_CC
2280 if test -n "$CC"; then
2281   echo "$as_me:$LINENO: result: $CC" >&5
2282 echo "${ECHO_T}$CC" >&6
2283 else
2284   echo "$as_me:$LINENO: result: no" >&5
2285 echo "${ECHO_T}no" >&6
2286 fi
2287
2288 fi
2289 if test -z "$ac_cv_prog_CC"; then
2290   ac_ct_CC=$CC
2291   # Extract the first word of "cc", so it can be a program name with args.
2292 set dummy cc; ac_word=$2
2293 echo "$as_me:$LINENO: checking for $ac_word" >&5
2294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2295 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2296   echo $ECHO_N "(cached) $ECHO_C" >&6
2297 else
2298   if test -n "$ac_ct_CC"; then
2299   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2300 else
2301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2302 for as_dir in $PATH
2303 do
2304   IFS=$as_save_IFS
2305   test -z "$as_dir" && as_dir=.
2306   for ac_exec_ext in '' $ac_executable_extensions; do
2307   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2308     ac_cv_prog_ac_ct_CC="cc"
2309     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2310     break 2
2311   fi
2312 done
2313 done
2314
2315 fi
2316 fi
2317 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2318 if test -n "$ac_ct_CC"; then
2319   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2320 echo "${ECHO_T}$ac_ct_CC" >&6
2321 else
2322   echo "$as_me:$LINENO: result: no" >&5
2323 echo "${ECHO_T}no" >&6
2324 fi
2325
2326   CC=$ac_ct_CC
2327 else
2328   CC="$ac_cv_prog_CC"
2329 fi
2330
2331 fi
2332 if test -z "$CC"; then
2333   # Extract the first word of "cc", so it can be a program name with args.
2334 set dummy cc; ac_word=$2
2335 echo "$as_me:$LINENO: checking for $ac_word" >&5
2336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2337 if test "${ac_cv_prog_CC+set}" = set; then
2338   echo $ECHO_N "(cached) $ECHO_C" >&6
2339 else
2340   if test -n "$CC"; then
2341   ac_cv_prog_CC="$CC" # Let the user override the test.
2342 else
2343   ac_prog_rejected=no
2344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345 for as_dir in $PATH
2346 do
2347   IFS=$as_save_IFS
2348   test -z "$as_dir" && as_dir=.
2349   for ac_exec_ext in '' $ac_executable_extensions; do
2350   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2351     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2352        ac_prog_rejected=yes
2353        continue
2354      fi
2355     ac_cv_prog_CC="cc"
2356     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2357     break 2
2358   fi
2359 done
2360 done
2361
2362 if test $ac_prog_rejected = yes; then
2363   # We found a bogon in the path, so make sure we never use it.
2364   set dummy $ac_cv_prog_CC
2365   shift
2366   if test $# != 0; then
2367     # We chose a different compiler from the bogus one.
2368     # However, it has the same basename, so the bogon will be chosen
2369     # first if we set CC to just the basename; use the full file name.
2370     shift
2371     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2372   fi
2373 fi
2374 fi
2375 fi
2376 CC=$ac_cv_prog_CC
2377 if test -n "$CC"; then
2378   echo "$as_me:$LINENO: result: $CC" >&5
2379 echo "${ECHO_T}$CC" >&6
2380 else
2381   echo "$as_me:$LINENO: result: no" >&5
2382 echo "${ECHO_T}no" >&6
2383 fi
2384
2385 fi
2386 if test -z "$CC"; then
2387   if test -n "$ac_tool_prefix"; then
2388   for ac_prog in cl
2389   do
2390     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2391 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2392 echo "$as_me:$LINENO: checking for $ac_word" >&5
2393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2394 if test "${ac_cv_prog_CC+set}" = set; then
2395   echo $ECHO_N "(cached) $ECHO_C" >&6
2396 else
2397   if test -n "$CC"; then
2398   ac_cv_prog_CC="$CC" # Let the user override the test.
2399 else
2400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2401 for as_dir in $PATH
2402 do
2403   IFS=$as_save_IFS
2404   test -z "$as_dir" && as_dir=.
2405   for ac_exec_ext in '' $ac_executable_extensions; do
2406   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2407     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2408     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2409     break 2
2410   fi
2411 done
2412 done
2413
2414 fi
2415 fi
2416 CC=$ac_cv_prog_CC
2417 if test -n "$CC"; then
2418   echo "$as_me:$LINENO: result: $CC" >&5
2419 echo "${ECHO_T}$CC" >&6
2420 else
2421   echo "$as_me:$LINENO: result: no" >&5
2422 echo "${ECHO_T}no" >&6
2423 fi
2424
2425     test -n "$CC" && break
2426   done
2427 fi
2428 if test -z "$CC"; then
2429   ac_ct_CC=$CC
2430   for ac_prog in cl
2431 do
2432   # Extract the first word of "$ac_prog", so it can be a program name with args.
2433 set dummy $ac_prog; ac_word=$2
2434 echo "$as_me:$LINENO: checking for $ac_word" >&5
2435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2436 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2437   echo $ECHO_N "(cached) $ECHO_C" >&6
2438 else
2439   if test -n "$ac_ct_CC"; then
2440   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2441 else
2442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443 for as_dir in $PATH
2444 do
2445   IFS=$as_save_IFS
2446   test -z "$as_dir" && as_dir=.
2447   for ac_exec_ext in '' $ac_executable_extensions; do
2448   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2449     ac_cv_prog_ac_ct_CC="$ac_prog"
2450     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2451     break 2
2452   fi
2453 done
2454 done
2455
2456 fi
2457 fi
2458 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2459 if test -n "$ac_ct_CC"; then
2460   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2461 echo "${ECHO_T}$ac_ct_CC" >&6
2462 else
2463   echo "$as_me:$LINENO: result: no" >&5
2464 echo "${ECHO_T}no" >&6
2465 fi
2466
2467   test -n "$ac_ct_CC" && break
2468 done
2469
2470   CC=$ac_ct_CC
2471 fi
2472
2473 fi
2474
2475
2476 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2477 See \`config.log' for more details." >&5
2478 echo "$as_me: error: no acceptable C compiler found in \$PATH
2479 See \`config.log' for more details." >&2;}
2480    { (exit 1); exit 1; }; }
2481
2482 # Provide some information about the compiler.
2483 echo "$as_me:$LINENO:" \
2484      "checking for C compiler version" >&5
2485 ac_compiler=`set X $ac_compile; echo $2`
2486 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2487   (eval $ac_compiler --version </dev/null >&5) 2>&5
2488   ac_status=$?
2489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490   (exit $ac_status); }
2491 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2492   (eval $ac_compiler -v </dev/null >&5) 2>&5
2493   ac_status=$?
2494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495   (exit $ac_status); }
2496 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2497   (eval $ac_compiler -V </dev/null >&5) 2>&5
2498   ac_status=$?
2499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500   (exit $ac_status); }
2501
2502 cat >conftest.$ac_ext <<_ACEOF
2503 /* confdefs.h.  */
2504 _ACEOF
2505 cat confdefs.h >>conftest.$ac_ext
2506 cat >>conftest.$ac_ext <<_ACEOF
2507 /* end confdefs.h.  */
2508
2509 int
2510 main ()
2511 {
2512
2513   ;
2514   return 0;
2515 }
2516 _ACEOF
2517 ac_clean_files_save=$ac_clean_files
2518 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2519 # Try to create an executable without -o first, disregard a.out.
2520 # It will help us diagnose broken compilers, and finding out an intuition
2521 # of exeext.
2522 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2523 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2524 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2525 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2526   (eval $ac_link_default) 2>&5
2527   ac_status=$?
2528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529   (exit $ac_status); }; then
2530   # Find the output, starting from the most likely.  This scheme is
2531 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2532 # resort.
2533
2534 # Be careful to initialize this variable, since it used to be cached.
2535 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2536 ac_cv_exeext=
2537 # b.out is created by i960 compilers.
2538 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2539 do
2540   test -f "$ac_file" || continue
2541   case $ac_file in
2542     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2543         ;;
2544     conftest.$ac_ext )
2545         # This is the source file.
2546         ;;
2547     [ab].out )
2548         # We found the default executable, but exeext='' is most
2549         # certainly right.
2550         break;;
2551     *.* )
2552         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2553         # FIXME: I believe we export ac_cv_exeext for Libtool,
2554         # but it would be cool to find out if it's true.  Does anybody
2555         # maintain Libtool? --akim.
2556         export ac_cv_exeext
2557         break;;
2558     * )
2559         break;;
2560   esac
2561 done
2562 else
2563   echo "$as_me: failed program was:" >&5
2564 sed 's/^/| /' conftest.$ac_ext >&5
2565
2566 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2567 See \`config.log' for more details." >&5
2568 echo "$as_me: error: C compiler cannot create executables
2569 See \`config.log' for more details." >&2;}
2570    { (exit 77); exit 77; }; }
2571 fi
2572
2573 ac_exeext=$ac_cv_exeext
2574 echo "$as_me:$LINENO: result: $ac_file" >&5
2575 echo "${ECHO_T}$ac_file" >&6
2576
2577 # Check the compiler produces executables we can run.  If not, either
2578 # the compiler is broken, or we cross compile.
2579 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2580 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2581 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2582 # If not cross compiling, check that we can run a simple program.
2583 if test "$cross_compiling" != yes; then
2584   if { ac_try='./$ac_file'
2585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2586   (eval $ac_try) 2>&5
2587   ac_status=$?
2588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589   (exit $ac_status); }; }; then
2590     cross_compiling=no
2591   else
2592     if test "$cross_compiling" = maybe; then
2593         cross_compiling=yes
2594     else
2595         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2596 If you meant to cross compile, use \`--host'.
2597 See \`config.log' for more details." >&5
2598 echo "$as_me: error: cannot run C compiled programs.
2599 If you meant to cross compile, use \`--host'.
2600 See \`config.log' for more details." >&2;}
2601    { (exit 1); exit 1; }; }
2602     fi
2603   fi
2604 fi
2605 echo "$as_me:$LINENO: result: yes" >&5
2606 echo "${ECHO_T}yes" >&6
2607
2608 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2609 ac_clean_files=$ac_clean_files_save
2610 # Check the compiler produces executables we can run.  If not, either
2611 # the compiler is broken, or we cross compile.
2612 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2613 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2614 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2615 echo "${ECHO_T}$cross_compiling" >&6
2616
2617 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2618 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2620   (eval $ac_link) 2>&5
2621   ac_status=$?
2622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623   (exit $ac_status); }; then
2624   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2625 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2626 # work properly (i.e., refer to `conftest.exe'), while it won't with
2627 # `rm'.
2628 for ac_file in conftest.exe conftest conftest.*; do
2629   test -f "$ac_file" || continue
2630   case $ac_file in
2631     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2632     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2633           export ac_cv_exeext
2634           break;;
2635     * ) break;;
2636   esac
2637 done
2638 else
2639   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2640 See \`config.log' for more details." >&5
2641 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2642 See \`config.log' for more details." >&2;}
2643    { (exit 1); exit 1; }; }
2644 fi
2645
2646 rm -f conftest$ac_cv_exeext
2647 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2648 echo "${ECHO_T}$ac_cv_exeext" >&6
2649
2650 rm -f conftest.$ac_ext
2651 EXEEXT=$ac_cv_exeext
2652 ac_exeext=$EXEEXT
2653 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2654 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2655 if test "${ac_cv_objext+set}" = set; then
2656   echo $ECHO_N "(cached) $ECHO_C" >&6
2657 else
2658   cat >conftest.$ac_ext <<_ACEOF
2659 /* confdefs.h.  */
2660 _ACEOF
2661 cat confdefs.h >>conftest.$ac_ext
2662 cat >>conftest.$ac_ext <<_ACEOF
2663 /* end confdefs.h.  */
2664
2665 int
2666 main ()
2667 {
2668
2669   ;
2670   return 0;
2671 }
2672 _ACEOF
2673 rm -f conftest.o conftest.obj
2674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2675   (eval $ac_compile) 2>&5
2676   ac_status=$?
2677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678   (exit $ac_status); }; then
2679   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2680   case $ac_file in
2681     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2682     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2683        break;;
2684   esac
2685 done
2686 else
2687   echo "$as_me: failed program was:" >&5
2688 sed 's/^/| /' conftest.$ac_ext >&5
2689
2690 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2691 See \`config.log' for more details." >&5
2692 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2693 See \`config.log' for more details." >&2;}
2694    { (exit 1); exit 1; }; }
2695 fi
2696
2697 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2698 fi
2699 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2700 echo "${ECHO_T}$ac_cv_objext" >&6
2701 OBJEXT=$ac_cv_objext
2702 ac_objext=$OBJEXT
2703 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2704 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2705 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2706   echo $ECHO_N "(cached) $ECHO_C" >&6
2707 else
2708   cat >conftest.$ac_ext <<_ACEOF
2709 /* confdefs.h.  */
2710 _ACEOF
2711 cat confdefs.h >>conftest.$ac_ext
2712 cat >>conftest.$ac_ext <<_ACEOF
2713 /* end confdefs.h.  */
2714
2715 int
2716 main ()
2717 {
2718 #ifndef __GNUC__
2719        choke me
2720 #endif
2721
2722   ;
2723   return 0;
2724 }
2725 _ACEOF
2726 rm -f conftest.$ac_objext
2727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2728   (eval $ac_compile) 2>conftest.er1
2729   ac_status=$?
2730   grep -v '^ *+' conftest.er1 >conftest.err
2731   rm -f conftest.er1
2732   cat conftest.err >&5
2733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734   (exit $ac_status); } &&
2735          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737   (eval $ac_try) 2>&5
2738   ac_status=$?
2739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740   (exit $ac_status); }; } &&
2741          { ac_try='test -s conftest.$ac_objext'
2742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743   (eval $ac_try) 2>&5
2744   ac_status=$?
2745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746   (exit $ac_status); }; }; then
2747   ac_compiler_gnu=yes
2748 else
2749   echo "$as_me: failed program was:" >&5
2750 sed 's/^/| /' conftest.$ac_ext >&5
2751
2752 ac_compiler_gnu=no
2753 fi
2754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2755 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2756
2757 fi
2758 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2759 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2760 GCC=`test $ac_compiler_gnu = yes && echo yes`
2761 ac_test_CFLAGS=${CFLAGS+set}
2762 ac_save_CFLAGS=$CFLAGS
2763 CFLAGS="-g"
2764 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2765 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2766 if test "${ac_cv_prog_cc_g+set}" = set; then
2767   echo $ECHO_N "(cached) $ECHO_C" >&6
2768 else
2769   cat >conftest.$ac_ext <<_ACEOF
2770 /* confdefs.h.  */
2771 _ACEOF
2772 cat confdefs.h >>conftest.$ac_ext
2773 cat >>conftest.$ac_ext <<_ACEOF
2774 /* end confdefs.h.  */
2775
2776 int
2777 main ()
2778 {
2779
2780   ;
2781   return 0;
2782 }
2783 _ACEOF
2784 rm -f conftest.$ac_objext
2785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2786   (eval $ac_compile) 2>conftest.er1
2787   ac_status=$?
2788   grep -v '^ *+' conftest.er1 >conftest.err
2789   rm -f conftest.er1
2790   cat conftest.err >&5
2791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792   (exit $ac_status); } &&
2793          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795   (eval $ac_try) 2>&5
2796   ac_status=$?
2797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798   (exit $ac_status); }; } &&
2799          { ac_try='test -s conftest.$ac_objext'
2800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801   (eval $ac_try) 2>&5
2802   ac_status=$?
2803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804   (exit $ac_status); }; }; then
2805   ac_cv_prog_cc_g=yes
2806 else
2807   echo "$as_me: failed program was:" >&5
2808 sed 's/^/| /' conftest.$ac_ext >&5
2809
2810 ac_cv_prog_cc_g=no
2811 fi
2812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2813 fi
2814 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2815 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2816 if test "$ac_test_CFLAGS" = set; then
2817   CFLAGS=$ac_save_CFLAGS
2818 elif test $ac_cv_prog_cc_g = yes; then
2819   if test "$GCC" = yes; then
2820     CFLAGS="-g -O2"
2821   else
2822     CFLAGS="-g"
2823   fi
2824 else
2825   if test "$GCC" = yes; then
2826     CFLAGS="-O2"
2827   else
2828     CFLAGS=
2829   fi
2830 fi
2831 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2832 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2833 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2834   echo $ECHO_N "(cached) $ECHO_C" >&6
2835 else
2836   ac_cv_prog_cc_stdc=no
2837 ac_save_CC=$CC
2838 cat >conftest.$ac_ext <<_ACEOF
2839 /* confdefs.h.  */
2840 _ACEOF
2841 cat confdefs.h >>conftest.$ac_ext
2842 cat >>conftest.$ac_ext <<_ACEOF
2843 /* end confdefs.h.  */
2844 #include <stdarg.h>
2845 #include <stdio.h>
2846 #include <sys/types.h>
2847 #include <sys/stat.h>
2848 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2849 struct buf { int x; };
2850 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2851 static char *e (p, i)
2852      char **p;
2853      int i;
2854 {
2855   return p[i];
2856 }
2857 static char *f (char * (*g) (char **, int), char **p, ...)
2858 {
2859   char *s;
2860   va_list v;
2861   va_start (v,p);
2862   s = g (p, va_arg (v,int));
2863   va_end (v);
2864   return s;
2865 }
2866
2867 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2868    function prototypes and stuff, but not '\xHH' hex character constants.
2869    These don't provoke an error unfortunately, instead are silently treated
2870    as 'x'.  The following induces an error, until -std1 is added to get
2871    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2872    array size at least.  It's necessary to write '\x00'==0 to get something
2873    that's true only with -std1.  */
2874 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2875
2876 int test (int i, double x);
2877 struct s1 {int (*f) (int a);};
2878 struct s2 {int (*f) (double a);};
2879 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2880 int argc;
2881 char **argv;
2882 int
2883 main ()
2884 {
2885 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2886   ;
2887   return 0;
2888 }
2889 _ACEOF
2890 # Don't try gcc -ansi; that turns off useful extensions and
2891 # breaks some systems' header files.
2892 # AIX                   -qlanglvl=ansi
2893 # Ultrix and OSF/1      -std1
2894 # HP-UX 10.20 and later -Ae
2895 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2896 # SVR4                  -Xc -D__EXTENSIONS__
2897 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2898 do
2899   CC="$ac_save_CC $ac_arg"
2900   rm -f conftest.$ac_objext
2901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2902   (eval $ac_compile) 2>conftest.er1
2903   ac_status=$?
2904   grep -v '^ *+' conftest.er1 >conftest.err
2905   rm -f conftest.er1
2906   cat conftest.err >&5
2907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908   (exit $ac_status); } &&
2909          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2911   (eval $ac_try) 2>&5
2912   ac_status=$?
2913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914   (exit $ac_status); }; } &&
2915          { ac_try='test -s conftest.$ac_objext'
2916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2917   (eval $ac_try) 2>&5
2918   ac_status=$?
2919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920   (exit $ac_status); }; }; then
2921   ac_cv_prog_cc_stdc=$ac_arg
2922 break
2923 else
2924   echo "$as_me: failed program was:" >&5
2925 sed 's/^/| /' conftest.$ac_ext >&5
2926
2927 fi
2928 rm -f conftest.err conftest.$ac_objext
2929 done
2930 rm -f conftest.$ac_ext conftest.$ac_objext
2931 CC=$ac_save_CC
2932
2933 fi
2934
2935 case "x$ac_cv_prog_cc_stdc" in
2936   x|xno)
2937     echo "$as_me:$LINENO: result: none needed" >&5
2938 echo "${ECHO_T}none needed" >&6 ;;
2939   *)
2940     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2941 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2942     CC="$CC $ac_cv_prog_cc_stdc" ;;
2943 esac
2944
2945 # Some people use a C++ compiler to compile C.  Since we use `exit',
2946 # in C++ we need to declare it.  In case someone uses the same compiler
2947 # for both compiling C and C++ we need to have the C++ compiler decide
2948 # the declaration of exit, since it's the most demanding environment.
2949 cat >conftest.$ac_ext <<_ACEOF
2950 #ifndef __cplusplus
2951   choke me
2952 #endif
2953 _ACEOF
2954 rm -f conftest.$ac_objext
2955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2956   (eval $ac_compile) 2>conftest.er1
2957   ac_status=$?
2958   grep -v '^ *+' conftest.er1 >conftest.err
2959   rm -f conftest.er1
2960   cat conftest.err >&5
2961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962   (exit $ac_status); } &&
2963          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2965   (eval $ac_try) 2>&5
2966   ac_status=$?
2967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968   (exit $ac_status); }; } &&
2969          { ac_try='test -s conftest.$ac_objext'
2970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2971   (eval $ac_try) 2>&5
2972   ac_status=$?
2973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974   (exit $ac_status); }; }; then
2975   for ac_declaration in \
2976    '' \
2977    'extern "C" void std::exit (int) throw (); using std::exit;' \
2978    'extern "C" void std::exit (int); using std::exit;' \
2979    'extern "C" void exit (int) throw ();' \
2980    'extern "C" void exit (int);' \
2981    'void exit (int);'
2982 do
2983   cat >conftest.$ac_ext <<_ACEOF
2984 /* confdefs.h.  */
2985 _ACEOF
2986 cat confdefs.h >>conftest.$ac_ext
2987 cat >>conftest.$ac_ext <<_ACEOF
2988 /* end confdefs.h.  */
2989 $ac_declaration
2990 #include <stdlib.h>
2991 int
2992 main ()
2993 {
2994 exit (42);
2995   ;
2996   return 0;
2997 }
2998 _ACEOF
2999 rm -f conftest.$ac_objext
3000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3001   (eval $ac_compile) 2>conftest.er1
3002   ac_status=$?
3003   grep -v '^ *+' conftest.er1 >conftest.err
3004   rm -f conftest.er1
3005   cat conftest.err >&5
3006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007   (exit $ac_status); } &&
3008          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3010   (eval $ac_try) 2>&5
3011   ac_status=$?
3012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013   (exit $ac_status); }; } &&
3014          { ac_try='test -s conftest.$ac_objext'
3015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3016   (eval $ac_try) 2>&5
3017   ac_status=$?
3018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019   (exit $ac_status); }; }; then
3020   :
3021 else
3022   echo "$as_me: failed program was:" >&5
3023 sed 's/^/| /' conftest.$ac_ext >&5
3024
3025 continue
3026 fi
3027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3028   cat >conftest.$ac_ext <<_ACEOF
3029 /* confdefs.h.  */
3030 _ACEOF
3031 cat confdefs.h >>conftest.$ac_ext
3032 cat >>conftest.$ac_ext <<_ACEOF
3033 /* end confdefs.h.  */
3034 $ac_declaration
3035 int
3036 main ()
3037 {
3038 exit (42);
3039   ;
3040   return 0;
3041 }
3042 _ACEOF
3043 rm -f conftest.$ac_objext
3044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3045   (eval $ac_compile) 2>conftest.er1
3046   ac_status=$?
3047   grep -v '^ *+' conftest.er1 >conftest.err
3048   rm -f conftest.er1
3049   cat conftest.err >&5
3050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051   (exit $ac_status); } &&
3052          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3054   (eval $ac_try) 2>&5
3055   ac_status=$?
3056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057   (exit $ac_status); }; } &&
3058          { ac_try='test -s conftest.$ac_objext'
3059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3060   (eval $ac_try) 2>&5
3061   ac_status=$?
3062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063   (exit $ac_status); }; }; then
3064   break
3065 else
3066   echo "$as_me: failed program was:" >&5
3067 sed 's/^/| /' conftest.$ac_ext >&5
3068
3069 fi
3070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3071 done
3072 rm -f conftest*
3073 if test -n "$ac_declaration"; then
3074   echo '#ifdef __cplusplus' >>confdefs.h
3075   echo $ac_declaration      >>confdefs.h
3076   echo '#endif'             >>confdefs.h
3077 fi
3078
3079 else
3080   echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3082
3083 fi
3084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3085 ac_ext=c
3086 ac_cpp='$CPP $CPPFLAGS'
3087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3090
3091 depcc="$CC"   am_compiler_list=
3092
3093 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3094 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3095 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3096   echo $ECHO_N "(cached) $ECHO_C" >&6
3097 else
3098   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3099   # We make a subdir and do the tests there.  Otherwise we can end up
3100   # making bogus files that we don't know about and never remove.  For
3101   # instance it was reported that on HP-UX the gcc test will end up
3102   # making a dummy file named `D' -- because `-MD' means `put the output
3103   # in D'.
3104   mkdir conftest.dir
3105   # Copy depcomp to subdir because otherwise we won't find it if we're
3106   # using a relative directory.
3107   cp "$am_depcomp" conftest.dir
3108   cd conftest.dir
3109   # We will build objects and dependencies in a subdirectory because
3110   # it helps to detect inapplicable dependency modes.  For instance
3111   # both Tru64's cc and ICC support -MD to output dependencies as a
3112   # side effect of compilation, but ICC will put the dependencies in
3113   # the current directory while Tru64 will put them in the object
3114   # directory.
3115   mkdir sub
3116
3117   am_cv_CC_dependencies_compiler_type=none
3118   if test "$am_compiler_list" = ""; then
3119      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3120   fi
3121   for depmode in $am_compiler_list; do
3122     # Setup a source with many dependencies, because some compilers
3123     # like to wrap large dependency lists on column 80 (with \), and
3124     # we should not choose a depcomp mode which is confused by this.
3125     #
3126     # We need to recreate these files for each test, as the compiler may
3127     # overwrite some of them when testing with obscure command lines.
3128     # This happens at least with the AIX C compiler.
3129     : > sub/conftest.c
3130     for i in 1 2 3 4 5 6; do
3131       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3132       : > sub/conftst$i.h
3133     done
3134     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3135
3136     case $depmode in
3137     nosideeffect)
3138       # after this tag, mechanisms are not by side-effect, so they'll
3139       # only be used when explicitly requested
3140       if test "x$enable_dependency_tracking" = xyes; then
3141         continue
3142       else
3143         break
3144       fi
3145       ;;
3146     none) break ;;
3147     esac
3148     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3149     # mode.  It turns out that the SunPro C++ compiler does not properly
3150     # handle `-M -o', and we need to detect this.
3151     if depmode=$depmode \
3152        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3153        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3154        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3155          >/dev/null 2>conftest.err &&
3156        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3157        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3158        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3159       # icc doesn't choke on unknown options, it will just issue warnings
3160       # (even with -Werror).  So we grep stderr for any message
3161       # that says an option was ignored.
3162       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3163         am_cv_CC_dependencies_compiler_type=$depmode
3164         break
3165       fi
3166     fi
3167   done
3168
3169   cd ..
3170   rm -rf conftest.dir
3171 else
3172   am_cv_CC_dependencies_compiler_type=none
3173 fi
3174
3175 fi
3176 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3177 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3178 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3179
3180
3181
3182 if
3183   test "x$enable_dependency_tracking" != xno \
3184   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3185   am__fastdepCC_TRUE=
3186   am__fastdepCC_FALSE='#'
3187 else
3188   am__fastdepCC_TRUE='#'
3189   am__fastdepCC_FALSE=
3190 fi
3191
3192
3193 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3194 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3195 if test "${lt_cv_path_SED+set}" = set; then
3196   echo $ECHO_N "(cached) $ECHO_C" >&6
3197 else
3198   # Loop through the user's path and test for sed and gsed.
3199 # Then use that list of sed's as ones to test for truncation.
3200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201 for as_dir in $PATH
3202 do
3203   IFS=$as_save_IFS
3204   test -z "$as_dir" && as_dir=.
3205   for lt_ac_prog in sed gsed; do
3206     for ac_exec_ext in '' $ac_executable_extensions; do
3207       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3208         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3209       fi
3210     done
3211   done
3212 done
3213 lt_ac_max=0
3214 lt_ac_count=0
3215 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3216 # along with /bin/sed that truncates output.
3217 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3218   test ! -f $lt_ac_sed && break
3219   cat /dev/null > conftest.in
3220   lt_ac_count=0
3221   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3222   # Check for GNU sed and select it if it is found.
3223   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3224     lt_cv_path_SED=$lt_ac_sed
3225     break
3226   fi
3227   while true; do
3228     cat conftest.in conftest.in >conftest.tmp
3229     mv conftest.tmp conftest.in
3230     cp conftest.in conftest.nl
3231     echo >>conftest.nl
3232     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3233     cmp -s conftest.out conftest.nl || break
3234     # 10000 chars as input seems more than enough
3235     test $lt_ac_count -gt 10 && break
3236     lt_ac_count=`expr $lt_ac_count + 1`
3237     if test $lt_ac_count -gt $lt_ac_max; then
3238       lt_ac_max=$lt_ac_count
3239       lt_cv_path_SED=$lt_ac_sed
3240     fi
3241   done
3242 done
3243 SED=$lt_cv_path_SED
3244
3245 fi
3246
3247 echo "$as_me:$LINENO: result: $SED" >&5
3248 echo "${ECHO_T}$SED" >&6
3249
3250 echo "$as_me:$LINENO: checking for egrep" >&5
3251 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3252 if test "${ac_cv_prog_egrep+set}" = set; then
3253   echo $ECHO_N "(cached) $ECHO_C" >&6
3254 else
3255   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3256     then ac_cv_prog_egrep='grep -E'
3257     else ac_cv_prog_egrep='egrep'
3258     fi
3259 fi
3260 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3261 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3262  EGREP=$ac_cv_prog_egrep
3263
3264
3265
3266 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3267 if test "${with_gnu_ld+set}" = set; then
3268   withval="$with_gnu_ld"
3269   test "$withval" = no || with_gnu_ld=yes
3270 else
3271   with_gnu_ld=no
3272 fi;
3273 ac_prog=ld
3274 if test "$GCC" = yes; then
3275   # Check if gcc -print-prog-name=ld gives a path.
3276   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3277 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3278   case $host in
3279   *-*-mingw*)
3280     # gcc leaves a trailing carriage return which upsets mingw
3281     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3282   *)
3283     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3284   esac
3285   case $ac_prog in
3286     # Accept absolute paths.
3287     [\\/]* | ?:[\\/]*)
3288       re_direlt='/[^/][^/]*/\.\./'
3289       # Canonicalize the pathname of ld
3290       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3291       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3292         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3293       done
3294       test -z "$LD" && LD="$ac_prog"
3295       ;;
3296   "")
3297     # If it fails, then pretend we aren't using GCC.
3298     ac_prog=ld
3299     ;;
3300   *)
3301     # If it is relative, then search for the first ld in PATH.
3302     with_gnu_ld=unknown
3303     ;;
3304   esac
3305 elif test "$with_gnu_ld" = yes; then
3306   echo "$as_me:$LINENO: checking for GNU ld" >&5
3307 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3308 else
3309   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3310 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3311 fi
3312 if test "${lt_cv_path_LD+set}" = set; then
3313   echo $ECHO_N "(cached) $ECHO_C" >&6
3314 else
3315   if test -z "$LD"; then
3316   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3317   for ac_dir in $PATH; do
3318     IFS="$lt_save_ifs"
3319     test -z "$ac_dir" && ac_dir=.
3320     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3321       lt_cv_path_LD="$ac_dir/$ac_prog"
3322       # Check to see if the program is GNU ld.  I'd rather use --version,
3323       # but apparently some GNU ld's only accept -v.
3324       # Break only if it was the GNU/non-GNU ld that we prefer.
3325       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3326       *GNU* | *'with BFD'*)
3327         test "$with_gnu_ld" != no && break
3328         ;;
3329       *)
3330         test "$with_gnu_ld" != yes && break
3331         ;;
3332       esac
3333     fi
3334   done
3335   IFS="$lt_save_ifs"
3336 else
3337   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3338 fi
3339 fi
3340
3341 LD="$lt_cv_path_LD"
3342 if test -n "$LD"; then
3343   echo "$as_me:$LINENO: result: $LD" >&5
3344 echo "${ECHO_T}$LD" >&6
3345 else
3346   echo "$as_me:$LINENO: result: no" >&5
3347 echo "${ECHO_T}no" >&6
3348 fi
3349 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3350 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3351    { (exit 1); exit 1; }; }
3352 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3353 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3354 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3355   echo $ECHO_N "(cached) $ECHO_C" >&6
3356 else
3357   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3358 case `$LD -v 2>&1 </dev/null` in
3359 *GNU* | *'with BFD'*)
3360   lt_cv_prog_gnu_ld=yes
3361   ;;
3362 *)
3363   lt_cv_prog_gnu_ld=no
3364   ;;
3365 esac
3366 fi
3367 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3368 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3369 with_gnu_ld=$lt_cv_prog_gnu_ld
3370
3371
3372 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3373 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3374 if test "${lt_cv_ld_reload_flag+set}" = set; then
3375   echo $ECHO_N "(cached) $ECHO_C" >&6
3376 else
3377   lt_cv_ld_reload_flag='-r'
3378 fi
3379 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3380 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3381 reload_flag=$lt_cv_ld_reload_flag
3382 case $reload_flag in
3383 "" | " "*) ;;
3384 *) reload_flag=" $reload_flag" ;;
3385 esac
3386 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3387
3388 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3389 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3390 if test "${lt_cv_path_NM+set}" = set; then
3391   echo $ECHO_N "(cached) $ECHO_C" >&6
3392 else
3393   if test -n "$NM"; then
3394   # Let the user override the test.
3395   lt_cv_path_NM="$NM"
3396 else
3397   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3398   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3399     IFS="$lt_save_ifs"
3400     test -z "$ac_dir" && ac_dir=.
3401     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3402     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3403       # Check to see if the nm accepts a BSD-compat flag.
3404       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3405       #   nm: unknown option "B" ignored
3406       # Tru64's nm complains that /dev/null is an invalid object file
3407       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3408       */dev/null* | *'Invalid file or object type'*)
3409         lt_cv_path_NM="$tmp_nm -B"
3410         break
3411         ;;
3412       *)
3413         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3414         */dev/null*)
3415           lt_cv_path_NM="$tmp_nm -p"
3416           break
3417           ;;
3418         *)
3419           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3420           continue # so that we can try to find one that supports BSD flags
3421           ;;
3422         esac
3423       esac
3424     fi
3425   done
3426   IFS="$lt_save_ifs"
3427   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3428 fi
3429 fi
3430 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3431 echo "${ECHO_T}$lt_cv_path_NM" >&6
3432 NM="$lt_cv_path_NM"
3433
3434 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3435 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3436 LN_S=$as_ln_s
3437 if test "$LN_S" = "ln -s"; then
3438   echo "$as_me:$LINENO: result: yes" >&5
3439 echo "${ECHO_T}yes" >&6
3440 else
3441   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3442 echo "${ECHO_T}no, using $LN_S" >&6
3443 fi
3444
3445 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3446 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3447 if test "${lt_cv_deplibs_check_method+set}" = set; then
3448   echo $ECHO_N "(cached) $ECHO_C" >&6
3449 else
3450   lt_cv_file_magic_cmd='$MAGIC_CMD'
3451 lt_cv_file_magic_test_file=
3452 lt_cv_deplibs_check_method='unknown'
3453 # Need to set the preceding variable on all platforms that support
3454 # interlibrary dependencies.
3455 # 'none' -- dependencies not supported.
3456 # `unknown' -- same as none, but documents that we really don't know.
3457 # 'pass_all' -- all dependencies passed with no checks.
3458 # 'test_compile' -- check by making test program.
3459 # 'file_magic [[regex]]' -- check by looking for files in library path
3460 # which responds to the $file_magic_cmd with a given extended regex.
3461 # If you have `file' or equivalent on your system and you're not sure
3462 # whether `pass_all' will *always* work, you probably want this one.
3463
3464 case $host_os in
3465 aix4* | aix5*)
3466   lt_cv_deplibs_check_method=pass_all
3467   ;;
3468
3469 beos*)
3470   lt_cv_deplibs_check_method=pass_all
3471   ;;
3472
3473 bsdi4*)
3474   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3475   lt_cv_file_magic_cmd='/usr/bin/file -L'
3476   lt_cv_file_magic_test_file=/shlib/libc.so
3477   ;;
3478
3479 cygwin*)
3480   # win32_libid is a shell function defined in ltmain.sh
3481   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3482   lt_cv_file_magic_cmd='win32_libid'
3483   ;;
3484
3485 mingw* | pw32*)
3486   # Base MSYS/MinGW do not provide the 'file' command needed by
3487   # win32_libid shell function, so use a weaker test based on 'objdump'.
3488   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3489   lt_cv_file_magic_cmd='$OBJDUMP -f'
3490   ;;
3491
3492 darwin* | rhapsody*)
3493   lt_cv_deplibs_check_method=pass_all
3494   ;;
3495
3496 freebsd* | kfreebsd*-gnu)
3497   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3498     case $host_cpu in
3499     i*86 )
3500       # Not sure whether the presence of OpenBSD here was a mistake.
3501       # Let's accept both of them until this is cleared up.
3502       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3503       lt_cv_file_magic_cmd=/usr/bin/file
3504       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3505       ;;
3506     esac
3507   else
3508     lt_cv_deplibs_check_method=pass_all
3509   fi
3510   ;;
3511
3512 gnu*)
3513   lt_cv_deplibs_check_method=pass_all
3514   ;;
3515
3516 hpux10.20* | hpux11*)
3517   lt_cv_file_magic_cmd=/usr/bin/file
3518   case "$host_cpu" in
3519   ia64*)
3520     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3521     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3522     ;;
3523   hppa*64*)
3524     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]'
3525     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3526     ;;
3527   *)
3528     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3529     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3530     ;;
3531   esac
3532   ;;
3533
3534 irix5* | irix6* | nonstopux*)
3535   case $LD in
3536   *-32|*"-32 ") libmagic=32-bit;;
3537   *-n32|*"-n32 ") libmagic=N32;;
3538   *-64|*"-64 ") libmagic=64-bit;;
3539   *) libmagic=never-match;;
3540   esac
3541   lt_cv_deplibs_check_method=pass_all
3542   ;;
3543
3544 # This must be Linux ELF.
3545 linux*)
3546   lt_cv_deplibs_check_method=pass_all
3547   ;;
3548
3549 netbsd*)
3550   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3551     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3552   else
3553     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3554   fi
3555   ;;
3556
3557 newos6*)
3558   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3559   lt_cv_file_magic_cmd=/usr/bin/file
3560   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3561   ;;
3562
3563 nto-qnx*)
3564   lt_cv_deplibs_check_method=unknown
3565   ;;
3566
3567 openbsd*)
3568   lt_cv_file_magic_cmd=/usr/bin/file
3569   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3570   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3571     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3572   else
3573     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3574   fi
3575   ;;
3576
3577 osf3* | osf4* | osf5*)
3578   lt_cv_deplibs_check_method=pass_all
3579   ;;
3580
3581 sco3.2v5*)
3582   lt_cv_deplibs_check_method=pass_all
3583   ;;
3584
3585 solaris*)
3586   lt_cv_deplibs_check_method=pass_all
3587   ;;
3588
3589 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3590   case $host_vendor in
3591   motorola)
3592     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]'
3593     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3594     ;;
3595   ncr)
3596     lt_cv_deplibs_check_method=pass_all
3597     ;;
3598   sequent)
3599     lt_cv_file_magic_cmd='/bin/file'
3600     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3601     ;;
3602   sni)
3603     lt_cv_file_magic_cmd='/bin/file'
3604     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3605     lt_cv_file_magic_test_file=/lib/libc.so
3606     ;;
3607   siemens)
3608     lt_cv_deplibs_check_method=pass_all
3609     ;;
3610   esac
3611   ;;
3612
3613 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3614   lt_cv_deplibs_check_method=pass_all
3615   ;;
3616 esac
3617
3618 fi
3619 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3620 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3621 file_magic_cmd=$lt_cv_file_magic_cmd
3622 deplibs_check_method=$lt_cv_deplibs_check_method
3623 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3624
3625
3626
3627
3628 # If no C compiler was specified, use CC.
3629 LTCC=${LTCC-"$CC"}
3630
3631 # Allow CC to be a program name with arguments.
3632 compiler=$CC
3633
3634
3635 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3636 if test "${enable_libtool_lock+set}" = set; then
3637   enableval="$enable_libtool_lock"
3638
3639 fi;
3640 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3641
3642 # Some flags need to be propagated to the compiler or linker for good
3643 # libtool support.
3644 case $host in
3645 ia64-*-hpux*)
3646   # Find out which ABI we are using.
3647   echo 'int i;' > conftest.$ac_ext
3648   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3649   (eval $ac_compile) 2>&5
3650   ac_status=$?
3651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652   (exit $ac_status); }; then
3653     case `/usr/bin/file conftest.$ac_objext` in
3654     *ELF-32*)
3655       HPUX_IA64_MODE="32"
3656       ;;
3657     *ELF-64*)
3658       HPUX_IA64_MODE="64"
3659       ;;
3660     esac
3661   fi
3662   rm -rf conftest*
3663   ;;
3664 *-*-irix6*)
3665   # Find out which ABI we are using.
3666   echo '#line 3666 "configure"' > conftest.$ac_ext
3667   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3668   (eval $ac_compile) 2>&5
3669   ac_status=$?
3670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671   (exit $ac_status); }; then
3672    if test "$lt_cv_prog_gnu_ld" = yes; then
3673     case `/usr/bin/file conftest.$ac_objext` in
3674     *32-bit*)
3675       LD="${LD-ld} -melf32bsmip"
3676       ;;
3677     *N32*)
3678       LD="${LD-ld} -melf32bmipn32"
3679       ;;
3680     *64-bit*)
3681       LD="${LD-ld} -melf64bmip"
3682       ;;
3683     esac
3684    else
3685     case `/usr/bin/file conftest.$ac_objext` in
3686     *32-bit*)
3687       LD="${LD-ld} -32"
3688       ;;
3689     *N32*)
3690       LD="${LD-ld} -n32"
3691       ;;
3692     *64-bit*)
3693       LD="${LD-ld} -64"
3694       ;;
3695     esac
3696    fi
3697   fi
3698   rm -rf conftest*
3699   ;;
3700
3701 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3702   # Find out which ABI we are using.
3703   echo 'int i;' > conftest.$ac_ext
3704   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3705   (eval $ac_compile) 2>&5
3706   ac_status=$?
3707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708   (exit $ac_status); }; then
3709     case "`/usr/bin/file conftest.o`" in
3710     *32-bit*)
3711       case $host in
3712         x86_64-*linux*)
3713           LD="${LD-ld} -m elf_i386"
3714           ;;
3715         ppc64-*linux*|powerpc64-*linux*)
3716           LD="${LD-ld} -m elf32ppclinux"
3717           ;;
3718         s390x-*linux*)
3719           LD="${LD-ld} -m elf_s390"
3720           ;;
3721         sparc64-*linux*)
3722           LD="${LD-ld} -m elf32_sparc"
3723           ;;
3724       esac
3725       ;;
3726     *64-bit*)
3727       case $host in
3728         x86_64-*linux*)
3729           LD="${LD-ld} -m elf_x86_64"
3730           ;;
3731         ppc*-*linux*|powerpc*-*linux*)
3732           LD="${LD-ld} -m elf64ppc"
3733           ;;
3734         s390*-*linux*)
3735           LD="${LD-ld} -m elf64_s390"
3736           ;;
3737         sparc*-*linux*)
3738           LD="${LD-ld} -m elf64_sparc"
3739           ;;
3740       esac
3741       ;;
3742     esac
3743   fi
3744   rm -rf conftest*
3745   ;;
3746
3747 *-*-sco3.2v5*)
3748   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3749   SAVE_CFLAGS="$CFLAGS"
3750   CFLAGS="$CFLAGS -belf"
3751   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3752 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3753 if test "${lt_cv_cc_needs_belf+set}" = set; then
3754   echo $ECHO_N "(cached) $ECHO_C" >&6
3755 else
3756   ac_ext=c
3757 ac_cpp='$CPP $CPPFLAGS'
3758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3761
3762      cat >conftest.$ac_ext <<_ACEOF
3763 /* confdefs.h.  */
3764 _ACEOF
3765 cat confdefs.h >>conftest.$ac_ext
3766 cat >>conftest.$ac_ext <<_ACEOF
3767 /* end confdefs.h.  */
3768
3769 int
3770 main ()
3771 {
3772
3773   ;
3774   return 0;
3775 }
3776 _ACEOF
3777 rm -f conftest.$ac_objext conftest$ac_exeext
3778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3779   (eval $ac_link) 2>conftest.er1
3780   ac_status=$?
3781   grep -v '^ *+' conftest.er1 >conftest.err
3782   rm -f conftest.er1
3783   cat conftest.err >&5
3784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785   (exit $ac_status); } &&
3786          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3788   (eval $ac_try) 2>&5
3789   ac_status=$?
3790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791   (exit $ac_status); }; } &&
3792          { ac_try='test -s conftest$ac_exeext'
3793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3794   (eval $ac_try) 2>&5
3795   ac_status=$?
3796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797   (exit $ac_status); }; }; then
3798   lt_cv_cc_needs_belf=yes
3799 else
3800   echo "$as_me: failed program was:" >&5
3801 sed 's/^/| /' conftest.$ac_ext >&5
3802
3803 lt_cv_cc_needs_belf=no
3804 fi
3805 rm -f conftest.err conftest.$ac_objext \
3806       conftest$ac_exeext conftest.$ac_ext
3807      ac_ext=c
3808 ac_cpp='$CPP $CPPFLAGS'
3809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3812
3813 fi
3814 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3815 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3816   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3817     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3818     CFLAGS="$SAVE_CFLAGS"
3819   fi
3820   ;;
3821
3822 esac
3823
3824 need_locks="$enable_libtool_lock"
3825
3826
3827 ac_ext=c
3828 ac_cpp='$CPP $CPPFLAGS'
3829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3832 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3833 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3834 # On Suns, sometimes $CPP names a directory.
3835 if test -n "$CPP" && test -d "$CPP"; then
3836   CPP=
3837 fi
3838 if test -z "$CPP"; then
3839   if test "${ac_cv_prog_CPP+set}" = set; then
3840   echo $ECHO_N "(cached) $ECHO_C" >&6
3841 else
3842       # Double quotes because CPP needs to be expanded
3843     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3844     do
3845       ac_preproc_ok=false
3846 for ac_c_preproc_warn_flag in '' yes
3847 do
3848   # Use a header file that comes with gcc, so configuring glibc
3849   # with a fresh cross-compiler works.
3850   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3851   # <limits.h> exists even on freestanding compilers.
3852   # On the NeXT, cc -E runs the code through the compiler's parser,
3853   # not just through cpp. "Syntax error" is here to catch this case.
3854   cat >conftest.$ac_ext <<_ACEOF
3855 /* confdefs.h.  */
3856 _ACEOF
3857 cat confdefs.h >>conftest.$ac_ext
3858 cat >>conftest.$ac_ext <<_ACEOF
3859 /* end confdefs.h.  */
3860 #ifdef __STDC__
3861 # include <limits.h>
3862 #else
3863 # include <assert.h>
3864 #endif
3865                      Syntax error
3866 _ACEOF
3867 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3868   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3869   ac_status=$?
3870   grep -v '^ *+' conftest.er1 >conftest.err
3871   rm -f conftest.er1
3872   cat conftest.err >&5
3873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874   (exit $ac_status); } >/dev/null; then
3875   if test -s conftest.err; then
3876     ac_cpp_err=$ac_c_preproc_warn_flag
3877     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3878   else
3879     ac_cpp_err=
3880   fi
3881 else
3882   ac_cpp_err=yes
3883 fi
3884 if test -z "$ac_cpp_err"; then
3885   :
3886 else
3887   echo "$as_me: failed program was:" >&5
3888 sed 's/^/| /' conftest.$ac_ext >&5
3889
3890   # Broken: fails on valid input.
3891 continue
3892 fi
3893 rm -f conftest.err conftest.$ac_ext
3894
3895   # OK, works on sane cases.  Now check whether non-existent headers
3896   # can be detected and how.
3897   cat >conftest.$ac_ext <<_ACEOF
3898 /* confdefs.h.  */
3899 _ACEOF
3900 cat confdefs.h >>conftest.$ac_ext
3901 cat >>conftest.$ac_ext <<_ACEOF
3902 /* end confdefs.h.  */
3903 #include <ac_nonexistent.h>
3904 _ACEOF
3905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3906   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3907   ac_status=$?
3908   grep -v '^ *+' conftest.er1 >conftest.err
3909   rm -f conftest.er1
3910   cat conftest.err >&5
3911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912   (exit $ac_status); } >/dev/null; then
3913   if test -s conftest.err; then
3914     ac_cpp_err=$ac_c_preproc_warn_flag
3915     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3916   else
3917     ac_cpp_err=
3918   fi
3919 else
3920   ac_cpp_err=yes
3921 fi
3922 if test -z "$ac_cpp_err"; then
3923   # Broken: success on invalid input.
3924 continue
3925 else
3926   echo "$as_me: failed program was:" >&5
3927 sed 's/^/| /' conftest.$ac_ext >&5
3928
3929   # Passes both tests.
3930 ac_preproc_ok=:
3931 break
3932 fi
3933 rm -f conftest.err conftest.$ac_ext
3934
3935 done
3936 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3937 rm -f conftest.err conftest.$ac_ext
3938 if $ac_preproc_ok; then
3939   break
3940 fi
3941
3942     done
3943     ac_cv_prog_CPP=$CPP
3944
3945 fi
3946   CPP=$ac_cv_prog_CPP
3947 else
3948   ac_cv_prog_CPP=$CPP
3949 fi
3950 echo "$as_me:$LINENO: result: $CPP" >&5
3951 echo "${ECHO_T}$CPP" >&6
3952 ac_preproc_ok=false
3953 for ac_c_preproc_warn_flag in '' yes
3954 do
3955   # Use a header file that comes with gcc, so configuring glibc
3956   # with a fresh cross-compiler works.
3957   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3958   # <limits.h> exists even on freestanding compilers.
3959   # On the NeXT, cc -E runs the code through the compiler's parser,
3960   # not just through cpp. "Syntax error" is here to catch this case.
3961   cat >conftest.$ac_ext <<_ACEOF
3962 /* confdefs.h.  */
3963 _ACEOF
3964 cat confdefs.h >>conftest.$ac_ext
3965 cat >>conftest.$ac_ext <<_ACEOF
3966 /* end confdefs.h.  */
3967 #ifdef __STDC__
3968 # include <limits.h>
3969 #else
3970 # include <assert.h>
3971 #endif
3972                      Syntax error
3973 _ACEOF
3974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3975   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3976   ac_status=$?
3977   grep -v '^ *+' conftest.er1 >conftest.err
3978   rm -f conftest.er1
3979   cat conftest.err >&5
3980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981   (exit $ac_status); } >/dev/null; then
3982   if test -s conftest.err; then
3983     ac_cpp_err=$ac_c_preproc_warn_flag
3984     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3985   else
3986     ac_cpp_err=
3987   fi
3988 else
3989   ac_cpp_err=yes
3990 fi
3991 if test -z "$ac_cpp_err"; then
3992   :
3993 else
3994   echo "$as_me: failed program was:" >&5
3995 sed 's/^/| /' conftest.$ac_ext >&5
3996
3997   # Broken: fails on valid input.
3998 continue
3999 fi
4000 rm -f conftest.err conftest.$ac_ext
4001
4002   # OK, works on sane cases.  Now check whether non-existent headers
4003   # can be detected and how.
4004   cat >conftest.$ac_ext <<_ACEOF
4005 /* confdefs.h.  */
4006 _ACEOF
4007 cat confdefs.h >>conftest.$ac_ext
4008 cat >>conftest.$ac_ext <<_ACEOF
4009 /* end confdefs.h.  */
4010 #include <ac_nonexistent.h>
4011 _ACEOF
4012 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4013   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4014   ac_status=$?
4015   grep -v '^ *+' conftest.er1 >conftest.err
4016   rm -f conftest.er1
4017   cat conftest.err >&5
4018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019   (exit $ac_status); } >/dev/null; then
4020   if test -s conftest.err; then
4021     ac_cpp_err=$ac_c_preproc_warn_flag
4022     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4023   else
4024     ac_cpp_err=
4025   fi
4026 else
4027   ac_cpp_err=yes
4028 fi
4029 if test -z "$ac_cpp_err"; then
4030   # Broken: success on invalid input.
4031 continue
4032 else
4033   echo "$as_me: failed program was:" >&5
4034 sed 's/^/| /' conftest.$ac_ext >&5
4035
4036   # Passes both tests.
4037 ac_preproc_ok=:
4038 break
4039 fi
4040 rm -f conftest.err conftest.$ac_ext
4041
4042 done
4043 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4044 rm -f conftest.err conftest.$ac_ext
4045 if $ac_preproc_ok; then
4046   :
4047 else
4048   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4049 See \`config.log' for more details." >&5
4050 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4051 See \`config.log' for more details." >&2;}
4052    { (exit 1); exit 1; }; }
4053 fi
4054
4055 ac_ext=c
4056 ac_cpp='$CPP $CPPFLAGS'
4057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4060
4061
4062 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4063 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4064 if test "${ac_cv_header_stdc+set}" = set; then
4065   echo $ECHO_N "(cached) $ECHO_C" >&6
4066 else
4067   cat >conftest.$ac_ext <<_ACEOF
4068 /* confdefs.h.  */
4069 _ACEOF
4070 cat confdefs.h >>conftest.$ac_ext
4071 cat >>conftest.$ac_ext <<_ACEOF
4072 /* end confdefs.h.  */
4073 #include <stdlib.h>
4074 #include <stdarg.h>
4075 #include <string.h>
4076 #include <float.h>
4077
4078 int
4079 main ()
4080 {
4081
4082   ;
4083   return 0;
4084 }
4085 _ACEOF
4086 rm -f conftest.$ac_objext
4087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4088   (eval $ac_compile) 2>conftest.er1
4089   ac_status=$?
4090   grep -v '^ *+' conftest.er1 >conftest.err
4091   rm -f conftest.er1
4092   cat conftest.err >&5
4093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094   (exit $ac_status); } &&
4095          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4097   (eval $ac_try) 2>&5
4098   ac_status=$?
4099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100   (exit $ac_status); }; } &&
4101          { ac_try='test -s conftest.$ac_objext'
4102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4103   (eval $ac_try) 2>&5
4104   ac_status=$?
4105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106   (exit $ac_status); }; }; then
4107   ac_cv_header_stdc=yes
4108 else
4109   echo "$as_me: failed program was:" >&5
4110 sed 's/^/| /' conftest.$ac_ext >&5
4111
4112 ac_cv_header_stdc=no
4113 fi
4114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4115
4116 if test $ac_cv_header_stdc = yes; then
4117   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4118   cat >conftest.$ac_ext <<_ACEOF
4119 /* confdefs.h.  */
4120 _ACEOF
4121 cat confdefs.h >>conftest.$ac_ext
4122 cat >>conftest.$ac_ext <<_ACEOF
4123 /* end confdefs.h.  */
4124 #include <string.h>
4125
4126 _ACEOF
4127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4128   $EGREP "memchr" >/dev/null 2>&1; then
4129   :
4130 else
4131   ac_cv_header_stdc=no
4132 fi
4133 rm -f conftest*
4134
4135 fi
4136
4137 if test $ac_cv_header_stdc = yes; then
4138   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4139   cat >conftest.$ac_ext <<_ACEOF
4140 /* confdefs.h.  */
4141 _ACEOF
4142 cat confdefs.h >>conftest.$ac_ext
4143 cat >>conftest.$ac_ext <<_ACEOF
4144 /* end confdefs.h.  */
4145 #include <stdlib.h>
4146
4147 _ACEOF
4148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4149   $EGREP "free" >/dev/null 2>&1; then
4150   :
4151 else
4152   ac_cv_header_stdc=no
4153 fi
4154 rm -f conftest*
4155
4156 fi
4157
4158 if test $ac_cv_header_stdc = yes; then
4159   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4160   if test "$cross_compiling" = yes; then
4161   :
4162 else
4163   cat >conftest.$ac_ext <<_ACEOF
4164 /* confdefs.h.  */
4165 _ACEOF
4166 cat confdefs.h >>conftest.$ac_ext
4167 cat >>conftest.$ac_ext <<_ACEOF
4168 /* end confdefs.h.  */
4169 #include <ctype.h>
4170 #if ((' ' & 0x0FF) == 0x020)
4171 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4172 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4173 #else
4174 # define ISLOWER(c) \
4175                    (('a' <= (c) && (c) <= 'i') \
4176                      || ('j' <= (c) && (c) <= 'r') \
4177                      || ('s' <= (c) && (c) <= 'z'))
4178 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4179 #endif
4180
4181 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4182 int
4183 main ()
4184 {
4185   int i;
4186   for (i = 0; i < 256; i++)
4187     if (XOR (islower (i), ISLOWER (i))
4188         || toupper (i) != TOUPPER (i))
4189       exit(2);
4190   exit (0);
4191 }
4192 _ACEOF
4193 rm -f conftest$ac_exeext
4194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4195   (eval $ac_link) 2>&5
4196   ac_status=$?
4197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4200   (eval $ac_try) 2>&5
4201   ac_status=$?
4202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203   (exit $ac_status); }; }; then
4204   :
4205 else
4206   echo "$as_me: program exited with status $ac_status" >&5
4207 echo "$as_me: failed program was:" >&5
4208 sed 's/^/| /' conftest.$ac_ext >&5
4209
4210 ( exit $ac_status )
4211 ac_cv_header_stdc=no
4212 fi
4213 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4214 fi
4215 fi
4216 fi
4217 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4218 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4219 if test $ac_cv_header_stdc = yes; then
4220
4221 cat >>confdefs.h <<\_ACEOF
4222 #define STDC_HEADERS 1
4223 _ACEOF
4224
4225 fi
4226
4227 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4238                   inttypes.h stdint.h unistd.h
4239 do
4240 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4241 echo "$as_me:$LINENO: checking for $ac_header" >&5
4242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4244   echo $ECHO_N "(cached) $ECHO_C" >&6
4245 else
4246   cat >conftest.$ac_ext <<_ACEOF
4247 /* confdefs.h.  */
4248 _ACEOF
4249 cat confdefs.h >>conftest.$ac_ext
4250 cat >>conftest.$ac_ext <<_ACEOF
4251 /* end confdefs.h.  */
4252 $ac_includes_default
4253
4254 #include <$ac_header>
4255 _ACEOF
4256 rm -f conftest.$ac_objext
4257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4258   (eval $ac_compile) 2>conftest.er1
4259   ac_status=$?
4260   grep -v '^ *+' conftest.er1 >conftest.err
4261   rm -f conftest.er1
4262   cat conftest.err >&5
4263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264   (exit $ac_status); } &&
4265          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4267   (eval $ac_try) 2>&5
4268   ac_status=$?
4269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270   (exit $ac_status); }; } &&
4271          { ac_try='test -s conftest.$ac_objext'
4272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4273   (eval $ac_try) 2>&5
4274   ac_status=$?
4275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276   (exit $ac_status); }; }; then
4277   eval "$as_ac_Header=yes"
4278 else
4279   echo "$as_me: failed program was:" >&5
4280 sed 's/^/| /' conftest.$ac_ext >&5
4281
4282 eval "$as_ac_Header=no"
4283 fi
4284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4285 fi
4286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4287 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4288 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4289   cat >>confdefs.h <<_ACEOF
4290 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4291 _ACEOF
4292
4293 fi
4294
4295 done
4296
4297
4298
4299 for ac_header in dlfcn.h
4300 do
4301 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4303   echo "$as_me:$LINENO: checking for $ac_header" >&5
4304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4306   echo $ECHO_N "(cached) $ECHO_C" >&6
4307 fi
4308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4310 else
4311   # Is the header compilable?
4312 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4313 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4314 cat >conftest.$ac_ext <<_ACEOF
4315 /* confdefs.h.  */
4316 _ACEOF
4317 cat confdefs.h >>conftest.$ac_ext
4318 cat >>conftest.$ac_ext <<_ACEOF
4319 /* end confdefs.h.  */
4320 $ac_includes_default
4321 #include <$ac_header>
4322 _ACEOF
4323 rm -f conftest.$ac_objext
4324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4325   (eval $ac_compile) 2>conftest.er1
4326   ac_status=$?
4327   grep -v '^ *+' conftest.er1 >conftest.err
4328   rm -f conftest.er1
4329   cat conftest.err >&5
4330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331   (exit $ac_status); } &&
4332          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4334   (eval $ac_try) 2>&5
4335   ac_status=$?
4336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337   (exit $ac_status); }; } &&
4338          { ac_try='test -s conftest.$ac_objext'
4339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4340   (eval $ac_try) 2>&5
4341   ac_status=$?
4342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343   (exit $ac_status); }; }; then
4344   ac_header_compiler=yes
4345 else
4346   echo "$as_me: failed program was:" >&5
4347 sed 's/^/| /' conftest.$ac_ext >&5
4348
4349 ac_header_compiler=no
4350 fi
4351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4352 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4353 echo "${ECHO_T}$ac_header_compiler" >&6
4354
4355 # Is the header present?
4356 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4357 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4358 cat >conftest.$ac_ext <<_ACEOF
4359 /* confdefs.h.  */
4360 _ACEOF
4361 cat confdefs.h >>conftest.$ac_ext
4362 cat >>conftest.$ac_ext <<_ACEOF
4363 /* end confdefs.h.  */
4364 #include <$ac_header>
4365 _ACEOF
4366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4367   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4368   ac_status=$?
4369   grep -v '^ *+' conftest.er1 >conftest.err
4370   rm -f conftest.er1
4371   cat conftest.err >&5
4372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373   (exit $ac_status); } >/dev/null; then
4374   if test -s conftest.err; then
4375     ac_cpp_err=$ac_c_preproc_warn_flag
4376     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4377   else
4378     ac_cpp_err=
4379   fi
4380 else
4381   ac_cpp_err=yes
4382 fi
4383 if test -z "$ac_cpp_err"; then
4384   ac_header_preproc=yes
4385 else
4386   echo "$as_me: failed program was:" >&5
4387 sed 's/^/| /' conftest.$ac_ext >&5
4388
4389   ac_header_preproc=no
4390 fi
4391 rm -f conftest.err conftest.$ac_ext
4392 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4393 echo "${ECHO_T}$ac_header_preproc" >&6
4394
4395 # So?  What about this header?
4396 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4397   yes:no: )
4398     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4399 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4400     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4401 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4402     ac_header_preproc=yes
4403     ;;
4404   no:yes:* )
4405     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4406 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4407     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4408 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4409     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4410 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4411     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4412 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4413     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4414 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4415     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4416 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4417     (
4418       cat <<\_ASBOX
4419 ## ----------------------------------------- ##
4420 ## Report this to martin.quinson@ens-lyon.fr ##
4421 ## ----------------------------------------- ##
4422 _ASBOX
4423     ) |
4424       sed "s/^/$as_me: WARNING:     /" >&2
4425     ;;
4426 esac
4427 echo "$as_me:$LINENO: checking for $ac_header" >&5
4428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4430   echo $ECHO_N "(cached) $ECHO_C" >&6
4431 else
4432   eval "$as_ac_Header=\$ac_header_preproc"
4433 fi
4434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4436
4437 fi
4438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4439   cat >>confdefs.h <<_ACEOF
4440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4441 _ACEOF
4442
4443 fi
4444
4445 done
4446
4447 ac_ext=cc
4448 ac_cpp='$CXXCPP $CPPFLAGS'
4449 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4450 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4451 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4452 if test -n "$ac_tool_prefix"; then
4453   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4454   do
4455     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4456 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4457 echo "$as_me:$LINENO: checking for $ac_word" >&5
4458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4459 if test "${ac_cv_prog_CXX+set}" = set; then
4460   echo $ECHO_N "(cached) $ECHO_C" >&6
4461 else
4462   if test -n "$CXX"; then
4463   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4464 else
4465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466 for as_dir in $PATH
4467 do
4468   IFS=$as_save_IFS
4469   test -z "$as_dir" && as_dir=.
4470   for ac_exec_ext in '' $ac_executable_extensions; do
4471   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4472     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4473     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4474     break 2
4475   fi
4476 done
4477 done
4478
4479 fi
4480 fi
4481 CXX=$ac_cv_prog_CXX
4482 if test -n "$CXX"; then
4483   echo "$as_me:$LINENO: result: $CXX" >&5
4484 echo "${ECHO_T}$CXX" >&6
4485 else
4486   echo "$as_me:$LINENO: result: no" >&5
4487 echo "${ECHO_T}no" >&6
4488 fi
4489
4490     test -n "$CXX" && break
4491   done
4492 fi
4493 if test -z "$CXX"; then
4494   ac_ct_CXX=$CXX
4495   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4496 do
4497   # Extract the first word of "$ac_prog", so it can be a program name with args.
4498 set dummy $ac_prog; ac_word=$2
4499 echo "$as_me:$LINENO: checking for $ac_word" >&5
4500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4501 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4502   echo $ECHO_N "(cached) $ECHO_C" >&6
4503 else
4504   if test -n "$ac_ct_CXX"; then
4505   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4506 else
4507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508 for as_dir in $PATH
4509 do
4510   IFS=$as_save_IFS
4511   test -z "$as_dir" && as_dir=.
4512   for ac_exec_ext in '' $ac_executable_extensions; do
4513   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4514     ac_cv_prog_ac_ct_CXX="$ac_prog"
4515     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4516     break 2
4517   fi
4518 done
4519 done
4520
4521 fi
4522 fi
4523 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4524 if test -n "$ac_ct_CXX"; then
4525   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4526 echo "${ECHO_T}$ac_ct_CXX" >&6
4527 else
4528   echo "$as_me:$LINENO: result: no" >&5
4529 echo "${ECHO_T}no" >&6
4530 fi
4531
4532   test -n "$ac_ct_CXX" && break
4533 done
4534 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4535
4536   CXX=$ac_ct_CXX
4537 fi
4538
4539
4540 # Provide some information about the compiler.
4541 echo "$as_me:$LINENO:" \
4542      "checking for C++ compiler version" >&5
4543 ac_compiler=`set X $ac_compile; echo $2`
4544 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4545   (eval $ac_compiler --version </dev/null >&5) 2>&5
4546   ac_status=$?
4547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548   (exit $ac_status); }
4549 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4550   (eval $ac_compiler -v </dev/null >&5) 2>&5
4551   ac_status=$?
4552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553   (exit $ac_status); }
4554 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4555   (eval $ac_compiler -V </dev/null >&5) 2>&5
4556   ac_status=$?
4557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558   (exit $ac_status); }
4559
4560 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4561 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4562 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4563   echo $ECHO_N "(cached) $ECHO_C" >&6
4564 else
4565   cat >conftest.$ac_ext <<_ACEOF
4566 /* confdefs.h.  */
4567 _ACEOF
4568 cat confdefs.h >>conftest.$ac_ext
4569 cat >>conftest.$ac_ext <<_ACEOF
4570 /* end confdefs.h.  */
4571
4572 int
4573 main ()
4574 {
4575 #ifndef __GNUC__
4576        choke me
4577 #endif
4578
4579   ;
4580   return 0;
4581 }
4582 _ACEOF
4583 rm -f conftest.$ac_objext
4584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4585   (eval $ac_compile) 2>conftest.er1
4586   ac_status=$?
4587   grep -v '^ *+' conftest.er1 >conftest.err
4588   rm -f conftest.er1
4589   cat conftest.err >&5
4590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591   (exit $ac_status); } &&
4592          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4594   (eval $ac_try) 2>&5
4595   ac_status=$?
4596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597   (exit $ac_status); }; } &&
4598          { ac_try='test -s conftest.$ac_objext'
4599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4600   (eval $ac_try) 2>&5
4601   ac_status=$?
4602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603   (exit $ac_status); }; }; then
4604   ac_compiler_gnu=yes
4605 else
4606   echo "$as_me: failed program was:" >&5
4607 sed 's/^/| /' conftest.$ac_ext >&5
4608
4609 ac_compiler_gnu=no
4610 fi
4611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4612 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4613
4614 fi
4615 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4616 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4617 GXX=`test $ac_compiler_gnu = yes && echo yes`
4618 ac_test_CXXFLAGS=${CXXFLAGS+set}
4619 ac_save_CXXFLAGS=$CXXFLAGS
4620 CXXFLAGS="-g"
4621 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4622 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4623 if test "${ac_cv_prog_cxx_g+set}" = set; then
4624   echo $ECHO_N "(cached) $ECHO_C" >&6
4625 else
4626   cat >conftest.$ac_ext <<_ACEOF
4627 /* confdefs.h.  */
4628 _ACEOF
4629 cat confdefs.h >>conftest.$ac_ext
4630 cat >>conftest.$ac_ext <<_ACEOF
4631 /* end confdefs.h.  */
4632
4633 int
4634 main ()
4635 {
4636
4637   ;
4638   return 0;
4639 }
4640 _ACEOF
4641 rm -f conftest.$ac_objext
4642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4643   (eval $ac_compile) 2>conftest.er1
4644   ac_status=$?
4645   grep -v '^ *+' conftest.er1 >conftest.err
4646   rm -f conftest.er1
4647   cat conftest.err >&5
4648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649   (exit $ac_status); } &&
4650          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4652   (eval $ac_try) 2>&5
4653   ac_status=$?
4654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655   (exit $ac_status); }; } &&
4656          { ac_try='test -s conftest.$ac_objext'
4657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4658   (eval $ac_try) 2>&5
4659   ac_status=$?
4660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661   (exit $ac_status); }; }; then
4662   ac_cv_prog_cxx_g=yes
4663 else
4664   echo "$as_me: failed program was:" >&5
4665 sed 's/^/| /' conftest.$ac_ext >&5
4666
4667 ac_cv_prog_cxx_g=no
4668 fi
4669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4670 fi
4671 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4672 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4673 if test "$ac_test_CXXFLAGS" = set; then
4674   CXXFLAGS=$ac_save_CXXFLAGS
4675 elif test $ac_cv_prog_cxx_g = yes; then
4676   if test "$GXX" = yes; then
4677     CXXFLAGS="-g -O2"
4678   else
4679     CXXFLAGS="-g"
4680   fi
4681 else
4682   if test "$GXX" = yes; then
4683     CXXFLAGS="-O2"
4684   else
4685     CXXFLAGS=
4686   fi
4687 fi
4688 for ac_declaration in \
4689    '' \
4690    'extern "C" void std::exit (int) throw (); using std::exit;' \
4691    'extern "C" void std::exit (int); using std::exit;' \
4692    'extern "C" void exit (int) throw ();' \
4693    'extern "C" void exit (int);' \
4694    'void exit (int);'
4695 do
4696   cat >conftest.$ac_ext <<_ACEOF
4697 /* confdefs.h.  */
4698 _ACEOF
4699 cat confdefs.h >>conftest.$ac_ext
4700 cat >>conftest.$ac_ext <<_ACEOF
4701 /* end confdefs.h.  */
4702 $ac_declaration
4703 #include <stdlib.h>
4704 int
4705 main ()
4706 {
4707 exit (42);
4708   ;
4709   return 0;
4710 }
4711 _ACEOF
4712 rm -f conftest.$ac_objext
4713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4714   (eval $ac_compile) 2>conftest.er1
4715   ac_status=$?
4716   grep -v '^ *+' conftest.er1 >conftest.err
4717   rm -f conftest.er1
4718   cat conftest.err >&5
4719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720   (exit $ac_status); } &&
4721          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4723   (eval $ac_try) 2>&5
4724   ac_status=$?
4725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726   (exit $ac_status); }; } &&
4727          { ac_try='test -s conftest.$ac_objext'
4728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4729   (eval $ac_try) 2>&5
4730   ac_status=$?
4731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732   (exit $ac_status); }; }; then
4733   :
4734 else
4735   echo "$as_me: failed program was:" >&5
4736 sed 's/^/| /' conftest.$ac_ext >&5
4737
4738 continue
4739 fi
4740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4741   cat >conftest.$ac_ext <<_ACEOF
4742 /* confdefs.h.  */
4743 _ACEOF
4744 cat confdefs.h >>conftest.$ac_ext
4745 cat >>conftest.$ac_ext <<_ACEOF
4746 /* end confdefs.h.  */
4747 $ac_declaration
4748 int
4749 main ()
4750 {
4751 exit (42);
4752   ;
4753   return 0;
4754 }
4755 _ACEOF
4756 rm -f conftest.$ac_objext
4757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4758   (eval $ac_compile) 2>conftest.er1
4759   ac_status=$?
4760   grep -v '^ *+' conftest.er1 >conftest.err
4761   rm -f conftest.er1
4762   cat conftest.err >&5
4763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764   (exit $ac_status); } &&
4765          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4767   (eval $ac_try) 2>&5
4768   ac_status=$?
4769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770   (exit $ac_status); }; } &&
4771          { ac_try='test -s conftest.$ac_objext'
4772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4773   (eval $ac_try) 2>&5
4774   ac_status=$?
4775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776   (exit $ac_status); }; }; then
4777   break
4778 else
4779   echo "$as_me: failed program was:" >&5
4780 sed 's/^/| /' conftest.$ac_ext >&5
4781
4782 fi
4783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4784 done
4785 rm -f conftest*
4786 if test -n "$ac_declaration"; then
4787   echo '#ifdef __cplusplus' >>confdefs.h
4788   echo $ac_declaration      >>confdefs.h
4789   echo '#endif'             >>confdefs.h
4790 fi
4791
4792 ac_ext=cc
4793 ac_cpp='$CXXCPP $CPPFLAGS'
4794 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4795 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4796 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4797
4798 depcc="$CXX"  am_compiler_list=
4799
4800 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4801 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4802 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4803   echo $ECHO_N "(cached) $ECHO_C" >&6
4804 else
4805   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4806   # We make a subdir and do the tests there.  Otherwise we can end up
4807   # making bogus files that we don't know about and never remove.  For
4808   # instance it was reported that on HP-UX the gcc test will end up
4809   # making a dummy file named `D' -- because `-MD' means `put the output
4810   # in D'.
4811   mkdir conftest.dir
4812   # Copy depcomp to subdir because otherwise we won't find it if we're
4813   # using a relative directory.
4814   cp "$am_depcomp" conftest.dir
4815   cd conftest.dir
4816   # We will build objects and dependencies in a subdirectory because
4817   # it helps to detect inapplicable dependency modes.  For instance
4818   # both Tru64's cc and ICC support -MD to output dependencies as a
4819   # side effect of compilation, but ICC will put the dependencies in
4820   # the current directory while Tru64 will put them in the object
4821   # directory.
4822   mkdir sub
4823
4824   am_cv_CXX_dependencies_compiler_type=none
4825   if test "$am_compiler_list" = ""; then
4826      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4827   fi
4828   for depmode in $am_compiler_list; do
4829     # Setup a source with many dependencies, because some compilers
4830     # like to wrap large dependency lists on column 80 (with \), and
4831     # we should not choose a depcomp mode which is confused by this.
4832     #
4833     # We need to recreate these files for each test, as the compiler may
4834     # overwrite some of them when testing with obscure command lines.
4835     # This happens at least with the AIX C compiler.
4836     : > sub/conftest.c
4837     for i in 1 2 3 4 5 6; do
4838       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4839       : > sub/conftst$i.h
4840     done
4841     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4842
4843     case $depmode in
4844     nosideeffect)
4845       # after this tag, mechanisms are not by side-effect, so they'll
4846       # only be used when explicitly requested
4847       if test "x$enable_dependency_tracking" = xyes; then
4848         continue
4849       else
4850         break
4851       fi
4852       ;;
4853     none) break ;;
4854     esac
4855     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4856     # mode.  It turns out that the SunPro C++ compiler does not properly
4857     # handle `-M -o', and we need to detect this.
4858     if depmode=$depmode \
4859        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4860        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4861        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4862          >/dev/null 2>conftest.err &&
4863        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4864        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4865        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4866       # icc doesn't choke on unknown options, it will just issue warnings
4867       # (even with -Werror).  So we grep stderr for any message
4868       # that says an option was ignored.
4869       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4870         am_cv_CXX_dependencies_compiler_type=$depmode
4871         break
4872       fi
4873     fi
4874   done
4875
4876   cd ..
4877   rm -rf conftest.dir
4878 else
4879   am_cv_CXX_dependencies_compiler_type=none
4880 fi
4881
4882 fi
4883 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4884 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4885 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4886
4887
4888
4889 if
4890   test "x$enable_dependency_tracking" != xno \
4891   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4892   am__fastdepCXX_TRUE=
4893   am__fastdepCXX_FALSE='#'
4894 else
4895   am__fastdepCXX_TRUE='#'
4896   am__fastdepCXX_FALSE=
4897 fi
4898
4899
4900 ac_ext=cc
4901 ac_cpp='$CXXCPP $CPPFLAGS'
4902 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4903 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4904 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4905 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4906 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4907 if test -z "$CXXCPP"; then
4908   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4909   echo $ECHO_N "(cached) $ECHO_C" >&6
4910 else
4911       # Double quotes because CXXCPP needs to be expanded
4912     for CXXCPP in "$CXX -E" "/lib/cpp"
4913     do
4914       ac_preproc_ok=false
4915 for ac_cxx_preproc_warn_flag in '' yes
4916 do
4917   # Use a header file that comes with gcc, so configuring glibc
4918   # with a fresh cross-compiler works.
4919   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4920   # <limits.h> exists even on freestanding compilers.
4921   # On the NeXT, cc -E runs the code through the compiler's parser,
4922   # not just through cpp. "Syntax error" is here to catch this case.
4923   cat >conftest.$ac_ext <<_ACEOF
4924 /* confdefs.h.  */
4925 _ACEOF
4926 cat confdefs.h >>conftest.$ac_ext
4927 cat >>conftest.$ac_ext <<_ACEOF
4928 /* end confdefs.h.  */
4929 #ifdef __STDC__
4930 # include <limits.h>
4931 #else
4932 # include <assert.h>
4933 #endif
4934                      Syntax error
4935 _ACEOF
4936 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4937   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4938   ac_status=$?
4939   grep -v '^ *+' conftest.er1 >conftest.err
4940   rm -f conftest.er1
4941   cat conftest.err >&5
4942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943   (exit $ac_status); } >/dev/null; then
4944   if test -s conftest.err; then
4945     ac_cpp_err=$ac_cxx_preproc_warn_flag
4946     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4947   else
4948     ac_cpp_err=
4949   fi
4950 else
4951   ac_cpp_err=yes
4952 fi
4953 if test -z "$ac_cpp_err"; then
4954   :
4955 else
4956   echo "$as_me: failed program was:" >&5
4957 sed 's/^/| /' conftest.$ac_ext >&5
4958
4959   # Broken: fails on valid input.
4960 continue
4961 fi
4962 rm -f conftest.err conftest.$ac_ext
4963
4964   # OK, works on sane cases.  Now check whether non-existent headers
4965   # can be detected and how.
4966   cat >conftest.$ac_ext <<_ACEOF
4967 /* confdefs.h.  */
4968 _ACEOF
4969 cat confdefs.h >>conftest.$ac_ext
4970 cat >>conftest.$ac_ext <<_ACEOF
4971 /* end confdefs.h.  */
4972 #include <ac_nonexistent.h>
4973 _ACEOF
4974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4975   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4976   ac_status=$?
4977   grep -v '^ *+' conftest.er1 >conftest.err
4978   rm -f conftest.er1
4979   cat conftest.err >&5
4980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981   (exit $ac_status); } >/dev/null; then
4982   if test -s conftest.err; then
4983     ac_cpp_err=$ac_cxx_preproc_warn_flag
4984     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4985   else
4986     ac_cpp_err=
4987   fi
4988 else
4989   ac_cpp_err=yes
4990 fi
4991 if test -z "$ac_cpp_err"; then
4992   # Broken: success on invalid input.
4993 continue
4994 else
4995   echo "$as_me: failed program was:" >&5
4996 sed 's/^/| /' conftest.$ac_ext >&5
4997
4998   # Passes both tests.
4999 ac_preproc_ok=:
5000 break
5001 fi
5002 rm -f conftest.err conftest.$ac_ext
5003
5004 done
5005 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5006 rm -f conftest.err conftest.$ac_ext
5007 if $ac_preproc_ok; then
5008   break
5009 fi
5010
5011     done
5012     ac_cv_prog_CXXCPP=$CXXCPP
5013
5014 fi
5015   CXXCPP=$ac_cv_prog_CXXCPP
5016 else
5017   ac_cv_prog_CXXCPP=$CXXCPP
5018 fi
5019 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5020 echo "${ECHO_T}$CXXCPP" >&6
5021 ac_preproc_ok=false
5022 for ac_cxx_preproc_warn_flag in '' yes
5023 do
5024   # Use a header file that comes with gcc, so configuring glibc
5025   # with a fresh cross-compiler works.
5026   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5027   # <limits.h> exists even on freestanding compilers.
5028   # On the NeXT, cc -E runs the code through the compiler's parser,
5029   # not just through cpp. "Syntax error" is here to catch this case.
5030   cat >conftest.$ac_ext <<_ACEOF
5031 /* confdefs.h.  */
5032 _ACEOF
5033 cat confdefs.h >>conftest.$ac_ext
5034 cat >>conftest.$ac_ext <<_ACEOF
5035 /* end confdefs.h.  */
5036 #ifdef __STDC__
5037 # include <limits.h>
5038 #else
5039 # include <assert.h>
5040 #endif
5041                      Syntax error
5042 _ACEOF
5043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5044   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5045   ac_status=$?
5046   grep -v '^ *+' conftest.er1 >conftest.err
5047   rm -f conftest.er1
5048   cat conftest.err >&5
5049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050   (exit $ac_status); } >/dev/null; then
5051   if test -s conftest.err; then
5052     ac_cpp_err=$ac_cxx_preproc_warn_flag
5053     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5054   else
5055     ac_cpp_err=
5056   fi
5057 else
5058   ac_cpp_err=yes
5059 fi
5060 if test -z "$ac_cpp_err"; then
5061   :
5062 else
5063   echo "$as_me: failed program was:" >&5
5064 sed 's/^/| /' conftest.$ac_ext >&5
5065
5066   # Broken: fails on valid input.
5067 continue
5068 fi
5069 rm -f conftest.err conftest.$ac_ext
5070
5071   # OK, works on sane cases.  Now check whether non-existent headers
5072   # can be detected and how.
5073   cat >conftest.$ac_ext <<_ACEOF
5074 /* confdefs.h.  */
5075 _ACEOF
5076 cat confdefs.h >>conftest.$ac_ext
5077 cat >>conftest.$ac_ext <<_ACEOF
5078 /* end confdefs.h.  */
5079 #include <ac_nonexistent.h>
5080 _ACEOF
5081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5082   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5083   ac_status=$?
5084   grep -v '^ *+' conftest.er1 >conftest.err
5085   rm -f conftest.er1
5086   cat conftest.err >&5
5087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088   (exit $ac_status); } >/dev/null; then
5089   if test -s conftest.err; then
5090     ac_cpp_err=$ac_cxx_preproc_warn_flag
5091     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5092   else
5093     ac_cpp_err=
5094   fi
5095 else
5096   ac_cpp_err=yes
5097 fi
5098 if test -z "$ac_cpp_err"; then
5099   # Broken: success on invalid input.
5100 continue
5101 else
5102   echo "$as_me: failed program was:" >&5
5103 sed 's/^/| /' conftest.$ac_ext >&5
5104
5105   # Passes both tests.
5106 ac_preproc_ok=:
5107 break
5108 fi
5109 rm -f conftest.err conftest.$ac_ext
5110
5111 done
5112 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5113 rm -f conftest.err conftest.$ac_ext
5114 if $ac_preproc_ok; then
5115   :
5116 else
5117   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5118 See \`config.log' for more details." >&5
5119 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5120 See \`config.log' for more details." >&2;}
5121    { (exit 1); exit 1; }; }
5122 fi
5123
5124 ac_ext=cc
5125 ac_cpp='$CXXCPP $CPPFLAGS'
5126 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5127 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5128 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5129
5130
5131 ac_ext=f
5132 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5133 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5134 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5135 if test -n "$ac_tool_prefix"; then
5136   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5137   do
5138     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5139 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5140 echo "$as_me:$LINENO: checking for $ac_word" >&5
5141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5142 if test "${ac_cv_prog_F77+set}" = set; then
5143   echo $ECHO_N "(cached) $ECHO_C" >&6
5144 else
5145   if test -n "$F77"; then
5146   ac_cv_prog_F77="$F77" # Let the user override the test.
5147 else
5148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149 for as_dir in $PATH
5150 do
5151   IFS=$as_save_IFS
5152   test -z "$as_dir" && as_dir=.
5153   for ac_exec_ext in '' $ac_executable_extensions; do
5154   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5155     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5156     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5157     break 2
5158   fi
5159 done
5160 done
5161
5162 fi
5163 fi
5164 F77=$ac_cv_prog_F77
5165 if test -n "$F77"; then
5166   echo "$as_me:$LINENO: result: $F77" >&5
5167 echo "${ECHO_T}$F77" >&6
5168 else
5169   echo "$as_me:$LINENO: result: no" >&5
5170 echo "${ECHO_T}no" >&6
5171 fi
5172
5173     test -n "$F77" && break
5174   done
5175 fi
5176 if test -z "$F77"; then
5177   ac_ct_F77=$F77
5178   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5179 do
5180   # Extract the first word of "$ac_prog", so it can be a program name with args.
5181 set dummy $ac_prog; ac_word=$2
5182 echo "$as_me:$LINENO: checking for $ac_word" >&5
5183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5184 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5185   echo $ECHO_N "(cached) $ECHO_C" >&6
5186 else
5187   if test -n "$ac_ct_F77"; then
5188   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5189 else
5190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191 for as_dir in $PATH
5192 do
5193   IFS=$as_save_IFS
5194   test -z "$as_dir" && as_dir=.
5195   for ac_exec_ext in '' $ac_executable_extensions; do
5196   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5197     ac_cv_prog_ac_ct_F77="$ac_prog"
5198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5199     break 2
5200   fi
5201 done
5202 done
5203
5204 fi
5205 fi
5206 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5207 if test -n "$ac_ct_F77"; then
5208   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5209 echo "${ECHO_T}$ac_ct_F77" >&6
5210 else
5211   echo "$as_me:$LINENO: result: no" >&5
5212 echo "${ECHO_T}no" >&6
5213 fi
5214
5215   test -n "$ac_ct_F77" && break
5216 done
5217
5218   F77=$ac_ct_F77
5219 fi
5220
5221
5222 # Provide some information about the compiler.
5223 echo "$as_me:5223:" \
5224      "checking for Fortran 77 compiler version" >&5
5225 ac_compiler=`set X $ac_compile; echo $2`
5226 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5227   (eval $ac_compiler --version </dev/null >&5) 2>&5
5228   ac_status=$?
5229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230   (exit $ac_status); }
5231 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5232   (eval $ac_compiler -v </dev/null >&5) 2>&5
5233   ac_status=$?
5234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235   (exit $ac_status); }
5236 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5237   (eval $ac_compiler -V </dev/null >&5) 2>&5
5238   ac_status=$?
5239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240   (exit $ac_status); }
5241 rm -f a.out
5242
5243 # If we don't use `.F' as extension, the preprocessor is not run on the
5244 # input file.  (Note that this only needs to work for GNU compilers.)
5245 ac_save_ext=$ac_ext
5246 ac_ext=F
5247 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5248 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5249 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5250   echo $ECHO_N "(cached) $ECHO_C" >&6
5251 else
5252   cat >conftest.$ac_ext <<_ACEOF
5253       program main
5254 #ifndef __GNUC__
5255        choke me
5256 #endif
5257
5258       end
5259 _ACEOF
5260 rm -f conftest.$ac_objext
5261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5262   (eval $ac_compile) 2>conftest.er1
5263   ac_status=$?
5264   grep -v '^ *+' conftest.er1 >conftest.err
5265   rm -f conftest.er1
5266   cat conftest.err >&5
5267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268   (exit $ac_status); } &&
5269          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5271   (eval $ac_try) 2>&5
5272   ac_status=$?
5273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274   (exit $ac_status); }; } &&
5275          { ac_try='test -s conftest.$ac_objext'
5276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5277   (eval $ac_try) 2>&5
5278   ac_status=$?
5279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280   (exit $ac_status); }; }; then
5281   ac_compiler_gnu=yes
5282 else
5283   echo "$as_me: failed program was:" >&5
5284 sed 's/^/| /' conftest.$ac_ext >&5
5285
5286 ac_compiler_gnu=no
5287 fi
5288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5289 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5290
5291 fi
5292 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5293 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5294 ac_ext=$ac_save_ext
5295 ac_test_FFLAGS=${FFLAGS+set}
5296 ac_save_FFLAGS=$FFLAGS
5297 FFLAGS=
5298 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5299 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5300 if test "${ac_cv_prog_f77_g+set}" = set; then
5301   echo $ECHO_N "(cached) $ECHO_C" >&6
5302 else
5303   FFLAGS=-g
5304 cat >conftest.$ac_ext <<_ACEOF
5305       program main
5306
5307       end
5308 _ACEOF
5309 rm -f conftest.$ac_objext
5310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5311   (eval $ac_compile) 2>conftest.er1
5312   ac_status=$?
5313   grep -v '^ *+' conftest.er1 >conftest.err
5314   rm -f conftest.er1
5315   cat conftest.err >&5
5316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317   (exit $ac_status); } &&
5318          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5320   (eval $ac_try) 2>&5
5321   ac_status=$?
5322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323   (exit $ac_status); }; } &&
5324          { ac_try='test -s conftest.$ac_objext'
5325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5326   (eval $ac_try) 2>&5
5327   ac_status=$?
5328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329   (exit $ac_status); }; }; then
5330   ac_cv_prog_f77_g=yes
5331 else
5332   echo "$as_me: failed program was:" >&5
5333 sed 's/^/| /' conftest.$ac_ext >&5
5334
5335 ac_cv_prog_f77_g=no
5336 fi
5337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5338
5339 fi
5340 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5341 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5342 if test "$ac_test_FFLAGS" = set; then
5343   FFLAGS=$ac_save_FFLAGS
5344 elif test $ac_cv_prog_f77_g = yes; then
5345   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5346     FFLAGS="-g -O2"
5347   else
5348     FFLAGS="-g"
5349   fi
5350 else
5351   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5352     FFLAGS="-O2"
5353   else
5354     FFLAGS=
5355   fi
5356 fi
5357
5358 G77=`test $ac_compiler_gnu = yes && echo yes`
5359 ac_ext=c
5360 ac_cpp='$CPP $CPPFLAGS'
5361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5364
5365
5366
5367 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5368
5369 # find the maximum length of command line arguments
5370 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5371 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5372 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5373   echo $ECHO_N "(cached) $ECHO_C" >&6
5374 else
5375     i=0
5376   testring="ABCD"
5377
5378   case $build_os in
5379   msdosdjgpp*)
5380     # On DJGPP, this test can blow up pretty badly due to problems in libc
5381     # (any single argument exceeding 2000 bytes causes a buffer overrun
5382     # during glob expansion).  Even if it were fixed, the result of this
5383     # check would be larger than it should be.
5384     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5385     ;;
5386
5387   gnu*)
5388     # Under GNU Hurd, this test is not required because there is
5389     # no limit to the length of command line arguments.
5390     # Libtool will interpret -1 as no limit whatsoever
5391     lt_cv_sys_max_cmd_len=-1;
5392     ;;
5393
5394   cygwin* | mingw*)
5395     # On Win9x/ME, this test blows up -- it succeeds, but takes
5396     # about 5 minutes as the teststring grows exponentially.
5397     # Worse, since 9x/ME are not pre-emptively multitasking,
5398     # you end up with a "frozen" computer, even though with patience
5399     # the test eventually succeeds (with a max line length of 256k).
5400     # Instead, let's just punt: use the minimum linelength reported by
5401     # all of the supported platforms: 8192 (on NT/2K/XP).
5402     lt_cv_sys_max_cmd_len=8192;
5403     ;;
5404
5405   amigaos*)
5406     # On AmigaOS with pdksh, this test takes hours, literally.
5407     # So we just punt and use a minimum line length of 8192.
5408     lt_cv_sys_max_cmd_len=8192;
5409     ;;
5410
5411  *)
5412     # If test is not a shell built-in, we'll probably end up computing a
5413     # maximum length that is only half of the actual maximum length, but
5414     # we can't tell.
5415     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5416                = "XX$testring") >/dev/null 2>&1 &&
5417             new_result=`expr "X$testring" : ".*" 2>&1` &&
5418             lt_cv_sys_max_cmd_len=$new_result &&
5419             test $i != 17 # 1/2 MB should be enough
5420     do
5421       i=`expr $i + 1`
5422       testring=$testring$testring
5423     done
5424     testring=
5425     # Add a significant safety factor because C++ compilers can tack on massive
5426     # amounts of additional arguments before passing them to the linker.
5427     # It appears as though 1/2 is a usable value.
5428     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5429     ;;
5430   esac
5431
5432 fi
5433
5434 if test -n $lt_cv_sys_max_cmd_len ; then
5435   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5436 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5437 else
5438   echo "$as_me:$LINENO: result: none" >&5
5439 echo "${ECHO_T}none" >&6
5440 fi
5441
5442
5443
5444
5445 # Check for command to grab the raw symbol name followed by C symbol from nm.
5446 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5447 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5448 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5449   echo $ECHO_N "(cached) $ECHO_C" >&6
5450 else
5451
5452 # These are sane defaults that work on at least a few old systems.
5453 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5454
5455 # Character class describing NM global symbol codes.
5456 symcode='[BCDEGRST]'
5457
5458 # Regexp to match symbols that can be accessed directly from C.
5459 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5460
5461 # Transform the above into a raw symbol and a C symbol.
5462 symxfrm='\1 \2\3 \3'
5463
5464 # Transform an extracted symbol line into a proper C declaration
5465 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5466
5467 # Transform an extracted symbol line into symbol name and symbol address
5468 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'"
5469
5470 # Define system-specific variables.
5471 case $host_os in
5472 aix*)
5473   symcode='[BCDT]'
5474   ;;
5475 cygwin* | mingw* | pw32*)
5476   symcode='[ABCDGISTW]'
5477   ;;
5478 hpux*) # Its linker distinguishes data from code symbols
5479   if test "$host_cpu" = ia64; then
5480     symcode='[ABCDEGRST]'
5481   fi
5482   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5483   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'"
5484   ;;
5485 irix* | nonstopux*)
5486   symcode='[BCDEGRST]'
5487   ;;
5488 osf*)
5489   symcode='[BCDEGQRST]'
5490   ;;
5491 solaris* | sysv5*)
5492   symcode='[BDRT]'
5493   ;;
5494 sysv4)
5495   symcode='[DFNSTU]'
5496   ;;
5497 esac
5498
5499 # Handle CRLF in mingw tool chain
5500 opt_cr=
5501 case $build_os in
5502 mingw*)
5503   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5504   ;;
5505 esac
5506
5507 # If we're using GNU nm, then use its standard symbol codes.
5508 case `$NM -V 2>&1` in
5509 *GNU* | *'with BFD'*)
5510   symcode='[ABCDGIRSTW]' ;;
5511 esac
5512
5513 # Try without a prefix undercore, then with it.
5514 for ac_symprfx in "" "_"; do
5515
5516   # Write the raw and C identifiers.
5517   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5518
5519   # Check to see that the pipe works correctly.
5520   pipe_works=no
5521
5522   rm -f conftest*
5523   cat > conftest.$ac_ext <<EOF
5524 #ifdef __cplusplus
5525 extern "C" {
5526 #endif
5527 char nm_test_var;
5528 void nm_test_func(){}
5529 #ifdef __cplusplus
5530 }
5531 #endif
5532 int main(){nm_test_var='a';nm_test_func();return(0);}
5533 EOF
5534
5535   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5536   (eval $ac_compile) 2>&5
5537   ac_status=$?
5538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539   (exit $ac_status); }; then
5540     # Now try to grab the symbols.
5541     nlist=conftest.nm
5542     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5543   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5544   ac_status=$?
5545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546   (exit $ac_status); } && test -s "$nlist"; then
5547       # Try sorting and uniquifying the output.
5548       if sort "$nlist" | uniq > "$nlist"T; then
5549         mv -f "$nlist"T "$nlist"
5550       else
5551         rm -f "$nlist"T
5552       fi
5553
5554       # Make sure that we snagged all the symbols we need.
5555       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5556         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5557           cat <<EOF > conftest.$ac_ext
5558 #ifdef __cplusplus
5559 extern "C" {
5560 #endif
5561
5562 EOF
5563           # Now generate the symbol file.
5564           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5565
5566           cat <<EOF >> conftest.$ac_ext
5567 #if defined (__STDC__) && __STDC__
5568 # define lt_ptr_t void *
5569 #else
5570 # define lt_ptr_t char *
5571 # define const
5572 #endif
5573
5574 /* The mapping between symbol names and symbols. */
5575 const struct {
5576   const char *name;
5577   lt_ptr_t address;
5578 }
5579 lt_preloaded_symbols[] =
5580 {
5581 EOF
5582           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5583           cat <<\EOF >> conftest.$ac_ext
5584   {0, (lt_ptr_t) 0}
5585 };
5586
5587 #ifdef __cplusplus
5588 }
5589 #endif
5590 EOF
5591           # Now try linking the two files.
5592           mv conftest.$ac_objext conftstm.$ac_objext
5593           lt_save_LIBS="$LIBS"
5594           lt_save_CFLAGS="$CFLAGS"
5595           LIBS="conftstm.$ac_objext"
5596           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5597           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5598   (eval $ac_link) 2>&5
5599   ac_status=$?
5600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5602             pipe_works=yes
5603           fi
5604           LIBS="$lt_save_LIBS"
5605           CFLAGS="$lt_save_CFLAGS"
5606         else
5607           echo "cannot find nm_test_func in $nlist" >&5
5608         fi
5609       else
5610         echo "cannot find nm_test_var in $nlist" >&5
5611       fi
5612     else
5613       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5614     fi
5615   else
5616     echo "$progname: failed program was:" >&5
5617     cat conftest.$ac_ext >&5
5618   fi
5619   rm -f conftest* conftst*
5620
5621   # Do not use the global_symbol_pipe unless it works.
5622   if test "$pipe_works" = yes; then
5623     break
5624   else
5625     lt_cv_sys_global_symbol_pipe=
5626   fi
5627 done
5628
5629 fi
5630
5631 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5632   lt_cv_sys_global_symbol_to_cdecl=
5633 fi
5634 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5635   echo "$as_me:$LINENO: result: failed" >&5
5636 echo "${ECHO_T}failed" >&6
5637 else
5638   echo "$as_me:$LINENO: result: ok" >&5
5639 echo "${ECHO_T}ok" >&6
5640 fi
5641
5642 echo "$as_me:$LINENO: checking for objdir" >&5
5643 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5644 if test "${lt_cv_objdir+set}" = set; then
5645   echo $ECHO_N "(cached) $ECHO_C" >&6
5646 else
5647   rm -f .libs 2>/dev/null
5648 mkdir .libs 2>/dev/null
5649 if test -d .libs; then
5650   lt_cv_objdir=.libs
5651 else
5652   # MS-DOS does not allow filenames that begin with a dot.
5653   lt_cv_objdir=_libs
5654 fi
5655 rmdir .libs 2>/dev/null
5656 fi
5657 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5658 echo "${ECHO_T}$lt_cv_objdir" >&6
5659 objdir=$lt_cv_objdir
5660
5661
5662
5663
5664
5665 case $host_os in
5666 aix3*)
5667   # AIX sometimes has problems with the GCC collect2 program.  For some
5668   # reason, if we set the COLLECT_NAMES environment variable, the problems
5669   # vanish in a puff of smoke.
5670   if test "X${COLLECT_NAMES+set}" != Xset; then
5671     COLLECT_NAMES=
5672     export COLLECT_NAMES
5673   fi
5674   ;;
5675 esac
5676
5677 # Sed substitution that helps us do robust quoting.  It backslashifies
5678 # metacharacters that are still active within double-quoted strings.
5679 Xsed='sed -e s/^X//'
5680 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5681
5682 # Same as above, but do not quote variable references.
5683 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5684
5685 # Sed substitution to delay expansion of an escaped shell variable in a
5686 # double_quote_subst'ed string.
5687 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5688
5689 # Sed substitution to avoid accidental globbing in evaled expressions
5690 no_glob_subst='s/\*/\\\*/g'
5691
5692 # Constants:
5693 rm="rm -f"
5694
5695 # Global variables:
5696 default_ofile=libtool
5697 can_build_shared=yes
5698
5699 # All known linkers require a `.a' archive for static linking (except M$VC,
5700 # which needs '.lib').
5701 libext=a
5702 ltmain="$ac_aux_dir/ltmain.sh"
5703 ofile="$default_ofile"
5704 with_gnu_ld="$lt_cv_prog_gnu_ld"
5705
5706 if test -n "$ac_tool_prefix"; then
5707   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5708 set dummy ${ac_tool_prefix}ar; ac_word=$2
5709 echo "$as_me:$LINENO: checking for $ac_word" >&5
5710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5711 if test "${ac_cv_prog_AR+set}" = set; then
5712   echo $ECHO_N "(cached) $ECHO_C" >&6
5713 else
5714   if test -n "$AR"; then
5715   ac_cv_prog_AR="$AR" # Let the user override the test.
5716 else
5717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5718 for as_dir in $PATH
5719 do
5720   IFS=$as_save_IFS
5721   test -z "$as_dir" && as_dir=.
5722   for ac_exec_ext in '' $ac_executable_extensions; do
5723   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5724     ac_cv_prog_AR="${ac_tool_prefix}ar"
5725     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5726     break 2
5727   fi
5728 done
5729 done
5730
5731 fi
5732 fi
5733 AR=$ac_cv_prog_AR
5734 if test -n "$AR"; then
5735   echo "$as_me:$LINENO: result: $AR" >&5
5736 echo "${ECHO_T}$AR" >&6
5737 else
5738   echo "$as_me:$LINENO: result: no" >&5
5739 echo "${ECHO_T}no" >&6
5740 fi
5741
5742 fi
5743 if test -z "$ac_cv_prog_AR"; then
5744   ac_ct_AR=$AR
5745   # Extract the first word of "ar", so it can be a program name with args.
5746 set dummy ar; ac_word=$2
5747 echo "$as_me:$LINENO: checking for $ac_word" >&5
5748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5749 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5750   echo $ECHO_N "(cached) $ECHO_C" >&6
5751 else
5752   if test -n "$ac_ct_AR"; then
5753   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5754 else
5755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5756 for as_dir in $PATH
5757 do
5758   IFS=$as_save_IFS
5759   test -z "$as_dir" && as_dir=.
5760   for ac_exec_ext in '' $ac_executable_extensions; do
5761   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5762     ac_cv_prog_ac_ct_AR="ar"
5763     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5764     break 2
5765   fi
5766 done
5767 done
5768
5769   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5770 fi
5771 fi
5772 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5773 if test -n "$ac_ct_AR"; then
5774   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5775 echo "${ECHO_T}$ac_ct_AR" >&6
5776 else
5777   echo "$as_me:$LINENO: result: no" >&5
5778 echo "${ECHO_T}no" >&6
5779 fi
5780
5781   AR=$ac_ct_AR
5782 else
5783   AR="$ac_cv_prog_AR"
5784 fi
5785
5786 if test -n "$ac_tool_prefix"; then
5787   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5788 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5789 echo "$as_me:$LINENO: checking for $ac_word" >&5
5790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5791 if test "${ac_cv_prog_RANLIB+set}" = set; then
5792   echo $ECHO_N "(cached) $ECHO_C" >&6
5793 else
5794   if test -n "$RANLIB"; then
5795   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5796 else
5797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5798 for as_dir in $PATH
5799 do
5800   IFS=$as_save_IFS
5801   test -z "$as_dir" && as_dir=.
5802   for ac_exec_ext in '' $ac_executable_extensions; do
5803   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5804     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5805     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5806     break 2
5807   fi
5808 done
5809 done
5810
5811 fi
5812 fi
5813 RANLIB=$ac_cv_prog_RANLIB
5814 if test -n "$RANLIB"; then
5815   echo "$as_me:$LINENO: result: $RANLIB" >&5
5816 echo "${ECHO_T}$RANLIB" >&6
5817 else
5818   echo "$as_me:$LINENO: result: no" >&5
5819 echo "${ECHO_T}no" >&6
5820 fi
5821
5822 fi
5823 if test -z "$ac_cv_prog_RANLIB"; then
5824   ac_ct_RANLIB=$RANLIB
5825   # Extract the first word of "ranlib", so it can be a program name with args.
5826 set dummy ranlib; ac_word=$2
5827 echo "$as_me:$LINENO: checking for $ac_word" >&5
5828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5829 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5830   echo $ECHO_N "(cached) $ECHO_C" >&6
5831 else
5832   if test -n "$ac_ct_RANLIB"; then
5833   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5834 else
5835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5836 for as_dir in $PATH
5837 do
5838   IFS=$as_save_IFS
5839   test -z "$as_dir" && as_dir=.
5840   for ac_exec_ext in '' $ac_executable_extensions; do
5841   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5842     ac_cv_prog_ac_ct_RANLIB="ranlib"
5843     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5844     break 2
5845   fi
5846 done
5847 done
5848
5849   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5850 fi
5851 fi
5852 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5853 if test -n "$ac_ct_RANLIB"; then
5854   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5855 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5856 else
5857   echo "$as_me:$LINENO: result: no" >&5
5858 echo "${ECHO_T}no" >&6
5859 fi
5860
5861   RANLIB=$ac_ct_RANLIB
5862 else
5863   RANLIB="$ac_cv_prog_RANLIB"
5864 fi
5865
5866 if test -n "$ac_tool_prefix"; then
5867   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5868 set dummy ${ac_tool_prefix}strip; ac_word=$2
5869 echo "$as_me:$LINENO: checking for $ac_word" >&5
5870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5871 if test "${ac_cv_prog_STRIP+set}" = set; then
5872   echo $ECHO_N "(cached) $ECHO_C" >&6
5873 else
5874   if test -n "$STRIP"; then
5875   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5876 else
5877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5878 for as_dir in $PATH
5879 do
5880   IFS=$as_save_IFS
5881   test -z "$as_dir" && as_dir=.
5882   for ac_exec_ext in '' $ac_executable_extensions; do
5883   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5884     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5885     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5886     break 2
5887   fi
5888 done
5889 done
5890
5891 fi
5892 fi
5893 STRIP=$ac_cv_prog_STRIP
5894 if test -n "$STRIP"; then
5895   echo "$as_me:$LINENO: result: $STRIP" >&5
5896 echo "${ECHO_T}$STRIP" >&6
5897 else
5898   echo "$as_me:$LINENO: result: no" >&5
5899 echo "${ECHO_T}no" >&6
5900 fi
5901
5902 fi
5903 if test -z "$ac_cv_prog_STRIP"; then
5904   ac_ct_STRIP=$STRIP
5905   # Extract the first word of "strip", so it can be a program name with args.
5906 set dummy strip; ac_word=$2
5907 echo "$as_me:$LINENO: checking for $ac_word" >&5
5908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5909 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5910   echo $ECHO_N "(cached) $ECHO_C" >&6
5911 else
5912   if test -n "$ac_ct_STRIP"; then
5913   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5914 else
5915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5916 for as_dir in $PATH
5917 do
5918   IFS=$as_save_IFS
5919   test -z "$as_dir" && as_dir=.
5920   for ac_exec_ext in '' $ac_executable_extensions; do
5921   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5922     ac_cv_prog_ac_ct_STRIP="strip"
5923     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5924     break 2
5925   fi
5926 done
5927 done
5928
5929   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5930 fi
5931 fi
5932 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5933 if test -n "$ac_ct_STRIP"; then
5934   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5935 echo "${ECHO_T}$ac_ct_STRIP" >&6
5936 else
5937   echo "$as_me:$LINENO: result: no" >&5
5938 echo "${ECHO_T}no" >&6
5939 fi
5940
5941   STRIP=$ac_ct_STRIP
5942 else
5943   STRIP="$ac_cv_prog_STRIP"
5944 fi
5945
5946
5947 old_CC="$CC"
5948 old_CFLAGS="$CFLAGS"
5949
5950 # Set sane defaults for various variables
5951 test -z "$AR" && AR=ar
5952 test -z "$AR_FLAGS" && AR_FLAGS=cru
5953 test -z "$AS" && AS=as
5954 test -z "$CC" && CC=cc
5955 test -z "$LTCC" && LTCC=$CC
5956 test -z "$DLLTOOL" && DLLTOOL=dlltool
5957 test -z "$LD" && LD=ld
5958 test -z "$LN_S" && LN_S="ln -s"
5959 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5960 test -z "$NM" && NM=nm
5961 test -z "$SED" && SED=sed
5962 test -z "$OBJDUMP" && OBJDUMP=objdump
5963 test -z "$RANLIB" && RANLIB=:
5964 test -z "$STRIP" && STRIP=:
5965 test -z "$ac_objext" && ac_objext=o
5966
5967 # Determine commands to create old-style static archives.
5968 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5969 old_postinstall_cmds='chmod 644 $oldlib'
5970 old_postuninstall_cmds=
5971
5972 if test -n "$RANLIB"; then
5973   case $host_os in
5974   openbsd*)
5975     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5976     ;;
5977   *)
5978     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5979     ;;
5980   esac
5981   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5982 fi
5983
5984 # Only perform the check for file, if the check method requires it
5985 case $deplibs_check_method in
5986 file_magic*)
5987   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5988     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5989 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5990 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5991   echo $ECHO_N "(cached) $ECHO_C" >&6
5992 else
5993   case $MAGIC_CMD in
5994 [\\/*] |  ?:[\\/]*)
5995   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5996   ;;
5997 *)
5998   lt_save_MAGIC_CMD="$MAGIC_CMD"
5999   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6000   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6001   for ac_dir in $ac_dummy; do
6002     IFS="$lt_save_ifs"
6003     test -z "$ac_dir" && ac_dir=.
6004     if test -f $ac_dir/${ac_tool_prefix}file; then
6005       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6006       if test -n "$file_magic_test_file"; then
6007         case $deplibs_check_method in
6008         "file_magic "*)
6009           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6010           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6011           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6012             $EGREP "$file_magic_regex" > /dev/null; then
6013             :
6014           else
6015             cat <<EOF 1>&2
6016
6017 *** Warning: the command libtool uses to detect shared libraries,
6018 *** $file_magic_cmd, produces output that libtool cannot recognize.
6019 *** The result is that libtool may fail to recognize shared libraries
6020 *** as such.  This will affect the creation of libtool libraries that
6021 *** depend on shared libraries, but programs linked with such libtool
6022 *** libraries will work regardless of this problem.  Nevertheless, you
6023 *** may want to report the problem to your system manager and/or to
6024 *** bug-libtool@gnu.org
6025
6026 EOF
6027           fi ;;
6028         esac
6029       fi
6030       break
6031     fi
6032   done
6033   IFS="$lt_save_ifs"
6034   MAGIC_CMD="$lt_save_MAGIC_CMD"
6035   ;;
6036 esac
6037 fi
6038
6039 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6040 if test -n "$MAGIC_CMD"; then
6041   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6042 echo "${ECHO_T}$MAGIC_CMD" >&6
6043 else
6044   echo "$as_me:$LINENO: result: no" >&5
6045 echo "${ECHO_T}no" >&6
6046 fi
6047
6048 if test -z "$lt_cv_path_MAGIC_CMD"; then
6049   if test -n "$ac_tool_prefix"; then
6050     echo "$as_me:$LINENO: checking for file" >&5
6051 echo $ECHO_N "checking for file... $ECHO_C" >&6
6052 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6053   echo $ECHO_N "(cached) $ECHO_C" >&6
6054 else
6055   case $MAGIC_CMD in
6056 [\\/*] |  ?:[\\/]*)
6057   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6058   ;;
6059 *)
6060   lt_save_MAGIC_CMD="$MAGIC_CMD"
6061   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6062   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6063   for ac_dir in $ac_dummy; do
6064     IFS="$lt_save_ifs"
6065     test -z "$ac_dir" && ac_dir=.
6066     if test -f $ac_dir/file; then
6067       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6068       if test -n "$file_magic_test_file"; then
6069         case $deplibs_check_method in
6070         "file_magic "*)
6071           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6072           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6073           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6074             $EGREP "$file_magic_regex" > /dev/null; then
6075             :
6076           else
6077             cat <<EOF 1>&2
6078
6079 *** Warning: the command libtool uses to detect shared libraries,
6080 *** $file_magic_cmd, produces output that libtool cannot recognize.
6081 *** The result is that libtool may fail to recognize shared libraries
6082 *** as such.  This will affect the creation of libtool libraries that
6083 *** depend on shared libraries, but programs linked with such libtool
6084 *** libraries will work regardless of this problem.  Nevertheless, you
6085 *** may want to report the problem to your system manager and/or to
6086 *** bug-libtool@gnu.org
6087
6088 EOF
6089           fi ;;
6090         esac
6091       fi
6092       break
6093     fi
6094   done
6095   IFS="$lt_save_ifs"
6096   MAGIC_CMD="$lt_save_MAGIC_CMD"
6097   ;;
6098 esac
6099 fi
6100
6101 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6102 if test -n "$MAGIC_CMD"; then
6103   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6104 echo "${ECHO_T}$MAGIC_CMD" >&6
6105 else
6106   echo "$as_me:$LINENO: result: no" >&5
6107 echo "${ECHO_T}no" >&6
6108 fi
6109
6110   else
6111     MAGIC_CMD=:
6112   fi
6113 fi
6114
6115   fi
6116   ;;
6117 esac
6118
6119 enable_dlopen=no
6120 enable_win32_dll=no
6121
6122 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6123 if test "${enable_libtool_lock+set}" = set; then
6124   enableval="$enable_libtool_lock"
6125
6126 fi;
6127 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6128
6129
6130 # Check whether --with-pic or --without-pic was given.
6131 if test "${with_pic+set}" = set; then
6132   withval="$with_pic"
6133   pic_mode="$withval"
6134 else
6135   pic_mode=default
6136 fi;
6137 test -z "$pic_mode" && pic_mode=default
6138
6139 # Use C for the default configuration in the libtool script
6140 tagname=
6141 lt_save_CC="$CC"
6142 ac_ext=c
6143 ac_cpp='$CPP $CPPFLAGS'
6144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6147
6148
6149 # Source file extension for C test sources.
6150 ac_ext=c
6151
6152 # Object file extension for compiled C test sources.
6153 objext=o
6154 objext=$objext
6155
6156 # Code to be used in simple compile tests
6157 lt_simple_compile_test_code="int some_variable = 0;\n"
6158
6159 # Code to be used in simple link tests
6160 lt_simple_link_test_code='int main(){return(0);}\n'
6161
6162
6163 # If no C compiler was specified, use CC.
6164 LTCC=${LTCC-"$CC"}
6165
6166 # Allow CC to be a program name with arguments.
6167 compiler=$CC
6168
6169
6170 #
6171 # Check for any special shared library compilation flags.
6172 #
6173 lt_prog_cc_shlib=
6174 if test "$GCC" = no; then
6175   case $host_os in
6176   sco3.2v5*)
6177     lt_prog_cc_shlib='-belf'
6178     ;;
6179   esac
6180 fi
6181 if test -n "$lt_prog_cc_shlib"; then
6182   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6183 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6184   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6185   else
6186     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6187 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6188     lt_cv_prog_cc_can_build_shared=no
6189   fi
6190 fi
6191
6192
6193 #
6194 # Check to make sure the static flag actually works.
6195 #
6196 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6197 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6198 if test "${lt_prog_compiler_static_works+set}" = set; then
6199   echo $ECHO_N "(cached) $ECHO_C" >&6
6200 else
6201   lt_prog_compiler_static_works=no
6202    save_LDFLAGS="$LDFLAGS"
6203    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6204    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6205    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6206      # The compiler can only warn and ignore the option if not recognized
6207      # So say no if there are warnings
6208      if test -s conftest.err; then
6209        # Append any errors to the config.log.
6210        cat conftest.err 1>&5
6211      else
6212        lt_prog_compiler_static_works=yes
6213      fi
6214    fi
6215    $rm conftest*
6216    LDFLAGS="$save_LDFLAGS"
6217
6218 fi
6219 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6220 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6221
6222 if test x"$lt_prog_compiler_static_works" = xyes; then
6223     :
6224 else
6225     lt_prog_compiler_static=
6226 fi
6227
6228
6229
6230
6231 lt_prog_compiler_no_builtin_flag=
6232
6233 if test "$GCC" = yes; then
6234   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6235
6236
6237 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6238 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6239 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6240   echo $ECHO_N "(cached) $ECHO_C" >&6
6241 else
6242   lt_cv_prog_compiler_rtti_exceptions=no
6243   ac_outfile=conftest.$ac_objext
6244    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6245    lt_compiler_flag="-fno-rtti -fno-exceptions"
6246    # Insert the option either (1) after the last *FLAGS variable, or
6247    # (2) before a word containing "conftest.", or (3) at the end.
6248    # Note that $ac_compile itself does not contain backslashes and begins
6249    # with a dollar sign (not a hyphen), so the echo should work correctly.
6250    # The option is referenced via a variable to avoid confusing sed.
6251    lt_compile=`echo "$ac_compile" | $SED \
6252    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6253    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6254    -e 's:$: $lt_compiler_flag:'`
6255    (eval echo "\"\$as_me:6255: $lt_compile\"" >&5)
6256    (eval "$lt_compile" 2>conftest.err)
6257    ac_status=$?
6258    cat conftest.err >&5
6259    echo "$as_me:6259: \$? = $ac_status" >&5
6260    if (exit $ac_status) && test -s "$ac_outfile"; then
6261      # The compiler can only warn and ignore the option if not recognized
6262      # So say no if there are warnings
6263      if test ! -s conftest.err; then
6264        lt_cv_prog_compiler_rtti_exceptions=yes
6265      fi
6266    fi
6267    $rm conftest*
6268
6269 fi
6270 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6271 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6272
6273 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6274     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6275 else
6276     :
6277 fi
6278
6279 fi
6280
6281 lt_prog_compiler_wl=
6282 lt_prog_compiler_pic=
6283 lt_prog_compiler_static=
6284
6285 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6286 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6287
6288   if test "$GCC" = yes; then
6289     lt_prog_compiler_wl='-Wl,'
6290     lt_prog_compiler_static='-static'
6291
6292     case $host_os in
6293       aix*)
6294       # All AIX code is PIC.
6295       if test "$host_cpu" = ia64; then
6296         # AIX 5 now supports IA64 processor
6297         lt_prog_compiler_static='-Bstatic'
6298       fi
6299       ;;
6300
6301     amigaos*)
6302       # FIXME: we need at least 68020 code to build shared libraries, but
6303       # adding the `-m68020' flag to GCC prevents building anything better,
6304       # like `-m68040'.
6305       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6306       ;;
6307
6308     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6309       # PIC is the default for these OSes.
6310       ;;
6311
6312     mingw* | pw32* | os2*)
6313       # This hack is so that the source file can tell whether it is being
6314       # built for inclusion in a dll (and should export symbols for example).
6315       lt_prog_compiler_pic='-DDLL_EXPORT'
6316       ;;
6317
6318     darwin* | rhapsody*)
6319       # PIC is the default on this platform
6320       # Common symbols not allowed in MH_DYLIB files
6321       lt_prog_compiler_pic='-fno-common'
6322       ;;
6323
6324     msdosdjgpp*)
6325       # Just because we use GCC doesn't mean we suddenly get shared libraries
6326       # on systems that don't support them.
6327       lt_prog_compiler_can_build_shared=no
6328       enable_shared=no
6329       ;;
6330
6331     sysv4*MP*)
6332       if test -d /usr/nec; then
6333         lt_prog_compiler_pic=-Kconform_pic
6334       fi
6335       ;;
6336
6337     hpux*)
6338       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6339       # not for PA HP-UX.
6340       case "$host_cpu" in
6341       hppa*64*|ia64*)
6342         # +Z the default
6343         ;;
6344       *)
6345         lt_prog_compiler_pic='-fPIC'
6346         ;;
6347       esac
6348       ;;
6349
6350     *)
6351       lt_prog_compiler_pic='-fPIC'
6352       ;;
6353     esac
6354   else
6355     # PORTME Check for flag to pass linker flags through the system compiler.
6356     case $host_os in
6357     aix*)
6358       lt_prog_compiler_wl='-Wl,'
6359       if test "$host_cpu" = ia64; then
6360         # AIX 5 now supports IA64 processor
6361         lt_prog_compiler_static='-Bstatic'
6362       else
6363         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6364       fi
6365       ;;
6366
6367     mingw* | pw32* | os2*)
6368       # This hack is so that the source file can tell whether it is being
6369       # built for inclusion in a dll (and should export symbols for example).
6370       lt_prog_compiler_pic='-DDLL_EXPORT'
6371       ;;
6372
6373     hpux9* | hpux10* | hpux11*)
6374       lt_prog_compiler_wl='-Wl,'
6375       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6376       # not for PA HP-UX.
6377       case "$host_cpu" in
6378       hppa*64*|ia64*)
6379         # +Z the default
6380         ;;
6381       *)
6382         lt_prog_compiler_pic='+Z'
6383         ;;
6384       esac
6385       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6386       lt_prog_compiler_static='${wl}-a ${wl}archive'
6387       ;;
6388
6389     irix5* | irix6* | nonstopux*)
6390       lt_prog_compiler_wl='-Wl,'
6391       # PIC (with -KPIC) is the default.
6392       lt_prog_compiler_static='-non_shared'
6393       ;;
6394
6395     newsos6)
6396       lt_prog_compiler_pic='-KPIC'
6397       lt_prog_compiler_static='-Bstatic'
6398       ;;
6399
6400     linux*)
6401       case $CC in
6402       icc* | ecc*)
6403         lt_prog_compiler_wl='-Wl,'
6404         lt_prog_compiler_pic='-KPIC'
6405         lt_prog_compiler_static='-static'
6406         ;;
6407       ccc*)
6408         lt_prog_compiler_wl='-Wl,'
6409         # All Alpha code is PIC.
6410         lt_prog_compiler_static='-non_shared'
6411         ;;
6412       esac
6413       ;;
6414
6415     osf3* | osf4* | osf5*)
6416       lt_prog_compiler_wl='-Wl,'
6417       # All OSF/1 code is PIC.
6418       lt_prog_compiler_static='-non_shared'
6419       ;;
6420
6421     sco3.2v5*)
6422       lt_prog_compiler_pic='-Kpic'
6423       lt_prog_compiler_static='-dn'
6424       ;;
6425
6426     solaris*)
6427       lt_prog_compiler_wl='-Wl,'
6428       lt_prog_compiler_pic='-KPIC'
6429       lt_prog_compiler_static='-Bstatic'
6430       ;;
6431
6432     sunos4*)
6433       lt_prog_compiler_wl='-Qoption ld '
6434       lt_prog_compiler_pic='-PIC'
6435       lt_prog_compiler_static='-Bstatic'
6436       ;;
6437
6438     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6439       lt_prog_compiler_wl='-Wl,'
6440       lt_prog_compiler_pic='-KPIC'
6441       lt_prog_compiler_static='-Bstatic'
6442       ;;
6443
6444     sysv4*MP*)
6445       if test -d /usr/nec ;then
6446         lt_prog_compiler_pic='-Kconform_pic'
6447         lt_prog_compiler_static='-Bstatic'
6448       fi
6449       ;;
6450
6451     uts4*)
6452       lt_prog_compiler_pic='-pic'
6453       lt_prog_compiler_static='-Bstatic'
6454       ;;
6455
6456     *)
6457       lt_prog_compiler_can_build_shared=no
6458       ;;
6459     esac
6460   fi
6461
6462 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6463 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6464
6465 #
6466 # Check to make sure the PIC flag actually works.
6467 #
6468 if test -n "$lt_prog_compiler_pic"; then
6469
6470 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6471 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6472 if test "${lt_prog_compiler_pic_works+set}" = set; then
6473   echo $ECHO_N "(cached) $ECHO_C" >&6
6474 else
6475   lt_prog_compiler_pic_works=no
6476   ac_outfile=conftest.$ac_objext
6477    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6478    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6479    # Insert the option either (1) after the last *FLAGS variable, or
6480    # (2) before a word containing "conftest.", or (3) at the end.
6481    # Note that $ac_compile itself does not contain backslashes and begins
6482    # with a dollar sign (not a hyphen), so the echo should work correctly.
6483    # The option is referenced via a variable to avoid confusing sed.
6484    lt_compile=`echo "$ac_compile" | $SED \
6485    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6486    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6487    -e 's:$: $lt_compiler_flag:'`
6488    (eval echo "\"\$as_me:6488: $lt_compile\"" >&5)
6489    (eval "$lt_compile" 2>conftest.err)
6490    ac_status=$?
6491    cat conftest.err >&5
6492    echo "$as_me:6492: \$? = $ac_status" >&5
6493    if (exit $ac_status) && test -s "$ac_outfile"; then
6494      # The compiler can only warn and ignore the option if not recognized
6495      # So say no if there are warnings
6496      if test ! -s conftest.err; then
6497        lt_prog_compiler_pic_works=yes
6498      fi
6499    fi
6500    $rm conftest*
6501
6502 fi
6503 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6504 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6505
6506 if test x"$lt_prog_compiler_pic_works" = xyes; then
6507     case $lt_prog_compiler_pic in
6508      "" | " "*) ;;
6509      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6510      esac
6511 else
6512     lt_prog_compiler_pic=
6513      lt_prog_compiler_can_build_shared=no
6514 fi
6515
6516 fi
6517 case "$host_os" in
6518   # For platforms which do not support PIC, -DPIC is meaningless:
6519   *djgpp*)
6520     lt_prog_compiler_pic=
6521     ;;
6522   *)
6523     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6524     ;;
6525 esac
6526
6527 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6528 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6529 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6530   echo $ECHO_N "(cached) $ECHO_C" >&6
6531 else
6532   lt_cv_prog_compiler_c_o=no
6533    $rm -r conftest 2>/dev/null
6534    mkdir conftest
6535    cd conftest
6536    mkdir out
6537    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6538
6539    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6540    # that will create temporary files in the current directory regardless of
6541    # the output directory.  Thus, making CWD read-only will cause this test
6542    # to fail, enabling locking or at least warning the user not to do parallel
6543    # builds.
6544    chmod -w .
6545
6546    lt_compiler_flag="-o out/conftest2.$ac_objext"
6547    # Insert the option either (1) after the last *FLAGS variable, or
6548    # (2) before a word containing "conftest.", or (3) at the end.
6549    # Note that $ac_compile itself does not contain backslashes and begins
6550    # with a dollar sign (not a hyphen), so the echo should work correctly.
6551    lt_compile=`echo "$ac_compile" | $SED \
6552    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6553    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6554    -e 's:$: $lt_compiler_flag:'`
6555    (eval echo "\"\$as_me:6555: $lt_compile\"" >&5)
6556    (eval "$lt_compile" 2>out/conftest.err)
6557    ac_status=$?
6558    cat out/conftest.err >&5
6559    echo "$as_me:6559: \$? = $ac_status" >&5
6560    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6561    then
6562      # The compiler can only warn and ignore the option if not recognized
6563      # So say no if there are warnings
6564      if test ! -s out/conftest.err; then
6565        lt_cv_prog_compiler_c_o=yes
6566      fi
6567    fi
6568    chmod u+w .
6569    $rm conftest*
6570    # SGI C++ compiler will create directory out/ii_files/ for
6571    # template instantiation
6572    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6573    $rm out/* && rmdir out
6574    cd ..
6575    rmdir conftest
6576    $rm conftest*
6577
6578 fi
6579 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6580 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6581
6582
6583 hard_links="nottested"
6584 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6585   # do not overwrite the value of need_locks provided by the user
6586   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6587 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6588   hard_links=yes
6589   $rm conftest*
6590   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6591   touch conftest.a
6592   ln conftest.a conftest.b 2>&5 || hard_links=no
6593   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6594   echo "$as_me:$LINENO: result: $hard_links" >&5
6595 echo "${ECHO_T}$hard_links" >&6
6596   if test "$hard_links" = no; then
6597     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6598 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6599     need_locks=warn
6600   fi
6601 else
6602   need_locks=no
6603 fi
6604
6605 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6606 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6607
6608   runpath_var=
6609   allow_undefined_flag=
6610   enable_shared_with_static_runtimes=no
6611   archive_cmds=
6612   archive_expsym_cmds=
6613   old_archive_From_new_cmds=
6614   old_archive_from_expsyms_cmds=
6615   export_dynamic_flag_spec=
6616   whole_archive_flag_spec=
6617   thread_safe_flag_spec=
6618   hardcode_libdir_flag_spec=
6619   hardcode_libdir_flag_spec_ld=
6620   hardcode_libdir_separator=
6621   hardcode_direct=no
6622   hardcode_minus_L=no
6623   hardcode_shlibpath_var=unsupported
6624   link_all_deplibs=unknown
6625   hardcode_automatic=no
6626   module_cmds=
6627   module_expsym_cmds=
6628   always_export_symbols=no
6629   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6630   # include_expsyms should be a list of space-separated symbols to be *always*
6631   # included in the symbol list
6632   include_expsyms=
6633   # exclude_expsyms can be an extended regexp of symbols to exclude
6634   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6635   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6636   # as well as any symbol that contains `d'.
6637   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6638   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6639   # platforms (ab)use it in PIC code, but their linkers get confused if
6640   # the symbol is explicitly referenced.  Since portable code cannot
6641   # rely on this symbol name, it's probably fine to never include it in
6642   # preloaded symbol tables.
6643   extract_expsyms_cmds=
6644
6645   case $host_os in
6646   cygwin* | mingw* | pw32*)
6647     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6648     # When not using gcc, we currently assume that we are using
6649     # Microsoft Visual C++.
6650     if test "$GCC" != yes; then
6651       with_gnu_ld=no
6652     fi
6653     ;;
6654   openbsd*)
6655     with_gnu_ld=no
6656     ;;
6657   esac
6658
6659   ld_shlibs=yes
6660   if test "$with_gnu_ld" = yes; then
6661     # If archive_cmds runs LD, not CC, wlarc should be empty
6662     wlarc='${wl}'
6663
6664     # See if GNU ld supports shared libraries.
6665     case $host_os in
6666     aix3* | aix4* | aix5*)
6667       # On AIX/PPC, the GNU linker is very broken
6668       if test "$host_cpu" != ia64; then
6669         ld_shlibs=no
6670         cat <<EOF 1>&2
6671
6672 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6673 *** to be unable to reliably create shared libraries on AIX.
6674 *** Therefore, libtool is disabling shared libraries support.  If you
6675 *** really care for shared libraries, you may want to modify your PATH
6676 *** so that a non-GNU linker is found, and then restart.
6677
6678 EOF
6679       fi
6680       ;;
6681
6682     amigaos*)
6683       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)'
6684       hardcode_libdir_flag_spec='-L$libdir'
6685       hardcode_minus_L=yes
6686
6687       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6688       # that the semantics of dynamic libraries on AmigaOS, at least up
6689       # to version 4, is to share data among multiple programs linked
6690       # with the same dynamic library.  Since this doesn't match the
6691       # behavior of shared libraries on other platforms, we can't use
6692       # them.
6693       ld_shlibs=no
6694       ;;
6695
6696     beos*)
6697       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6698         allow_undefined_flag=unsupported
6699         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6700         # support --undefined.  This deserves some investigation.  FIXME
6701         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6702       else
6703         ld_shlibs=no
6704       fi
6705       ;;
6706
6707     cygwin* | mingw* | pw32*)
6708       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6709       # as there is no search path for DLLs.
6710       hardcode_libdir_flag_spec='-L$libdir'
6711       allow_undefined_flag=unsupported
6712       always_export_symbols=no
6713       enable_shared_with_static_runtimes=yes
6714       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6715
6716       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6717         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6718         # If the export-symbols file already is a .def file (1st line
6719         # is EXPORTS), use it as is; otherwise, prepend...
6720         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6721           cp $export_symbols $output_objdir/$soname.def;
6722         else
6723           echo EXPORTS > $output_objdir/$soname.def;
6724           cat $export_symbols >> $output_objdir/$soname.def;
6725         fi~
6726         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6727       else
6728         ld_shlibs=no
6729       fi
6730       ;;
6731
6732     netbsd*)
6733       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6734         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6735         wlarc=
6736       else
6737         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6738         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6739       fi
6740       ;;
6741
6742     solaris* | sysv5*)
6743       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6744         ld_shlibs=no
6745         cat <<EOF 1>&2
6746
6747 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6748 *** create shared libraries on Solaris systems.  Therefore, libtool
6749 *** is disabling shared libraries support.  We urge you to upgrade GNU
6750 *** binutils to release 2.9.1 or newer.  Another option is to modify
6751 *** your PATH or compiler configuration so that the native linker is
6752 *** used, and then restart.
6753
6754 EOF
6755       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6756         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6757         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6758       else
6759         ld_shlibs=no
6760       fi
6761       ;;
6762
6763     sunos4*)
6764       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6765       wlarc=
6766       hardcode_direct=yes
6767       hardcode_shlibpath_var=no
6768       ;;
6769
6770   linux*)
6771     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6772         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6773         archive_cmds="$tmp_archive_cmds"
6774       supports_anon_versioning=no
6775       case `$LD -v 2>/dev/null` in
6776         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6777         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6778         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6779         *\ 2.11.*) ;; # other 2.11 versions
6780         *) supports_anon_versioning=yes ;;
6781       esac
6782       if test $supports_anon_versioning = yes; then
6783         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6784 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6785 $echo "local: *; };" >> $output_objdir/$libname.ver~
6786         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6787       else
6788         archive_expsym_cmds="$tmp_archive_cmds"
6789       fi
6790     else
6791       ld_shlibs=no
6792     fi
6793     ;;
6794
6795     *)
6796       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6797         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6798         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6799       else
6800         ld_shlibs=no
6801       fi
6802       ;;
6803     esac
6804
6805     if test "$ld_shlibs" = yes; then
6806       runpath_var=LD_RUN_PATH
6807       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6808       export_dynamic_flag_spec='${wl}--export-dynamic'
6809       # ancient GNU ld didn't support --whole-archive et. al.
6810       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6811         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6812       else
6813         whole_archive_flag_spec=
6814       fi
6815     fi
6816   else
6817     # PORTME fill in a description of your system's linker (not GNU ld)
6818     case $host_os in
6819     aix3*)
6820       allow_undefined_flag=unsupported
6821       always_export_symbols=yes
6822       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'
6823       # Note: this linker hardcodes the directories in LIBPATH if there
6824       # are no directories specified by -L.
6825       hardcode_minus_L=yes
6826       if test "$GCC" = yes && test -z "$link_static_flag"; then
6827         # Neither direct hardcoding nor static linking is supported with a
6828         # broken collect2.
6829         hardcode_direct=unsupported
6830       fi
6831       ;;
6832
6833     aix4* | aix5*)
6834       if test "$host_cpu" = ia64; then
6835         # On IA64, the linker does run time linking by default, so we don't
6836         # have to do anything special.
6837         aix_use_runtimelinking=no
6838         exp_sym_flag='-Bexport'
6839         no_entry_flag=""
6840       else
6841         # If we're using GNU nm, then we don't want the "-C" option.
6842         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6843         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6844           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'
6845         else
6846           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'
6847         fi
6848         aix_use_runtimelinking=no
6849
6850         # Test if we are trying to use run time linking or normal
6851         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6852         # need to do runtime linking.
6853         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6854           for ld_flag in $LDFLAGS; do
6855           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6856             aix_use_runtimelinking=yes
6857             break
6858           fi
6859           done
6860         esac
6861
6862         exp_sym_flag='-bexport'
6863         no_entry_flag='-bnoentry'
6864       fi
6865
6866       # When large executables or shared objects are built, AIX ld can
6867       # have problems creating the table of contents.  If linking a library
6868       # or program results in "error TOC overflow" add -mminimal-toc to
6869       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6870       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6871
6872       archive_cmds=''
6873       hardcode_direct=yes
6874       hardcode_libdir_separator=':'
6875       link_all_deplibs=yes
6876
6877       if test "$GCC" = yes; then
6878         case $host_os in aix4.012|aix4.012.*)
6879         # We only want to do this on AIX 4.2 and lower, the check
6880         # below for broken collect2 doesn't work under 4.3+
6881           collect2name=`${CC} -print-prog-name=collect2`
6882           if test -f "$collect2name" && \
6883            strings "$collect2name" | grep resolve_lib_name >/dev/null
6884           then
6885           # We have reworked collect2
6886           hardcode_direct=yes
6887           else
6888           # We have old collect2
6889           hardcode_direct=unsupported
6890           # It fails to find uninstalled libraries when the uninstalled
6891           # path is not listed in the libpath.  Setting hardcode_minus_L
6892           # to unsupported forces relinking
6893           hardcode_minus_L=yes
6894           hardcode_libdir_flag_spec='-L$libdir'
6895           hardcode_libdir_separator=
6896           fi
6897         esac
6898         shared_flag='-shared'
6899       else
6900         # not using gcc
6901         if test "$host_cpu" = ia64; then
6902         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6903         # chokes on -Wl,-G. The following line is correct:
6904           shared_flag='-G'
6905         else
6906         if test "$aix_use_runtimelinking" = yes; then
6907             shared_flag='${wl}-G'
6908           else
6909             shared_flag='${wl}-bM:SRE'
6910         fi
6911         fi
6912       fi
6913
6914       # It seems that -bexpall does not export symbols beginning with
6915       # underscore (_), so it is better to generate a list of symbols to export.
6916       always_export_symbols=yes
6917       if test "$aix_use_runtimelinking" = yes; then
6918         # Warning - without using the other runtime loading flags (-brtl),
6919         # -berok will link without error, but may produce a broken library.
6920         allow_undefined_flag='-berok'
6921        # Determine the default libpath from the value encoded in an empty executable.
6922        cat >conftest.$ac_ext <<_ACEOF
6923 /* confdefs.h.  */
6924 _ACEOF
6925 cat confdefs.h >>conftest.$ac_ext
6926 cat >>conftest.$ac_ext <<_ACEOF
6927 /* end confdefs.h.  */
6928
6929 int
6930 main ()
6931 {
6932
6933   ;
6934   return 0;
6935 }
6936 _ACEOF
6937 rm -f conftest.$ac_objext conftest$ac_exeext
6938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6939   (eval $ac_link) 2>conftest.er1
6940   ac_status=$?
6941   grep -v '^ *+' conftest.er1 >conftest.err
6942   rm -f conftest.er1
6943   cat conftest.err >&5
6944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945   (exit $ac_status); } &&
6946          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6948   (eval $ac_try) 2>&5
6949   ac_status=$?
6950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951   (exit $ac_status); }; } &&
6952          { ac_try='test -s conftest$ac_exeext'
6953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6954   (eval $ac_try) 2>&5
6955   ac_status=$?
6956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957   (exit $ac_status); }; }; then
6958
6959 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6960 }'`
6961 # Check for a 64-bit object if we didn't find anything.
6962 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; }
6963 }'`; fi
6964 else
6965   echo "$as_me: failed program was:" >&5
6966 sed 's/^/| /' conftest.$ac_ext >&5
6967
6968 fi
6969 rm -f conftest.err conftest.$ac_objext \
6970       conftest$ac_exeext conftest.$ac_ext
6971 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6972
6973        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6974         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"
6975        else
6976         if test "$host_cpu" = ia64; then
6977           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6978           allow_undefined_flag="-z nodefs"
6979           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"
6980         else
6981          # Determine the default libpath from the value encoded in an empty executable.
6982          cat >conftest.$ac_ext <<_ACEOF
6983 /* confdefs.h.  */
6984 _ACEOF
6985 cat confdefs.h >>conftest.$ac_ext
6986 cat >>conftest.$ac_ext <<_ACEOF
6987 /* end confdefs.h.  */
6988
6989 int
6990 main ()
6991 {
6992
6993   ;
6994   return 0;
6995 }
6996 _ACEOF
6997 rm -f conftest.$ac_objext conftest$ac_exeext
6998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6999   (eval $ac_link) 2>conftest.er1
7000   ac_status=$?
7001   grep -v '^ *+' conftest.er1 >conftest.err
7002   rm -f conftest.er1
7003   cat conftest.err >&5
7004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005   (exit $ac_status); } &&
7006          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7008   (eval $ac_try) 2>&5
7009   ac_status=$?
7010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011   (exit $ac_status); }; } &&
7012          { ac_try='test -s conftest$ac_exeext'
7013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7014   (eval $ac_try) 2>&5
7015   ac_status=$?
7016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017   (exit $ac_status); }; }; then
7018
7019 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7020 }'`
7021 # Check for a 64-bit object if we didn't find anything.
7022 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; }
7023 }'`; fi
7024 else
7025   echo "$as_me: failed program was:" >&5
7026 sed 's/^/| /' conftest.$ac_ext >&5
7027
7028 fi
7029 rm -f conftest.err conftest.$ac_objext \
7030       conftest$ac_exeext conftest.$ac_ext
7031 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7032
7033          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7034           # Warning - without using the other run time loading flags,
7035           # -berok will link without error, but may produce a broken library.
7036           no_undefined_flag=' ${wl}-bernotok'
7037           allow_undefined_flag=' ${wl}-berok'
7038           # -bexpall does not export symbols beginning with underscore (_)
7039           always_export_symbols=yes
7040           # Exported symbols can be pulled into shared objects from archives
7041           whole_archive_flag_spec=' '
7042           archive_cmds_need_lc=yes
7043           # This is similar to how AIX traditionally builds it's shared libraries.
7044           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'
7045         fi
7046       fi
7047       ;;
7048
7049     amigaos*)
7050       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)'
7051       hardcode_libdir_flag_spec='-L$libdir'
7052       hardcode_minus_L=yes
7053       # see comment about different semantics on the GNU ld section
7054       ld_shlibs=no
7055       ;;
7056
7057     bsdi4*)
7058       export_dynamic_flag_spec=-rdynamic
7059       ;;
7060
7061     cygwin* | mingw* | pw32*)
7062       # When not using gcc, we currently assume that we are using
7063       # Microsoft Visual C++.
7064       # hardcode_libdir_flag_spec is actually meaningless, as there is
7065       # no search path for DLLs.
7066       hardcode_libdir_flag_spec=' '
7067       allow_undefined_flag=unsupported
7068       # Tell ltmain to make .lib files, not .a files.
7069       libext=lib
7070       # Tell ltmain to make .dll files, not .so files.
7071       shrext=".dll"
7072       # FIXME: Setting linknames here is a bad hack.
7073       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7074       # The linker will automatically build a .lib file if we build a DLL.
7075       old_archive_From_new_cmds='true'
7076       # FIXME: Should let the user specify the lib program.
7077       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7078       fix_srcfile_path='`cygpath -w "$srcfile"`'
7079       enable_shared_with_static_runtimes=yes
7080       ;;
7081
7082     darwin* | rhapsody*)
7083     if test "$GXX" = yes ; then
7084       archive_cmds_need_lc=no
7085       case "$host_os" in
7086       rhapsody* | darwin1.[012])
7087         allow_undefined_flag='-undefined suppress'
7088         ;;
7089       *) # Darwin 1.3 on
7090       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7091         allow_undefined_flag='-flat_namespace -undefined suppress'
7092       else
7093         case ${MACOSX_DEPLOYMENT_TARGET} in
7094           10.[012])
7095             allow_undefined_flag='-flat_namespace -undefined suppress'
7096             ;;
7097           10.*)
7098             allow_undefined_flag='-undefined dynamic_lookup'
7099             ;;
7100         esac
7101       fi
7102         ;;
7103       esac
7104         lt_int_apple_cc_single_mod=no
7105         output_verbose_link_cmd='echo'
7106         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7107           lt_int_apple_cc_single_mod=yes
7108         fi
7109         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7110           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7111         else
7112         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'
7113       fi
7114       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7115       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7116         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7117           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}'
7118         else
7119           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}'
7120         fi
7121           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}'
7122       hardcode_direct=no
7123       hardcode_automatic=yes
7124       hardcode_shlibpath_var=unsupported
7125       whole_archive_flag_spec='-all_load $convenience'
7126       link_all_deplibs=yes
7127     else
7128       ld_shlibs=no
7129     fi
7130       ;;
7131
7132     dgux*)
7133       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7134       hardcode_libdir_flag_spec='-L$libdir'
7135       hardcode_shlibpath_var=no
7136       ;;
7137
7138     freebsd1*)
7139       ld_shlibs=no
7140       ;;
7141
7142     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7143     # support.  Future versions do this automatically, but an explicit c++rt0.o
7144     # does not break anything, and helps significantly (at the cost of a little
7145     # extra space).
7146     freebsd2.2*)
7147       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7148       hardcode_libdir_flag_spec='-R$libdir'
7149       hardcode_direct=yes
7150       hardcode_shlibpath_var=no
7151       ;;
7152
7153     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7154     freebsd2*)
7155       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7156       hardcode_direct=yes
7157       hardcode_minus_L=yes
7158       hardcode_shlibpath_var=no
7159       ;;
7160
7161     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7162     freebsd* | kfreebsd*-gnu)
7163       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7164       hardcode_libdir_flag_spec='-R$libdir'
7165       hardcode_direct=yes
7166       hardcode_shlibpath_var=no
7167       ;;
7168
7169     hpux9*)
7170       if test "$GCC" = yes; then
7171         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'
7172       else
7173         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'
7174       fi
7175       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7176       hardcode_libdir_separator=:
7177       hardcode_direct=yes
7178
7179       # hardcode_minus_L: Not really in the search PATH,
7180       # but as the default location of the library.
7181       hardcode_minus_L=yes
7182       export_dynamic_flag_spec='${wl}-E'
7183       ;;
7184
7185     hpux10* | hpux11*)
7186       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7187         case "$host_cpu" in
7188         hppa*64*|ia64*)
7189           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7190           ;;
7191         *)
7192           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7193           ;;
7194         esac
7195       else
7196         case "$host_cpu" in
7197         hppa*64*|ia64*)
7198           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7199           ;;
7200         *)
7201           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7202           ;;
7203         esac
7204       fi
7205       if test "$with_gnu_ld" = no; then
7206         case "$host_cpu" in
7207         hppa*64*)
7208           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7209           hardcode_libdir_flag_spec_ld='+b $libdir'
7210           hardcode_libdir_separator=:
7211           hardcode_direct=no
7212           hardcode_shlibpath_var=no
7213           ;;
7214         ia64*)
7215           hardcode_libdir_flag_spec='-L$libdir'
7216           hardcode_direct=no
7217           hardcode_shlibpath_var=no
7218
7219           # hardcode_minus_L: Not really in the search PATH,
7220           # but as the default location of the library.
7221           hardcode_minus_L=yes
7222           ;;
7223         *)
7224           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7225           hardcode_libdir_separator=:
7226           hardcode_direct=yes
7227           export_dynamic_flag_spec='${wl}-E'
7228
7229           # hardcode_minus_L: Not really in the search PATH,
7230           # but as the default location of the library.
7231           hardcode_minus_L=yes
7232           ;;
7233         esac
7234       fi
7235       ;;
7236
7237     irix5* | irix6* | nonstopux*)
7238       if test "$GCC" = yes; then
7239         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'
7240       else
7241         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'
7242         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7243       fi
7244       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7245       hardcode_libdir_separator=:
7246       link_all_deplibs=yes
7247       ;;
7248
7249     netbsd*)
7250       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7251         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7252       else
7253         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7254       fi
7255       hardcode_libdir_flag_spec='-R$libdir'
7256       hardcode_direct=yes
7257       hardcode_shlibpath_var=no
7258       ;;
7259
7260     newsos6)
7261       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7262       hardcode_direct=yes
7263       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7264       hardcode_libdir_separator=:
7265       hardcode_shlibpath_var=no
7266       ;;
7267
7268     openbsd*)
7269       hardcode_direct=yes
7270       hardcode_shlibpath_var=no
7271       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7272         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7273         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7274         export_dynamic_flag_spec='${wl}-E'
7275       else
7276        case $host_os in
7277          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7278            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7279            hardcode_libdir_flag_spec='-R$libdir'
7280            ;;
7281          *)
7282            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7283            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7284            ;;
7285        esac
7286       fi
7287       ;;
7288
7289     os2*)
7290       hardcode_libdir_flag_spec='-L$libdir'
7291       hardcode_minus_L=yes
7292       allow_undefined_flag=unsupported
7293       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'
7294       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7295       ;;
7296
7297     osf3*)
7298       if test "$GCC" = yes; then
7299         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7300         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'
7301       else
7302         allow_undefined_flag=' -expect_unresolved \*'
7303         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'
7304       fi
7305       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7306       hardcode_libdir_separator=:
7307       ;;
7308
7309     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7310       if test "$GCC" = yes; then
7311         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7312         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'
7313         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7314       else
7315         allow_undefined_flag=' -expect_unresolved \*'
7316         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'
7317         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7318         $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'
7319
7320         # Both c and cxx compiler support -rpath directly
7321         hardcode_libdir_flag_spec='-rpath $libdir'
7322       fi
7323       hardcode_libdir_separator=:
7324       ;;
7325
7326     sco3.2v5*)
7327       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7328       hardcode_shlibpath_var=no
7329       export_dynamic_flag_spec='${wl}-Bexport'
7330       runpath_var=LD_RUN_PATH
7331       hardcode_runpath_var=yes
7332       ;;
7333
7334     solaris*)
7335       no_undefined_flag=' -z text'
7336       if test "$GCC" = yes; then
7337         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7338         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7339           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7340       else
7341         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7342         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7343         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7344       fi
7345       hardcode_libdir_flag_spec='-R$libdir'
7346       hardcode_shlibpath_var=no
7347       case $host_os in
7348       solaris2.[0-5] | solaris2.[0-5].*) ;;
7349       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7350         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7351       esac
7352       link_all_deplibs=yes
7353       ;;
7354
7355     sunos4*)
7356       if test "x$host_vendor" = xsequent; then
7357         # Use $CC to link under sequent, because it throws in some extra .o
7358         # files that make .init and .fini sections work.
7359         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7360       else
7361         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7362       fi
7363       hardcode_libdir_flag_spec='-L$libdir'
7364       hardcode_direct=yes
7365       hardcode_minus_L=yes
7366       hardcode_shlibpath_var=no
7367       ;;
7368
7369     sysv4)
7370       case $host_vendor in
7371         sni)
7372           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7373           hardcode_direct=yes # is this really true???
7374         ;;
7375         siemens)
7376           ## LD is ld it makes a PLAMLIB
7377           ## CC just makes a GrossModule.
7378           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7379           reload_cmds='$CC -r -o $output$reload_objs'
7380           hardcode_direct=no
7381         ;;
7382         motorola)
7383           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7384           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7385         ;;
7386       esac
7387       runpath_var='LD_RUN_PATH'
7388       hardcode_shlibpath_var=no
7389       ;;
7390
7391     sysv4.3*)
7392       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7393       hardcode_shlibpath_var=no
7394       export_dynamic_flag_spec='-Bexport'
7395       ;;
7396
7397     sysv4*MP*)
7398       if test -d /usr/nec; then
7399         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7400         hardcode_shlibpath_var=no
7401         runpath_var=LD_RUN_PATH
7402         hardcode_runpath_var=yes
7403         ld_shlibs=yes
7404       fi
7405       ;;
7406
7407     sysv4.2uw2*)
7408       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7409       hardcode_direct=yes
7410       hardcode_minus_L=no
7411       hardcode_shlibpath_var=no
7412       hardcode_runpath_var=yes
7413       runpath_var=LD_RUN_PATH
7414       ;;
7415
7416    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7417       no_undefined_flag='${wl}-z ${wl}text'
7418       if test "$GCC" = yes; then
7419         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7420       else
7421         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7422       fi
7423       runpath_var='LD_RUN_PATH'
7424       hardcode_shlibpath_var=no
7425       ;;
7426
7427     sysv5*)
7428       no_undefined_flag=' -z text'
7429       # $CC -shared without GNU ld will not create a library from C++
7430       # object files and a static libstdc++, better avoid it by now
7431       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7432       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7433                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7434       hardcode_libdir_flag_spec=
7435       hardcode_shlibpath_var=no
7436       runpath_var='LD_RUN_PATH'
7437       ;;
7438
7439     uts4*)
7440       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7441       hardcode_libdir_flag_spec='-L$libdir'
7442       hardcode_shlibpath_var=no
7443       ;;
7444
7445     *)
7446       ld_shlibs=no
7447       ;;
7448     esac
7449   fi
7450
7451 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7452 echo "${ECHO_T}$ld_shlibs" >&6
7453 test "$ld_shlibs" = no && can_build_shared=no
7454
7455 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7456 if test "$GCC" = yes; then
7457   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7458 fi
7459
7460 #
7461 # Do we need to explicitly link libc?
7462 #
7463 case "x$archive_cmds_need_lc" in
7464 x|xyes)
7465   # Assume -lc should be added
7466   archive_cmds_need_lc=yes
7467
7468   if test "$enable_shared" = yes && test "$GCC" = yes; then
7469     case $archive_cmds in
7470     *'~'*)
7471       # FIXME: we may have to deal with multi-command sequences.
7472       ;;
7473     '$CC '*)
7474       # Test whether the compiler implicitly links with -lc since on some
7475       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7476       # to ld, don't add -lc before -lgcc.
7477       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7478 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7479       $rm conftest*
7480       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7481
7482       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7483   (eval $ac_compile) 2>&5
7484   ac_status=$?
7485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486   (exit $ac_status); } 2>conftest.err; then
7487         soname=conftest
7488         lib=conftest
7489         libobjs=conftest.$ac_objext
7490         deplibs=
7491         wl=$lt_prog_compiler_wl
7492         compiler_flags=-v
7493         linker_flags=-v
7494         verstring=
7495         output_objdir=.
7496         libname=conftest
7497         lt_save_allow_undefined_flag=$allow_undefined_flag
7498         allow_undefined_flag=
7499         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7500   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7501   ac_status=$?
7502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503   (exit $ac_status); }
7504         then
7505           archive_cmds_need_lc=no
7506         else
7507           archive_cmds_need_lc=yes
7508         fi
7509         allow_undefined_flag=$lt_save_allow_undefined_flag
7510       else
7511         cat conftest.err 1>&5
7512       fi
7513       $rm conftest*
7514       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7515 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7516       ;;
7517     esac
7518   fi
7519   ;;
7520 esac
7521
7522 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7523 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7524 library_names_spec=
7525 libname_spec='lib$name'
7526 soname_spec=
7527 shrext=".so"
7528 postinstall_cmds=
7529 postuninstall_cmds=
7530 finish_cmds=
7531 finish_eval=
7532 shlibpath_var=
7533 shlibpath_overrides_runpath=unknown
7534 version_type=none
7535 dynamic_linker="$host_os ld.so"
7536 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7537 if test "$GCC" = yes; then
7538   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7539   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7540     # if the path contains ";" then we assume it to be the separator
7541     # otherwise default to the standard path separator (i.e. ":") - it is
7542     # assumed that no part of a normal pathname contains ";" but that should
7543     # okay in the real world where ";" in dirpaths is itself problematic.
7544     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7545   else
7546     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7547   fi
7548 else
7549   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7550 fi
7551 need_lib_prefix=unknown
7552 hardcode_into_libs=no
7553
7554 # when you set need_version to no, make sure it does not cause -set_version
7555 # flags to be left without arguments
7556 need_version=unknown
7557
7558 case $host_os in
7559 aix3*)
7560   version_type=linux
7561   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7562   shlibpath_var=LIBPATH
7563
7564   # AIX 3 has no versioning support, so we append a major version to the name.
7565   soname_spec='${libname}${release}${shared_ext}$major'
7566   ;;
7567
7568 aix4* | aix5*)
7569   version_type=linux
7570   need_lib_prefix=no
7571   need_version=no
7572   hardcode_into_libs=yes
7573   if test "$host_cpu" = ia64; then
7574     # AIX 5 supports IA64
7575     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7576     shlibpath_var=LD_LIBRARY_PATH
7577   else
7578     # With GCC up to 2.95.x, collect2 would create an import file
7579     # for dependence libraries.  The import file would start with
7580     # the line `#! .'.  This would cause the generated library to
7581     # depend on `.', always an invalid library.  This was fixed in
7582     # development snapshots of GCC prior to 3.0.
7583     case $host_os in
7584       aix4 | aix4.[01] | aix4.[01].*)
7585       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7586            echo ' yes '
7587            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7588         :
7589       else
7590         can_build_shared=no
7591       fi
7592       ;;
7593     esac
7594     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7595     # soname into executable. Probably we can add versioning support to
7596     # collect2, so additional links can be useful in future.
7597     if test "$aix_use_runtimelinking" = yes; then
7598       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7599       # instead of lib<name>.a to let people know that these are not
7600       # typical AIX shared libraries.
7601       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7602     else
7603       # We preserve .a as extension for shared libraries through AIX4.2
7604       # and later when we are not doing run time linking.
7605       library_names_spec='${libname}${release}.a $libname.a'
7606       soname_spec='${libname}${release}${shared_ext}$major'
7607     fi
7608     shlibpath_var=LIBPATH
7609   fi
7610   ;;
7611
7612 amigaos*)
7613   library_names_spec='$libname.ixlibrary $libname.a'
7614   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7615   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'
7616   ;;
7617
7618 beos*)
7619   library_names_spec='${libname}${shared_ext}'
7620   dynamic_linker="$host_os ld.so"
7621   shlibpath_var=LIBRARY_PATH
7622   ;;
7623
7624 bsdi4*)
7625   version_type=linux
7626   need_version=no
7627   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7628   soname_spec='${libname}${release}${shared_ext}$major'
7629   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7630   shlibpath_var=LD_LIBRARY_PATH
7631   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7632   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7633   # the default ld.so.conf also contains /usr/contrib/lib and
7634   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7635   # libtool to hard-code these into programs
7636   ;;
7637
7638 cygwin* | mingw* | pw32*)
7639   version_type=windows
7640   shrext=".dll"
7641   need_version=no
7642   need_lib_prefix=no
7643
7644   case $GCC,$host_os in
7645   yes,cygwin* | yes,mingw* | yes,pw32*)
7646     library_names_spec='$libname.dll.a'
7647     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7648     postinstall_cmds='base_file=`basename \${file}`~
7649       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7650       dldir=$destdir/`dirname \$dlpath`~
7651       test -d \$dldir || mkdir -p \$dldir~
7652       $install_prog $dir/$dlname \$dldir/$dlname'
7653     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7654       dlpath=$dir/\$dldll~
7655        $rm \$dlpath'
7656     shlibpath_overrides_runpath=yes
7657
7658     case $host_os in
7659     cygwin*)
7660       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7661       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7662       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7663       ;;
7664     mingw*)
7665       # MinGW DLLs use traditional 'lib' prefix
7666       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7667       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7668       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7669         # It is most probably a Windows format PATH printed by
7670         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7671         # path with ; separators, and with drive letters. We can handle the
7672         # drive letters (cygwin fileutils understands them), so leave them,
7673         # especially as we might pass files found there to a mingw objdump,
7674         # which wouldn't understand a cygwinified path. Ahh.
7675         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7676       else
7677         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7678       fi
7679       ;;
7680     pw32*)
7681       # pw32 DLLs use 'pw' prefix rather than 'lib'
7682       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7683       ;;
7684     esac
7685     ;;
7686
7687   *)
7688     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7689     ;;
7690   esac
7691   dynamic_linker='Win32 ld.exe'
7692   # FIXME: first we should search . and the directory the executable is in
7693   shlibpath_var=PATH
7694   ;;
7695
7696 darwin* | rhapsody*)
7697   dynamic_linker="$host_os dyld"
7698   version_type=darwin
7699   need_lib_prefix=no
7700   need_version=no
7701   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7702   soname_spec='${libname}${release}${major}$shared_ext'
7703   shlibpath_overrides_runpath=yes
7704   shlibpath_var=DYLD_LIBRARY_PATH
7705   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7706   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7707   if test "$GCC" = yes; then
7708     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"`
7709   else
7710     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7711   fi
7712   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7713   ;;
7714
7715 dgux*)
7716   version_type=linux
7717   need_lib_prefix=no
7718   need_version=no
7719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7720   soname_spec='${libname}${release}${shared_ext}$major'
7721   shlibpath_var=LD_LIBRARY_PATH
7722   ;;
7723
7724 freebsd1*)
7725   dynamic_linker=no
7726   ;;
7727
7728 kfreebsd*-gnu)
7729   version_type=linux
7730   need_lib_prefix=no
7731   need_version=no
7732   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7733   soname_spec='${libname}${release}${shared_ext}$major'
7734   shlibpath_var=LD_LIBRARY_PATH
7735   shlibpath_overrides_runpath=no
7736   hardcode_into_libs=yes
7737   dynamic_linker='GNU ld.so'
7738   ;;
7739
7740 freebsd*)
7741   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7742   version_type=freebsd-$objformat
7743   case $version_type in
7744     freebsd-elf*)
7745       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7746       need_version=no
7747       need_lib_prefix=no
7748       ;;
7749     freebsd-*)
7750       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7751       need_version=yes
7752       ;;
7753   esac
7754   shlibpath_var=LD_LIBRARY_PATH
7755   case $host_os in
7756   freebsd2*)
7757     shlibpath_overrides_runpath=yes
7758     ;;
7759   freebsd3.01* | freebsdelf3.01*)
7760     shlibpath_overrides_runpath=yes
7761     hardcode_into_libs=yes
7762     ;;
7763   *) # from 3.2 on
7764     shlibpath_overrides_runpath=no
7765     hardcode_into_libs=yes
7766     ;;
7767   esac
7768   ;;
7769
7770 gnu*)
7771   version_type=linux
7772   need_lib_prefix=no
7773   need_version=no
7774   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7775   soname_spec='${libname}${release}${shared_ext}$major'
7776   shlibpath_var=LD_LIBRARY_PATH
7777   hardcode_into_libs=yes
7778   ;;
7779
7780 hpux9* | hpux10* | hpux11*)
7781   # Give a soname corresponding to the major version so that dld.sl refuses to
7782   # link against other versions.
7783   version_type=sunos
7784   need_lib_prefix=no
7785   need_version=no
7786   case "$host_cpu" in
7787   ia64*)
7788     shrext='.so'
7789     hardcode_into_libs=yes
7790     dynamic_linker="$host_os dld.so"
7791     shlibpath_var=LD_LIBRARY_PATH
7792     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7793     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7794     soname_spec='${libname}${release}${shared_ext}$major'
7795     if test "X$HPUX_IA64_MODE" = X32; then
7796       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7797     else
7798       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7799     fi
7800     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7801     ;;
7802    hppa*64*)
7803      shrext='.sl'
7804      hardcode_into_libs=yes
7805      dynamic_linker="$host_os dld.sl"
7806      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7807      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7808      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7809      soname_spec='${libname}${release}${shared_ext}$major'
7810      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7811      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7812      ;;
7813    *)
7814     shrext='.sl'
7815     dynamic_linker="$host_os dld.sl"
7816     shlibpath_var=SHLIB_PATH
7817     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7818     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7819     soname_spec='${libname}${release}${shared_ext}$major'
7820     ;;
7821   esac
7822   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7823   postinstall_cmds='chmod 555 $lib'
7824   ;;
7825
7826 irix5* | irix6* | nonstopux*)
7827   case $host_os in
7828     nonstopux*) version_type=nonstopux ;;
7829     *)
7830         if test "$lt_cv_prog_gnu_ld" = yes; then
7831                 version_type=linux
7832         else
7833                 version_type=irix
7834         fi ;;
7835   esac
7836   need_lib_prefix=no
7837   need_version=no
7838   soname_spec='${libname}${release}${shared_ext}$major'
7839   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7840   case $host_os in
7841   irix5* | nonstopux*)
7842     libsuff= shlibsuff=
7843     ;;
7844   *)
7845     case $LD in # libtool.m4 will add one of these switches to LD
7846     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7847       libsuff= shlibsuff= libmagic=32-bit;;
7848     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7849       libsuff=32 shlibsuff=N32 libmagic=N32;;
7850     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7851       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7852     *) libsuff= shlibsuff= libmagic=never-match;;
7853     esac
7854     ;;
7855   esac
7856   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7857   shlibpath_overrides_runpath=no
7858   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7859   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7860   hardcode_into_libs=yes
7861   ;;
7862
7863 # No shared lib support for Linux oldld, aout, or coff.
7864 linux*oldld* | linux*aout* | linux*coff*)
7865   dynamic_linker=no
7866   ;;
7867
7868 # This must be Linux ELF.
7869 linux*)
7870   version_type=linux
7871   need_lib_prefix=no
7872   need_version=no
7873   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7874   soname_spec='${libname}${release}${shared_ext}$major'
7875   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7876   shlibpath_var=LD_LIBRARY_PATH
7877   shlibpath_overrides_runpath=no
7878   # This implies no fast_install, which is unacceptable.
7879   # Some rework will be needed to allow for fast_install
7880   # before this can be enabled.
7881   hardcode_into_libs=yes
7882
7883   # Append ld.so.conf contents to the search path
7884   if test -f /etc/ld.so.conf; then
7885     ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
7886     sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
7887   fi
7888
7889   # We used to test for /lib/ld.so.1 and disable shared libraries on
7890   # powerpc, because MkLinux only supported shared libraries with the
7891   # GNU dynamic linker.  Since this was broken with cross compilers,
7892   # most powerpc-linux boxes support dynamic linking these days and
7893   # people can always --disable-shared, the test was removed, and we
7894   # assume the GNU/Linux dynamic linker is in use.
7895   dynamic_linker='GNU/Linux ld.so'
7896   ;;
7897
7898 knetbsd*-gnu)
7899   version_type=linux
7900   need_lib_prefix=no
7901   need_version=no
7902   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7903   soname_spec='${libname}${release}${shared_ext}$major'
7904   shlibpath_var=LD_LIBRARY_PATH
7905   shlibpath_overrides_runpath=no
7906   hardcode_into_libs=yes
7907   dynamic_linker='GNU ld.so'
7908   ;;
7909
7910 netbsd*)
7911   version_type=sunos
7912   need_lib_prefix=no
7913   need_version=no
7914   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7915     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7916     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7917     dynamic_linker='NetBSD (a.out) ld.so'
7918   else
7919     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7920     soname_spec='${libname}${release}${shared_ext}$major'
7921     dynamic_linker='NetBSD ld.elf_so'
7922   fi
7923   shlibpath_var=LD_LIBRARY_PATH
7924   shlibpath_overrides_runpath=yes
7925   hardcode_into_libs=yes
7926   ;;
7927
7928 newsos6)
7929   version_type=linux
7930   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7931   shlibpath_var=LD_LIBRARY_PATH
7932   shlibpath_overrides_runpath=yes
7933   ;;
7934
7935 nto-qnx*)
7936   version_type=linux
7937   need_lib_prefix=no
7938   need_version=no
7939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7940   soname_spec='${libname}${release}${shared_ext}$major'
7941   shlibpath_var=LD_LIBRARY_PATH
7942   shlibpath_overrides_runpath=yes
7943   ;;
7944
7945 openbsd*)
7946   version_type=sunos
7947   need_lib_prefix=no
7948   need_version=yes
7949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7950   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7951   shlibpath_var=LD_LIBRARY_PATH
7952   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7953     case $host_os in
7954       openbsd2.[89] | openbsd2.[89].*)
7955         shlibpath_overrides_runpath=no
7956         ;;
7957       *)
7958         shlibpath_overrides_runpath=yes
7959         ;;
7960       esac
7961   else
7962     shlibpath_overrides_runpath=yes
7963   fi
7964   ;;
7965
7966 os2*)
7967   libname_spec='$name'
7968   shrext=".dll"
7969   need_lib_prefix=no
7970   library_names_spec='$libname${shared_ext} $libname.a'
7971   dynamic_linker='OS/2 ld.exe'
7972   shlibpath_var=LIBPATH
7973   ;;
7974
7975 osf3* | osf4* | osf5*)
7976   version_type=osf
7977   need_lib_prefix=no
7978   need_version=no
7979   soname_spec='${libname}${release}${shared_ext}$major'
7980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7981   shlibpath_var=LD_LIBRARY_PATH
7982   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7983   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7984   ;;
7985
7986 sco3.2v5*)
7987   version_type=osf
7988   soname_spec='${libname}${release}${shared_ext}$major'
7989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7990   shlibpath_var=LD_LIBRARY_PATH
7991   ;;
7992
7993 solaris*)
7994   version_type=linux
7995   need_lib_prefix=no
7996   need_version=no
7997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7998   soname_spec='${libname}${release}${shared_ext}$major'
7999   shlibpath_var=LD_LIBRARY_PATH
8000   shlibpath_overrides_runpath=yes
8001   hardcode_into_libs=yes
8002   # ldd complains unless libraries are executable
8003   postinstall_cmds='chmod +x $lib'
8004   ;;
8005
8006 sunos4*)
8007   version_type=sunos
8008   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8009   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8010   shlibpath_var=LD_LIBRARY_PATH
8011   shlibpath_overrides_runpath=yes
8012   if test "$with_gnu_ld" = yes; then
8013     need_lib_prefix=no
8014   fi
8015   need_version=yes
8016   ;;
8017
8018 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8019   version_type=linux
8020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8021   soname_spec='${libname}${release}${shared_ext}$major'
8022   shlibpath_var=LD_LIBRARY_PATH
8023   case $host_vendor in
8024     sni)
8025       shlibpath_overrides_runpath=no
8026       need_lib_prefix=no
8027       export_dynamic_flag_spec='${wl}-Blargedynsym'
8028       runpath_var=LD_RUN_PATH
8029       ;;
8030     siemens)
8031       need_lib_prefix=no
8032       ;;
8033     motorola)
8034       need_lib_prefix=no
8035       need_version=no
8036       shlibpath_overrides_runpath=no
8037       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8038       ;;
8039   esac
8040   ;;
8041
8042 sysv4*MP*)
8043   if test -d /usr/nec ;then
8044     version_type=linux
8045     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8046     soname_spec='$libname${shared_ext}.$major'
8047     shlibpath_var=LD_LIBRARY_PATH
8048   fi
8049   ;;
8050
8051 uts4*)
8052   version_type=linux
8053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8054   soname_spec='${libname}${release}${shared_ext}$major'
8055   shlibpath_var=LD_LIBRARY_PATH
8056   ;;
8057
8058 *)
8059   dynamic_linker=no
8060   ;;
8061 esac
8062 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8063 echo "${ECHO_T}$dynamic_linker" >&6
8064 test "$dynamic_linker" = no && can_build_shared=no
8065
8066 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8067 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8068 hardcode_action=
8069 if test -n "$hardcode_libdir_flag_spec" || \
8070    test -n "$runpath_var " || \
8071    test "X$hardcode_automatic"="Xyes" ; then
8072
8073   # We can hardcode non-existant directories.
8074   if test "$hardcode_direct" != no &&
8075      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8076      # have to relink, otherwise we might link with an installed library
8077      # when we should be linking with a yet-to-be-installed one
8078      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8079      test "$hardcode_minus_L" != no; then
8080     # Linking always hardcodes the temporary library directory.
8081     hardcode_action=relink
8082   else
8083     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8084     hardcode_action=immediate
8085   fi
8086 else
8087   # We cannot hardcode anything, or else we can only hardcode existing
8088   # directories.
8089   hardcode_action=unsupported
8090 fi
8091 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8092 echo "${ECHO_T}$hardcode_action" >&6
8093
8094 if test "$hardcode_action" = relink; then
8095   # Fast installation is not supported
8096   enable_fast_install=no
8097 elif test "$shlibpath_overrides_runpath" = yes ||
8098      test "$enable_shared" = no; then
8099   # Fast installation is not necessary
8100   enable_fast_install=needless
8101 fi
8102
8103 striplib=
8104 old_striplib=
8105 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8106 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8107 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8108   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8109   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8110   echo "$as_me:$LINENO: result: yes" >&5
8111 echo "${ECHO_T}yes" >&6
8112 else
8113 # FIXME - insert some real tests, host_os isn't really good enough
8114   case $host_os in
8115    darwin*)
8116        if test -n "$STRIP" ; then
8117          striplib="$STRIP -x"
8118          echo "$as_me:$LINENO: result: yes" >&5
8119 echo "${ECHO_T}yes" >&6
8120        else
8121   echo "$as_me:$LINENO: result: no" >&5
8122 echo "${ECHO_T}no" >&6
8123 fi
8124        ;;
8125    *)
8126   echo "$as_me:$LINENO: result: no" >&5
8127 echo "${ECHO_T}no" >&6
8128     ;;
8129   esac
8130 fi
8131
8132 if test "x$enable_dlopen" != xyes; then
8133   enable_dlopen=unknown
8134   enable_dlopen_self=unknown
8135   enable_dlopen_self_static=unknown
8136 else
8137   lt_cv_dlopen=no
8138   lt_cv_dlopen_libs=
8139
8140   case $host_os in
8141   beos*)
8142     lt_cv_dlopen="load_add_on"
8143     lt_cv_dlopen_libs=
8144     lt_cv_dlopen_self=yes
8145     ;;
8146
8147   mingw* | pw32*)
8148     lt_cv_dlopen="LoadLibrary"
8149     lt_cv_dlopen_libs=
8150    ;;
8151
8152   cygwin*)
8153     lt_cv_dlopen="dlopen"
8154     lt_cv_dlopen_libs=
8155    ;;
8156
8157   darwin*)
8158   # if libdl is installed we need to link against it
8159     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8160 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8161 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8162   echo $ECHO_N "(cached) $ECHO_C" >&6
8163 else
8164   ac_check_lib_save_LIBS=$LIBS
8165 LIBS="-ldl  $LIBS"
8166 cat >conftest.$ac_ext <<_ACEOF
8167 /* confdefs.h.  */
8168 _ACEOF
8169 cat confdefs.h >>conftest.$ac_ext
8170 cat >>conftest.$ac_ext <<_ACEOF
8171 /* end confdefs.h.  */
8172
8173 /* Override any gcc2 internal prototype to avoid an error.  */
8174 #ifdef __cplusplus
8175 extern "C"
8176 #endif
8177 /* We use char because int might match the return type of a gcc2
8178    builtin and then its argument prototype would still apply.  */
8179 char dlopen ();
8180 int
8181 main ()
8182 {
8183 dlopen ();
8184   ;
8185   return 0;
8186 }
8187 _ACEOF
8188 rm -f conftest.$ac_objext conftest$ac_exeext
8189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8190   (eval $ac_link) 2>conftest.er1
8191   ac_status=$?
8192   grep -v '^ *+' conftest.er1 >conftest.err
8193   rm -f conftest.er1
8194   cat conftest.err >&5
8195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196   (exit $ac_status); } &&
8197          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8199   (eval $ac_try) 2>&5
8200   ac_status=$?
8201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202   (exit $ac_status); }; } &&
8203          { ac_try='test -s conftest$ac_exeext'
8204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8205   (eval $ac_try) 2>&5
8206   ac_status=$?
8207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208   (exit $ac_status); }; }; then
8209   ac_cv_lib_dl_dlopen=yes
8210 else
8211   echo "$as_me: failed program was:" >&5
8212 sed 's/^/| /' conftest.$ac_ext >&5
8213
8214 ac_cv_lib_dl_dlopen=no
8215 fi
8216 rm -f conftest.err conftest.$ac_objext \
8217       conftest$ac_exeext conftest.$ac_ext
8218 LIBS=$ac_check_lib_save_LIBS
8219 fi
8220 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8221 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8222 if test $ac_cv_lib_dl_dlopen = yes; then
8223   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8224 else
8225
8226     lt_cv_dlopen="dyld"
8227     lt_cv_dlopen_libs=
8228     lt_cv_dlopen_self=yes
8229
8230 fi
8231
8232    ;;
8233
8234   *)
8235     echo "$as_me:$LINENO: checking for shl_load" >&5
8236 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8237 if test "${ac_cv_func_shl_load+set}" = set; then
8238   echo $ECHO_N "(cached) $ECHO_C" >&6
8239 else
8240   cat >conftest.$ac_ext <<_ACEOF
8241 /* confdefs.h.  */
8242 _ACEOF
8243 cat confdefs.h >>conftest.$ac_ext
8244 cat >>conftest.$ac_ext <<_ACEOF
8245 /* end confdefs.h.  */
8246 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8247    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8248 #define shl_load innocuous_shl_load
8249
8250 /* System header to define __stub macros and hopefully few prototypes,
8251     which can conflict with char shl_load (); below.
8252     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8253     <limits.h> exists even on freestanding compilers.  */
8254
8255 #ifdef __STDC__
8256 # include <limits.h>
8257 #else
8258 # include <assert.h>
8259 #endif
8260
8261 #undef shl_load
8262
8263 /* Override any gcc2 internal prototype to avoid an error.  */
8264 #ifdef __cplusplus
8265 extern "C"
8266 {
8267 #endif
8268 /* We use char because int might match the return type of a gcc2
8269    builtin and then its argument prototype would still apply.  */
8270 char shl_load ();
8271 /* The GNU C library defines this for functions which it implements
8272     to always fail with ENOSYS.  Some functions are actually named
8273     something starting with __ and the normal name is an alias.  */
8274 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8275 choke me
8276 #else
8277 char (*f) () = shl_load;
8278 #endif
8279 #ifdef __cplusplus
8280 }
8281 #endif
8282
8283 int
8284 main ()
8285 {
8286 return f != shl_load;
8287   ;
8288   return 0;
8289 }
8290 _ACEOF
8291 rm -f conftest.$ac_objext conftest$ac_exeext
8292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8293   (eval $ac_link) 2>conftest.er1
8294   ac_status=$?
8295   grep -v '^ *+' conftest.er1 >conftest.err
8296   rm -f conftest.er1
8297   cat conftest.err >&5
8298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299   (exit $ac_status); } &&
8300          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8302   (eval $ac_try) 2>&5
8303   ac_status=$?
8304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305   (exit $ac_status); }; } &&
8306          { ac_try='test -s conftest$ac_exeext'
8307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8308   (eval $ac_try) 2>&5
8309   ac_status=$?
8310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311   (exit $ac_status); }; }; then
8312   ac_cv_func_shl_load=yes
8313 else
8314   echo "$as_me: failed program was:" >&5
8315 sed 's/^/| /' conftest.$ac_ext >&5
8316
8317 ac_cv_func_shl_load=no
8318 fi
8319 rm -f conftest.err conftest.$ac_objext \
8320       conftest$ac_exeext conftest.$ac_ext
8321 fi
8322 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8323 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8324 if test $ac_cv_func_shl_load = yes; then
8325   lt_cv_dlopen="shl_load"
8326 else
8327   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8328 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8329 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8330   echo $ECHO_N "(cached) $ECHO_C" >&6
8331 else
8332   ac_check_lib_save_LIBS=$LIBS
8333 LIBS="-ldld  $LIBS"
8334 cat >conftest.$ac_ext <<_ACEOF
8335 /* confdefs.h.  */
8336 _ACEOF
8337 cat confdefs.h >>conftest.$ac_ext
8338 cat >>conftest.$ac_ext <<_ACEOF
8339 /* end confdefs.h.  */
8340
8341 /* Override any gcc2 internal prototype to avoid an error.  */
8342 #ifdef __cplusplus
8343 extern "C"
8344 #endif
8345 /* We use char because int might match the return type of a gcc2
8346    builtin and then its argument prototype would still apply.  */
8347 char shl_load ();
8348 int
8349 main ()
8350 {
8351 shl_load ();
8352   ;
8353   return 0;
8354 }
8355 _ACEOF
8356 rm -f conftest.$ac_objext conftest$ac_exeext
8357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8358   (eval $ac_link) 2>conftest.er1
8359   ac_status=$?
8360   grep -v '^ *+' conftest.er1 >conftest.err
8361   rm -f conftest.er1
8362   cat conftest.err >&5
8363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364   (exit $ac_status); } &&
8365          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8367   (eval $ac_try) 2>&5
8368   ac_status=$?
8369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370   (exit $ac_status); }; } &&
8371          { ac_try='test -s conftest$ac_exeext'
8372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8373   (eval $ac_try) 2>&5
8374   ac_status=$?
8375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376   (exit $ac_status); }; }; then
8377   ac_cv_lib_dld_shl_load=yes
8378 else
8379   echo "$as_me: failed program was:" >&5
8380 sed 's/^/| /' conftest.$ac_ext >&5
8381
8382 ac_cv_lib_dld_shl_load=no
8383 fi
8384 rm -f conftest.err conftest.$ac_objext \
8385       conftest$ac_exeext conftest.$ac_ext
8386 LIBS=$ac_check_lib_save_LIBS
8387 fi
8388 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8389 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8390 if test $ac_cv_lib_dld_shl_load = yes; then
8391   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8392 else
8393   echo "$as_me:$LINENO: checking for dlopen" >&5
8394 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8395 if test "${ac_cv_func_dlopen+set}" = set; then
8396   echo $ECHO_N "(cached) $ECHO_C" >&6
8397 else
8398   cat >conftest.$ac_ext <<_ACEOF
8399 /* confdefs.h.  */
8400 _ACEOF
8401 cat confdefs.h >>conftest.$ac_ext
8402 cat >>conftest.$ac_ext <<_ACEOF
8403 /* end confdefs.h.  */
8404 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8405    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8406 #define dlopen innocuous_dlopen
8407
8408 /* System header to define __stub macros and hopefully few prototypes,
8409     which can conflict with char dlopen (); below.
8410     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8411     <limits.h> exists even on freestanding compilers.  */
8412
8413 #ifdef __STDC__
8414 # include <limits.h>
8415 #else
8416 # include <assert.h>
8417 #endif
8418
8419 #undef dlopen
8420
8421 /* Override any gcc2 internal prototype to avoid an error.  */
8422 #ifdef __cplusplus
8423 extern "C"
8424 {
8425 #endif
8426 /* We use char because int might match the return type of a gcc2
8427    builtin and then its argument prototype would still apply.  */
8428 char dlopen ();
8429 /* The GNU C library defines this for functions which it implements
8430     to always fail with ENOSYS.  Some functions are actually named
8431     something starting with __ and the normal name is an alias.  */
8432 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8433 choke me
8434 #else
8435 char (*f) () = dlopen;
8436 #endif
8437 #ifdef __cplusplus
8438 }
8439 #endif
8440
8441 int
8442 main ()
8443 {
8444 return f != dlopen;
8445   ;
8446   return 0;
8447 }
8448 _ACEOF
8449 rm -f conftest.$ac_objext conftest$ac_exeext
8450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8451   (eval $ac_link) 2>conftest.er1
8452   ac_status=$?
8453   grep -v '^ *+' conftest.er1 >conftest.err
8454   rm -f conftest.er1
8455   cat conftest.err >&5
8456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457   (exit $ac_status); } &&
8458          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8460   (eval $ac_try) 2>&5
8461   ac_status=$?
8462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463   (exit $ac_status); }; } &&
8464          { ac_try='test -s conftest$ac_exeext'
8465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8466   (eval $ac_try) 2>&5
8467   ac_status=$?
8468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469   (exit $ac_status); }; }; then
8470   ac_cv_func_dlopen=yes
8471 else
8472   echo "$as_me: failed program was:" >&5
8473 sed 's/^/| /' conftest.$ac_ext >&5
8474
8475 ac_cv_func_dlopen=no
8476 fi
8477 rm -f conftest.err conftest.$ac_objext \
8478       conftest$ac_exeext conftest.$ac_ext
8479 fi
8480 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8481 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8482 if test $ac_cv_func_dlopen = yes; then
8483   lt_cv_dlopen="dlopen"
8484 else
8485   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8486 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8487 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8488   echo $ECHO_N "(cached) $ECHO_C" >&6
8489 else
8490   ac_check_lib_save_LIBS=$LIBS
8491 LIBS="-ldl  $LIBS"
8492 cat >conftest.$ac_ext <<_ACEOF
8493 /* confdefs.h.  */
8494 _ACEOF
8495 cat confdefs.h >>conftest.$ac_ext
8496 cat >>conftest.$ac_ext <<_ACEOF
8497 /* end confdefs.h.  */
8498
8499 /* Override any gcc2 internal prototype to avoid an error.  */
8500 #ifdef __cplusplus
8501 extern "C"
8502 #endif
8503 /* We use char because int might match the return type of a gcc2
8504    builtin and then its argument prototype would still apply.  */
8505 char dlopen ();
8506 int
8507 main ()
8508 {
8509 dlopen ();
8510   ;
8511   return 0;
8512 }
8513 _ACEOF
8514 rm -f conftest.$ac_objext conftest$ac_exeext
8515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8516   (eval $ac_link) 2>conftest.er1
8517   ac_status=$?
8518   grep -v '^ *+' conftest.er1 >conftest.err
8519   rm -f conftest.er1
8520   cat conftest.err >&5
8521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522   (exit $ac_status); } &&
8523          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8525   (eval $ac_try) 2>&5
8526   ac_status=$?
8527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528   (exit $ac_status); }; } &&
8529          { ac_try='test -s conftest$ac_exeext'
8530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8531   (eval $ac_try) 2>&5
8532   ac_status=$?
8533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534   (exit $ac_status); }; }; then
8535   ac_cv_lib_dl_dlopen=yes
8536 else
8537   echo "$as_me: failed program was:" >&5
8538 sed 's/^/| /' conftest.$ac_ext >&5
8539
8540 ac_cv_lib_dl_dlopen=no
8541 fi
8542 rm -f conftest.err conftest.$ac_objext \
8543       conftest$ac_exeext conftest.$ac_ext
8544 LIBS=$ac_check_lib_save_LIBS
8545 fi
8546 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8547 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8548 if test $ac_cv_lib_dl_dlopen = yes; then
8549   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8550 else
8551   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8552 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8553 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8554   echo $ECHO_N "(cached) $ECHO_C" >&6
8555 else
8556   ac_check_lib_save_LIBS=$LIBS
8557 LIBS="-lsvld  $LIBS"
8558 cat >conftest.$ac_ext <<_ACEOF
8559 /* confdefs.h.  */
8560 _ACEOF
8561 cat confdefs.h >>conftest.$ac_ext
8562 cat >>conftest.$ac_ext <<_ACEOF
8563 /* end confdefs.h.  */
8564
8565 /* Override any gcc2 internal prototype to avoid an error.  */
8566 #ifdef __cplusplus
8567 extern "C"
8568 #endif
8569 /* We use char because int might match the return type of a gcc2
8570    builtin and then its argument prototype would still apply.  */
8571 char dlopen ();
8572 int
8573 main ()
8574 {
8575 dlopen ();
8576   ;
8577   return 0;
8578 }
8579 _ACEOF
8580 rm -f conftest.$ac_objext conftest$ac_exeext
8581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8582   (eval $ac_link) 2>conftest.er1
8583   ac_status=$?
8584   grep -v '^ *+' conftest.er1 >conftest.err
8585   rm -f conftest.er1
8586   cat conftest.err >&5
8587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588   (exit $ac_status); } &&
8589          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8591   (eval $ac_try) 2>&5
8592   ac_status=$?
8593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594   (exit $ac_status); }; } &&
8595          { ac_try='test -s conftest$ac_exeext'
8596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8597   (eval $ac_try) 2>&5
8598   ac_status=$?
8599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600   (exit $ac_status); }; }; then
8601   ac_cv_lib_svld_dlopen=yes
8602 else
8603   echo "$as_me: failed program was:" >&5
8604 sed 's/^/| /' conftest.$ac_ext >&5
8605
8606 ac_cv_lib_svld_dlopen=no
8607 fi
8608 rm -f conftest.err conftest.$ac_objext \
8609       conftest$ac_exeext conftest.$ac_ext
8610 LIBS=$ac_check_lib_save_LIBS
8611 fi
8612 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8613 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8614 if test $ac_cv_lib_svld_dlopen = yes; then
8615   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8616 else
8617   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8618 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8619 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8620   echo $ECHO_N "(cached) $ECHO_C" >&6
8621 else
8622   ac_check_lib_save_LIBS=$LIBS
8623 LIBS="-ldld  $LIBS"
8624 cat >conftest.$ac_ext <<_ACEOF
8625 /* confdefs.h.  */
8626 _ACEOF
8627 cat confdefs.h >>conftest.$ac_ext
8628 cat >>conftest.$ac_ext <<_ACEOF
8629 /* end confdefs.h.  */
8630
8631 /* Override any gcc2 internal prototype to avoid an error.  */
8632 #ifdef __cplusplus
8633 extern "C"
8634 #endif
8635 /* We use char because int might match the return type of a gcc2
8636    builtin and then its argument prototype would still apply.  */
8637 char dld_link ();
8638 int
8639 main ()
8640 {
8641 dld_link ();
8642   ;
8643   return 0;
8644 }
8645 _ACEOF
8646 rm -f conftest.$ac_objext conftest$ac_exeext
8647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8648   (eval $ac_link) 2>conftest.er1
8649   ac_status=$?
8650   grep -v '^ *+' conftest.er1 >conftest.err
8651   rm -f conftest.er1
8652   cat conftest.err >&5
8653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654   (exit $ac_status); } &&
8655          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8657   (eval $ac_try) 2>&5
8658   ac_status=$?
8659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660   (exit $ac_status); }; } &&
8661          { ac_try='test -s conftest$ac_exeext'
8662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8663   (eval $ac_try) 2>&5
8664   ac_status=$?
8665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666   (exit $ac_status); }; }; then
8667   ac_cv_lib_dld_dld_link=yes
8668 else
8669   echo "$as_me: failed program was:" >&5
8670 sed 's/^/| /' conftest.$ac_ext >&5
8671
8672 ac_cv_lib_dld_dld_link=no
8673 fi
8674 rm -f conftest.err conftest.$ac_objext \
8675       conftest$ac_exeext conftest.$ac_ext
8676 LIBS=$ac_check_lib_save_LIBS
8677 fi
8678 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8679 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8680 if test $ac_cv_lib_dld_dld_link = yes; then
8681   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8682 fi
8683
8684
8685 fi
8686
8687
8688 fi
8689
8690
8691 fi
8692
8693
8694 fi
8695
8696
8697 fi
8698
8699     ;;
8700   esac
8701
8702   if test "x$lt_cv_dlopen" != xno; then
8703     enable_dlopen=yes
8704   else
8705     enable_dlopen=no
8706   fi
8707
8708   case $lt_cv_dlopen in
8709   dlopen)
8710     save_CPPFLAGS="$CPPFLAGS"
8711     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8712
8713     save_LDFLAGS="$LDFLAGS"
8714     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8715
8716     save_LIBS="$LIBS"
8717     LIBS="$lt_cv_dlopen_libs $LIBS"
8718
8719     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8720 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8721 if test "${lt_cv_dlopen_self+set}" = set; then
8722   echo $ECHO_N "(cached) $ECHO_C" >&6
8723 else
8724           if test "$cross_compiling" = yes; then :
8725   lt_cv_dlopen_self=cross
8726 else
8727   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8728   lt_status=$lt_dlunknown
8729   cat > conftest.$ac_ext <<EOF
8730 #line 8730 "configure"
8731 #include "confdefs.h"
8732
8733 #if HAVE_DLFCN_H
8734 #include <dlfcn.h>
8735 #endif
8736
8737 #include <stdio.h>
8738
8739 #ifdef RTLD_GLOBAL
8740 #  define LT_DLGLOBAL           RTLD_GLOBAL
8741 #else
8742 #  ifdef DL_GLOBAL
8743 #    define LT_DLGLOBAL         DL_GLOBAL
8744 #  else
8745 #    define LT_DLGLOBAL         0
8746 #  endif
8747 #endif
8748
8749 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8750    find out it does not work in some platform. */
8751 #ifndef LT_DLLAZY_OR_NOW
8752 #  ifdef RTLD_LAZY
8753 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8754 #  else
8755 #    ifdef DL_LAZY
8756 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8757 #    else
8758 #      ifdef RTLD_NOW
8759 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8760 #      else
8761 #        ifdef DL_NOW
8762 #          define LT_DLLAZY_OR_NOW      DL_NOW
8763 #        else
8764 #          define LT_DLLAZY_OR_NOW      0
8765 #        endif
8766 #      endif
8767 #    endif
8768 #  endif
8769 #endif
8770
8771 #ifdef __cplusplus
8772 extern "C" void exit (int);
8773 #endif
8774
8775 void fnord() { int i=42;}
8776 int main ()
8777 {
8778   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8779   int status = $lt_dlunknown;
8780
8781   if (self)
8782     {
8783       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8784       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8785       /* dlclose (self); */
8786     }
8787
8788     exit (status);
8789 }
8790 EOF
8791   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8792   (eval $ac_link) 2>&5
8793   ac_status=$?
8794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8796     (./conftest; exit; ) 2>/dev/null
8797     lt_status=$?
8798     case x$lt_status in
8799       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8800       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8801       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8802     esac
8803   else :
8804     # compilation failed
8805     lt_cv_dlopen_self=no
8806   fi
8807 fi
8808 rm -fr conftest*
8809
8810
8811 fi
8812 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8813 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8814
8815     if test "x$lt_cv_dlopen_self" = xyes; then
8816       LDFLAGS="$LDFLAGS $link_static_flag"
8817       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8818 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8819 if test "${lt_cv_dlopen_self_static+set}" = set; then
8820   echo $ECHO_N "(cached) $ECHO_C" >&6
8821 else
8822           if test "$cross_compiling" = yes; then :
8823   lt_cv_dlopen_self_static=cross
8824 else
8825   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8826   lt_status=$lt_dlunknown
8827   cat > conftest.$ac_ext <<EOF
8828 #line 8828 "configure"
8829 #include "confdefs.h"
8830
8831 #if HAVE_DLFCN_H
8832 #include <dlfcn.h>
8833 #endif
8834
8835 #include <stdio.h>
8836
8837 #ifdef RTLD_GLOBAL
8838 #  define LT_DLGLOBAL           RTLD_GLOBAL
8839 #else
8840 #  ifdef DL_GLOBAL
8841 #    define LT_DLGLOBAL         DL_GLOBAL
8842 #  else
8843 #    define LT_DLGLOBAL         0
8844 #  endif
8845 #endif
8846
8847 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8848    find out it does not work in some platform. */
8849 #ifndef LT_DLLAZY_OR_NOW
8850 #  ifdef RTLD_LAZY
8851 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8852 #  else
8853 #    ifdef DL_LAZY
8854 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8855 #    else
8856 #      ifdef RTLD_NOW
8857 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8858 #      else
8859 #        ifdef DL_NOW
8860 #          define LT_DLLAZY_OR_NOW      DL_NOW
8861 #        else
8862 #          define LT_DLLAZY_OR_NOW      0
8863 #        endif
8864 #      endif
8865 #    endif
8866 #  endif
8867 #endif
8868
8869 #ifdef __cplusplus
8870 extern "C" void exit (int);
8871 #endif
8872
8873 void fnord() { int i=42;}
8874 int main ()
8875 {
8876   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8877   int status = $lt_dlunknown;
8878
8879   if (self)
8880     {
8881       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8882       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8883       /* dlclose (self); */
8884     }
8885
8886     exit (status);
8887 }
8888 EOF
8889   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8890   (eval $ac_link) 2>&5
8891   ac_status=$?
8892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8894     (./conftest; exit; ) 2>/dev/null
8895     lt_status=$?
8896     case x$lt_status in
8897       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8898       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8899       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8900     esac
8901   else :
8902     # compilation failed
8903     lt_cv_dlopen_self_static=no
8904   fi
8905 fi
8906 rm -fr conftest*
8907
8908
8909 fi
8910 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8911 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8912     fi
8913
8914     CPPFLAGS="$save_CPPFLAGS"
8915     LDFLAGS="$save_LDFLAGS"
8916     LIBS="$save_LIBS"
8917     ;;
8918   esac
8919
8920   case $lt_cv_dlopen_self in
8921   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8922   *) enable_dlopen_self=unknown ;;
8923   esac
8924
8925   case $lt_cv_dlopen_self_static in
8926   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8927   *) enable_dlopen_self_static=unknown ;;
8928   esac
8929 fi
8930
8931
8932 # Report which librarie types wil actually be built
8933 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8934 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8935 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8936 echo "${ECHO_T}$can_build_shared" >&6
8937
8938 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8939 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8940 test "$can_build_shared" = "no" && enable_shared=no
8941
8942 # On AIX, shared libraries and static libraries use the same namespace, and
8943 # are all built from PIC.
8944 case "$host_os" in
8945 aix3*)
8946   test "$enable_shared" = yes && enable_static=no
8947   if test -n "$RANLIB"; then
8948     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8949     postinstall_cmds='$RANLIB $lib'
8950   fi
8951   ;;
8952
8953 aix4*)
8954   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8955     test "$enable_shared" = yes && enable_static=no
8956   fi
8957   ;;
8958   darwin* | rhapsody*)
8959   if test "$GCC" = yes; then
8960     archive_cmds_need_lc=no
8961     case "$host_os" in
8962     rhapsody* | darwin1.[012])
8963       allow_undefined_flag='-undefined suppress'
8964       ;;
8965     *) # Darwin 1.3 on
8966       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8967         allow_undefined_flag='-flat_namespace -undefined suppress'
8968       else
8969         case ${MACOSX_DEPLOYMENT_TARGET} in
8970           10.[012])
8971             allow_undefined_flag='-flat_namespace -undefined suppress'
8972             ;;
8973           10.*)
8974             allow_undefined_flag='-undefined dynamic_lookup'
8975             ;;
8976         esac
8977       fi
8978       ;;
8979     esac
8980     output_verbose_link_cmd='echo'
8981     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8982     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8983     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8984     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}'
8985     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}'
8986     hardcode_direct=no
8987     hardcode_automatic=yes
8988     hardcode_shlibpath_var=unsupported
8989     whole_archive_flag_spec='-all_load $convenience'
8990     link_all_deplibs=yes
8991   else
8992     ld_shlibs=no
8993   fi
8994     ;;
8995 esac
8996 echo "$as_me:$LINENO: result: $enable_shared" >&5
8997 echo "${ECHO_T}$enable_shared" >&6
8998
8999 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9000 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9001 # Make sure either enable_shared or enable_static is yes.
9002 test "$enable_shared" = yes || enable_static=yes
9003 echo "$as_me:$LINENO: result: $enable_static" >&5
9004 echo "${ECHO_T}$enable_static" >&6
9005
9006 # The else clause should only fire when bootstrapping the
9007 # libtool distribution, otherwise you forgot to ship ltmain.sh
9008 # with your package, and you will get complaints that there are
9009 # no rules to generate ltmain.sh.
9010 if test -f "$ltmain"; then
9011   # See if we are running on zsh, and set the options which allow our commands through
9012   # without removal of \ escapes.
9013   if test -n "${ZSH_VERSION+set}" ; then
9014     setopt NO_GLOB_SUBST
9015   fi
9016   # Now quote all the things that may contain metacharacters while being
9017   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9018   # variables and quote the copies for generation of the libtool script.
9019   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9020     SED SHELL STRIP \
9021     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9022     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9023     deplibs_check_method reload_flag reload_cmds need_locks \
9024     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9025     lt_cv_sys_global_symbol_to_c_name_address \
9026     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9027     old_postinstall_cmds old_postuninstall_cmds \
9028     compiler \
9029     CC \
9030     LD \
9031     lt_prog_compiler_wl \
9032     lt_prog_compiler_pic \
9033     lt_prog_compiler_static \
9034     lt_prog_compiler_no_builtin_flag \
9035     export_dynamic_flag_spec \
9036     thread_safe_flag_spec \
9037     whole_archive_flag_spec \
9038     enable_shared_with_static_runtimes \
9039     old_archive_cmds \
9040     old_archive_from_new_cmds \
9041     predep_objects \
9042     postdep_objects \
9043     predeps \
9044     postdeps \
9045     compiler_lib_search_path \
9046     archive_cmds \
9047     archive_expsym_cmds \
9048     postinstall_cmds \
9049     postuninstall_cmds \
9050     old_archive_from_expsyms_cmds \
9051     allow_undefined_flag \
9052     no_undefined_flag \
9053     export_symbols_cmds \
9054     hardcode_libdir_flag_spec \
9055     hardcode_libdir_flag_spec_ld \
9056     hardcode_libdir_separator \
9057     hardcode_automatic \
9058     module_cmds \
9059     module_expsym_cmds \
9060     lt_cv_prog_compiler_c_o \
9061     exclude_expsyms \
9062     include_expsyms; do
9063
9064     case $var in
9065     old_archive_cmds | \
9066     old_archive_from_new_cmds | \
9067     archive_cmds | \
9068     archive_expsym_cmds | \
9069     module_cmds | \
9070     module_expsym_cmds | \
9071     old_archive_from_expsyms_cmds | \
9072     export_symbols_cmds | \
9073     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9074     postinstall_cmds | postuninstall_cmds | \
9075     old_postinstall_cmds | old_postuninstall_cmds | \
9076     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9077       # Double-quote double-evaled strings.
9078       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9079       ;;
9080     *)
9081       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9082       ;;
9083     esac
9084   done
9085
9086   case $lt_echo in
9087   *'\$0 --fallback-echo"')
9088     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9089     ;;
9090   esac
9091
9092 cfgfile="${ofile}T"
9093   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9094   $rm -f "$cfgfile"
9095   { echo "$as_me:$LINENO: creating $ofile" >&5
9096 echo "$as_me: creating $ofile" >&6;}
9097
9098   cat <<__EOF__ >> "$cfgfile"
9099 #! $SHELL
9100
9101 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9102 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9103 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9104 #
9105 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9106 # Free Software Foundation, Inc.
9107 #
9108 # This file is part of GNU Libtool:
9109 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9110 #
9111 # This program is free software; you can redistribute it and/or modify
9112 # it under the terms of the GNU General Public License as published by
9113 # the Free Software Foundation; either version 2 of the License, or
9114 # (at your option) any later version.
9115 #
9116 # This program is distributed in the hope that it will be useful, but
9117 # WITHOUT ANY WARRANTY; without even the implied warranty of
9118 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9119 # General Public License for more details.
9120 #
9121 # You should have received a copy of the GNU General Public License
9122 # along with this program; if not, write to the Free Software
9123 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9124 #
9125 # As a special exception to the GNU General Public License, if you
9126 # distribute this file as part of a program that contains a
9127 # configuration script generated by Autoconf, you may include it under
9128 # the same distribution terms that you use for the rest of that program.
9129
9130 # A sed program that does not truncate output.
9131 SED=$lt_SED
9132
9133 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9134 Xsed="$SED -e s/^X//"
9135
9136 # The HP-UX ksh and POSIX shell print the target directory to stdout
9137 # if CDPATH is set.
9138 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9139
9140 # The names of the tagged configurations supported by this script.
9141 available_tags=
9142
9143 # ### BEGIN LIBTOOL CONFIG
9144
9145 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9146
9147 # Shell to use when invoking shell scripts.
9148 SHELL=$lt_SHELL
9149
9150 # Whether or not to build shared libraries.
9151 build_libtool_libs=$enable_shared
9152
9153 # Whether or not to build static libraries.
9154 build_old_libs=$enable_static
9155
9156 # Whether or not to add -lc for building shared libraries.
9157 build_libtool_need_lc=$archive_cmds_need_lc
9158
9159 # Whether or not to disallow shared libs when runtime libs are static
9160 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9161
9162 # Whether or not to optimize for fast installation.
9163 fast_install=$enable_fast_install
9164
9165 # The host system.
9166 host_alias=$host_alias
9167 host=$host
9168
9169 # An echo program that does not interpret backslashes.
9170 echo=$lt_echo
9171
9172 # The archiver.
9173 AR=$lt_AR
9174 AR_FLAGS=$lt_AR_FLAGS
9175
9176 # A C compiler.
9177 LTCC=$lt_LTCC
9178
9179 # A language-specific compiler.
9180 CC=$lt_compiler
9181
9182 # Is the compiler the GNU C compiler?
9183 with_gcc=$GCC
9184
9185 # An ERE matcher.
9186 EGREP=$lt_EGREP
9187
9188 # The linker used to build libraries.
9189 LD=$lt_LD
9190
9191 # Whether we need hard or soft links.
9192 LN_S=$lt_LN_S
9193
9194 # A BSD-compatible nm program.
9195 NM=$lt_NM
9196
9197 # A symbol stripping program
9198 STRIP=$lt_STRIP
9199
9200 # Used to examine libraries when file_magic_cmd begins "file"
9201 MAGIC_CMD=$MAGIC_CMD
9202
9203 # Used on cygwin: DLL creation program.
9204 DLLTOOL="$DLLTOOL"
9205
9206 # Used on cygwin: object dumper.
9207 OBJDUMP="$OBJDUMP"
9208
9209 # Used on cygwin: assembler.
9210 AS="$AS"
9211
9212 # The name of the directory that contains temporary libtool files.
9213 objdir=$objdir
9214
9215 # How to create reloadable object files.
9216 reload_flag=$lt_reload_flag
9217 reload_cmds=$lt_reload_cmds
9218
9219 # How to pass a linker flag through the compiler.
9220 wl=$lt_lt_prog_compiler_wl
9221
9222 # Object file suffix (normally "o").
9223 objext="$ac_objext"
9224
9225 # Old archive suffix (normally "a").
9226 libext="$libext"
9227
9228 # Shared library suffix (normally ".so").
9229 shrext='$shrext'
9230
9231 # Executable file suffix (normally "").
9232 exeext="$exeext"
9233
9234 # Additional compiler flags for building library objects.
9235 pic_flag=$lt_lt_prog_compiler_pic
9236 pic_mode=$pic_mode
9237
9238 # What is the maximum length of a command?
9239 max_cmd_len=$lt_cv_sys_max_cmd_len
9240
9241 # Does compiler simultaneously support -c and -o options?
9242 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9243
9244 # Must we lock files when doing compilation ?
9245 need_locks=$lt_need_locks
9246
9247 # Do we need the lib prefix for modules?
9248 need_lib_prefix=$need_lib_prefix
9249
9250 # Do we need a version for libraries?
9251 need_version=$need_version
9252
9253 # Whether dlopen is supported.
9254 dlopen_support=$enable_dlopen
9255
9256 # Whether dlopen of programs is supported.
9257 dlopen_self=$enable_dlopen_self
9258
9259 # Whether dlopen of statically linked programs is supported.
9260 dlopen_self_static=$enable_dlopen_self_static
9261
9262 # Compiler flag to prevent dynamic linking.
9263 link_static_flag=$lt_lt_prog_compiler_static
9264
9265 # Compiler flag to turn off builtin functions.
9266 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9267
9268 # Compiler flag to allow reflexive dlopens.
9269 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9270
9271 # Compiler flag to generate shared objects directly from archives.
9272 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9273
9274 # Compiler flag to generate thread-safe objects.
9275 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9276
9277 # Library versioning type.
9278 version_type=$version_type
9279
9280 # Format of library name prefix.
9281 libname_spec=$lt_libname_spec
9282
9283 # List of archive names.  First name is the real one, the rest are links.
9284 # The last name is the one that the linker finds with -lNAME.
9285 library_names_spec=$lt_library_names_spec
9286
9287 # The coded name of the library, if different from the real name.
9288 soname_spec=$lt_soname_spec
9289
9290 # Commands used to build and install an old-style archive.
9291 RANLIB=$lt_RANLIB
9292 old_archive_cmds=$lt_old_archive_cmds
9293 old_postinstall_cmds=$lt_old_postinstall_cmds
9294 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9295
9296 # Create an old-style archive from a shared archive.
9297 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9298
9299 # Create a temporary old-style archive to link instead of a shared archive.
9300 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9301
9302 # Commands used to build and install a shared archive.
9303 archive_cmds=$lt_archive_cmds
9304 archive_expsym_cmds=$lt_archive_expsym_cmds
9305 postinstall_cmds=$lt_postinstall_cmds
9306 postuninstall_cmds=$lt_postuninstall_cmds
9307
9308 # Commands used to build a loadable module (assumed same as above if empty)
9309 module_cmds=$lt_module_cmds
9310 module_expsym_cmds=$lt_module_expsym_cmds
9311
9312 # Commands to strip libraries.
9313 old_striplib=$lt_old_striplib
9314 striplib=$lt_striplib
9315
9316 # Dependencies to place before the objects being linked to create a
9317 # shared library.
9318 predep_objects=$lt_predep_objects
9319
9320 # Dependencies to place after the objects being linked to create a
9321 # shared library.
9322 postdep_objects=$lt_postdep_objects
9323
9324 # Dependencies to place before the objects being linked to create a
9325 # shared library.
9326 predeps=$lt_predeps
9327
9328 # Dependencies to place after the objects being linked to create a
9329 # shared library.
9330 postdeps=$lt_postdeps
9331
9332 # The library search path used internally by the compiler when linking
9333 # a shared library.
9334 compiler_lib_search_path=$lt_compiler_lib_search_path
9335
9336 # Method to check whether dependent libraries are shared objects.
9337 deplibs_check_method=$lt_deplibs_check_method
9338
9339 # Command to use when deplibs_check_method == file_magic.
9340 file_magic_cmd=$lt_file_magic_cmd
9341
9342 # Flag that allows shared libraries with undefined symbols to be built.
9343 allow_undefined_flag=$lt_allow_undefined_flag
9344
9345 # Flag that forces no undefined symbols.
9346 no_undefined_flag=$lt_no_undefined_flag
9347
9348 # Commands used to finish a libtool library installation in a directory.
9349 finish_cmds=$lt_finish_cmds
9350
9351 # Same as above, but a single script fragment to be evaled but not shown.
9352 finish_eval=$lt_finish_eval
9353
9354 # Take the output of nm and produce a listing of raw symbols and C names.
9355 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9356
9357 # Transform the output of nm in a proper C declaration
9358 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9359
9360 # Transform the output of nm in a C name address pair
9361 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9362
9363 # This is the shared library runtime path variable.
9364 runpath_var=$runpath_var
9365
9366 # This is the shared library path variable.
9367 shlibpath_var=$shlibpath_var
9368
9369 # Is shlibpath searched before the hard-coded library search path?
9370 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9371
9372 # How to hardcode a shared library path into an executable.
9373 hardcode_action=$hardcode_action
9374
9375 # Whether we should hardcode library paths into libraries.
9376 hardcode_into_libs=$hardcode_into_libs
9377
9378 # Flag to hardcode \$libdir into a binary during linking.
9379 # This must work even if \$libdir does not exist.
9380 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9381
9382 # If ld is used when linking, flag to hardcode \$libdir into
9383 # a binary during linking. This must work even if \$libdir does
9384 # not exist.
9385 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9386
9387 # Whether we need a single -rpath flag with a separated argument.
9388 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9389
9390 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9391 # resulting binary.
9392 hardcode_direct=$hardcode_direct
9393
9394 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9395 # resulting binary.
9396 hardcode_minus_L=$hardcode_minus_L
9397
9398 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9399 # the resulting binary.
9400 hardcode_shlibpath_var=$hardcode_shlibpath_var
9401
9402 # Set to yes if building a shared library automatically hardcodes DIR into the library
9403 # and all subsequent libraries and executables linked against it.
9404 hardcode_automatic=$hardcode_automatic
9405
9406 # Variables whose values should be saved in libtool wrapper scripts and
9407 # restored at relink time.
9408 variables_saved_for_relink="$variables_saved_for_relink"
9409
9410 # Whether libtool must link a program against all its dependency libraries.
9411 link_all_deplibs=$link_all_deplibs
9412
9413 # Compile-time system search path for libraries
9414 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9415
9416 # Run-time system search path for libraries
9417 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9418
9419 # Fix the shell variable \$srcfile for the compiler.
9420 fix_srcfile_path="$fix_srcfile_path"
9421
9422 # Set to yes if exported symbols are required.
9423 always_export_symbols=$always_export_symbols
9424
9425 # The commands to list exported symbols.
9426 export_symbols_cmds=$lt_export_symbols_cmds
9427
9428 # The commands to extract the exported symbol list from a shared archive.
9429 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9430
9431 # Symbols that should not be listed in the preloaded symbols.
9432 exclude_expsyms=$lt_exclude_expsyms
9433
9434 # Symbols that must always be exported.
9435 include_expsyms=$lt_include_expsyms
9436
9437 # ### END LIBTOOL CONFIG
9438
9439 __EOF__
9440
9441
9442   case $host_os in
9443   aix3*)
9444     cat <<\EOF >> "$cfgfile"
9445
9446 # AIX sometimes has problems with the GCC collect2 program.  For some
9447 # reason, if we set the COLLECT_NAMES environment variable, the problems
9448 # vanish in a puff of smoke.
9449 if test "X${COLLECT_NAMES+set}" != Xset; then
9450   COLLECT_NAMES=
9451   export COLLECT_NAMES
9452 fi
9453 EOF
9454     ;;
9455   esac
9456
9457   # We use sed instead of cat because bash on DJGPP gets confused if
9458   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9459   # text mode, it properly converts lines to CR/LF.  This bash problem
9460   # is reportedly fixed, but why not run on old versions too?
9461   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9462
9463   mv -f "$cfgfile" "$ofile" || \
9464     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9465   chmod +x "$ofile"
9466
9467 else
9468   # If there is no Makefile yet, we rely on a make rule to execute
9469   # `config.status --recheck' to rerun these tests and create the
9470   # libtool script then.
9471   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9472   if test -f "$ltmain_in"; then
9473     test -f Makefile && make "$ltmain"
9474   fi
9475 fi
9476
9477
9478 ac_ext=c
9479 ac_cpp='$CPP $CPPFLAGS'
9480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9483
9484 CC="$lt_save_CC"
9485
9486
9487 # Check whether --with-tags or --without-tags was given.
9488 if test "${with_tags+set}" = set; then
9489   withval="$with_tags"
9490   tagnames="$withval"
9491 fi;
9492
9493 if test -f "$ltmain" && test -n "$tagnames"; then
9494   if test ! -f "${ofile}"; then
9495     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9496 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9497   fi
9498
9499   if test -z "$LTCC"; then
9500     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9501     if test -z "$LTCC"; then
9502       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9503 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9504     else
9505       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9506 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9507     fi
9508   fi
9509
9510   # Extract list of available tagged configurations in $ofile.
9511   # Note that this assumes the entire list is on one line.
9512   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9513
9514   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9515   for tagname in $tagnames; do
9516     IFS="$lt_save_ifs"
9517     # Check whether tagname contains only valid characters
9518     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9519     "") ;;
9520     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9521 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9522    { (exit 1); exit 1; }; }
9523         ;;
9524     esac
9525
9526     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9527     then
9528       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9529 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9530    { (exit 1); exit 1; }; }
9531     fi
9532
9533     # Update the list of available tags.
9534     if test -n "$tagname"; then
9535       echo appending configuration tag \"$tagname\" to $ofile
9536
9537       case $tagname in
9538       CXX)
9539         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9540           ac_ext=cc
9541 ac_cpp='$CXXCPP $CPPFLAGS'
9542 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9543 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9544 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9545
9546
9547
9548
9549 archive_cmds_need_lc_CXX=no
9550 allow_undefined_flag_CXX=
9551 always_export_symbols_CXX=no
9552 archive_expsym_cmds_CXX=
9553 export_dynamic_flag_spec_CXX=
9554 hardcode_direct_CXX=no
9555 hardcode_libdir_flag_spec_CXX=
9556 hardcode_libdir_flag_spec_ld_CXX=
9557 hardcode_libdir_separator_CXX=
9558 hardcode_minus_L_CXX=no
9559 hardcode_automatic_CXX=no
9560 module_cmds_CXX=
9561 module_expsym_cmds_CXX=
9562 link_all_deplibs_CXX=unknown
9563 old_archive_cmds_CXX=$old_archive_cmds
9564 no_undefined_flag_CXX=
9565 whole_archive_flag_spec_CXX=
9566 enable_shared_with_static_runtimes_CXX=no
9567
9568 # Dependencies to place before and after the object being linked:
9569 predep_objects_CXX=
9570 postdep_objects_CXX=
9571 predeps_CXX=
9572 postdeps_CXX=
9573 compiler_lib_search_path_CXX=
9574
9575 # Source file extension for C++ test sources.
9576 ac_ext=cc
9577
9578 # Object file extension for compiled C++ test sources.
9579 objext=o
9580 objext_CXX=$objext
9581
9582 # Code to be used in simple compile tests
9583 lt_simple_compile_test_code="int some_variable = 0;\n"
9584
9585 # Code to be used in simple link tests
9586 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9587
9588 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9589
9590 # If no C compiler was specified, use CC.
9591 LTCC=${LTCC-"$CC"}
9592
9593 # Allow CC to be a program name with arguments.
9594 compiler=$CC
9595
9596
9597 # Allow CC to be a program name with arguments.
9598 lt_save_CC=$CC
9599 lt_save_LD=$LD
9600 lt_save_GCC=$GCC
9601 GCC=$GXX
9602 lt_save_with_gnu_ld=$with_gnu_ld
9603 lt_save_path_LD=$lt_cv_path_LD
9604 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9605   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9606 else
9607   unset lt_cv_prog_gnu_ld
9608 fi
9609 if test -n "${lt_cv_path_LDCXX+set}"; then
9610   lt_cv_path_LD=$lt_cv_path_LDCXX
9611 else
9612   unset lt_cv_path_LD
9613 fi
9614 test -z "${LDCXX+set}" || LD=$LDCXX
9615 CC=${CXX-"c++"}
9616 compiler=$CC
9617 compiler_CXX=$CC
9618 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9619
9620 # We don't want -fno-exception wen compiling C++ code, so set the
9621 # no_builtin_flag separately
9622 if test "$GXX" = yes; then
9623   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9624 else
9625   lt_prog_compiler_no_builtin_flag_CXX=
9626 fi
9627
9628 if test "$GXX" = yes; then
9629   # Set up default GNU C++ configuration
9630
9631
9632 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9633 if test "${with_gnu_ld+set}" = set; then
9634   withval="$with_gnu_ld"
9635   test "$withval" = no || with_gnu_ld=yes
9636 else
9637   with_gnu_ld=no
9638 fi;
9639 ac_prog=ld
9640 if test "$GCC" = yes; then
9641   # Check if gcc -print-prog-name=ld gives a path.
9642   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9643 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9644   case $host in
9645   *-*-mingw*)
9646     # gcc leaves a trailing carriage return which upsets mingw
9647     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9648   *)
9649     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9650   esac
9651   case $ac_prog in
9652     # Accept absolute paths.
9653     [\\/]* | ?:[\\/]*)
9654       re_direlt='/[^/][^/]*/\.\./'
9655       # Canonicalize the pathname of ld
9656       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9657       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9658         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9659       done
9660       test -z "$LD" && LD="$ac_prog"
9661       ;;
9662   "")
9663     # If it fails, then pretend we aren't using GCC.
9664     ac_prog=ld
9665     ;;
9666   *)
9667     # If it is relative, then search for the first ld in PATH.
9668     with_gnu_ld=unknown
9669     ;;
9670   esac
9671 elif test "$with_gnu_ld" = yes; then
9672   echo "$as_me:$LINENO: checking for GNU ld" >&5
9673 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9674 else
9675   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9676 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9677 fi
9678 if test "${lt_cv_path_LD+set}" = set; then
9679   echo $ECHO_N "(cached) $ECHO_C" >&6
9680 else
9681   if test -z "$LD"; then
9682   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9683   for ac_dir in $PATH; do
9684     IFS="$lt_save_ifs"
9685     test -z "$ac_dir" && ac_dir=.
9686     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9687       lt_cv_path_LD="$ac_dir/$ac_prog"
9688       # Check to see if the program is GNU ld.  I'd rather use --version,
9689       # but apparently some GNU ld's only accept -v.
9690       # Break only if it was the GNU/non-GNU ld that we prefer.
9691       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9692       *GNU* | *'with BFD'*)
9693         test "$with_gnu_ld" != no && break
9694         ;;
9695       *)
9696         test "$with_gnu_ld" != yes && break
9697         ;;
9698       esac
9699     fi
9700   done
9701   IFS="$lt_save_ifs"
9702 else
9703   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9704 fi
9705 fi
9706
9707 LD="$lt_cv_path_LD"
9708 if test -n "$LD"; then
9709   echo "$as_me:$LINENO: result: $LD" >&5
9710 echo "${ECHO_T}$LD" >&6
9711 else
9712   echo "$as_me:$LINENO: result: no" >&5
9713 echo "${ECHO_T}no" >&6
9714 fi
9715 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9716 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9717    { (exit 1); exit 1; }; }
9718 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9719 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9720 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9721   echo $ECHO_N "(cached) $ECHO_C" >&6
9722 else
9723   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9724 case `$LD -v 2>&1 </dev/null` in
9725 *GNU* | *'with BFD'*)
9726   lt_cv_prog_gnu_ld=yes
9727   ;;
9728 *)
9729   lt_cv_prog_gnu_ld=no
9730   ;;
9731 esac
9732 fi
9733 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9734 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9735 with_gnu_ld=$lt_cv_prog_gnu_ld
9736
9737
9738
9739   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9740   # archiving commands below assume that GNU ld is being used.
9741   if test "$with_gnu_ld" = yes; then
9742     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9743     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'
9744
9745     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9746     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9747
9748     # If archive_cmds runs LD, not CC, wlarc should be empty
9749     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9750     #     investigate it a little bit more. (MM)
9751     wlarc='${wl}'
9752
9753     # ancient GNU ld didn't support --whole-archive et. al.
9754     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9755         grep 'no-whole-archive' > /dev/null; then
9756       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9757     else
9758       whole_archive_flag_spec_CXX=
9759     fi
9760   else
9761     with_gnu_ld=no
9762     wlarc=
9763
9764     # A generic and very simple default shared library creation
9765     # command for GNU C++ for the case where it uses the native
9766     # linker, instead of GNU ld.  If possible, this setting should
9767     # overridden to take advantage of the native linker features on
9768     # the platform it is being used on.
9769     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9770   fi
9771
9772   # Commands to make compiler produce verbose output that lists
9773   # what "hidden" libraries, object files and flags are used when
9774   # linking a shared library.
9775   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9776
9777 else
9778   GXX=no
9779   with_gnu_ld=no
9780   wlarc=
9781 fi
9782
9783 # PORTME: fill in a description of your system's C++ link characteristics
9784 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9785 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9786 ld_shlibs_CXX=yes
9787 case $host_os in
9788   aix3*)
9789     # FIXME: insert proper C++ library support
9790     ld_shlibs_CXX=no
9791     ;;
9792   aix4* | aix5*)
9793     if test "$host_cpu" = ia64; then
9794       # On IA64, the linker does run time linking by default, so we don't
9795       # have to do anything special.
9796       aix_use_runtimelinking=no
9797       exp_sym_flag='-Bexport'
9798       no_entry_flag=""
9799     else
9800       aix_use_runtimelinking=no
9801
9802       # Test if we are trying to use run time linking or normal
9803       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9804       # need to do runtime linking.
9805       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9806         for ld_flag in $LDFLAGS; do
9807           case $ld_flag in
9808           *-brtl*)
9809             aix_use_runtimelinking=yes
9810             break
9811             ;;
9812           esac
9813         done
9814       esac
9815
9816       exp_sym_flag='-bexport'
9817       no_entry_flag='-bnoentry'
9818     fi
9819
9820     # When large executables or shared objects are built, AIX ld can
9821     # have problems creating the table of contents.  If linking a library
9822     # or program results in "error TOC overflow" add -mminimal-toc to
9823     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9824     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9825
9826     archive_cmds_CXX=''
9827     hardcode_direct_CXX=yes
9828     hardcode_libdir_separator_CXX=':'
9829     link_all_deplibs_CXX=yes
9830
9831     if test "$GXX" = yes; then
9832       case $host_os in aix4.012|aix4.012.*)
9833       # We only want to do this on AIX 4.2 and lower, the check
9834       # below for broken collect2 doesn't work under 4.3+
9835         collect2name=`${CC} -print-prog-name=collect2`
9836         if test -f "$collect2name" && \
9837            strings "$collect2name" | grep resolve_lib_name >/dev/null
9838         then
9839           # We have reworked collect2
9840           hardcode_direct_CXX=yes
9841         else
9842           # We have old collect2
9843           hardcode_direct_CXX=unsupported
9844           # It fails to find uninstalled libraries when the uninstalled
9845           # path is not listed in the libpath.  Setting hardcode_minus_L
9846           # to unsupported forces relinking
9847           hardcode_minus_L_CXX=yes
9848           hardcode_libdir_flag_spec_CXX='-L$libdir'
9849           hardcode_libdir_separator_CXX=
9850         fi
9851       esac
9852       shared_flag='-shared'
9853     else
9854       # not using gcc
9855       if test "$host_cpu" = ia64; then
9856         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9857         # chokes on -Wl,-G. The following line is correct:
9858         shared_flag='-G'
9859       else
9860         if test "$aix_use_runtimelinking" = yes; then
9861           shared_flag='${wl}-G'
9862         else
9863           shared_flag='${wl}-bM:SRE'
9864         fi
9865       fi
9866     fi
9867
9868     # It seems that -bexpall does not export symbols beginning with
9869     # underscore (_), so it is better to generate a list of symbols to export.
9870     always_export_symbols_CXX=yes
9871     if test "$aix_use_runtimelinking" = yes; then
9872       # Warning - without using the other runtime loading flags (-brtl),
9873       # -berok will link without error, but may produce a broken library.
9874       allow_undefined_flag_CXX='-berok'
9875       # Determine the default libpath from the value encoded in an empty executable.
9876       cat >conftest.$ac_ext <<_ACEOF
9877 /* confdefs.h.  */
9878 _ACEOF
9879 cat confdefs.h >>conftest.$ac_ext
9880 cat >>conftest.$ac_ext <<_ACEOF
9881 /* end confdefs.h.  */
9882
9883 int
9884 main ()
9885 {
9886
9887   ;
9888   return 0;
9889 }
9890 _ACEOF
9891 rm -f conftest.$ac_objext conftest$ac_exeext
9892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9893   (eval $ac_link) 2>conftest.er1
9894   ac_status=$?
9895   grep -v '^ *+' conftest.er1 >conftest.err
9896   rm -f conftest.er1
9897   cat conftest.err >&5
9898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899   (exit $ac_status); } &&
9900          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
9901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9902   (eval $ac_try) 2>&5
9903   ac_status=$?
9904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905   (exit $ac_status); }; } &&
9906          { ac_try='test -s conftest$ac_exeext'
9907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9908   (eval $ac_try) 2>&5
9909   ac_status=$?
9910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911   (exit $ac_status); }; }; then
9912
9913 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9914 }'`
9915 # Check for a 64-bit object if we didn't find anything.
9916 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; }
9917 }'`; fi
9918 else
9919   echo "$as_me: failed program was:" >&5
9920 sed 's/^/| /' conftest.$ac_ext >&5
9921
9922 fi
9923 rm -f conftest.err conftest.$ac_objext \
9924       conftest$ac_exeext conftest.$ac_ext
9925 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9926
9927       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9928
9929       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"
9930      else
9931       if test "$host_cpu" = ia64; then
9932         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9933         allow_undefined_flag_CXX="-z nodefs"
9934         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"
9935       else
9936         # Determine the default libpath from the value encoded in an empty executable.
9937         cat >conftest.$ac_ext <<_ACEOF
9938 /* confdefs.h.  */
9939 _ACEOF
9940 cat confdefs.h >>conftest.$ac_ext
9941 cat >>conftest.$ac_ext <<_ACEOF
9942 /* end confdefs.h.  */
9943
9944 int
9945 main ()
9946 {
9947
9948   ;
9949   return 0;
9950 }
9951 _ACEOF
9952 rm -f conftest.$ac_objext conftest$ac_exeext
9953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9954   (eval $ac_link) 2>conftest.er1
9955   ac_status=$?
9956   grep -v '^ *+' conftest.er1 >conftest.err
9957   rm -f conftest.er1
9958   cat conftest.err >&5
9959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960   (exit $ac_status); } &&
9961          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
9962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9963   (eval $ac_try) 2>&5
9964   ac_status=$?
9965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966   (exit $ac_status); }; } &&
9967          { ac_try='test -s conftest$ac_exeext'
9968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9969   (eval $ac_try) 2>&5
9970   ac_status=$?
9971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972   (exit $ac_status); }; }; then
9973
9974 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9975 }'`
9976 # Check for a 64-bit object if we didn't find anything.
9977 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9978 }'`; fi
9979 else
9980   echo "$as_me: failed program was:" >&5
9981 sed 's/^/| /' conftest.$ac_ext >&5
9982
9983 fi
9984 rm -f conftest.err conftest.$ac_objext \
9985       conftest$ac_exeext conftest.$ac_ext
9986 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9987
9988         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9989         # Warning - without using the other run time loading flags,
9990         # -berok will link without error, but may produce a broken library.
9991         no_undefined_flag_CXX=' ${wl}-bernotok'
9992         allow_undefined_flag_CXX=' ${wl}-berok'
9993         # -bexpall does not export symbols beginning with underscore (_)
9994         always_export_symbols_CXX=yes
9995         # Exported symbols can be pulled into shared objects from archives
9996         whole_archive_flag_spec_CXX=' '
9997         archive_cmds_need_lc_CXX=yes
9998         # This is similar to how AIX traditionally builds it's shared libraries.
9999         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'
10000       fi
10001     fi
10002     ;;
10003   chorus*)
10004     case $cc_basename in
10005       *)
10006         # FIXME: insert proper C++ library support
10007         ld_shlibs_CXX=no
10008         ;;
10009     esac
10010     ;;
10011
10012   cygwin* | mingw* | pw32*)
10013     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10014     # as there is no search path for DLLs.
10015     hardcode_libdir_flag_spec_CXX='-L$libdir'
10016     allow_undefined_flag_CXX=unsupported
10017     always_export_symbols_CXX=no
10018     enable_shared_with_static_runtimes_CXX=yes
10019
10020     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10021       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'
10022       # If the export-symbols file already is a .def file (1st line
10023       # is EXPORTS), use it as is; otherwise, prepend...
10024       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10025         cp $export_symbols $output_objdir/$soname.def;
10026       else
10027         echo EXPORTS > $output_objdir/$soname.def;
10028         cat $export_symbols >> $output_objdir/$soname.def;
10029       fi~
10030       $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'
10031     else
10032       ld_shlibs_CXX=no
10033     fi
10034   ;;
10035
10036   darwin* | rhapsody*)
10037   if test "$GXX" = yes; then
10038     archive_cmds_need_lc_CXX=no
10039     case "$host_os" in
10040     rhapsody* | darwin1.[012])
10041       allow_undefined_flag_CXX='-undefined suppress'
10042       ;;
10043     *) # Darwin 1.3 on
10044       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10045         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10046       else
10047         case ${MACOSX_DEPLOYMENT_TARGET} in
10048           10.[012])
10049             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10050             ;;
10051           10.*)
10052             allow_undefined_flag_CXX='-undefined dynamic_lookup'
10053             ;;
10054         esac
10055       fi
10056       ;;
10057     esac
10058     lt_int_apple_cc_single_mod=no
10059     output_verbose_link_cmd='echo'
10060     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10061       lt_int_apple_cc_single_mod=yes
10062     fi
10063     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10064       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10065     else
10066       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'
10067     fi
10068     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10069
10070     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10071     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10072       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}'
10073     else
10074       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}'
10075     fi
10076     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}'
10077     hardcode_direct_CXX=no
10078     hardcode_automatic_CXX=yes
10079     hardcode_shlibpath_var_CXX=unsupported
10080     whole_archive_flag_spec_CXX='-all_load $convenience'
10081     link_all_deplibs_CXX=yes
10082   else
10083     ld_shlibs_CXX=no
10084   fi
10085     ;;
10086
10087   dgux*)
10088     case $cc_basename in
10089       ec++)
10090         # FIXME: insert proper C++ library support
10091         ld_shlibs_CXX=no
10092         ;;
10093       ghcx)
10094         # Green Hills C++ Compiler
10095         # FIXME: insert proper C++ library support
10096         ld_shlibs_CXX=no
10097         ;;
10098       *)
10099         # FIXME: insert proper C++ library support
10100         ld_shlibs_CXX=no
10101         ;;
10102     esac
10103     ;;
10104   freebsd12*)
10105     # C++ shared libraries reported to be fairly broken before switch to ELF
10106     ld_shlibs_CXX=no
10107     ;;
10108   freebsd-elf*)
10109     archive_cmds_need_lc_CXX=no
10110     ;;
10111   freebsd* | kfreebsd*-gnu)
10112     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10113     # conventions
10114     ld_shlibs_CXX=yes
10115     ;;
10116   gnu*)
10117     ;;
10118   hpux9*)
10119     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10120     hardcode_libdir_separator_CXX=:
10121     export_dynamic_flag_spec_CXX='${wl}-E'
10122     hardcode_direct_CXX=yes
10123     hardcode_minus_L_CXX=yes # Not in the search PATH,
10124                                 # but as the default
10125                                 # location of the library.
10126
10127     case $cc_basename in
10128     CC)
10129       # FIXME: insert proper C++ library support
10130       ld_shlibs_CXX=no
10131       ;;
10132     aCC)
10133       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'
10134       # Commands to make compiler produce verbose output that lists
10135       # what "hidden" libraries, object files and flags are used when
10136       # linking a shared library.
10137       #
10138       # There doesn't appear to be a way to prevent this compiler from
10139       # explicitly linking system object files so we need to strip them
10140       # from the output so that they don't get included in the library
10141       # dependencies.
10142       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'
10143       ;;
10144     *)
10145       if test "$GXX" = yes; then
10146         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'
10147       else
10148         # FIXME: insert proper C++ library support
10149         ld_shlibs_CXX=no
10150       fi
10151       ;;
10152     esac
10153     ;;
10154   hpux10*|hpux11*)
10155     if test $with_gnu_ld = no; then
10156       case "$host_cpu" in
10157       hppa*64*)
10158         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10159         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10160         hardcode_libdir_separator_CXX=:
10161         ;;
10162       ia64*)
10163         hardcode_libdir_flag_spec_CXX='-L$libdir'
10164         ;;
10165       *)
10166         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10167         hardcode_libdir_separator_CXX=:
10168         export_dynamic_flag_spec_CXX='${wl}-E'
10169         ;;
10170       esac
10171     fi
10172     case "$host_cpu" in
10173     hppa*64*)
10174       hardcode_direct_CXX=no
10175       hardcode_shlibpath_var_CXX=no
10176       ;;
10177     ia64*)
10178       hardcode_direct_CXX=no
10179       hardcode_shlibpath_var_CXX=no
10180       hardcode_minus_L_CXX=yes # Not in the search PATH,
10181                                               # but as the default
10182                                               # location of the library.
10183       ;;
10184     *)
10185       hardcode_direct_CXX=yes
10186       hardcode_minus_L_CXX=yes # Not in the search PATH,
10187                                               # but as the default
10188                                               # location of the library.
10189       ;;
10190     esac
10191
10192     case $cc_basename in
10193       CC)
10194         # FIXME: insert proper C++ library support
10195         ld_shlibs_CXX=no
10196         ;;
10197       aCC)
10198         case "$host_cpu" in
10199         hppa*64*|ia64*)
10200           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10201           ;;
10202         *)
10203           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10204           ;;
10205         esac
10206         # Commands to make compiler produce verbose output that lists
10207         # what "hidden" libraries, object files and flags are used when
10208         # linking a shared library.
10209         #
10210         # There doesn't appear to be a way to prevent this compiler from
10211         # explicitly linking system object files so we need to strip them
10212         # from the output so that they don't get included in the library
10213         # dependencies.
10214         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'
10215         ;;
10216       *)
10217         if test "$GXX" = yes; then
10218           if test $with_gnu_ld = no; then
10219             case "$host_cpu" in
10220             ia64*|hppa*64*)
10221               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10222               ;;
10223             *)
10224               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'
10225               ;;
10226             esac
10227           fi
10228         else
10229           # FIXME: insert proper C++ library support
10230           ld_shlibs_CXX=no
10231         fi
10232         ;;
10233     esac
10234     ;;
10235   irix5* | irix6*)
10236     case $cc_basename in
10237       CC)
10238         # SGI C++
10239         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'
10240
10241         # Archives containing C++ object files must be created using
10242         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10243         # necessary to make sure instantiated templates are included
10244         # in the archive.
10245         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10246         ;;
10247       *)
10248         if test "$GXX" = yes; then
10249           if test "$with_gnu_ld" = no; then
10250             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'
10251           else
10252             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'
10253           fi
10254         fi
10255         link_all_deplibs_CXX=yes
10256         ;;
10257     esac
10258     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10259     hardcode_libdir_separator_CXX=:
10260     ;;
10261   linux*)
10262     case $cc_basename in
10263       KCC)
10264         # Kuck and Associates, Inc. (KAI) C++ Compiler
10265
10266         # KCC will only create a shared library if the output file
10267         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10268         # to its proper name (with version) after linking.
10269         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'
10270         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'
10271         # Commands to make compiler produce verbose output that lists
10272         # what "hidden" libraries, object files and flags are used when
10273         # linking a shared library.
10274         #
10275         # There doesn't appear to be a way to prevent this compiler from
10276         # explicitly linking system object files so we need to strip them
10277         # from the output so that they don't get included in the library
10278         # dependencies.
10279         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'
10280
10281         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10282         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10283
10284         # Archives containing C++ object files must be created using
10285         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10286         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10287         ;;
10288       icpc)
10289         # Intel C++
10290         with_gnu_ld=yes
10291         archive_cmds_need_lc_CXX=no
10292         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10293         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'
10294         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10295         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10296         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10297         ;;
10298       cxx)
10299         # Compaq C++
10300         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10301         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'
10302
10303         runpath_var=LD_RUN_PATH
10304         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10305         hardcode_libdir_separator_CXX=:
10306
10307         # Commands to make compiler produce verbose output that lists
10308         # what "hidden" libraries, object files and flags are used when
10309         # linking a shared library.
10310         #
10311         # There doesn't appear to be a way to prevent this compiler from
10312         # explicitly linking system object files so we need to strip them
10313         # from the output so that they don't get included in the library
10314         # dependencies.
10315         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'
10316         ;;
10317     esac
10318     ;;
10319   lynxos*)
10320     # FIXME: insert proper C++ library support
10321     ld_shlibs_CXX=no
10322     ;;
10323   m88k*)
10324     # FIXME: insert proper C++ library support
10325     ld_shlibs_CXX=no
10326     ;;
10327   mvs*)
10328     case $cc_basename in
10329       cxx)
10330         # FIXME: insert proper C++ library support
10331         ld_shlibs_CXX=no
10332         ;;
10333       *)
10334         # FIXME: insert proper C++ library support
10335         ld_shlibs_CXX=no
10336         ;;
10337     esac
10338     ;;
10339   netbsd*)
10340     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10341       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10342       wlarc=
10343       hardcode_libdir_flag_spec_CXX='-R$libdir'
10344       hardcode_direct_CXX=yes
10345       hardcode_shlibpath_var_CXX=no
10346     fi
10347     # Workaround some broken pre-1.5 toolchains
10348     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10349     ;;
10350   osf3*)
10351     case $cc_basename in
10352       KCC)
10353         # Kuck and Associates, Inc. (KAI) C++ Compiler
10354
10355         # KCC will only create a shared library if the output file
10356         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10357         # to its proper name (with version) after linking.
10358         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'
10359
10360         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10361         hardcode_libdir_separator_CXX=:
10362
10363         # Archives containing C++ object files must be created using
10364         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10365         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10366
10367         ;;
10368       RCC)
10369         # Rational C++ 2.4.1
10370         # FIXME: insert proper C++ library support
10371         ld_shlibs_CXX=no
10372         ;;
10373       cxx)
10374         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10375         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'
10376
10377         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10378         hardcode_libdir_separator_CXX=:
10379
10380         # Commands to make compiler produce verbose output that lists
10381         # what "hidden" libraries, object files and flags are used when
10382         # linking a shared library.
10383         #
10384         # There doesn't appear to be a way to prevent this compiler from
10385         # explicitly linking system object files so we need to strip them
10386         # from the output so that they don't get included in the library
10387         # dependencies.
10388         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'
10389         ;;
10390       *)
10391         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10392           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10393           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'
10394
10395           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10396           hardcode_libdir_separator_CXX=:
10397
10398           # Commands to make compiler produce verbose output that lists
10399           # what "hidden" libraries, object files and flags are used when
10400           # linking a shared library.
10401           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10402
10403         else
10404           # FIXME: insert proper C++ library support
10405           ld_shlibs_CXX=no
10406         fi
10407         ;;
10408     esac
10409     ;;
10410   osf4* | osf5*)
10411     case $cc_basename in
10412       KCC)
10413         # Kuck and Associates, Inc. (KAI) C++ Compiler
10414
10415         # KCC will only create a shared library if the output file
10416         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10417         # to its proper name (with version) after linking.
10418         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'
10419
10420         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10421         hardcode_libdir_separator_CXX=:
10422
10423         # Archives containing C++ object files must be created using
10424         # the KAI C++ compiler.
10425         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10426         ;;
10427       RCC)
10428         # Rational C++ 2.4.1
10429         # FIXME: insert proper C++ library support
10430         ld_shlibs_CXX=no
10431         ;;
10432       cxx)
10433         allow_undefined_flag_CXX=' -expect_unresolved \*'
10434         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'
10435         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10436           echo "-hidden">> $lib.exp~
10437           $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~
10438           $rm $lib.exp'
10439
10440         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10441         hardcode_libdir_separator_CXX=:
10442
10443         # Commands to make compiler produce verbose output that lists
10444         # what "hidden" libraries, object files and flags are used when
10445         # linking a shared library.
10446         #
10447         # There doesn't appear to be a way to prevent this compiler from
10448         # explicitly linking system object files so we need to strip them
10449         # from the output so that they don't get included in the library
10450         # dependencies.
10451         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'
10452         ;;
10453       *)
10454         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10455           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10456          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'
10457
10458           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10459           hardcode_libdir_separator_CXX=:
10460
10461           # Commands to make compiler produce verbose output that lists
10462           # what "hidden" libraries, object files and flags are used when
10463           # linking a shared library.
10464           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10465
10466         else
10467           # FIXME: insert proper C++ library support
10468           ld_shlibs_CXX=no
10469         fi
10470         ;;
10471     esac
10472     ;;
10473   psos*)
10474     # FIXME: insert proper C++ library support
10475     ld_shlibs_CXX=no
10476     ;;
10477   sco*)
10478     archive_cmds_need_lc_CXX=no
10479     case $cc_basename in
10480       CC)
10481         # FIXME: insert proper C++ library support
10482         ld_shlibs_CXX=no
10483         ;;
10484       *)
10485         # FIXME: insert proper C++ library support
10486         ld_shlibs_CXX=no
10487         ;;
10488     esac
10489     ;;
10490   sunos4*)
10491     case $cc_basename in
10492       CC)
10493         # Sun C++ 4.x
10494         # FIXME: insert proper C++ library support
10495         ld_shlibs_CXX=no
10496         ;;
10497       lcc)
10498         # Lucid
10499         # FIXME: insert proper C++ library support
10500         ld_shlibs_CXX=no
10501         ;;
10502       *)
10503         # FIXME: insert proper C++ library support
10504         ld_shlibs_CXX=no
10505         ;;
10506     esac
10507     ;;
10508   solaris*)
10509     case $cc_basename in
10510       CC)
10511         # Sun C++ 4.2, 5.x and Centerline C++
10512         no_undefined_flag_CXX=' -zdefs'
10513         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10514         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10515         $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'
10516
10517         hardcode_libdir_flag_spec_CXX='-R$libdir'
10518         hardcode_shlibpath_var_CXX=no
10519         case $host_os in
10520           solaris2.0-5 | solaris2.0-5.*) ;;
10521           *)
10522             # The C++ compiler is used as linker so we must use $wl
10523             # flag to pass the commands to the underlying system
10524             # linker.
10525             # Supported since Solaris 2.6 (maybe 2.5.1?)
10526             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10527             ;;
10528         esac
10529         link_all_deplibs_CXX=yes
10530
10531         # Commands to make compiler produce verbose output that lists
10532         # what "hidden" libraries, object files and flags are used when
10533         # linking a shared library.
10534         #
10535         # There doesn't appear to be a way to prevent this compiler from
10536         # explicitly linking system object files so we need to strip them
10537         # from the output so that they don't get included in the library
10538         # dependencies.
10539         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'
10540
10541         # Archives containing C++ object files must be created using
10542         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10543         # necessary to make sure instantiated templates are included
10544         # in the archive.
10545         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10546         ;;
10547       gcx)
10548         # Green Hills C++ Compiler
10549         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10550
10551         # The C++ compiler must be used to create the archive.
10552         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10553         ;;
10554       *)
10555         # GNU C++ compiler with Solaris linker
10556         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10557           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10558           if $CC --version | grep -v '^2\.7' > /dev/null; then
10559             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10560             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10561                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10562
10563             # Commands to make compiler produce verbose output that lists
10564             # what "hidden" libraries, object files and flags are used when
10565             # linking a shared library.
10566             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10567           else
10568             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10569             # platform.
10570             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10571             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10572                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10573
10574             # Commands to make compiler produce verbose output that lists
10575             # what "hidden" libraries, object files and flags are used when
10576             # linking a shared library.
10577             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10578           fi
10579
10580           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10581         fi
10582         ;;
10583     esac
10584     ;;
10585   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10586     archive_cmds_need_lc_CXX=no
10587     ;;
10588   tandem*)
10589     case $cc_basename in
10590       NCC)
10591         # NonStop-UX NCC 3.20
10592         # FIXME: insert proper C++ library support
10593         ld_shlibs_CXX=no
10594         ;;
10595       *)
10596         # FIXME: insert proper C++ library support
10597         ld_shlibs_CXX=no
10598         ;;
10599     esac
10600     ;;
10601   vxworks*)
10602     # FIXME: insert proper C++ library support
10603     ld_shlibs_CXX=no
10604     ;;
10605   *)
10606     # FIXME: insert proper C++ library support
10607     ld_shlibs_CXX=no
10608     ;;
10609 esac
10610 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10611 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10612 test "$ld_shlibs_CXX" = no && can_build_shared=no
10613
10614 GCC_CXX="$GXX"
10615 LD_CXX="$LD"
10616
10617
10618 cat > conftest.$ac_ext <<EOF
10619 class Foo
10620 {
10621 public:
10622   Foo (void) { a = 0; }
10623 private:
10624   int a;
10625 };
10626 EOF
10627
10628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10629   (eval $ac_compile) 2>&5
10630   ac_status=$?
10631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632   (exit $ac_status); }; then
10633   # Parse the compiler output and extract the necessary
10634   # objects, libraries and library flags.
10635
10636   # Sentinel used to keep track of whether or not we are before
10637   # the conftest object file.
10638   pre_test_object_deps_done=no
10639
10640   # The `*' in the case matches for architectures that use `case' in
10641   # $output_verbose_cmd can trigger glob expansion during the loop
10642   # eval without this substitution.
10643   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10644
10645   for p in `eval $output_verbose_link_cmd`; do
10646     case $p in
10647
10648     -L* | -R* | -l*)
10649        # Some compilers place space between "-{L,R}" and the path.
10650        # Remove the space.
10651        if test $p = "-L" \
10652           || test $p = "-R"; then
10653          prev=$p
10654          continue
10655        else
10656          prev=
10657        fi
10658
10659        if test "$pre_test_object_deps_done" = no; then
10660          case $p in
10661          -L* | -R*)
10662            # Internal compiler library paths should come after those
10663            # provided the user.  The postdeps already come after the
10664            # user supplied libs so there is no need to process them.
10665            if test -z "$compiler_lib_search_path_CXX"; then
10666              compiler_lib_search_path_CXX="${prev}${p}"
10667            else
10668              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10669            fi
10670            ;;
10671          # The "-l" case would never come before the object being
10672          # linked, so don't bother handling this case.
10673          esac
10674        else
10675          if test -z "$postdeps_CXX"; then
10676            postdeps_CXX="${prev}${p}"
10677          else
10678            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10679          fi
10680        fi
10681        ;;
10682
10683     *.$objext)
10684        # This assumes that the test object file only shows up
10685        # once in the compiler output.
10686        if test "$p" = "conftest.$objext"; then
10687          pre_test_object_deps_done=yes
10688          continue
10689        fi
10690
10691        if test "$pre_test_object_deps_done" = no; then
10692          if test -z "$predep_objects_CXX"; then
10693            predep_objects_CXX="$p"
10694          else
10695            predep_objects_CXX="$predep_objects_CXX $p"
10696          fi
10697        else
10698          if test -z "$postdep_objects_CXX"; then
10699            postdep_objects_CXX="$p"
10700          else
10701            postdep_objects_CXX="$postdep_objects_CXX $p"
10702          fi
10703        fi
10704        ;;
10705
10706     *) ;; # Ignore the rest.
10707
10708     esac
10709   done
10710
10711   # Clean up.
10712   rm -f a.out a.exe
10713 else
10714   echo "libtool.m4: error: problem compiling CXX test program"
10715 fi
10716
10717 $rm -f confest.$objext
10718
10719 case " $postdeps_CXX " in
10720 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10721 esac
10722
10723 lt_prog_compiler_wl_CXX=
10724 lt_prog_compiler_pic_CXX=
10725 lt_prog_compiler_static_CXX=
10726
10727 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10728 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10729
10730   # C++ specific cases for pic, static, wl, etc.
10731   if test "$GXX" = yes; then
10732     lt_prog_compiler_wl_CXX='-Wl,'
10733     lt_prog_compiler_static_CXX='-static'
10734
10735     case $host_os in
10736     aix*)
10737       # All AIX code is PIC.
10738       if test "$host_cpu" = ia64; then
10739         # AIX 5 now supports IA64 processor
10740         lt_prog_compiler_static_CXX='-Bstatic'
10741       fi
10742       ;;
10743     amigaos*)
10744       # FIXME: we need at least 68020 code to build shared libraries, but
10745       # adding the `-m68020' flag to GCC prevents building anything better,
10746       # like `-m68040'.
10747       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10748       ;;
10749     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10750       # PIC is the default for these OSes.
10751       ;;
10752     mingw* | os2* | pw32*)
10753       # This hack is so that the source file can tell whether it is being
10754       # built for inclusion in a dll (and should export symbols for example).
10755       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10756       ;;
10757     darwin* | rhapsody*)
10758       # PIC is the default on this platform
10759       # Common symbols not allowed in MH_DYLIB files
10760       lt_prog_compiler_pic_CXX='-fno-common'
10761       ;;
10762     *djgpp*)
10763       # DJGPP does not support shared libraries at all
10764       lt_prog_compiler_pic_CXX=
10765       ;;
10766     sysv4*MP*)
10767       if test -d /usr/nec; then
10768         lt_prog_compiler_pic_CXX=-Kconform_pic
10769       fi
10770       ;;
10771     hpux*)
10772       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10773       # not for PA HP-UX.
10774       case "$host_cpu" in
10775       hppa*64*|ia64*)
10776         ;;
10777       *)
10778         lt_prog_compiler_pic_CXX='-fPIC'
10779         ;;
10780       esac
10781       ;;
10782     *)
10783       lt_prog_compiler_pic_CXX='-fPIC'
10784       ;;
10785     esac
10786   else
10787     case $host_os in
10788       aix4* | aix5*)
10789         # All AIX code is PIC.
10790         if test "$host_cpu" = ia64; then
10791           # AIX 5 now supports IA64 processor
10792           lt_prog_compiler_static_CXX='-Bstatic'
10793         else
10794           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10795         fi
10796         ;;
10797       chorus*)
10798         case $cc_basename in
10799         cxch68)
10800           # Green Hills C++ Compiler
10801           # _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"
10802           ;;
10803         esac
10804         ;;
10805       dgux*)
10806         case $cc_basename in
10807           ec++)
10808             lt_prog_compiler_pic_CXX='-KPIC'
10809             ;;
10810           ghcx)
10811             # Green Hills C++ Compiler
10812             lt_prog_compiler_pic_CXX='-pic'
10813             ;;
10814           *)
10815             ;;
10816         esac
10817         ;;
10818       freebsd* | kfreebsd*-gnu)
10819         # FreeBSD uses GNU C++
10820         ;;
10821       hpux9* | hpux10* | hpux11*)
10822         case $cc_basename in
10823           CC)
10824             lt_prog_compiler_wl_CXX='-Wl,'
10825             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10826             if test "$host_cpu" != ia64; then
10827               lt_prog_compiler_pic_CXX='+Z'
10828             fi
10829             ;;
10830           aCC)
10831             lt_prog_compiler_wl_CXX='-Wl,'
10832             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10833             case "$host_cpu" in
10834             hppa*64*|ia64*)
10835               # +Z the default
10836               ;;
10837             *)
10838               lt_prog_compiler_pic_CXX='+Z'
10839               ;;
10840             esac
10841             ;;
10842           *)
10843             ;;
10844         esac
10845         ;;
10846       irix5* | irix6* | nonstopux*)
10847         case $cc_basename in
10848           CC)
10849             lt_prog_compiler_wl_CXX='-Wl,'
10850             lt_prog_compiler_static_CXX='-non_shared'
10851             # CC pic flag -KPIC is the default.
10852             ;;
10853           *)
10854             ;;
10855         esac
10856         ;;
10857       linux*)
10858         case $cc_basename in
10859           KCC)
10860             # KAI C++ Compiler
10861             lt_prog_compiler_wl_CXX='--backend -Wl,'
10862             lt_prog_compiler_pic_CXX='-fPIC'
10863             ;;
10864           icpc)
10865             # Intel C++
10866             lt_prog_compiler_wl_CXX='-Wl,'
10867             lt_prog_compiler_pic_CXX='-KPIC'
10868             lt_prog_compiler_static_CXX='-static'
10869             ;;
10870           cxx)
10871             # Compaq C++
10872             # Make sure the PIC flag is empty.  It appears that all Alpha
10873             # Linux and Compaq Tru64 Unix objects are PIC.
10874             lt_prog_compiler_pic_CXX=
10875             lt_prog_compiler_static_CXX='-non_shared'
10876             ;;
10877           *)
10878             ;;
10879         esac
10880         ;;
10881       lynxos*)
10882         ;;
10883       m88k*)
10884         ;;
10885       mvs*)
10886         case $cc_basename in
10887           cxx)
10888             lt_prog_compiler_pic_CXX='-W c,exportall'
10889             ;;
10890           *)
10891             ;;
10892         esac
10893         ;;
10894       netbsd*)
10895         ;;
10896       osf3* | osf4* | osf5*)
10897         case $cc_basename in
10898           KCC)
10899             lt_prog_compiler_wl_CXX='--backend -Wl,'
10900             ;;
10901           RCC)
10902             # Rational C++ 2.4.1
10903             lt_prog_compiler_pic_CXX='-pic'
10904             ;;
10905           cxx)
10906             # Digital/Compaq C++
10907             lt_prog_compiler_wl_CXX='-Wl,'
10908             # Make sure the PIC flag is empty.  It appears that all Alpha
10909             # Linux and Compaq Tru64 Unix objects are PIC.
10910             lt_prog_compiler_pic_CXX=
10911             lt_prog_compiler_static_CXX='-non_shared'
10912             ;;
10913           *)
10914             ;;
10915         esac
10916         ;;
10917       psos*)
10918         ;;
10919       sco*)
10920         case $cc_basename in
10921           CC)
10922             lt_prog_compiler_pic_CXX='-fPIC'
10923             ;;
10924           *)
10925             ;;
10926         esac
10927         ;;
10928       solaris*)
10929         case $cc_basename in
10930           CC)
10931             # Sun C++ 4.2, 5.x and Centerline C++
10932             lt_prog_compiler_pic_CXX='-KPIC'
10933             lt_prog_compiler_static_CXX='-Bstatic'
10934             lt_prog_compiler_wl_CXX='-Qoption ld '
10935             ;;
10936           gcx)
10937             # Green Hills C++ Compiler
10938             lt_prog_compiler_pic_CXX='-PIC'
10939             ;;
10940           *)
10941             ;;
10942         esac
10943         ;;
10944       sunos4*)
10945         case $cc_basename in
10946           CC)
10947             # Sun C++ 4.x
10948             lt_prog_compiler_pic_CXX='-pic'
10949             lt_prog_compiler_static_CXX='-Bstatic'
10950             ;;
10951           lcc)
10952             # Lucid
10953             lt_prog_compiler_pic_CXX='-pic'
10954             ;;
10955           *)
10956             ;;
10957         esac
10958         ;;
10959       tandem*)
10960         case $cc_basename in
10961           NCC)
10962             # NonStop-UX NCC 3.20
10963             lt_prog_compiler_pic_CXX='-KPIC'
10964             ;;
10965           *)
10966             ;;
10967         esac
10968         ;;
10969       unixware*)
10970         ;;
10971       vxworks*)
10972         ;;
10973       *)
10974         lt_prog_compiler_can_build_shared_CXX=no
10975         ;;
10976     esac
10977   fi
10978
10979 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10980 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10981
10982 #
10983 # Check to make sure the PIC flag actually works.
10984 #
10985 if test -n "$lt_prog_compiler_pic_CXX"; then
10986
10987 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10988 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10989 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10990   echo $ECHO_N "(cached) $ECHO_C" >&6
10991 else
10992   lt_prog_compiler_pic_works_CXX=no
10993   ac_outfile=conftest.$ac_objext
10994    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10995    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10996    # Insert the option either (1) after the last *FLAGS variable, or
10997    # (2) before a word containing "conftest.", or (3) at the end.
10998    # Note that $ac_compile itself does not contain backslashes and begins
10999    # with a dollar sign (not a hyphen), so the echo should work correctly.
11000    # The option is referenced via a variable to avoid confusing sed.
11001    lt_compile=`echo "$ac_compile" | $SED \
11002    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11003    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11004    -e 's:$: $lt_compiler_flag:'`
11005    (eval echo "\"\$as_me:11005: $lt_compile\"" >&5)
11006    (eval "$lt_compile" 2>conftest.err)
11007    ac_status=$?
11008    cat conftest.err >&5
11009    echo "$as_me:11009: \$? = $ac_status" >&5
11010    if (exit $ac_status) && test -s "$ac_outfile"; then
11011      # The compiler can only warn and ignore the option if not recognized
11012      # So say no if there are warnings
11013      if test ! -s conftest.err; then
11014        lt_prog_compiler_pic_works_CXX=yes
11015      fi
11016    fi
11017    $rm conftest*
11018
11019 fi
11020 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11021 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11022
11023 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11024     case $lt_prog_compiler_pic_CXX in
11025      "" | " "*) ;;
11026      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11027      esac
11028 else
11029     lt_prog_compiler_pic_CXX=
11030      lt_prog_compiler_can_build_shared_CXX=no
11031 fi
11032
11033 fi
11034 case "$host_os" in
11035   # For platforms which do not support PIC, -DPIC is meaningless:
11036   *djgpp*)
11037     lt_prog_compiler_pic_CXX=
11038     ;;
11039   *)
11040     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11041     ;;
11042 esac
11043
11044 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11045 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11046 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11047   echo $ECHO_N "(cached) $ECHO_C" >&6
11048 else
11049   lt_cv_prog_compiler_c_o_CXX=no
11050    $rm -r conftest 2>/dev/null
11051    mkdir conftest
11052    cd conftest
11053    mkdir out
11054    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11055
11056    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
11057    # that will create temporary files in the current directory regardless of
11058    # the output directory.  Thus, making CWD read-only will cause this test
11059    # to fail, enabling locking or at least warning the user not to do parallel
11060    # builds.
11061    chmod -w .
11062
11063    lt_compiler_flag="-o out/conftest2.$ac_objext"
11064    # Insert the option either (1) after the last *FLAGS variable, or
11065    # (2) before a word containing "conftest.", or (3) at the end.
11066    # Note that $ac_compile itself does not contain backslashes and begins
11067    # with a dollar sign (not a hyphen), so the echo should work correctly.
11068    lt_compile=`echo "$ac_compile" | $SED \
11069    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11070    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11071    -e 's:$: $lt_compiler_flag:'`
11072    (eval echo "\"\$as_me:11072: $lt_compile\"" >&5)
11073    (eval "$lt_compile" 2>out/conftest.err)
11074    ac_status=$?
11075    cat out/conftest.err >&5
11076    echo "$as_me:11076: \$? = $ac_status" >&5
11077    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11078    then
11079      # The compiler can only warn and ignore the option if not recognized
11080      # So say no if there are warnings
11081      if test ! -s out/conftest.err; then
11082        lt_cv_prog_compiler_c_o_CXX=yes
11083      fi
11084    fi
11085    chmod u+w .
11086    $rm conftest*
11087    # SGI C++ compiler will create directory out/ii_files/ for
11088    # template instantiation
11089    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11090    $rm out/* && rmdir out
11091    cd ..
11092    rmdir conftest
11093    $rm conftest*
11094
11095 fi
11096 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11097 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11098
11099
11100 hard_links="nottested"
11101 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11102   # do not overwrite the value of need_locks provided by the user
11103   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11104 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11105   hard_links=yes
11106   $rm conftest*
11107   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11108   touch conftest.a
11109   ln conftest.a conftest.b 2>&5 || hard_links=no
11110   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11111   echo "$as_me:$LINENO: result: $hard_links" >&5
11112 echo "${ECHO_T}$hard_links" >&6
11113   if test "$hard_links" = no; then
11114     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11115 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11116     need_locks=warn
11117   fi
11118 else
11119   need_locks=no
11120 fi
11121
11122 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11123 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11124
11125   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11126   case $host_os in
11127   aix4* | aix5*)
11128     # If we're using GNU nm, then we don't want the "-C" option.
11129     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11130     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11131       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'
11132     else
11133       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'
11134     fi
11135     ;;
11136   pw32*)
11137     export_symbols_cmds_CXX="$ltdll_cmds"
11138   ;;
11139   cygwin* | mingw*)
11140     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11141   ;;
11142   *)
11143     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11144   ;;
11145   esac
11146
11147 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11148 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11149 test "$ld_shlibs_CXX" = no && can_build_shared=no
11150
11151 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11152 if test "$GCC" = yes; then
11153   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11154 fi
11155
11156 #
11157 # Do we need to explicitly link libc?
11158 #
11159 case "x$archive_cmds_need_lc_CXX" in
11160 x|xyes)
11161   # Assume -lc should be added
11162   archive_cmds_need_lc_CXX=yes
11163
11164   if test "$enable_shared" = yes && test "$GCC" = yes; then
11165     case $archive_cmds_CXX in
11166     *'~'*)
11167       # FIXME: we may have to deal with multi-command sequences.
11168       ;;
11169     '$CC '*)
11170       # Test whether the compiler implicitly links with -lc since on some
11171       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11172       # to ld, don't add -lc before -lgcc.
11173       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11174 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11175       $rm conftest*
11176       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11177
11178       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11179   (eval $ac_compile) 2>&5
11180   ac_status=$?
11181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182   (exit $ac_status); } 2>conftest.err; then
11183         soname=conftest
11184         lib=conftest
11185         libobjs=conftest.$ac_objext
11186         deplibs=
11187         wl=$lt_prog_compiler_wl_CXX
11188         compiler_flags=-v
11189         linker_flags=-v
11190         verstring=
11191         output_objdir=.
11192         libname=conftest
11193         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11194         allow_undefined_flag_CXX=
11195         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11196   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11197   ac_status=$?
11198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199   (exit $ac_status); }
11200         then
11201           archive_cmds_need_lc_CXX=no
11202         else
11203           archive_cmds_need_lc_CXX=yes
11204         fi
11205         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11206       else
11207         cat conftest.err 1>&5
11208       fi
11209       $rm conftest*
11210       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11211 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11212       ;;
11213     esac
11214   fi
11215   ;;
11216 esac
11217
11218 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11219 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11220 library_names_spec=
11221 libname_spec='lib$name'
11222 soname_spec=
11223 shrext=".so"
11224 postinstall_cmds=
11225 postuninstall_cmds=
11226 finish_cmds=
11227 finish_eval=
11228 shlibpath_var=
11229 shlibpath_overrides_runpath=unknown
11230 version_type=none
11231 dynamic_linker="$host_os ld.so"
11232 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11233 if test "$GCC" = yes; then
11234   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11235   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11236     # if the path contains ";" then we assume it to be the separator
11237     # otherwise default to the standard path separator (i.e. ":") - it is
11238     # assumed that no part of a normal pathname contains ";" but that should
11239     # okay in the real world where ";" in dirpaths is itself problematic.
11240     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11241   else
11242     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11243   fi
11244 else
11245   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11246 fi
11247 need_lib_prefix=unknown
11248 hardcode_into_libs=no
11249
11250 # when you set need_version to no, make sure it does not cause -set_version
11251 # flags to be left without arguments
11252 need_version=unknown
11253
11254 case $host_os in
11255 aix3*)
11256   version_type=linux
11257   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11258   shlibpath_var=LIBPATH
11259
11260   # AIX 3 has no versioning support, so we append a major version to the name.
11261   soname_spec='${libname}${release}${shared_ext}$major'
11262   ;;
11263
11264 aix4* | aix5*)
11265   version_type=linux
11266   need_lib_prefix=no
11267   need_version=no
11268   hardcode_into_libs=yes
11269   if test "$host_cpu" = ia64; then
11270     # AIX 5 supports IA64
11271     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11272     shlibpath_var=LD_LIBRARY_PATH
11273   else
11274     # With GCC up to 2.95.x, collect2 would create an import file
11275     # for dependence libraries.  The import file would start with
11276     # the line `#! .'.  This would cause the generated library to
11277     # depend on `.', always an invalid library.  This was fixed in
11278     # development snapshots of GCC prior to 3.0.
11279     case $host_os in
11280       aix4 | aix4.[01] | aix4.[01].*)
11281       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11282            echo ' yes '
11283            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11284         :
11285       else
11286         can_build_shared=no
11287       fi
11288       ;;
11289     esac
11290     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11291     # soname into executable. Probably we can add versioning support to
11292     # collect2, so additional links can be useful in future.
11293     if test "$aix_use_runtimelinking" = yes; then
11294       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11295       # instead of lib<name>.a to let people know that these are not
11296       # typical AIX shared libraries.
11297       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11298     else
11299       # We preserve .a as extension for shared libraries through AIX4.2
11300       # and later when we are not doing run time linking.
11301       library_names_spec='${libname}${release}.a $libname.a'
11302       soname_spec='${libname}${release}${shared_ext}$major'
11303     fi
11304     shlibpath_var=LIBPATH
11305   fi
11306   ;;
11307
11308 amigaos*)
11309   library_names_spec='$libname.ixlibrary $libname.a'
11310   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11311   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'
11312   ;;
11313
11314 beos*)
11315   library_names_spec='${libname}${shared_ext}'
11316   dynamic_linker="$host_os ld.so"
11317   shlibpath_var=LIBRARY_PATH
11318   ;;
11319
11320 bsdi4*)
11321   version_type=linux
11322   need_version=no
11323   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11324   soname_spec='${libname}${release}${shared_ext}$major'
11325   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11326   shlibpath_var=LD_LIBRARY_PATH
11327   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11328   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11329   # the default ld.so.conf also contains /usr/contrib/lib and
11330   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11331   # libtool to hard-code these into programs
11332   ;;
11333
11334 cygwin* | mingw* | pw32*)
11335   version_type=windows
11336   shrext=".dll"
11337   need_version=no
11338   need_lib_prefix=no
11339
11340   case $GCC,$host_os in
11341   yes,cygwin* | yes,mingw* | yes,pw32*)
11342     library_names_spec='$libname.dll.a'
11343     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11344     postinstall_cmds='base_file=`basename \${file}`~
11345       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11346       dldir=$destdir/`dirname \$dlpath`~
11347       test -d \$dldir || mkdir -p \$dldir~
11348       $install_prog $dir/$dlname \$dldir/$dlname'
11349     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11350       dlpath=$dir/\$dldll~
11351        $rm \$dlpath'
11352     shlibpath_overrides_runpath=yes
11353
11354     case $host_os in
11355     cygwin*)
11356       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11357       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11358       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11359       ;;
11360     mingw*)
11361       # MinGW DLLs use traditional 'lib' prefix
11362       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11363       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11364       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11365         # It is most probably a Windows format PATH printed by
11366         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11367         # path with ; separators, and with drive letters. We can handle the
11368         # drive letters (cygwin fileutils understands them), so leave them,
11369         # especially as we might pass files found there to a mingw objdump,
11370         # which wouldn't understand a cygwinified path. Ahh.
11371         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11372       else
11373         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11374       fi
11375       ;;
11376     pw32*)
11377       # pw32 DLLs use 'pw' prefix rather than 'lib'
11378       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11379       ;;
11380     esac
11381     ;;
11382
11383   *)
11384     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11385     ;;
11386   esac
11387   dynamic_linker='Win32 ld.exe'
11388   # FIXME: first we should search . and the directory the executable is in
11389   shlibpath_var=PATH
11390   ;;
11391
11392 darwin* | rhapsody*)
11393   dynamic_linker="$host_os dyld"
11394   version_type=darwin
11395   need_lib_prefix=no
11396   need_version=no
11397   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11398   soname_spec='${libname}${release}${major}$shared_ext'
11399   shlibpath_overrides_runpath=yes
11400   shlibpath_var=DYLD_LIBRARY_PATH
11401   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11402   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11403   if test "$GCC" = yes; then
11404     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"`
11405   else
11406     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11407   fi
11408   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11409   ;;
11410
11411 dgux*)
11412   version_type=linux
11413   need_lib_prefix=no
11414   need_version=no
11415   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11416   soname_spec='${libname}${release}${shared_ext}$major'
11417   shlibpath_var=LD_LIBRARY_PATH
11418   ;;
11419
11420 freebsd1*)
11421   dynamic_linker=no
11422   ;;
11423
11424 kfreebsd*-gnu)
11425   version_type=linux
11426   need_lib_prefix=no
11427   need_version=no
11428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11429   soname_spec='${libname}${release}${shared_ext}$major'
11430   shlibpath_var=LD_LIBRARY_PATH
11431   shlibpath_overrides_runpath=no
11432   hardcode_into_libs=yes
11433   dynamic_linker='GNU ld.so'
11434   ;;
11435
11436 freebsd*)
11437   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11438   version_type=freebsd-$objformat
11439   case $version_type in
11440     freebsd-elf*)
11441       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11442       need_version=no
11443       need_lib_prefix=no
11444       ;;
11445     freebsd-*)
11446       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11447       need_version=yes
11448       ;;
11449   esac
11450   shlibpath_var=LD_LIBRARY_PATH
11451   case $host_os in
11452   freebsd2*)
11453     shlibpath_overrides_runpath=yes
11454     ;;
11455   freebsd3.01* | freebsdelf3.01*)
11456     shlibpath_overrides_runpath=yes
11457     hardcode_into_libs=yes
11458     ;;
11459   *) # from 3.2 on
11460     shlibpath_overrides_runpath=no
11461     hardcode_into_libs=yes
11462     ;;
11463   esac
11464   ;;
11465
11466 gnu*)
11467   version_type=linux
11468   need_lib_prefix=no
11469   need_version=no
11470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11471   soname_spec='${libname}${release}${shared_ext}$major'
11472   shlibpath_var=LD_LIBRARY_PATH
11473   hardcode_into_libs=yes
11474   ;;
11475
11476 hpux9* | hpux10* | hpux11*)
11477   # Give a soname corresponding to the major version so that dld.sl refuses to
11478   # link against other versions.
11479   version_type=sunos
11480   need_lib_prefix=no
11481   need_version=no
11482   case "$host_cpu" in
11483   ia64*)
11484     shrext='.so'
11485     hardcode_into_libs=yes
11486     dynamic_linker="$host_os dld.so"
11487     shlibpath_var=LD_LIBRARY_PATH
11488     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11489     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11490     soname_spec='${libname}${release}${shared_ext}$major'
11491     if test "X$HPUX_IA64_MODE" = X32; then
11492       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11493     else
11494       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11495     fi
11496     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11497     ;;
11498    hppa*64*)
11499      shrext='.sl'
11500      hardcode_into_libs=yes
11501      dynamic_linker="$host_os dld.sl"
11502      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11503      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11504      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11505      soname_spec='${libname}${release}${shared_ext}$major'
11506      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11507      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11508      ;;
11509    *)
11510     shrext='.sl'
11511     dynamic_linker="$host_os dld.sl"
11512     shlibpath_var=SHLIB_PATH
11513     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11514     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11515     soname_spec='${libname}${release}${shared_ext}$major'
11516     ;;
11517   esac
11518   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11519   postinstall_cmds='chmod 555 $lib'
11520   ;;
11521
11522 irix5* | irix6* | nonstopux*)
11523   case $host_os in
11524     nonstopux*) version_type=nonstopux ;;
11525     *)
11526         if test "$lt_cv_prog_gnu_ld" = yes; then
11527                 version_type=linux
11528         else
11529                 version_type=irix
11530         fi ;;
11531   esac
11532   need_lib_prefix=no
11533   need_version=no
11534   soname_spec='${libname}${release}${shared_ext}$major'
11535   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11536   case $host_os in
11537   irix5* | nonstopux*)
11538     libsuff= shlibsuff=
11539     ;;
11540   *)
11541     case $LD in # libtool.m4 will add one of these switches to LD
11542     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11543       libsuff= shlibsuff= libmagic=32-bit;;
11544     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11545       libsuff=32 shlibsuff=N32 libmagic=N32;;
11546     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11547       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11548     *) libsuff= shlibsuff= libmagic=never-match;;
11549     esac
11550     ;;
11551   esac
11552   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11553   shlibpath_overrides_runpath=no
11554   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11555   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11556   hardcode_into_libs=yes
11557   ;;
11558
11559 # No shared lib support for Linux oldld, aout, or coff.
11560 linux*oldld* | linux*aout* | linux*coff*)
11561   dynamic_linker=no
11562   ;;
11563
11564 # This must be Linux ELF.
11565 linux*)
11566   version_type=linux
11567   need_lib_prefix=no
11568   need_version=no
11569   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11570   soname_spec='${libname}${release}${shared_ext}$major'
11571   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11572   shlibpath_var=LD_LIBRARY_PATH
11573   shlibpath_overrides_runpath=no
11574   # This implies no fast_install, which is unacceptable.
11575   # Some rework will be needed to allow for fast_install
11576   # before this can be enabled.
11577   hardcode_into_libs=yes
11578
11579   # Append ld.so.conf contents to the search path
11580   if test -f /etc/ld.so.conf; then
11581     ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
11582     sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
11583   fi
11584
11585   # We used to test for /lib/ld.so.1 and disable shared libraries on
11586   # powerpc, because MkLinux only supported shared libraries with the
11587   # GNU dynamic linker.  Since this was broken with cross compilers,
11588   # most powerpc-linux boxes support dynamic linking these days and
11589   # people can always --disable-shared, the test was removed, and we
11590   # assume the GNU/Linux dynamic linker is in use.
11591   dynamic_linker='GNU/Linux ld.so'
11592   ;;
11593
11594 knetbsd*-gnu)
11595   version_type=linux
11596   need_lib_prefix=no
11597   need_version=no
11598   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11599   soname_spec='${libname}${release}${shared_ext}$major'
11600   shlibpath_var=LD_LIBRARY_PATH
11601   shlibpath_overrides_runpath=no
11602   hardcode_into_libs=yes
11603   dynamic_linker='GNU ld.so'
11604   ;;
11605
11606 netbsd*)
11607   version_type=sunos
11608   need_lib_prefix=no
11609   need_version=no
11610   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11611     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11612     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11613     dynamic_linker='NetBSD (a.out) ld.so'
11614   else
11615     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11616     soname_spec='${libname}${release}${shared_ext}$major'
11617     dynamic_linker='NetBSD ld.elf_so'
11618   fi
11619   shlibpath_var=LD_LIBRARY_PATH
11620   shlibpath_overrides_runpath=yes
11621   hardcode_into_libs=yes
11622   ;;
11623
11624 newsos6)
11625   version_type=linux
11626   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11627   shlibpath_var=LD_LIBRARY_PATH
11628   shlibpath_overrides_runpath=yes
11629   ;;
11630
11631 nto-qnx*)
11632   version_type=linux
11633   need_lib_prefix=no
11634   need_version=no
11635   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11636   soname_spec='${libname}${release}${shared_ext}$major'
11637   shlibpath_var=LD_LIBRARY_PATH
11638   shlibpath_overrides_runpath=yes
11639   ;;
11640
11641 openbsd*)
11642   version_type=sunos
11643   need_lib_prefix=no
11644   need_version=yes
11645   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11646   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11647   shlibpath_var=LD_LIBRARY_PATH
11648   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11649     case $host_os in
11650       openbsd2.[89] | openbsd2.[89].*)
11651         shlibpath_overrides_runpath=no
11652         ;;
11653       *)
11654         shlibpath_overrides_runpath=yes
11655         ;;
11656       esac
11657   else
11658     shlibpath_overrides_runpath=yes
11659   fi
11660   ;;
11661
11662 os2*)
11663   libname_spec='$name'
11664   shrext=".dll"
11665   need_lib_prefix=no
11666   library_names_spec='$libname${shared_ext} $libname.a'
11667   dynamic_linker='OS/2 ld.exe'
11668   shlibpath_var=LIBPATH
11669   ;;
11670
11671 osf3* | osf4* | osf5*)
11672   version_type=osf
11673   need_lib_prefix=no
11674   need_version=no
11675   soname_spec='${libname}${release}${shared_ext}$major'
11676   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11677   shlibpath_var=LD_LIBRARY_PATH
11678   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11679   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11680   ;;
11681
11682 sco3.2v5*)
11683   version_type=osf
11684   soname_spec='${libname}${release}${shared_ext}$major'
11685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11686   shlibpath_var=LD_LIBRARY_PATH
11687   ;;
11688
11689 solaris*)
11690   version_type=linux
11691   need_lib_prefix=no
11692   need_version=no
11693   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11694   soname_spec='${libname}${release}${shared_ext}$major'
11695   shlibpath_var=LD_LIBRARY_PATH
11696   shlibpath_overrides_runpath=yes
11697   hardcode_into_libs=yes
11698   # ldd complains unless libraries are executable
11699   postinstall_cmds='chmod +x $lib'
11700   ;;
11701
11702 sunos4*)
11703   version_type=sunos
11704   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11705   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11706   shlibpath_var=LD_LIBRARY_PATH
11707   shlibpath_overrides_runpath=yes
11708   if test "$with_gnu_ld" = yes; then
11709     need_lib_prefix=no
11710   fi
11711   need_version=yes
11712   ;;
11713
11714 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11715   version_type=linux
11716   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11717   soname_spec='${libname}${release}${shared_ext}$major'
11718   shlibpath_var=LD_LIBRARY_PATH
11719   case $host_vendor in
11720     sni)
11721       shlibpath_overrides_runpath=no
11722       need_lib_prefix=no
11723       export_dynamic_flag_spec='${wl}-Blargedynsym'
11724       runpath_var=LD_RUN_PATH
11725       ;;
11726     siemens)
11727       need_lib_prefix=no
11728       ;;
11729     motorola)
11730       need_lib_prefix=no
11731       need_version=no
11732       shlibpath_overrides_runpath=no
11733       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11734       ;;
11735   esac
11736   ;;
11737
11738 sysv4*MP*)
11739   if test -d /usr/nec ;then
11740     version_type=linux
11741     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11742     soname_spec='$libname${shared_ext}.$major'
11743     shlibpath_var=LD_LIBRARY_PATH
11744   fi
11745   ;;
11746
11747 uts4*)
11748   version_type=linux
11749   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11750   soname_spec='${libname}${release}${shared_ext}$major'
11751   shlibpath_var=LD_LIBRARY_PATH
11752   ;;
11753
11754 *)
11755   dynamic_linker=no
11756   ;;
11757 esac
11758 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11759 echo "${ECHO_T}$dynamic_linker" >&6
11760 test "$dynamic_linker" = no && can_build_shared=no
11761
11762 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11763 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11764 hardcode_action_CXX=
11765 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11766    test -n "$runpath_var CXX" || \
11767    test "X$hardcode_automatic_CXX"="Xyes" ; then
11768
11769   # We can hardcode non-existant directories.
11770   if test "$hardcode_direct_CXX" != no &&
11771      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11772      # have to relink, otherwise we might link with an installed library
11773      # when we should be linking with a yet-to-be-installed one
11774      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11775      test "$hardcode_minus_L_CXX" != no; then
11776     # Linking always hardcodes the temporary library directory.
11777     hardcode_action_CXX=relink
11778   else
11779     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11780     hardcode_action_CXX=immediate
11781   fi
11782 else
11783   # We cannot hardcode anything, or else we can only hardcode existing
11784   # directories.
11785   hardcode_action_CXX=unsupported
11786 fi
11787 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11788 echo "${ECHO_T}$hardcode_action_CXX" >&6
11789
11790 if test "$hardcode_action_CXX" = relink; then
11791   # Fast installation is not supported
11792   enable_fast_install=no
11793 elif test "$shlibpath_overrides_runpath" = yes ||
11794      test "$enable_shared" = no; then
11795   # Fast installation is not necessary
11796   enable_fast_install=needless
11797 fi
11798
11799 striplib=
11800 old_striplib=
11801 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11802 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11803 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11804   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11805   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11806   echo "$as_me:$LINENO: result: yes" >&5
11807 echo "${ECHO_T}yes" >&6
11808 else
11809 # FIXME - insert some real tests, host_os isn't really good enough
11810   case $host_os in
11811    darwin*)
11812        if test -n "$STRIP" ; then
11813          striplib="$STRIP -x"
11814          echo "$as_me:$LINENO: result: yes" >&5
11815 echo "${ECHO_T}yes" >&6
11816        else
11817   echo "$as_me:$LINENO: result: no" >&5
11818 echo "${ECHO_T}no" >&6
11819 fi
11820        ;;
11821    *)
11822   echo "$as_me:$LINENO: result: no" >&5
11823 echo "${ECHO_T}no" >&6
11824     ;;
11825   esac
11826 fi
11827
11828 if test "x$enable_dlopen" != xyes; then
11829   enable_dlopen=unknown
11830   enable_dlopen_self=unknown
11831   enable_dlopen_self_static=unknown
11832 else
11833   lt_cv_dlopen=no
11834   lt_cv_dlopen_libs=
11835
11836   case $host_os in
11837   beos*)
11838     lt_cv_dlopen="load_add_on"
11839     lt_cv_dlopen_libs=
11840     lt_cv_dlopen_self=yes
11841     ;;
11842
11843   mingw* | pw32*)
11844     lt_cv_dlopen="LoadLibrary"
11845     lt_cv_dlopen_libs=
11846    ;;
11847
11848   cygwin*)
11849     lt_cv_dlopen="dlopen"
11850     lt_cv_dlopen_libs=
11851    ;;
11852
11853   darwin*)
11854   # if libdl is installed we need to link against it
11855     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11856 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11857 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11858   echo $ECHO_N "(cached) $ECHO_C" >&6
11859 else
11860   ac_check_lib_save_LIBS=$LIBS
11861 LIBS="-ldl  $LIBS"
11862 cat >conftest.$ac_ext <<_ACEOF
11863 /* confdefs.h.  */
11864 _ACEOF
11865 cat confdefs.h >>conftest.$ac_ext
11866 cat >>conftest.$ac_ext <<_ACEOF
11867 /* end confdefs.h.  */
11868
11869 /* Override any gcc2 internal prototype to avoid an error.  */
11870 #ifdef __cplusplus
11871 extern "C"
11872 #endif
11873 /* We use char because int might match the return type of a gcc2
11874    builtin and then its argument prototype would still apply.  */
11875 char dlopen ();
11876 int
11877 main ()
11878 {
11879 dlopen ();
11880   ;
11881   return 0;
11882 }
11883 _ACEOF
11884 rm -f conftest.$ac_objext conftest$ac_exeext
11885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11886   (eval $ac_link) 2>conftest.er1
11887   ac_status=$?
11888   grep -v '^ *+' conftest.er1 >conftest.err
11889   rm -f conftest.er1
11890   cat conftest.err >&5
11891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892   (exit $ac_status); } &&
11893          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11895   (eval $ac_try) 2>&5
11896   ac_status=$?
11897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898   (exit $ac_status); }; } &&
11899          { ac_try='test -s conftest$ac_exeext'
11900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11901   (eval $ac_try) 2>&5
11902   ac_status=$?
11903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904   (exit $ac_status); }; }; then
11905   ac_cv_lib_dl_dlopen=yes
11906 else
11907   echo "$as_me: failed program was:" >&5
11908 sed 's/^/| /' conftest.$ac_ext >&5
11909
11910 ac_cv_lib_dl_dlopen=no
11911 fi
11912 rm -f conftest.err conftest.$ac_objext \
11913       conftest$ac_exeext conftest.$ac_ext
11914 LIBS=$ac_check_lib_save_LIBS
11915 fi
11916 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11917 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11918 if test $ac_cv_lib_dl_dlopen = yes; then
11919   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11920 else
11921
11922     lt_cv_dlopen="dyld"
11923     lt_cv_dlopen_libs=
11924     lt_cv_dlopen_self=yes
11925
11926 fi
11927
11928    ;;
11929
11930   *)
11931     echo "$as_me:$LINENO: checking for shl_load" >&5
11932 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11933 if test "${ac_cv_func_shl_load+set}" = set; then
11934   echo $ECHO_N "(cached) $ECHO_C" >&6
11935 else
11936   cat >conftest.$ac_ext <<_ACEOF
11937 /* confdefs.h.  */
11938 _ACEOF
11939 cat confdefs.h >>conftest.$ac_ext
11940 cat >>conftest.$ac_ext <<_ACEOF
11941 /* end confdefs.h.  */
11942 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11943    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11944 #define shl_load innocuous_shl_load
11945
11946 /* System header to define __stub macros and hopefully few prototypes,
11947     which can conflict with char shl_load (); below.
11948     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11949     <limits.h> exists even on freestanding compilers.  */
11950
11951 #ifdef __STDC__
11952 # include <limits.h>
11953 #else
11954 # include <assert.h>
11955 #endif
11956
11957 #undef shl_load
11958
11959 /* Override any gcc2 internal prototype to avoid an error.  */
11960 #ifdef __cplusplus
11961 extern "C"
11962 {
11963 #endif
11964 /* We use char because int might match the return type of a gcc2
11965    builtin and then its argument prototype would still apply.  */
11966 char shl_load ();
11967 /* The GNU C library defines this for functions which it implements
11968     to always fail with ENOSYS.  Some functions are actually named
11969     something starting with __ and the normal name is an alias.  */
11970 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11971 choke me
11972 #else
11973 char (*f) () = shl_load;
11974 #endif
11975 #ifdef __cplusplus
11976 }
11977 #endif
11978
11979 int
11980 main ()
11981 {
11982 return f != shl_load;
11983   ;
11984   return 0;
11985 }
11986 _ACEOF
11987 rm -f conftest.$ac_objext conftest$ac_exeext
11988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11989   (eval $ac_link) 2>conftest.er1
11990   ac_status=$?
11991   grep -v '^ *+' conftest.er1 >conftest.err
11992   rm -f conftest.er1
11993   cat conftest.err >&5
11994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995   (exit $ac_status); } &&
11996          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11998   (eval $ac_try) 2>&5
11999   ac_status=$?
12000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001   (exit $ac_status); }; } &&
12002          { ac_try='test -s conftest$ac_exeext'
12003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12004   (eval $ac_try) 2>&5
12005   ac_status=$?
12006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007   (exit $ac_status); }; }; then
12008   ac_cv_func_shl_load=yes
12009 else
12010   echo "$as_me: failed program was:" >&5
12011 sed 's/^/| /' conftest.$ac_ext >&5
12012
12013 ac_cv_func_shl_load=no
12014 fi
12015 rm -f conftest.err conftest.$ac_objext \
12016       conftest$ac_exeext conftest.$ac_ext
12017 fi
12018 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12019 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12020 if test $ac_cv_func_shl_load = yes; then
12021   lt_cv_dlopen="shl_load"
12022 else
12023   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12024 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12025 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12026   echo $ECHO_N "(cached) $ECHO_C" >&6
12027 else
12028   ac_check_lib_save_LIBS=$LIBS
12029 LIBS="-ldld  $LIBS"
12030 cat >conftest.$ac_ext <<_ACEOF
12031 /* confdefs.h.  */
12032 _ACEOF
12033 cat confdefs.h >>conftest.$ac_ext
12034 cat >>conftest.$ac_ext <<_ACEOF
12035 /* end confdefs.h.  */
12036
12037 /* Override any gcc2 internal prototype to avoid an error.  */
12038 #ifdef __cplusplus
12039 extern "C"
12040 #endif
12041 /* We use char because int might match the return type of a gcc2
12042    builtin and then its argument prototype would still apply.  */
12043 char shl_load ();
12044 int
12045 main ()
12046 {
12047 shl_load ();
12048   ;
12049   return 0;
12050 }
12051 _ACEOF
12052 rm -f conftest.$ac_objext conftest$ac_exeext
12053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12054   (eval $ac_link) 2>conftest.er1
12055   ac_status=$?
12056   grep -v '^ *+' conftest.er1 >conftest.err
12057   rm -f conftest.er1
12058   cat conftest.err >&5
12059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060   (exit $ac_status); } &&
12061          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12063   (eval $ac_try) 2>&5
12064   ac_status=$?
12065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066   (exit $ac_status); }; } &&
12067          { ac_try='test -s conftest$ac_exeext'
12068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12069   (eval $ac_try) 2>&5
12070   ac_status=$?
12071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072   (exit $ac_status); }; }; then
12073   ac_cv_lib_dld_shl_load=yes
12074 else
12075   echo "$as_me: failed program was:" >&5
12076 sed 's/^/| /' conftest.$ac_ext >&5
12077
12078 ac_cv_lib_dld_shl_load=no
12079 fi
12080 rm -f conftest.err conftest.$ac_objext \
12081       conftest$ac_exeext conftest.$ac_ext
12082 LIBS=$ac_check_lib_save_LIBS
12083 fi
12084 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12085 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12086 if test $ac_cv_lib_dld_shl_load = yes; then
12087   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12088 else
12089   echo "$as_me:$LINENO: checking for dlopen" >&5
12090 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12091 if test "${ac_cv_func_dlopen+set}" = set; then
12092   echo $ECHO_N "(cached) $ECHO_C" >&6
12093 else
12094   cat >conftest.$ac_ext <<_ACEOF
12095 /* confdefs.h.  */
12096 _ACEOF
12097 cat confdefs.h >>conftest.$ac_ext
12098 cat >>conftest.$ac_ext <<_ACEOF
12099 /* end confdefs.h.  */
12100 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12101    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12102 #define dlopen innocuous_dlopen
12103
12104 /* System header to define __stub macros and hopefully few prototypes,
12105     which can conflict with char dlopen (); below.
12106     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12107     <limits.h> exists even on freestanding compilers.  */
12108
12109 #ifdef __STDC__
12110 # include <limits.h>
12111 #else
12112 # include <assert.h>
12113 #endif
12114
12115 #undef dlopen
12116
12117 /* Override any gcc2 internal prototype to avoid an error.  */
12118 #ifdef __cplusplus
12119 extern "C"
12120 {
12121 #endif
12122 /* We use char because int might match the return type of a gcc2
12123    builtin and then its argument prototype would still apply.  */
12124 char dlopen ();
12125 /* The GNU C library defines this for functions which it implements
12126     to always fail with ENOSYS.  Some functions are actually named
12127     something starting with __ and the normal name is an alias.  */
12128 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12129 choke me
12130 #else
12131 char (*f) () = dlopen;
12132 #endif
12133 #ifdef __cplusplus
12134 }
12135 #endif
12136
12137 int
12138 main ()
12139 {
12140 return f != dlopen;
12141   ;
12142   return 0;
12143 }
12144 _ACEOF
12145 rm -f conftest.$ac_objext conftest$ac_exeext
12146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12147   (eval $ac_link) 2>conftest.er1
12148   ac_status=$?
12149   grep -v '^ *+' conftest.er1 >conftest.err
12150   rm -f conftest.er1
12151   cat conftest.err >&5
12152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153   (exit $ac_status); } &&
12154          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12156   (eval $ac_try) 2>&5
12157   ac_status=$?
12158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159   (exit $ac_status); }; } &&
12160          { ac_try='test -s conftest$ac_exeext'
12161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12162   (eval $ac_try) 2>&5
12163   ac_status=$?
12164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165   (exit $ac_status); }; }; then
12166   ac_cv_func_dlopen=yes
12167 else
12168   echo "$as_me: failed program was:" >&5
12169 sed 's/^/| /' conftest.$ac_ext >&5
12170
12171 ac_cv_func_dlopen=no
12172 fi
12173 rm -f conftest.err conftest.$ac_objext \
12174       conftest$ac_exeext conftest.$ac_ext
12175 fi
12176 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12177 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12178 if test $ac_cv_func_dlopen = yes; then
12179   lt_cv_dlopen="dlopen"
12180 else
12181   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12182 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12183 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12184   echo $ECHO_N "(cached) $ECHO_C" >&6
12185 else
12186   ac_check_lib_save_LIBS=$LIBS
12187 LIBS="-ldl  $LIBS"
12188 cat >conftest.$ac_ext <<_ACEOF
12189 /* confdefs.h.  */
12190 _ACEOF
12191 cat confdefs.h >>conftest.$ac_ext
12192 cat >>conftest.$ac_ext <<_ACEOF
12193 /* end confdefs.h.  */
12194
12195 /* Override any gcc2 internal prototype to avoid an error.  */
12196 #ifdef __cplusplus
12197 extern "C"
12198 #endif
12199 /* We use char because int might match the return type of a gcc2
12200    builtin and then its argument prototype would still apply.  */
12201 char dlopen ();
12202 int
12203 main ()
12204 {
12205 dlopen ();
12206   ;
12207   return 0;
12208 }
12209 _ACEOF
12210 rm -f conftest.$ac_objext conftest$ac_exeext
12211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12212   (eval $ac_link) 2>conftest.er1
12213   ac_status=$?
12214   grep -v '^ *+' conftest.er1 >conftest.err
12215   rm -f conftest.er1
12216   cat conftest.err >&5
12217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218   (exit $ac_status); } &&
12219          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12221   (eval $ac_try) 2>&5
12222   ac_status=$?
12223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224   (exit $ac_status); }; } &&
12225          { ac_try='test -s conftest$ac_exeext'
12226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12227   (eval $ac_try) 2>&5
12228   ac_status=$?
12229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230   (exit $ac_status); }; }; then
12231   ac_cv_lib_dl_dlopen=yes
12232 else
12233   echo "$as_me: failed program was:" >&5
12234 sed 's/^/| /' conftest.$ac_ext >&5
12235
12236 ac_cv_lib_dl_dlopen=no
12237 fi
12238 rm -f conftest.err conftest.$ac_objext \
12239       conftest$ac_exeext conftest.$ac_ext
12240 LIBS=$ac_check_lib_save_LIBS
12241 fi
12242 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12243 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12244 if test $ac_cv_lib_dl_dlopen = yes; then
12245   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12246 else
12247   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12248 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12249 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12250   echo $ECHO_N "(cached) $ECHO_C" >&6
12251 else
12252   ac_check_lib_save_LIBS=$LIBS
12253 LIBS="-lsvld  $LIBS"
12254 cat >conftest.$ac_ext <<_ACEOF
12255 /* confdefs.h.  */
12256 _ACEOF
12257 cat confdefs.h >>conftest.$ac_ext
12258 cat >>conftest.$ac_ext <<_ACEOF
12259 /* end confdefs.h.  */
12260
12261 /* Override any gcc2 internal prototype to avoid an error.  */
12262 #ifdef __cplusplus
12263 extern "C"
12264 #endif
12265 /* We use char because int might match the return type of a gcc2
12266    builtin and then its argument prototype would still apply.  */
12267 char dlopen ();
12268 int
12269 main ()
12270 {
12271 dlopen ();
12272   ;
12273   return 0;
12274 }
12275 _ACEOF
12276 rm -f conftest.$ac_objext conftest$ac_exeext
12277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12278   (eval $ac_link) 2>conftest.er1
12279   ac_status=$?
12280   grep -v '^ *+' conftest.er1 >conftest.err
12281   rm -f conftest.er1
12282   cat conftest.err >&5
12283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284   (exit $ac_status); } &&
12285          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12287   (eval $ac_try) 2>&5
12288   ac_status=$?
12289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290   (exit $ac_status); }; } &&
12291          { ac_try='test -s conftest$ac_exeext'
12292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12293   (eval $ac_try) 2>&5
12294   ac_status=$?
12295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296   (exit $ac_status); }; }; then
12297   ac_cv_lib_svld_dlopen=yes
12298 else
12299   echo "$as_me: failed program was:" >&5
12300 sed 's/^/| /' conftest.$ac_ext >&5
12301
12302 ac_cv_lib_svld_dlopen=no
12303 fi
12304 rm -f conftest.err conftest.$ac_objext \
12305       conftest$ac_exeext conftest.$ac_ext
12306 LIBS=$ac_check_lib_save_LIBS
12307 fi
12308 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12309 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12310 if test $ac_cv_lib_svld_dlopen = yes; then
12311   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12312 else
12313   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12314 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12315 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12316   echo $ECHO_N "(cached) $ECHO_C" >&6
12317 else
12318   ac_check_lib_save_LIBS=$LIBS
12319 LIBS="-ldld  $LIBS"
12320 cat >conftest.$ac_ext <<_ACEOF
12321 /* confdefs.h.  */
12322 _ACEOF
12323 cat confdefs.h >>conftest.$ac_ext
12324 cat >>conftest.$ac_ext <<_ACEOF
12325 /* end confdefs.h.  */
12326
12327 /* Override any gcc2 internal prototype to avoid an error.  */
12328 #ifdef __cplusplus
12329 extern "C"
12330 #endif
12331 /* We use char because int might match the return type of a gcc2
12332    builtin and then its argument prototype would still apply.  */
12333 char dld_link ();
12334 int
12335 main ()
12336 {
12337 dld_link ();
12338   ;
12339   return 0;
12340 }
12341 _ACEOF
12342 rm -f conftest.$ac_objext conftest$ac_exeext
12343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12344   (eval $ac_link) 2>conftest.er1
12345   ac_status=$?
12346   grep -v '^ *+' conftest.er1 >conftest.err
12347   rm -f conftest.er1
12348   cat conftest.err >&5
12349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350   (exit $ac_status); } &&
12351          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12353   (eval $ac_try) 2>&5
12354   ac_status=$?
12355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356   (exit $ac_status); }; } &&
12357          { ac_try='test -s conftest$ac_exeext'
12358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12359   (eval $ac_try) 2>&5
12360   ac_status=$?
12361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362   (exit $ac_status); }; }; then
12363   ac_cv_lib_dld_dld_link=yes
12364 else
12365   echo "$as_me: failed program was:" >&5
12366 sed 's/^/| /' conftest.$ac_ext >&5
12367
12368 ac_cv_lib_dld_dld_link=no
12369 fi
12370 rm -f conftest.err conftest.$ac_objext \
12371       conftest$ac_exeext conftest.$ac_ext
12372 LIBS=$ac_check_lib_save_LIBS
12373 fi
12374 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12375 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12376 if test $ac_cv_lib_dld_dld_link = yes; then
12377   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12378 fi
12379
12380
12381 fi
12382
12383
12384 fi
12385
12386
12387 fi
12388
12389
12390 fi
12391
12392
12393 fi
12394
12395     ;;
12396   esac
12397
12398   if test "x$lt_cv_dlopen" != xno; then
12399     enable_dlopen=yes
12400   else
12401     enable_dlopen=no
12402   fi
12403
12404   case $lt_cv_dlopen in
12405   dlopen)
12406     save_CPPFLAGS="$CPPFLAGS"
12407     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12408
12409     save_LDFLAGS="$LDFLAGS"
12410     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12411
12412     save_LIBS="$LIBS"
12413     LIBS="$lt_cv_dlopen_libs $LIBS"
12414
12415     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12416 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12417 if test "${lt_cv_dlopen_self+set}" = set; then
12418   echo $ECHO_N "(cached) $ECHO_C" >&6
12419 else
12420           if test "$cross_compiling" = yes; then :
12421   lt_cv_dlopen_self=cross
12422 else
12423   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12424   lt_status=$lt_dlunknown
12425   cat > conftest.$ac_ext <<EOF
12426 #line 12426 "configure"
12427 #include "confdefs.h"
12428
12429 #if HAVE_DLFCN_H
12430 #include <dlfcn.h>
12431 #endif
12432
12433 #include <stdio.h>
12434
12435 #ifdef RTLD_GLOBAL
12436 #  define LT_DLGLOBAL           RTLD_GLOBAL
12437 #else
12438 #  ifdef DL_GLOBAL
12439 #    define LT_DLGLOBAL         DL_GLOBAL
12440 #  else
12441 #    define LT_DLGLOBAL         0
12442 #  endif
12443 #endif
12444
12445 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12446    find out it does not work in some platform. */
12447 #ifndef LT_DLLAZY_OR_NOW
12448 #  ifdef RTLD_LAZY
12449 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12450 #  else
12451 #    ifdef DL_LAZY
12452 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12453 #    else
12454 #      ifdef RTLD_NOW
12455 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12456 #      else
12457 #        ifdef DL_NOW
12458 #          define LT_DLLAZY_OR_NOW      DL_NOW
12459 #        else
12460 #          define LT_DLLAZY_OR_NOW      0
12461 #        endif
12462 #      endif
12463 #    endif
12464 #  endif
12465 #endif
12466
12467 #ifdef __cplusplus
12468 extern "C" void exit (int);
12469 #endif
12470
12471 void fnord() { int i=42;}
12472 int main ()
12473 {
12474   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12475   int status = $lt_dlunknown;
12476
12477   if (self)
12478     {
12479       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12480       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12481       /* dlclose (self); */
12482     }
12483
12484     exit (status);
12485 }
12486 EOF
12487   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12488   (eval $ac_link) 2>&5
12489   ac_status=$?
12490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12492     (./conftest; exit; ) 2>/dev/null
12493     lt_status=$?
12494     case x$lt_status in
12495       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12496       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12497       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12498     esac
12499   else :
12500     # compilation failed
12501     lt_cv_dlopen_self=no
12502   fi
12503 fi
12504 rm -fr conftest*
12505
12506
12507 fi
12508 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12509 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12510
12511     if test "x$lt_cv_dlopen_self" = xyes; then
12512       LDFLAGS="$LDFLAGS $link_static_flag"
12513       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12514 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12515 if test "${lt_cv_dlopen_self_static+set}" = set; then
12516   echo $ECHO_N "(cached) $ECHO_C" >&6
12517 else
12518           if test "$cross_compiling" = yes; then :
12519   lt_cv_dlopen_self_static=cross
12520 else
12521   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12522   lt_status=$lt_dlunknown
12523   cat > conftest.$ac_ext <<EOF
12524 #line 12524 "configure"
12525 #include "confdefs.h"
12526
12527 #if HAVE_DLFCN_H
12528 #include <dlfcn.h>
12529 #endif
12530
12531 #include <stdio.h>
12532
12533 #ifdef RTLD_GLOBAL
12534 #  define LT_DLGLOBAL           RTLD_GLOBAL
12535 #else
12536 #  ifdef DL_GLOBAL
12537 #    define LT_DLGLOBAL         DL_GLOBAL
12538 #  else
12539 #    define LT_DLGLOBAL         0
12540 #  endif
12541 #endif
12542
12543 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12544    find out it does not work in some platform. */
12545 #ifndef LT_DLLAZY_OR_NOW
12546 #  ifdef RTLD_LAZY
12547 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12548 #  else
12549 #    ifdef DL_LAZY
12550 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12551 #    else
12552 #      ifdef RTLD_NOW
12553 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12554 #      else
12555 #        ifdef DL_NOW
12556 #          define LT_DLLAZY_OR_NOW      DL_NOW
12557 #        else
12558 #          define LT_DLLAZY_OR_NOW      0
12559 #        endif
12560 #      endif
12561 #    endif
12562 #  endif
12563 #endif
12564
12565 #ifdef __cplusplus
12566 extern "C" void exit (int);
12567 #endif
12568
12569 void fnord() { int i=42;}
12570 int main ()
12571 {
12572   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12573   int status = $lt_dlunknown;
12574
12575   if (self)
12576     {
12577       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12578       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12579       /* dlclose (self); */
12580     }
12581
12582     exit (status);
12583 }
12584 EOF
12585   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12586   (eval $ac_link) 2>&5
12587   ac_status=$?
12588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12590     (./conftest; exit; ) 2>/dev/null
12591     lt_status=$?
12592     case x$lt_status in
12593       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12594       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12595       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12596     esac
12597   else :
12598     # compilation failed
12599     lt_cv_dlopen_self_static=no
12600   fi
12601 fi
12602 rm -fr conftest*
12603
12604
12605 fi
12606 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12607 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12608     fi
12609
12610     CPPFLAGS="$save_CPPFLAGS"
12611     LDFLAGS="$save_LDFLAGS"
12612     LIBS="$save_LIBS"
12613     ;;
12614   esac
12615
12616   case $lt_cv_dlopen_self in
12617   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12618   *) enable_dlopen_self=unknown ;;
12619   esac
12620
12621   case $lt_cv_dlopen_self_static in
12622   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12623   *) enable_dlopen_self_static=unknown ;;
12624   esac
12625 fi
12626
12627
12628 # The else clause should only fire when bootstrapping the
12629 # libtool distribution, otherwise you forgot to ship ltmain.sh
12630 # with your package, and you will get complaints that there are
12631 # no rules to generate ltmain.sh.
12632 if test -f "$ltmain"; then
12633   # See if we are running on zsh, and set the options which allow our commands through
12634   # without removal of \ escapes.
12635   if test -n "${ZSH_VERSION+set}" ; then
12636     setopt NO_GLOB_SUBST
12637   fi
12638   # Now quote all the things that may contain metacharacters while being
12639   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12640   # variables and quote the copies for generation of the libtool script.
12641   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12642     SED SHELL STRIP \
12643     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12644     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12645     deplibs_check_method reload_flag reload_cmds need_locks \
12646     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12647     lt_cv_sys_global_symbol_to_c_name_address \
12648     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12649     old_postinstall_cmds old_postuninstall_cmds \
12650     compiler_CXX \
12651     CC_CXX \
12652     LD_CXX \
12653     lt_prog_compiler_wl_CXX \
12654     lt_prog_compiler_pic_CXX \
12655     lt_prog_compiler_static_CXX \
12656     lt_prog_compiler_no_builtin_flag_CXX \
12657     export_dynamic_flag_spec_CXX \
12658     thread_safe_flag_spec_CXX \
12659     whole_archive_flag_spec_CXX \
12660     enable_shared_with_static_runtimes_CXX \
12661     old_archive_cmds_CXX \
12662     old_archive_from_new_cmds_CXX \
12663     predep_objects_CXX \
12664     postdep_objects_CXX \
12665     predeps_CXX \
12666     postdeps_CXX \
12667     compiler_lib_search_path_CXX \
12668     archive_cmds_CXX \
12669     archive_expsym_cmds_CXX \
12670     postinstall_cmds_CXX \
12671     postuninstall_cmds_CXX \
12672     old_archive_from_expsyms_cmds_CXX \
12673     allow_undefined_flag_CXX \
12674     no_undefined_flag_CXX \
12675     export_symbols_cmds_CXX \
12676     hardcode_libdir_flag_spec_CXX \
12677     hardcode_libdir_flag_spec_ld_CXX \
12678     hardcode_libdir_separator_CXX \
12679     hardcode_automatic_CXX \
12680     module_cmds_CXX \
12681     module_expsym_cmds_CXX \
12682     lt_cv_prog_compiler_c_o_CXX \
12683     exclude_expsyms_CXX \
12684     include_expsyms_CXX; do
12685
12686     case $var in
12687     old_archive_cmds_CXX | \
12688     old_archive_from_new_cmds_CXX | \
12689     archive_cmds_CXX | \
12690     archive_expsym_cmds_CXX | \
12691     module_cmds_CXX | \
12692     module_expsym_cmds_CXX | \
12693     old_archive_from_expsyms_cmds_CXX | \
12694     export_symbols_cmds_CXX | \
12695     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12696     postinstall_cmds | postuninstall_cmds | \
12697     old_postinstall_cmds | old_postuninstall_cmds | \
12698     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12699       # Double-quote double-evaled strings.
12700       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12701       ;;
12702     *)
12703       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12704       ;;
12705     esac
12706   done
12707
12708   case $lt_echo in
12709   *'\$0 --fallback-echo"')
12710     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12711     ;;
12712   esac
12713
12714 cfgfile="$ofile"
12715
12716   cat <<__EOF__ >> "$cfgfile"
12717 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12718
12719 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12720
12721 # Shell to use when invoking shell scripts.
12722 SHELL=$lt_SHELL
12723
12724 # Whether or not to build shared libraries.
12725 build_libtool_libs=$enable_shared
12726
12727 # Whether or not to build static libraries.
12728 build_old_libs=$enable_static
12729
12730 # Whether or not to add -lc for building shared libraries.
12731 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12732
12733 # Whether or not to disallow shared libs when runtime libs are static
12734 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12735
12736 # Whether or not to optimize for fast installation.
12737 fast_install=$enable_fast_install
12738
12739 # The host system.
12740 host_alias=$host_alias
12741 host=$host
12742
12743 # An echo program that does not interpret backslashes.
12744 echo=$lt_echo
12745
12746 # The archiver.
12747 AR=$lt_AR
12748 AR_FLAGS=$lt_AR_FLAGS
12749
12750 # A C compiler.
12751 LTCC=$lt_LTCC
12752
12753 # A language-specific compiler.
12754 CC=$lt_compiler_CXX
12755
12756 # Is the compiler the GNU C compiler?
12757 with_gcc=$GCC_CXX
12758
12759 # An ERE matcher.
12760 EGREP=$lt_EGREP
12761
12762 # The linker used to build libraries.
12763 LD=$lt_LD_CXX
12764
12765 # Whether we need hard or soft links.
12766 LN_S=$lt_LN_S
12767
12768 # A BSD-compatible nm program.
12769 NM=$lt_NM
12770
12771 # A symbol stripping program
12772 STRIP=$lt_STRIP
12773
12774 # Used to examine libraries when file_magic_cmd begins "file"
12775 MAGIC_CMD=$MAGIC_CMD
12776
12777 # Used on cygwin: DLL creation program.
12778 DLLTOOL="$DLLTOOL"
12779
12780 # Used on cygwin: object dumper.
12781 OBJDUMP="$OBJDUMP"
12782
12783 # Used on cygwin: assembler.
12784 AS="$AS"
12785
12786 # The name of the directory that contains temporary libtool files.
12787 objdir=$objdir
12788
12789 # How to create reloadable object files.
12790 reload_flag=$lt_reload_flag
12791 reload_cmds=$lt_reload_cmds
12792
12793 # How to pass a linker flag through the compiler.
12794 wl=$lt_lt_prog_compiler_wl_CXX
12795
12796 # Object file suffix (normally "o").
12797 objext="$ac_objext"
12798
12799 # Old archive suffix (normally "a").
12800 libext="$libext"
12801
12802 # Shared library suffix (normally ".so").
12803 shrext='$shrext'
12804
12805 # Executable file suffix (normally "").
12806 exeext="$exeext"
12807
12808 # Additional compiler flags for building library objects.
12809 pic_flag=$lt_lt_prog_compiler_pic_CXX
12810 pic_mode=$pic_mode
12811
12812 # What is the maximum length of a command?
12813 max_cmd_len=$lt_cv_sys_max_cmd_len
12814
12815 # Does compiler simultaneously support -c and -o options?
12816 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12817
12818 # Must we lock files when doing compilation ?
12819 need_locks=$lt_need_locks
12820
12821 # Do we need the lib prefix for modules?
12822 need_lib_prefix=$need_lib_prefix
12823
12824 # Do we need a version for libraries?
12825 need_version=$need_version
12826
12827 # Whether dlopen is supported.
12828 dlopen_support=$enable_dlopen
12829
12830 # Whether dlopen of programs is supported.
12831 dlopen_self=$enable_dlopen_self
12832
12833 # Whether dlopen of statically linked programs is supported.
12834 dlopen_self_static=$enable_dlopen_self_static
12835
12836 # Compiler flag to prevent dynamic linking.
12837 link_static_flag=$lt_lt_prog_compiler_static_CXX
12838
12839 # Compiler flag to turn off builtin functions.
12840 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12841
12842 # Compiler flag to allow reflexive dlopens.
12843 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12844
12845 # Compiler flag to generate shared objects directly from archives.
12846 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12847
12848 # Compiler flag to generate thread-safe objects.
12849 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12850
12851 # Library versioning type.
12852 version_type=$version_type
12853
12854 # Format of library name prefix.
12855 libname_spec=$lt_libname_spec
12856
12857 # List of archive names.  First name is the real one, the rest are links.
12858 # The last name is the one that the linker finds with -lNAME.
12859 library_names_spec=$lt_library_names_spec
12860
12861 # The coded name of the library, if different from the real name.
12862 soname_spec=$lt_soname_spec
12863
12864 # Commands used to build and install an old-style archive.
12865 RANLIB=$lt_RANLIB
12866 old_archive_cmds=$lt_old_archive_cmds_CXX
12867 old_postinstall_cmds=$lt_old_postinstall_cmds
12868 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12869
12870 # Create an old-style archive from a shared archive.
12871 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12872
12873 # Create a temporary old-style archive to link instead of a shared archive.
12874 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12875
12876 # Commands used to build and install a shared archive.
12877 archive_cmds=$lt_archive_cmds_CXX
12878 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12879 postinstall_cmds=$lt_postinstall_cmds
12880 postuninstall_cmds=$lt_postuninstall_cmds
12881
12882 # Commands used to build a loadable module (assumed same as above if empty)
12883 module_cmds=$lt_module_cmds_CXX
12884 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12885
12886 # Commands to strip libraries.
12887 old_striplib=$lt_old_striplib
12888 striplib=$lt_striplib
12889
12890 # Dependencies to place before the objects being linked to create a
12891 # shared library.
12892 predep_objects=$lt_predep_objects_CXX
12893
12894 # Dependencies to place after the objects being linked to create a
12895 # shared library.
12896 postdep_objects=$lt_postdep_objects_CXX
12897
12898 # Dependencies to place before the objects being linked to create a
12899 # shared library.
12900 predeps=$lt_predeps_CXX
12901
12902 # Dependencies to place after the objects being linked to create a
12903 # shared library.
12904 postdeps=$lt_postdeps_CXX
12905
12906 # The library search path used internally by the compiler when linking
12907 # a shared library.
12908 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12909
12910 # Method to check whether dependent libraries are shared objects.
12911 deplibs_check_method=$lt_deplibs_check_method
12912
12913 # Command to use when deplibs_check_method == file_magic.
12914 file_magic_cmd=$lt_file_magic_cmd
12915
12916 # Flag that allows shared libraries with undefined symbols to be built.
12917 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12918
12919 # Flag that forces no undefined symbols.
12920 no_undefined_flag=$lt_no_undefined_flag_CXX
12921
12922 # Commands used to finish a libtool library installation in a directory.
12923 finish_cmds=$lt_finish_cmds
12924
12925 # Same as above, but a single script fragment to be evaled but not shown.
12926 finish_eval=$lt_finish_eval
12927
12928 # Take the output of nm and produce a listing of raw symbols and C names.
12929 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12930
12931 # Transform the output of nm in a proper C declaration
12932 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12933
12934 # Transform the output of nm in a C name address pair
12935 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12936
12937 # This is the shared library runtime path variable.
12938 runpath_var=$runpath_var
12939
12940 # This is the shared library path variable.
12941 shlibpath_var=$shlibpath_var
12942
12943 # Is shlibpath searched before the hard-coded library search path?
12944 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12945
12946 # How to hardcode a shared library path into an executable.
12947 hardcode_action=$hardcode_action_CXX
12948
12949 # Whether we should hardcode library paths into libraries.
12950 hardcode_into_libs=$hardcode_into_libs
12951
12952 # Flag to hardcode \$libdir into a binary during linking.
12953 # This must work even if \$libdir does not exist.
12954 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12955
12956 # If ld is used when linking, flag to hardcode \$libdir into
12957 # a binary during linking. This must work even if \$libdir does
12958 # not exist.
12959 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12960
12961 # Whether we need a single -rpath flag with a separated argument.
12962 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12963
12964 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12965 # resulting binary.
12966 hardcode_direct=$hardcode_direct_CXX
12967
12968 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12969 # resulting binary.
12970 hardcode_minus_L=$hardcode_minus_L_CXX
12971
12972 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12973 # the resulting binary.
12974 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12975
12976 # Set to yes if building a shared library automatically hardcodes DIR into the library
12977 # and all subsequent libraries and executables linked against it.
12978 hardcode_automatic=$hardcode_automatic_CXX
12979
12980 # Variables whose values should be saved in libtool wrapper scripts and
12981 # restored at relink time.
12982 variables_saved_for_relink="$variables_saved_for_relink"
12983
12984 # Whether libtool must link a program against all its dependency libraries.
12985 link_all_deplibs=$link_all_deplibs_CXX
12986
12987 # Compile-time system search path for libraries
12988 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12989
12990 # Run-time system search path for libraries
12991 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12992
12993 # Fix the shell variable \$srcfile for the compiler.
12994 fix_srcfile_path="$fix_srcfile_path_CXX"
12995
12996 # Set to yes if exported symbols are required.
12997 always_export_symbols=$always_export_symbols_CXX
12998
12999 # The commands to list exported symbols.
13000 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13001
13002 # The commands to extract the exported symbol list from a shared archive.
13003 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13004
13005 # Symbols that should not be listed in the preloaded symbols.
13006 exclude_expsyms=$lt_exclude_expsyms_CXX
13007
13008 # Symbols that must always be exported.
13009 include_expsyms=$lt_include_expsyms_CXX
13010
13011 # ### END LIBTOOL TAG CONFIG: $tagname
13012
13013 __EOF__
13014
13015
13016 else
13017   # If there is no Makefile yet, we rely on a make rule to execute
13018   # `config.status --recheck' to rerun these tests and create the
13019   # libtool script then.
13020   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13021   if test -f "$ltmain_in"; then
13022     test -f Makefile && make "$ltmain"
13023   fi
13024 fi
13025
13026
13027 ac_ext=c
13028 ac_cpp='$CPP $CPPFLAGS'
13029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13032
13033 CC=$lt_save_CC
13034 LDCXX=$LD
13035 LD=$lt_save_LD
13036 GCC=$lt_save_GCC
13037 with_gnu_ldcxx=$with_gnu_ld
13038 with_gnu_ld=$lt_save_with_gnu_ld
13039 lt_cv_path_LDCXX=$lt_cv_path_LD
13040 lt_cv_path_LD=$lt_save_path_LD
13041 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13042 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13043
13044         else
13045           tagname=""
13046         fi
13047         ;;
13048
13049       F77)
13050         if test -n "$F77" && test "X$F77" != "Xno"; then
13051
13052 ac_ext=f
13053 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13054 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13055 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13056
13057
13058 archive_cmds_need_lc_F77=no
13059 allow_undefined_flag_F77=
13060 always_export_symbols_F77=no
13061 archive_expsym_cmds_F77=
13062 export_dynamic_flag_spec_F77=
13063 hardcode_direct_F77=no
13064 hardcode_libdir_flag_spec_F77=
13065 hardcode_libdir_flag_spec_ld_F77=
13066 hardcode_libdir_separator_F77=
13067 hardcode_minus_L_F77=no
13068 hardcode_automatic_F77=no
13069 module_cmds_F77=
13070 module_expsym_cmds_F77=
13071 link_all_deplibs_F77=unknown
13072 old_archive_cmds_F77=$old_archive_cmds
13073 no_undefined_flag_F77=
13074 whole_archive_flag_spec_F77=
13075 enable_shared_with_static_runtimes_F77=no
13076
13077 # Source file extension for f77 test sources.
13078 ac_ext=f
13079
13080 # Object file extension for compiled f77 test sources.
13081 objext=o
13082 objext_F77=$objext
13083
13084 # Code to be used in simple compile tests
13085 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13086
13087 # Code to be used in simple link tests
13088 lt_simple_link_test_code="      program t\n      end\n"
13089
13090 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13091
13092 # If no C compiler was specified, use CC.
13093 LTCC=${LTCC-"$CC"}
13094
13095 # Allow CC to be a program name with arguments.
13096 compiler=$CC
13097
13098
13099 # Allow CC to be a program name with arguments.
13100 lt_save_CC="$CC"
13101 CC=${F77-"f77"}
13102 compiler=$CC
13103 compiler_F77=$CC
13104 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13105
13106 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13107 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13108 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13109 echo "${ECHO_T}$can_build_shared" >&6
13110
13111 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13112 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13113 test "$can_build_shared" = "no" && enable_shared=no
13114
13115 # On AIX, shared libraries and static libraries use the same namespace, and
13116 # are all built from PIC.
13117 case "$host_os" in
13118 aix3*)
13119   test "$enable_shared" = yes && enable_static=no
13120   if test -n "$RANLIB"; then
13121     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13122     postinstall_cmds='$RANLIB $lib'
13123   fi
13124   ;;
13125 aix4*)
13126   test "$enable_shared" = yes && enable_static=no
13127   ;;
13128 esac
13129 echo "$as_me:$LINENO: result: $enable_shared" >&5
13130 echo "${ECHO_T}$enable_shared" >&6
13131
13132 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13133 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13134 # Make sure either enable_shared or enable_static is yes.
13135 test "$enable_shared" = yes || enable_static=yes
13136 echo "$as_me:$LINENO: result: $enable_static" >&5
13137 echo "${ECHO_T}$enable_static" >&6
13138
13139 test "$ld_shlibs_F77" = no && can_build_shared=no
13140
13141 GCC_F77="$G77"
13142 LD_F77="$LD"
13143
13144 lt_prog_compiler_wl_F77=
13145 lt_prog_compiler_pic_F77=
13146 lt_prog_compiler_static_F77=
13147
13148 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13149 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13150
13151   if test "$GCC" = yes; then
13152     lt_prog_compiler_wl_F77='-Wl,'
13153     lt_prog_compiler_static_F77='-static'
13154
13155     case $host_os in
13156       aix*)
13157       # All AIX code is PIC.
13158       if test "$host_cpu" = ia64; then
13159         # AIX 5 now supports IA64 processor
13160         lt_prog_compiler_static_F77='-Bstatic'
13161       fi
13162       ;;
13163
13164     amigaos*)
13165       # FIXME: we need at least 68020 code to build shared libraries, but
13166       # adding the `-m68020' flag to GCC prevents building anything better,
13167       # like `-m68040'.
13168       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13169       ;;
13170
13171     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13172       # PIC is the default for these OSes.
13173       ;;
13174
13175     mingw* | pw32* | os2*)
13176       # This hack is so that the source file can tell whether it is being
13177       # built for inclusion in a dll (and should export symbols for example).
13178       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13179       ;;
13180
13181     darwin* | rhapsody*)
13182       # PIC is the default on this platform
13183       # Common symbols not allowed in MH_DYLIB files
13184       lt_prog_compiler_pic_F77='-fno-common'
13185       ;;
13186
13187     msdosdjgpp*)
13188       # Just because we use GCC doesn't mean we suddenly get shared libraries
13189       # on systems that don't support them.
13190       lt_prog_compiler_can_build_shared_F77=no
13191       enable_shared=no
13192       ;;
13193
13194     sysv4*MP*)
13195       if test -d /usr/nec; then
13196         lt_prog_compiler_pic_F77=-Kconform_pic
13197       fi
13198       ;;
13199
13200     hpux*)
13201       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13202       # not for PA HP-UX.
13203       case "$host_cpu" in
13204       hppa*64*|ia64*)
13205         # +Z the default
13206         ;;
13207       *)
13208         lt_prog_compiler_pic_F77='-fPIC'
13209         ;;
13210       esac
13211       ;;
13212
13213     *)
13214       lt_prog_compiler_pic_F77='-fPIC'
13215       ;;
13216     esac
13217   else
13218     # PORTME Check for flag to pass linker flags through the system compiler.
13219     case $host_os in
13220     aix*)
13221       lt_prog_compiler_wl_F77='-Wl,'
13222       if test "$host_cpu" = ia64; then
13223         # AIX 5 now supports IA64 processor
13224         lt_prog_compiler_static_F77='-Bstatic'
13225       else
13226         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13227       fi
13228       ;;
13229
13230     mingw* | pw32* | os2*)
13231       # This hack is so that the source file can tell whether it is being
13232       # built for inclusion in a dll (and should export symbols for example).
13233       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13234       ;;
13235
13236     hpux9* | hpux10* | hpux11*)
13237       lt_prog_compiler_wl_F77='-Wl,'
13238       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13239       # not for PA HP-UX.
13240       case "$host_cpu" in
13241       hppa*64*|ia64*)
13242         # +Z the default
13243         ;;
13244       *)
13245         lt_prog_compiler_pic_F77='+Z'
13246         ;;
13247       esac
13248       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13249       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13250       ;;
13251
13252     irix5* | irix6* | nonstopux*)
13253       lt_prog_compiler_wl_F77='-Wl,'
13254       # PIC (with -KPIC) is the default.
13255       lt_prog_compiler_static_F77='-non_shared'
13256       ;;
13257
13258     newsos6)
13259       lt_prog_compiler_pic_F77='-KPIC'
13260       lt_prog_compiler_static_F77='-Bstatic'
13261       ;;
13262
13263     linux*)
13264       case $CC in
13265       icc* | ecc*)
13266         lt_prog_compiler_wl_F77='-Wl,'
13267         lt_prog_compiler_pic_F77='-KPIC'
13268         lt_prog_compiler_static_F77='-static'
13269         ;;
13270       ccc*)
13271         lt_prog_compiler_wl_F77='-Wl,'
13272         # All Alpha code is PIC.
13273         lt_prog_compiler_static_F77='-non_shared'
13274         ;;
13275       esac
13276       ;;
13277
13278     osf3* | osf4* | osf5*)
13279       lt_prog_compiler_wl_F77='-Wl,'
13280       # All OSF/1 code is PIC.
13281       lt_prog_compiler_static_F77='-non_shared'
13282       ;;
13283
13284     sco3.2v5*)
13285       lt_prog_compiler_pic_F77='-Kpic'
13286       lt_prog_compiler_static_F77='-dn'
13287       ;;
13288
13289     solaris*)
13290       lt_prog_compiler_wl_F77='-Wl,'
13291       lt_prog_compiler_pic_F77='-KPIC'
13292       lt_prog_compiler_static_F77='-Bstatic'
13293       ;;
13294
13295     sunos4*)
13296       lt_prog_compiler_wl_F77='-Qoption ld '
13297       lt_prog_compiler_pic_F77='-PIC'
13298       lt_prog_compiler_static_F77='-Bstatic'
13299       ;;
13300
13301     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13302       lt_prog_compiler_wl_F77='-Wl,'
13303       lt_prog_compiler_pic_F77='-KPIC'
13304       lt_prog_compiler_static_F77='-Bstatic'
13305       ;;
13306
13307     sysv4*MP*)
13308       if test -d /usr/nec ;then
13309         lt_prog_compiler_pic_F77='-Kconform_pic'
13310         lt_prog_compiler_static_F77='-Bstatic'
13311       fi
13312       ;;
13313
13314     uts4*)
13315       lt_prog_compiler_pic_F77='-pic'
13316       lt_prog_compiler_static_F77='-Bstatic'
13317       ;;
13318
13319     *)
13320       lt_prog_compiler_can_build_shared_F77=no
13321       ;;
13322     esac
13323   fi
13324
13325 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13326 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13327
13328 #
13329 # Check to make sure the PIC flag actually works.
13330 #
13331 if test -n "$lt_prog_compiler_pic_F77"; then
13332
13333 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13334 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13335 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13336   echo $ECHO_N "(cached) $ECHO_C" >&6
13337 else
13338   lt_prog_compiler_pic_works_F77=no
13339   ac_outfile=conftest.$ac_objext
13340    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13341    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13342    # Insert the option either (1) after the last *FLAGS variable, or
13343    # (2) before a word containing "conftest.", or (3) at the end.
13344    # Note that $ac_compile itself does not contain backslashes and begins
13345    # with a dollar sign (not a hyphen), so the echo should work correctly.
13346    # The option is referenced via a variable to avoid confusing sed.
13347    lt_compile=`echo "$ac_compile" | $SED \
13348    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13349    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13350    -e 's:$: $lt_compiler_flag:'`
13351    (eval echo "\"\$as_me:13351: $lt_compile\"" >&5)
13352    (eval "$lt_compile" 2>conftest.err)
13353    ac_status=$?
13354    cat conftest.err >&5
13355    echo "$as_me:13355: \$? = $ac_status" >&5
13356    if (exit $ac_status) && test -s "$ac_outfile"; then
13357      # The compiler can only warn and ignore the option if not recognized
13358      # So say no if there are warnings
13359      if test ! -s conftest.err; then
13360        lt_prog_compiler_pic_works_F77=yes
13361      fi
13362    fi
13363    $rm conftest*
13364
13365 fi
13366 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13367 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13368
13369 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13370     case $lt_prog_compiler_pic_F77 in
13371      "" | " "*) ;;
13372      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13373      esac
13374 else
13375     lt_prog_compiler_pic_F77=
13376      lt_prog_compiler_can_build_shared_F77=no
13377 fi
13378
13379 fi
13380 case "$host_os" in
13381   # For platforms which do not support PIC, -DPIC is meaningless:
13382   *djgpp*)
13383     lt_prog_compiler_pic_F77=
13384     ;;
13385   *)
13386     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13387     ;;
13388 esac
13389
13390 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13391 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13392 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13393   echo $ECHO_N "(cached) $ECHO_C" >&6
13394 else
13395   lt_cv_prog_compiler_c_o_F77=no
13396    $rm -r conftest 2>/dev/null
13397    mkdir conftest
13398    cd conftest
13399    mkdir out
13400    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13401
13402    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13403    # that will create temporary files in the current directory regardless of
13404    # the output directory.  Thus, making CWD read-only will cause this test
13405    # to fail, enabling locking or at least warning the user not to do parallel
13406    # builds.
13407    chmod -w .
13408
13409    lt_compiler_flag="-o out/conftest2.$ac_objext"
13410    # Insert the option either (1) after the last *FLAGS variable, or
13411    # (2) before a word containing "conftest.", or (3) at the end.
13412    # Note that $ac_compile itself does not contain backslashes and begins
13413    # with a dollar sign (not a hyphen), so the echo should work correctly.
13414    lt_compile=`echo "$ac_compile" | $SED \
13415    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13416    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13417    -e 's:$: $lt_compiler_flag:'`
13418    (eval echo "\"\$as_me:13418: $lt_compile\"" >&5)
13419    (eval "$lt_compile" 2>out/conftest.err)
13420    ac_status=$?
13421    cat out/conftest.err >&5
13422    echo "$as_me:13422: \$? = $ac_status" >&5
13423    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13424    then
13425      # The compiler can only warn and ignore the option if not recognized
13426      # So say no if there are warnings
13427      if test ! -s out/conftest.err; then
13428        lt_cv_prog_compiler_c_o_F77=yes
13429      fi
13430    fi
13431    chmod u+w .
13432    $rm conftest*
13433    # SGI C++ compiler will create directory out/ii_files/ for
13434    # template instantiation
13435    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13436    $rm out/* && rmdir out
13437    cd ..
13438    rmdir conftest
13439    $rm conftest*
13440
13441 fi
13442 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13443 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13444
13445
13446 hard_links="nottested"
13447 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13448   # do not overwrite the value of need_locks provided by the user
13449   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13450 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13451   hard_links=yes
13452   $rm conftest*
13453   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13454   touch conftest.a
13455   ln conftest.a conftest.b 2>&5 || hard_links=no
13456   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13457   echo "$as_me:$LINENO: result: $hard_links" >&5
13458 echo "${ECHO_T}$hard_links" >&6
13459   if test "$hard_links" = no; then
13460     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13461 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13462     need_locks=warn
13463   fi
13464 else
13465   need_locks=no
13466 fi
13467
13468 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13469 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13470
13471   runpath_var=
13472   allow_undefined_flag_F77=
13473   enable_shared_with_static_runtimes_F77=no
13474   archive_cmds_F77=
13475   archive_expsym_cmds_F77=
13476   old_archive_From_new_cmds_F77=
13477   old_archive_from_expsyms_cmds_F77=
13478   export_dynamic_flag_spec_F77=
13479   whole_archive_flag_spec_F77=
13480   thread_safe_flag_spec_F77=
13481   hardcode_libdir_flag_spec_F77=
13482   hardcode_libdir_flag_spec_ld_F77=
13483   hardcode_libdir_separator_F77=
13484   hardcode_direct_F77=no
13485   hardcode_minus_L_F77=no
13486   hardcode_shlibpath_var_F77=unsupported
13487   link_all_deplibs_F77=unknown
13488   hardcode_automatic_F77=no
13489   module_cmds_F77=
13490   module_expsym_cmds_F77=
13491   always_export_symbols_F77=no
13492   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13493   # include_expsyms should be a list of space-separated symbols to be *always*
13494   # included in the symbol list
13495   include_expsyms_F77=
13496   # exclude_expsyms can be an extended regexp of symbols to exclude
13497   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13498   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13499   # as well as any symbol that contains `d'.
13500   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13501   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13502   # platforms (ab)use it in PIC code, but their linkers get confused if
13503   # the symbol is explicitly referenced.  Since portable code cannot
13504   # rely on this symbol name, it's probably fine to never include it in
13505   # preloaded symbol tables.
13506   extract_expsyms_cmds=
13507
13508   case $host_os in
13509   cygwin* | mingw* | pw32*)
13510     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13511     # When not using gcc, we currently assume that we are using
13512     # Microsoft Visual C++.
13513     if test "$GCC" != yes; then
13514       with_gnu_ld=no
13515     fi
13516     ;;
13517   openbsd*)
13518     with_gnu_ld=no
13519     ;;
13520   esac
13521
13522   ld_shlibs_F77=yes
13523   if test "$with_gnu_ld" = yes; then
13524     # If archive_cmds runs LD, not CC, wlarc should be empty
13525     wlarc='${wl}'
13526
13527     # See if GNU ld supports shared libraries.
13528     case $host_os in
13529     aix3* | aix4* | aix5*)
13530       # On AIX/PPC, the GNU linker is very broken
13531       if test "$host_cpu" != ia64; then
13532         ld_shlibs_F77=no
13533         cat <<EOF 1>&2
13534
13535 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13536 *** to be unable to reliably create shared libraries on AIX.
13537 *** Therefore, libtool is disabling shared libraries support.  If you
13538 *** really care for shared libraries, you may want to modify your PATH
13539 *** so that a non-GNU linker is found, and then restart.
13540
13541 EOF
13542       fi
13543       ;;
13544
13545     amigaos*)
13546       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)'
13547       hardcode_libdir_flag_spec_F77='-L$libdir'
13548       hardcode_minus_L_F77=yes
13549
13550       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13551       # that the semantics of dynamic libraries on AmigaOS, at least up
13552       # to version 4, is to share data among multiple programs linked
13553       # with the same dynamic library.  Since this doesn't match the
13554       # behavior of shared libraries on other platforms, we can't use
13555       # them.
13556       ld_shlibs_F77=no
13557       ;;
13558
13559     beos*)
13560       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13561         allow_undefined_flag_F77=unsupported
13562         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13563         # support --undefined.  This deserves some investigation.  FIXME
13564         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13565       else
13566         ld_shlibs_F77=no
13567       fi
13568       ;;
13569
13570     cygwin* | mingw* | pw32*)
13571       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13572       # as there is no search path for DLLs.
13573       hardcode_libdir_flag_spec_F77='-L$libdir'
13574       allow_undefined_flag_F77=unsupported
13575       always_export_symbols_F77=no
13576       enable_shared_with_static_runtimes_F77=yes
13577       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13578
13579       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13580         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13581         # If the export-symbols file already is a .def file (1st line
13582         # is EXPORTS), use it as is; otherwise, prepend...
13583         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13584           cp $export_symbols $output_objdir/$soname.def;
13585         else
13586           echo EXPORTS > $output_objdir/$soname.def;
13587           cat $export_symbols >> $output_objdir/$soname.def;
13588         fi~
13589         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13590       else
13591         ld_shlibs=no
13592       fi
13593       ;;
13594
13595     netbsd*)
13596       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13597         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13598         wlarc=
13599       else
13600         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13601         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13602       fi
13603       ;;
13604
13605     solaris* | sysv5*)
13606       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13607         ld_shlibs_F77=no
13608         cat <<EOF 1>&2
13609
13610 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13611 *** create shared libraries on Solaris systems.  Therefore, libtool
13612 *** is disabling shared libraries support.  We urge you to upgrade GNU
13613 *** binutils to release 2.9.1 or newer.  Another option is to modify
13614 *** your PATH or compiler configuration so that the native linker is
13615 *** used, and then restart.
13616
13617 EOF
13618       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13619         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13620         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13621       else
13622         ld_shlibs_F77=no
13623       fi
13624       ;;
13625
13626     sunos4*)
13627       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13628       wlarc=
13629       hardcode_direct_F77=yes
13630       hardcode_shlibpath_var_F77=no
13631       ;;
13632
13633   linux*)
13634     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13635         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13636         archive_cmds_F77="$tmp_archive_cmds"
13637       supports_anon_versioning=no
13638       case `$LD -v 2>/dev/null` in
13639         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13640         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13641         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13642         *\ 2.11.*) ;; # other 2.11 versions
13643         *) supports_anon_versioning=yes ;;
13644       esac
13645       if test $supports_anon_versioning = yes; then
13646         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13647 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13648 $echo "local: *; };" >> $output_objdir/$libname.ver~
13649         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13650       else
13651         archive_expsym_cmds_F77="$tmp_archive_cmds"
13652       fi
13653     else
13654       ld_shlibs_F77=no
13655     fi
13656     ;;
13657
13658     *)
13659       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13660         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13661         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13662       else
13663         ld_shlibs_F77=no
13664       fi
13665       ;;
13666     esac
13667
13668     if test "$ld_shlibs_F77" = yes; then
13669       runpath_var=LD_RUN_PATH
13670       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13671       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13672       # ancient GNU ld didn't support --whole-archive et. al.
13673       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13674         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13675       else
13676         whole_archive_flag_spec_F77=
13677       fi
13678     fi
13679   else
13680     # PORTME fill in a description of your system's linker (not GNU ld)
13681     case $host_os in
13682     aix3*)
13683       allow_undefined_flag_F77=unsupported
13684       always_export_symbols_F77=yes
13685       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'
13686       # Note: this linker hardcodes the directories in LIBPATH if there
13687       # are no directories specified by -L.
13688       hardcode_minus_L_F77=yes
13689       if test "$GCC" = yes && test -z "$link_static_flag"; then
13690         # Neither direct hardcoding nor static linking is supported with a
13691         # broken collect2.
13692         hardcode_direct_F77=unsupported
13693       fi
13694       ;;
13695
13696     aix4* | aix5*)
13697       if test "$host_cpu" = ia64; then
13698         # On IA64, the linker does run time linking by default, so we don't
13699         # have to do anything special.
13700         aix_use_runtimelinking=no
13701         exp_sym_flag='-Bexport'
13702         no_entry_flag=""
13703       else
13704         # If we're using GNU nm, then we don't want the "-C" option.
13705         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13706         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13707           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'
13708         else
13709           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'
13710         fi
13711         aix_use_runtimelinking=no
13712
13713         # Test if we are trying to use run time linking or normal
13714         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13715         # need to do runtime linking.
13716         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13717           for ld_flag in $LDFLAGS; do
13718           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13719             aix_use_runtimelinking=yes
13720             break
13721           fi
13722           done
13723         esac
13724
13725         exp_sym_flag='-bexport'
13726         no_entry_flag='-bnoentry'
13727       fi
13728
13729       # When large executables or shared objects are built, AIX ld can
13730       # have problems creating the table of contents.  If linking a library
13731       # or program results in "error TOC overflow" add -mminimal-toc to
13732       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13733       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13734
13735       archive_cmds_F77=''
13736       hardcode_direct_F77=yes
13737       hardcode_libdir_separator_F77=':'
13738       link_all_deplibs_F77=yes
13739
13740       if test "$GCC" = yes; then
13741         case $host_os in aix4.012|aix4.012.*)
13742         # We only want to do this on AIX 4.2 and lower, the check
13743         # below for broken collect2 doesn't work under 4.3+
13744           collect2name=`${CC} -print-prog-name=collect2`
13745           if test -f "$collect2name" && \
13746            strings "$collect2name" | grep resolve_lib_name >/dev/null
13747           then
13748           # We have reworked collect2
13749           hardcode_direct_F77=yes
13750           else
13751           # We have old collect2
13752           hardcode_direct_F77=unsupported
13753           # It fails to find uninstalled libraries when the uninstalled
13754           # path is not listed in the libpath.  Setting hardcode_minus_L
13755           # to unsupported forces relinking
13756           hardcode_minus_L_F77=yes
13757           hardcode_libdir_flag_spec_F77='-L$libdir'
13758           hardcode_libdir_separator_F77=
13759           fi
13760         esac
13761         shared_flag='-shared'
13762       else
13763         # not using gcc
13764         if test "$host_cpu" = ia64; then
13765         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13766         # chokes on -Wl,-G. The following line is correct:
13767           shared_flag='-G'
13768         else
13769         if test "$aix_use_runtimelinking" = yes; then
13770             shared_flag='${wl}-G'
13771           else
13772             shared_flag='${wl}-bM:SRE'
13773         fi
13774         fi
13775       fi
13776
13777       # It seems that -bexpall does not export symbols beginning with
13778       # underscore (_), so it is better to generate a list of symbols to export.
13779       always_export_symbols_F77=yes
13780       if test "$aix_use_runtimelinking" = yes; then
13781         # Warning - without using the other runtime loading flags (-brtl),
13782         # -berok will link without error, but may produce a broken library.
13783         allow_undefined_flag_F77='-berok'
13784        # Determine the default libpath from the value encoded in an empty executable.
13785        cat >conftest.$ac_ext <<_ACEOF
13786       program main
13787
13788       end
13789 _ACEOF
13790 rm -f conftest.$ac_objext conftest$ac_exeext
13791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13792   (eval $ac_link) 2>conftest.er1
13793   ac_status=$?
13794   grep -v '^ *+' conftest.er1 >conftest.err
13795   rm -f conftest.er1
13796   cat conftest.err >&5
13797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798   (exit $ac_status); } &&
13799          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
13800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13801   (eval $ac_try) 2>&5
13802   ac_status=$?
13803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804   (exit $ac_status); }; } &&
13805          { ac_try='test -s conftest$ac_exeext'
13806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13807   (eval $ac_try) 2>&5
13808   ac_status=$?
13809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810   (exit $ac_status); }; }; then
13811
13812 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13813 }'`
13814 # Check for a 64-bit object if we didn't find anything.
13815 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; }
13816 }'`; fi
13817 else
13818   echo "$as_me: failed program was:" >&5
13819 sed 's/^/| /' conftest.$ac_ext >&5
13820
13821 fi
13822 rm -f conftest.err conftest.$ac_objext \
13823       conftest$ac_exeext conftest.$ac_ext
13824 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13825
13826        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13827         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"
13828        else
13829         if test "$host_cpu" = ia64; then
13830           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13831           allow_undefined_flag_F77="-z nodefs"
13832           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"
13833         else
13834          # Determine the default libpath from the value encoded in an empty executable.
13835          cat >conftest.$ac_ext <<_ACEOF
13836       program main
13837
13838       end
13839 _ACEOF
13840 rm -f conftest.$ac_objext conftest$ac_exeext
13841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13842   (eval $ac_link) 2>conftest.er1
13843   ac_status=$?
13844   grep -v '^ *+' conftest.er1 >conftest.err
13845   rm -f conftest.er1
13846   cat conftest.err >&5
13847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848   (exit $ac_status); } &&
13849          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
13850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13851   (eval $ac_try) 2>&5
13852   ac_status=$?
13853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854   (exit $ac_status); }; } &&
13855          { ac_try='test -s conftest$ac_exeext'
13856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13857   (eval $ac_try) 2>&5
13858   ac_status=$?
13859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860   (exit $ac_status); }; }; then
13861
13862 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13863 }'`
13864 # Check for a 64-bit object if we didn't find anything.
13865 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; }
13866 }'`; fi
13867 else
13868   echo "$as_me: failed program was:" >&5
13869 sed 's/^/| /' conftest.$ac_ext >&5
13870
13871 fi
13872 rm -f conftest.err conftest.$ac_objext \
13873       conftest$ac_exeext conftest.$ac_ext
13874 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13875
13876          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13877           # Warning - without using the other run time loading flags,
13878           # -berok will link without error, but may produce a broken library.
13879           no_undefined_flag_F77=' ${wl}-bernotok'
13880           allow_undefined_flag_F77=' ${wl}-berok'
13881           # -bexpall does not export symbols beginning with underscore (_)
13882           always_export_symbols_F77=yes
13883           # Exported symbols can be pulled into shared objects from archives
13884           whole_archive_flag_spec_F77=' '
13885           archive_cmds_need_lc_F77=yes
13886           # This is similar to how AIX traditionally builds it's shared libraries.
13887           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'
13888         fi
13889       fi
13890       ;;
13891
13892     amigaos*)
13893       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)'
13894       hardcode_libdir_flag_spec_F77='-L$libdir'
13895       hardcode_minus_L_F77=yes
13896       # see comment about different semantics on the GNU ld section
13897       ld_shlibs_F77=no
13898       ;;
13899
13900     bsdi4*)
13901       export_dynamic_flag_spec_F77=-rdynamic
13902       ;;
13903
13904     cygwin* | mingw* | pw32*)
13905       # When not using gcc, we currently assume that we are using
13906       # Microsoft Visual C++.
13907       # hardcode_libdir_flag_spec is actually meaningless, as there is
13908       # no search path for DLLs.
13909       hardcode_libdir_flag_spec_F77=' '
13910       allow_undefined_flag_F77=unsupported
13911       # Tell ltmain to make .lib files, not .a files.
13912       libext=lib
13913       # Tell ltmain to make .dll files, not .so files.
13914       shrext=".dll"
13915       # FIXME: Setting linknames here is a bad hack.
13916       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13917       # The linker will automatically build a .lib file if we build a DLL.
13918       old_archive_From_new_cmds_F77='true'
13919       # FIXME: Should let the user specify the lib program.
13920       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13921       fix_srcfile_path='`cygpath -w "$srcfile"`'
13922       enable_shared_with_static_runtimes_F77=yes
13923       ;;
13924
13925     darwin* | rhapsody*)
13926     if test "$GXX" = yes ; then
13927       archive_cmds_need_lc_F77=no
13928       case "$host_os" in
13929       rhapsody* | darwin1.[012])
13930         allow_undefined_flag_F77='-undefined suppress'
13931         ;;
13932       *) # Darwin 1.3 on
13933       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13934         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13935       else
13936         case ${MACOSX_DEPLOYMENT_TARGET} in
13937           10.[012])
13938             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13939             ;;
13940           10.*)
13941             allow_undefined_flag_F77='-undefined dynamic_lookup'
13942             ;;
13943         esac
13944       fi
13945         ;;
13946       esac
13947         lt_int_apple_cc_single_mod=no
13948         output_verbose_link_cmd='echo'
13949         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13950           lt_int_apple_cc_single_mod=yes
13951         fi
13952         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13953           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13954         else
13955         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'
13956       fi
13957       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13958       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13959         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13960           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}'
13961         else
13962           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}'
13963         fi
13964           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}'
13965       hardcode_direct_F77=no
13966       hardcode_automatic_F77=yes
13967       hardcode_shlibpath_var_F77=unsupported
13968       whole_archive_flag_spec_F77='-all_load $convenience'
13969       link_all_deplibs_F77=yes
13970     else
13971       ld_shlibs_F77=no
13972     fi
13973       ;;
13974
13975     dgux*)
13976       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13977       hardcode_libdir_flag_spec_F77='-L$libdir'
13978       hardcode_shlibpath_var_F77=no
13979       ;;
13980
13981     freebsd1*)
13982       ld_shlibs_F77=no
13983       ;;
13984
13985     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13986     # support.  Future versions do this automatically, but an explicit c++rt0.o
13987     # does not break anything, and helps significantly (at the cost of a little
13988     # extra space).
13989     freebsd2.2*)
13990       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13991       hardcode_libdir_flag_spec_F77='-R$libdir'
13992       hardcode_direct_F77=yes
13993       hardcode_shlibpath_var_F77=no
13994       ;;
13995
13996     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13997     freebsd2*)
13998       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13999       hardcode_direct_F77=yes
14000       hardcode_minus_L_F77=yes
14001       hardcode_shlibpath_var_F77=no
14002       ;;
14003
14004     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14005     freebsd* | kfreebsd*-gnu)
14006       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14007       hardcode_libdir_flag_spec_F77='-R$libdir'
14008       hardcode_direct_F77=yes
14009       hardcode_shlibpath_var_F77=no
14010       ;;
14011
14012     hpux9*)
14013       if test "$GCC" = yes; then
14014         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'
14015       else
14016         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'
14017       fi
14018       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14019       hardcode_libdir_separator_F77=:
14020       hardcode_direct_F77=yes
14021
14022       # hardcode_minus_L: Not really in the search PATH,
14023       # but as the default location of the library.
14024       hardcode_minus_L_F77=yes
14025       export_dynamic_flag_spec_F77='${wl}-E'
14026       ;;
14027
14028     hpux10* | hpux11*)
14029       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14030         case "$host_cpu" in
14031         hppa*64*|ia64*)
14032           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14033           ;;
14034         *)
14035           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14036           ;;
14037         esac
14038       else
14039         case "$host_cpu" in
14040         hppa*64*|ia64*)
14041           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14042           ;;
14043         *)
14044           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14045           ;;
14046         esac
14047       fi
14048       if test "$with_gnu_ld" = no; then
14049         case "$host_cpu" in
14050         hppa*64*)
14051           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14052           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14053           hardcode_libdir_separator_F77=:
14054           hardcode_direct_F77=no
14055           hardcode_shlibpath_var_F77=no
14056           ;;
14057         ia64*)
14058           hardcode_libdir_flag_spec_F77='-L$libdir'
14059           hardcode_direct_F77=no
14060           hardcode_shlibpath_var_F77=no
14061
14062           # hardcode_minus_L: Not really in the search PATH,
14063           # but as the default location of the library.
14064           hardcode_minus_L_F77=yes
14065           ;;
14066         *)
14067           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14068           hardcode_libdir_separator_F77=:
14069           hardcode_direct_F77=yes
14070           export_dynamic_flag_spec_F77='${wl}-E'
14071
14072           # hardcode_minus_L: Not really in the search PATH,
14073           # but as the default location of the library.
14074           hardcode_minus_L_F77=yes
14075           ;;
14076         esac
14077       fi
14078       ;;
14079
14080     irix5* | irix6* | nonstopux*)
14081       if test "$GCC" = yes; then
14082         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'
14083       else
14084         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'
14085         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14086       fi
14087       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14088       hardcode_libdir_separator_F77=:
14089       link_all_deplibs_F77=yes
14090       ;;
14091
14092     netbsd*)
14093       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14094         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14095       else
14096         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14097       fi
14098       hardcode_libdir_flag_spec_F77='-R$libdir'
14099       hardcode_direct_F77=yes
14100       hardcode_shlibpath_var_F77=no
14101       ;;
14102
14103     newsos6)
14104       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14105       hardcode_direct_F77=yes
14106       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14107       hardcode_libdir_separator_F77=:
14108       hardcode_shlibpath_var_F77=no
14109       ;;
14110
14111     openbsd*)
14112       hardcode_direct_F77=yes
14113       hardcode_shlibpath_var_F77=no
14114       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14115         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14116         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14117         export_dynamic_flag_spec_F77='${wl}-E'
14118       else
14119        case $host_os in
14120          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14121            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14122            hardcode_libdir_flag_spec_F77='-R$libdir'
14123            ;;
14124          *)
14125            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14126            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14127            ;;
14128        esac
14129       fi
14130       ;;
14131
14132     os2*)
14133       hardcode_libdir_flag_spec_F77='-L$libdir'
14134       hardcode_minus_L_F77=yes
14135       allow_undefined_flag_F77=unsupported
14136       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'
14137       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14138       ;;
14139
14140     osf3*)
14141       if test "$GCC" = yes; then
14142         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14143         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'
14144       else
14145         allow_undefined_flag_F77=' -expect_unresolved \*'
14146         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'
14147       fi
14148       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14149       hardcode_libdir_separator_F77=:
14150       ;;
14151
14152     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14153       if test "$GCC" = yes; then
14154         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14155         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'
14156         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14157       else
14158         allow_undefined_flag_F77=' -expect_unresolved \*'
14159         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'
14160         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~
14161         $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'
14162
14163         # Both c and cxx compiler support -rpath directly
14164         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14165       fi
14166       hardcode_libdir_separator_F77=:
14167       ;;
14168
14169     sco3.2v5*)
14170       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14171       hardcode_shlibpath_var_F77=no
14172       export_dynamic_flag_spec_F77='${wl}-Bexport'
14173       runpath_var=LD_RUN_PATH
14174       hardcode_runpath_var=yes
14175       ;;
14176
14177     solaris*)
14178       no_undefined_flag_F77=' -z text'
14179       if test "$GCC" = yes; then
14180         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14181         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14182           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14183       else
14184         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14185         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14186         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14187       fi
14188       hardcode_libdir_flag_spec_F77='-R$libdir'
14189       hardcode_shlibpath_var_F77=no
14190       case $host_os in
14191       solaris2.[0-5] | solaris2.[0-5].*) ;;
14192       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14193         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14194       esac
14195       link_all_deplibs_F77=yes
14196       ;;
14197
14198     sunos4*)
14199       if test "x$host_vendor" = xsequent; then
14200         # Use $CC to link under sequent, because it throws in some extra .o
14201         # files that make .init and .fini sections work.
14202         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14203       else
14204         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14205       fi
14206       hardcode_libdir_flag_spec_F77='-L$libdir'
14207       hardcode_direct_F77=yes
14208       hardcode_minus_L_F77=yes
14209       hardcode_shlibpath_var_F77=no
14210       ;;
14211
14212     sysv4)
14213       case $host_vendor in
14214         sni)
14215           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14216           hardcode_direct_F77=yes # is this really true???
14217         ;;
14218         siemens)
14219           ## LD is ld it makes a PLAMLIB
14220           ## CC just makes a GrossModule.
14221           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14222           reload_cmds_F77='$CC -r -o $output$reload_objs'
14223           hardcode_direct_F77=no
14224         ;;
14225         motorola)
14226           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14227           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14228         ;;
14229       esac
14230       runpath_var='LD_RUN_PATH'
14231       hardcode_shlibpath_var_F77=no
14232       ;;
14233
14234     sysv4.3*)
14235       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14236       hardcode_shlibpath_var_F77=no
14237       export_dynamic_flag_spec_F77='-Bexport'
14238       ;;
14239
14240     sysv4*MP*)
14241       if test -d /usr/nec; then
14242         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14243         hardcode_shlibpath_var_F77=no
14244         runpath_var=LD_RUN_PATH
14245         hardcode_runpath_var=yes
14246         ld_shlibs_F77=yes
14247       fi
14248       ;;
14249
14250     sysv4.2uw2*)
14251       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14252       hardcode_direct_F77=yes
14253       hardcode_minus_L_F77=no
14254       hardcode_shlibpath_var_F77=no
14255       hardcode_runpath_var=yes
14256       runpath_var=LD_RUN_PATH
14257       ;;
14258
14259    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14260       no_undefined_flag_F77='${wl}-z ${wl}text'
14261       if test "$GCC" = yes; then
14262         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14263       else
14264         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14265       fi
14266       runpath_var='LD_RUN_PATH'
14267       hardcode_shlibpath_var_F77=no
14268       ;;
14269
14270     sysv5*)
14271       no_undefined_flag_F77=' -z text'
14272       # $CC -shared without GNU ld will not create a library from C++
14273       # object files and a static libstdc++, better avoid it by now
14274       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14275       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14276                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14277       hardcode_libdir_flag_spec_F77=
14278       hardcode_shlibpath_var_F77=no
14279       runpath_var='LD_RUN_PATH'
14280       ;;
14281
14282     uts4*)
14283       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14284       hardcode_libdir_flag_spec_F77='-L$libdir'
14285       hardcode_shlibpath_var_F77=no
14286       ;;
14287
14288     *)
14289       ld_shlibs_F77=no
14290       ;;
14291     esac
14292   fi
14293
14294 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14295 echo "${ECHO_T}$ld_shlibs_F77" >&6
14296 test "$ld_shlibs_F77" = no && can_build_shared=no
14297
14298 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14299 if test "$GCC" = yes; then
14300   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14301 fi
14302
14303 #
14304 # Do we need to explicitly link libc?
14305 #
14306 case "x$archive_cmds_need_lc_F77" in
14307 x|xyes)
14308   # Assume -lc should be added
14309   archive_cmds_need_lc_F77=yes
14310
14311   if test "$enable_shared" = yes && test "$GCC" = yes; then
14312     case $archive_cmds_F77 in
14313     *'~'*)
14314       # FIXME: we may have to deal with multi-command sequences.
14315       ;;
14316     '$CC '*)
14317       # Test whether the compiler implicitly links with -lc since on some
14318       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14319       # to ld, don't add -lc before -lgcc.
14320       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14321 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14322       $rm conftest*
14323       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14324
14325       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14326   (eval $ac_compile) 2>&5
14327   ac_status=$?
14328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329   (exit $ac_status); } 2>conftest.err; then
14330         soname=conftest
14331         lib=conftest
14332         libobjs=conftest.$ac_objext
14333         deplibs=
14334         wl=$lt_prog_compiler_wl_F77
14335         compiler_flags=-v
14336         linker_flags=-v
14337         verstring=
14338         output_objdir=.
14339         libname=conftest
14340         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14341         allow_undefined_flag_F77=
14342         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14343   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14344   ac_status=$?
14345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346   (exit $ac_status); }
14347         then
14348           archive_cmds_need_lc_F77=no
14349         else
14350           archive_cmds_need_lc_F77=yes
14351         fi
14352         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14353       else
14354         cat conftest.err 1>&5
14355       fi
14356       $rm conftest*
14357       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14358 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14359       ;;
14360     esac
14361   fi
14362   ;;
14363 esac
14364
14365 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14366 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14367 library_names_spec=
14368 libname_spec='lib$name'
14369 soname_spec=
14370 shrext=".so"
14371 postinstall_cmds=
14372 postuninstall_cmds=
14373 finish_cmds=
14374 finish_eval=
14375 shlibpath_var=
14376 shlibpath_overrides_runpath=unknown
14377 version_type=none
14378 dynamic_linker="$host_os ld.so"
14379 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14380 if test "$GCC" = yes; then
14381   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14382   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14383     # if the path contains ";" then we assume it to be the separator
14384     # otherwise default to the standard path separator (i.e. ":") - it is
14385     # assumed that no part of a normal pathname contains ";" but that should
14386     # okay in the real world where ";" in dirpaths is itself problematic.
14387     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14388   else
14389     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14390   fi
14391 else
14392   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14393 fi
14394 need_lib_prefix=unknown
14395 hardcode_into_libs=no
14396
14397 # when you set need_version to no, make sure it does not cause -set_version
14398 # flags to be left without arguments
14399 need_version=unknown
14400
14401 case $host_os in
14402 aix3*)
14403   version_type=linux
14404   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14405   shlibpath_var=LIBPATH
14406
14407   # AIX 3 has no versioning support, so we append a major version to the name.
14408   soname_spec='${libname}${release}${shared_ext}$major'
14409   ;;
14410
14411 aix4* | aix5*)
14412   version_type=linux
14413   need_lib_prefix=no
14414   need_version=no
14415   hardcode_into_libs=yes
14416   if test "$host_cpu" = ia64; then
14417     # AIX 5 supports IA64
14418     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14419     shlibpath_var=LD_LIBRARY_PATH
14420   else
14421     # With GCC up to 2.95.x, collect2 would create an import file
14422     # for dependence libraries.  The import file would start with
14423     # the line `#! .'.  This would cause the generated library to
14424     # depend on `.', always an invalid library.  This was fixed in
14425     # development snapshots of GCC prior to 3.0.
14426     case $host_os in
14427       aix4 | aix4.[01] | aix4.[01].*)
14428       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14429            echo ' yes '
14430            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14431         :
14432       else
14433         can_build_shared=no
14434       fi
14435       ;;
14436     esac
14437     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14438     # soname into executable. Probably we can add versioning support to
14439     # collect2, so additional links can be useful in future.
14440     if test "$aix_use_runtimelinking" = yes; then
14441       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14442       # instead of lib<name>.a to let people know that these are not
14443       # typical AIX shared libraries.
14444       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14445     else
14446       # We preserve .a as extension for shared libraries through AIX4.2
14447       # and later when we are not doing run time linking.
14448       library_names_spec='${libname}${release}.a $libname.a'
14449       soname_spec='${libname}${release}${shared_ext}$major'
14450     fi
14451     shlibpath_var=LIBPATH
14452   fi
14453   ;;
14454
14455 amigaos*)
14456   library_names_spec='$libname.ixlibrary $libname.a'
14457   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14458   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'
14459   ;;
14460
14461 beos*)
14462   library_names_spec='${libname}${shared_ext}'
14463   dynamic_linker="$host_os ld.so"
14464   shlibpath_var=LIBRARY_PATH
14465   ;;
14466
14467 bsdi4*)
14468   version_type=linux
14469   need_version=no
14470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14471   soname_spec='${libname}${release}${shared_ext}$major'
14472   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14473   shlibpath_var=LD_LIBRARY_PATH
14474   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14475   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14476   # the default ld.so.conf also contains /usr/contrib/lib and
14477   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14478   # libtool to hard-code these into programs
14479   ;;
14480
14481 cygwin* | mingw* | pw32*)
14482   version_type=windows
14483   shrext=".dll"
14484   need_version=no
14485   need_lib_prefix=no
14486
14487   case $GCC,$host_os in
14488   yes,cygwin* | yes,mingw* | yes,pw32*)
14489     library_names_spec='$libname.dll.a'
14490     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14491     postinstall_cmds='base_file=`basename \${file}`~
14492       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14493       dldir=$destdir/`dirname \$dlpath`~
14494       test -d \$dldir || mkdir -p \$dldir~
14495       $install_prog $dir/$dlname \$dldir/$dlname'
14496     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14497       dlpath=$dir/\$dldll~
14498        $rm \$dlpath'
14499     shlibpath_overrides_runpath=yes
14500
14501     case $host_os in
14502     cygwin*)
14503       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14504       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14505       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14506       ;;
14507     mingw*)
14508       # MinGW DLLs use traditional 'lib' prefix
14509       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14510       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14511       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14512         # It is most probably a Windows format PATH printed by
14513         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14514         # path with ; separators, and with drive letters. We can handle the
14515         # drive letters (cygwin fileutils understands them), so leave them,
14516         # especially as we might pass files found there to a mingw objdump,
14517         # which wouldn't understand a cygwinified path. Ahh.
14518         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14519       else
14520         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14521       fi
14522       ;;
14523     pw32*)
14524       # pw32 DLLs use 'pw' prefix rather than 'lib'
14525       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14526       ;;
14527     esac
14528     ;;
14529
14530   *)
14531     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14532     ;;
14533   esac
14534   dynamic_linker='Win32 ld.exe'
14535   # FIXME: first we should search . and the directory the executable is in
14536   shlibpath_var=PATH
14537   ;;
14538
14539 darwin* | rhapsody*)
14540   dynamic_linker="$host_os dyld"
14541   version_type=darwin
14542   need_lib_prefix=no
14543   need_version=no
14544   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14545   soname_spec='${libname}${release}${major}$shared_ext'
14546   shlibpath_overrides_runpath=yes
14547   shlibpath_var=DYLD_LIBRARY_PATH
14548   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14549   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14550   if test "$GCC" = yes; then
14551     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"`
14552   else
14553     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14554   fi
14555   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14556   ;;
14557
14558 dgux*)
14559   version_type=linux
14560   need_lib_prefix=no
14561   need_version=no
14562   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14563   soname_spec='${libname}${release}${shared_ext}$major'
14564   shlibpath_var=LD_LIBRARY_PATH
14565   ;;
14566
14567 freebsd1*)
14568   dynamic_linker=no
14569   ;;
14570
14571 kfreebsd*-gnu)
14572   version_type=linux
14573   need_lib_prefix=no
14574   need_version=no
14575   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14576   soname_spec='${libname}${release}${shared_ext}$major'
14577   shlibpath_var=LD_LIBRARY_PATH
14578   shlibpath_overrides_runpath=no
14579   hardcode_into_libs=yes
14580   dynamic_linker='GNU ld.so'
14581   ;;
14582
14583 freebsd*)
14584   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14585   version_type=freebsd-$objformat
14586   case $version_type in
14587     freebsd-elf*)
14588       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14589       need_version=no
14590       need_lib_prefix=no
14591       ;;
14592     freebsd-*)
14593       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14594       need_version=yes
14595       ;;
14596   esac
14597   shlibpath_var=LD_LIBRARY_PATH
14598   case $host_os in
14599   freebsd2*)
14600     shlibpath_overrides_runpath=yes
14601     ;;
14602   freebsd3.01* | freebsdelf3.01*)
14603     shlibpath_overrides_runpath=yes
14604     hardcode_into_libs=yes
14605     ;;
14606   *) # from 3.2 on
14607     shlibpath_overrides_runpath=no
14608     hardcode_into_libs=yes
14609     ;;
14610   esac
14611   ;;
14612
14613 gnu*)
14614   version_type=linux
14615   need_lib_prefix=no
14616   need_version=no
14617   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14618   soname_spec='${libname}${release}${shared_ext}$major'
14619   shlibpath_var=LD_LIBRARY_PATH
14620   hardcode_into_libs=yes
14621   ;;
14622
14623 hpux9* | hpux10* | hpux11*)
14624   # Give a soname corresponding to the major version so that dld.sl refuses to
14625   # link against other versions.
14626   version_type=sunos
14627   need_lib_prefix=no
14628   need_version=no
14629   case "$host_cpu" in
14630   ia64*)
14631     shrext='.so'
14632     hardcode_into_libs=yes
14633     dynamic_linker="$host_os dld.so"
14634     shlibpath_var=LD_LIBRARY_PATH
14635     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14636     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14637     soname_spec='${libname}${release}${shared_ext}$major'
14638     if test "X$HPUX_IA64_MODE" = X32; then
14639       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14640     else
14641       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14642     fi
14643     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14644     ;;
14645    hppa*64*)
14646      shrext='.sl'
14647      hardcode_into_libs=yes
14648      dynamic_linker="$host_os dld.sl"
14649      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14650      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14651      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14652      soname_spec='${libname}${release}${shared_ext}$major'
14653      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14654      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14655      ;;
14656    *)
14657     shrext='.sl'
14658     dynamic_linker="$host_os dld.sl"
14659     shlibpath_var=SHLIB_PATH
14660     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14661     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14662     soname_spec='${libname}${release}${shared_ext}$major'
14663     ;;
14664   esac
14665   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14666   postinstall_cmds='chmod 555 $lib'
14667   ;;
14668
14669 irix5* | irix6* | nonstopux*)
14670   case $host_os in
14671     nonstopux*) version_type=nonstopux ;;
14672     *)
14673         if test "$lt_cv_prog_gnu_ld" = yes; then
14674                 version_type=linux
14675         else
14676                 version_type=irix
14677         fi ;;
14678   esac
14679   need_lib_prefix=no
14680   need_version=no
14681   soname_spec='${libname}${release}${shared_ext}$major'
14682   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14683   case $host_os in
14684   irix5* | nonstopux*)
14685     libsuff= shlibsuff=
14686     ;;
14687   *)
14688     case $LD in # libtool.m4 will add one of these switches to LD
14689     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14690       libsuff= shlibsuff= libmagic=32-bit;;
14691     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14692       libsuff=32 shlibsuff=N32 libmagic=N32;;
14693     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14694       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14695     *) libsuff= shlibsuff= libmagic=never-match;;
14696     esac
14697     ;;
14698   esac
14699   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14700   shlibpath_overrides_runpath=no
14701   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14702   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14703   hardcode_into_libs=yes
14704   ;;
14705
14706 # No shared lib support for Linux oldld, aout, or coff.
14707 linux*oldld* | linux*aout* | linux*coff*)
14708   dynamic_linker=no
14709   ;;
14710
14711 # This must be Linux ELF.
14712 linux*)
14713   version_type=linux
14714   need_lib_prefix=no
14715   need_version=no
14716   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14717   soname_spec='${libname}${release}${shared_ext}$major'
14718   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14719   shlibpath_var=LD_LIBRARY_PATH
14720   shlibpath_overrides_runpath=no
14721   # This implies no fast_install, which is unacceptable.
14722   # Some rework will be needed to allow for fast_install
14723   # before this can be enabled.
14724   hardcode_into_libs=yes
14725
14726   # Append ld.so.conf contents to the search path
14727   if test -f /etc/ld.so.conf; then
14728     ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
14729     sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
14730   fi
14731
14732   # We used to test for /lib/ld.so.1 and disable shared libraries on
14733   # powerpc, because MkLinux only supported shared libraries with the
14734   # GNU dynamic linker.  Since this was broken with cross compilers,
14735   # most powerpc-linux boxes support dynamic linking these days and
14736   # people can always --disable-shared, the test was removed, and we
14737   # assume the GNU/Linux dynamic linker is in use.
14738   dynamic_linker='GNU/Linux ld.so'
14739   ;;
14740
14741 knetbsd*-gnu)
14742   version_type=linux
14743   need_lib_prefix=no
14744   need_version=no
14745   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14746   soname_spec='${libname}${release}${shared_ext}$major'
14747   shlibpath_var=LD_LIBRARY_PATH
14748   shlibpath_overrides_runpath=no
14749   hardcode_into_libs=yes
14750   dynamic_linker='GNU ld.so'
14751   ;;
14752
14753 netbsd*)
14754   version_type=sunos
14755   need_lib_prefix=no
14756   need_version=no
14757   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14758     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14759     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14760     dynamic_linker='NetBSD (a.out) ld.so'
14761   else
14762     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14763     soname_spec='${libname}${release}${shared_ext}$major'
14764     dynamic_linker='NetBSD ld.elf_so'
14765   fi
14766   shlibpath_var=LD_LIBRARY_PATH
14767   shlibpath_overrides_runpath=yes
14768   hardcode_into_libs=yes
14769   ;;
14770
14771 newsos6)
14772   version_type=linux
14773   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14774   shlibpath_var=LD_LIBRARY_PATH
14775   shlibpath_overrides_runpath=yes
14776   ;;
14777
14778 nto-qnx*)
14779   version_type=linux
14780   need_lib_prefix=no
14781   need_version=no
14782   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14783   soname_spec='${libname}${release}${shared_ext}$major'
14784   shlibpath_var=LD_LIBRARY_PATH
14785   shlibpath_overrides_runpath=yes
14786   ;;
14787
14788 openbsd*)
14789   version_type=sunos
14790   need_lib_prefix=no
14791   need_version=yes
14792   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14793   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14794   shlibpath_var=LD_LIBRARY_PATH
14795   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14796     case $host_os in
14797       openbsd2.[89] | openbsd2.[89].*)
14798         shlibpath_overrides_runpath=no
14799         ;;
14800       *)
14801         shlibpath_overrides_runpath=yes
14802         ;;
14803       esac
14804   else
14805     shlibpath_overrides_runpath=yes
14806   fi
14807   ;;
14808
14809 os2*)
14810   libname_spec='$name'
14811   shrext=".dll"
14812   need_lib_prefix=no
14813   library_names_spec='$libname${shared_ext} $libname.a'
14814   dynamic_linker='OS/2 ld.exe'
14815   shlibpath_var=LIBPATH
14816   ;;
14817
14818 osf3* | osf4* | osf5*)
14819   version_type=osf
14820   need_lib_prefix=no
14821   need_version=no
14822   soname_spec='${libname}${release}${shared_ext}$major'
14823   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14824   shlibpath_var=LD_LIBRARY_PATH
14825   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14826   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14827   ;;
14828
14829 sco3.2v5*)
14830   version_type=osf
14831   soname_spec='${libname}${release}${shared_ext}$major'
14832   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14833   shlibpath_var=LD_LIBRARY_PATH
14834   ;;
14835
14836 solaris*)
14837   version_type=linux
14838   need_lib_prefix=no
14839   need_version=no
14840   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14841   soname_spec='${libname}${release}${shared_ext}$major'
14842   shlibpath_var=LD_LIBRARY_PATH
14843   shlibpath_overrides_runpath=yes
14844   hardcode_into_libs=yes
14845   # ldd complains unless libraries are executable
14846   postinstall_cmds='chmod +x $lib'
14847   ;;
14848
14849 sunos4*)
14850   version_type=sunos
14851   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14852   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14853   shlibpath_var=LD_LIBRARY_PATH
14854   shlibpath_overrides_runpath=yes
14855   if test "$with_gnu_ld" = yes; then
14856     need_lib_prefix=no
14857   fi
14858   need_version=yes
14859   ;;
14860
14861 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14862   version_type=linux
14863   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14864   soname_spec='${libname}${release}${shared_ext}$major'
14865   shlibpath_var=LD_LIBRARY_PATH
14866   case $host_vendor in
14867     sni)
14868       shlibpath_overrides_runpath=no
14869       need_lib_prefix=no
14870       export_dynamic_flag_spec='${wl}-Blargedynsym'
14871       runpath_var=LD_RUN_PATH
14872       ;;
14873     siemens)
14874       need_lib_prefix=no
14875       ;;
14876     motorola)
14877       need_lib_prefix=no
14878       need_version=no
14879       shlibpath_overrides_runpath=no
14880       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14881       ;;
14882   esac
14883   ;;
14884
14885 sysv4*MP*)
14886   if test -d /usr/nec ;then
14887     version_type=linux
14888     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14889     soname_spec='$libname${shared_ext}.$major'
14890     shlibpath_var=LD_LIBRARY_PATH
14891   fi
14892   ;;
14893
14894 uts4*)
14895   version_type=linux
14896   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14897   soname_spec='${libname}${release}${shared_ext}$major'
14898   shlibpath_var=LD_LIBRARY_PATH
14899   ;;
14900
14901 *)
14902   dynamic_linker=no
14903   ;;
14904 esac
14905 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14906 echo "${ECHO_T}$dynamic_linker" >&6
14907 test "$dynamic_linker" = no && can_build_shared=no
14908
14909 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14910 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14911 hardcode_action_F77=
14912 if test -n "$hardcode_libdir_flag_spec_F77" || \
14913    test -n "$runpath_var F77" || \
14914    test "X$hardcode_automatic_F77"="Xyes" ; then
14915
14916   # We can hardcode non-existant directories.
14917   if test "$hardcode_direct_F77" != no &&
14918      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14919      # have to relink, otherwise we might link with an installed library
14920      # when we should be linking with a yet-to-be-installed one
14921      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14922      test "$hardcode_minus_L_F77" != no; then
14923     # Linking always hardcodes the temporary library directory.
14924     hardcode_action_F77=relink
14925   else
14926     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14927     hardcode_action_F77=immediate
14928   fi
14929 else
14930   # We cannot hardcode anything, or else we can only hardcode existing
14931   # directories.
14932   hardcode_action_F77=unsupported
14933 fi
14934 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14935 echo "${ECHO_T}$hardcode_action_F77" >&6
14936
14937 if test "$hardcode_action_F77" = relink; then
14938   # Fast installation is not supported
14939   enable_fast_install=no
14940 elif test "$shlibpath_overrides_runpath" = yes ||
14941      test "$enable_shared" = no; then
14942   # Fast installation is not necessary
14943   enable_fast_install=needless
14944 fi
14945
14946 striplib=
14947 old_striplib=
14948 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14949 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14950 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14951   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14952   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14953   echo "$as_me:$LINENO: result: yes" >&5
14954 echo "${ECHO_T}yes" >&6
14955 else
14956 # FIXME - insert some real tests, host_os isn't really good enough
14957   case $host_os in
14958    darwin*)
14959        if test -n "$STRIP" ; then
14960          striplib="$STRIP -x"
14961          echo "$as_me:$LINENO: result: yes" >&5
14962 echo "${ECHO_T}yes" >&6
14963        else
14964   echo "$as_me:$LINENO: result: no" >&5
14965 echo "${ECHO_T}no" >&6
14966 fi
14967        ;;
14968    *)
14969   echo "$as_me:$LINENO: result: no" >&5
14970 echo "${ECHO_T}no" >&6
14971     ;;
14972   esac
14973 fi
14974
14975
14976
14977 # The else clause should only fire when bootstrapping the
14978 # libtool distribution, otherwise you forgot to ship ltmain.sh
14979 # with your package, and you will get complaints that there are
14980 # no rules to generate ltmain.sh.
14981 if test -f "$ltmain"; then
14982   # See if we are running on zsh, and set the options which allow our commands through
14983   # without removal of \ escapes.
14984   if test -n "${ZSH_VERSION+set}" ; then
14985     setopt NO_GLOB_SUBST
14986   fi
14987   # Now quote all the things that may contain metacharacters while being
14988   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14989   # variables and quote the copies for generation of the libtool script.
14990   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14991     SED SHELL STRIP \
14992     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14993     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14994     deplibs_check_method reload_flag reload_cmds need_locks \
14995     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14996     lt_cv_sys_global_symbol_to_c_name_address \
14997     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14998     old_postinstall_cmds old_postuninstall_cmds \
14999     compiler_F77 \
15000     CC_F77 \
15001     LD_F77 \
15002     lt_prog_compiler_wl_F77 \
15003     lt_prog_compiler_pic_F77 \
15004     lt_prog_compiler_static_F77 \
15005     lt_prog_compiler_no_builtin_flag_F77 \
15006     export_dynamic_flag_spec_F77 \
15007     thread_safe_flag_spec_F77 \
15008     whole_archive_flag_spec_F77 \
15009     enable_shared_with_static_runtimes_F77 \
15010     old_archive_cmds_F77 \
15011     old_archive_from_new_cmds_F77 \
15012     predep_objects_F77 \
15013     postdep_objects_F77 \
15014     predeps_F77 \
15015     postdeps_F77 \
15016     compiler_lib_search_path_F77 \
15017     archive_cmds_F77 \
15018     archive_expsym_cmds_F77 \
15019     postinstall_cmds_F77 \
15020     postuninstall_cmds_F77 \
15021     old_archive_from_expsyms_cmds_F77 \
15022     allow_undefined_flag_F77 \
15023     no_undefined_flag_F77 \
15024     export_symbols_cmds_F77 \
15025     hardcode_libdir_flag_spec_F77 \
15026     hardcode_libdir_flag_spec_ld_F77 \
15027     hardcode_libdir_separator_F77 \
15028     hardcode_automatic_F77 \
15029     module_cmds_F77 \
15030     module_expsym_cmds_F77 \
15031     lt_cv_prog_compiler_c_o_F77 \
15032     exclude_expsyms_F77 \
15033     include_expsyms_F77; do
15034
15035     case $var in
15036     old_archive_cmds_F77 | \
15037     old_archive_from_new_cmds_F77 | \
15038     archive_cmds_F77 | \
15039     archive_expsym_cmds_F77 | \
15040     module_cmds_F77 | \
15041     module_expsym_cmds_F77 | \
15042     old_archive_from_expsyms_cmds_F77 | \
15043     export_symbols_cmds_F77 | \
15044     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15045     postinstall_cmds | postuninstall_cmds | \
15046     old_postinstall_cmds | old_postuninstall_cmds | \
15047     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15048       # Double-quote double-evaled strings.
15049       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15050       ;;
15051     *)
15052       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15053       ;;
15054     esac
15055   done
15056
15057   case $lt_echo in
15058   *'\$0 --fallback-echo"')
15059     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15060     ;;
15061   esac
15062
15063 cfgfile="$ofile"
15064
15065   cat <<__EOF__ >> "$cfgfile"
15066 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15067
15068 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15069
15070 # Shell to use when invoking shell scripts.
15071 SHELL=$lt_SHELL
15072
15073 # Whether or not to build shared libraries.
15074 build_libtool_libs=$enable_shared
15075
15076 # Whether or not to build static libraries.
15077 build_old_libs=$enable_static
15078
15079 # Whether or not to add -lc for building shared libraries.
15080 build_libtool_need_lc=$archive_cmds_need_lc_F77
15081
15082 # Whether or not to disallow shared libs when runtime libs are static
15083 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15084
15085 # Whether or not to optimize for fast installation.
15086 fast_install=$enable_fast_install
15087
15088 # The host system.
15089 host_alias=$host_alias
15090 host=$host
15091
15092 # An echo program that does not interpret backslashes.
15093 echo=$lt_echo
15094
15095 # The archiver.
15096 AR=$lt_AR
15097 AR_FLAGS=$lt_AR_FLAGS
15098
15099 # A C compiler.
15100 LTCC=$lt_LTCC
15101
15102 # A language-specific compiler.
15103 CC=$lt_compiler_F77
15104
15105 # Is the compiler the GNU C compiler?
15106 with_gcc=$GCC_F77
15107
15108 # An ERE matcher.
15109 EGREP=$lt_EGREP
15110
15111 # The linker used to build libraries.
15112 LD=$lt_LD_F77
15113
15114 # Whether we need hard or soft links.
15115 LN_S=$lt_LN_S
15116
15117 # A BSD-compatible nm program.
15118 NM=$lt_NM
15119
15120 # A symbol stripping program
15121 STRIP=$lt_STRIP
15122
15123 # Used to examine libraries when file_magic_cmd begins "file"
15124 MAGIC_CMD=$MAGIC_CMD
15125
15126 # Used on cygwin: DLL creation program.
15127 DLLTOOL="$DLLTOOL"
15128
15129 # Used on cygwin: object dumper.
15130 OBJDUMP="$OBJDUMP"
15131
15132 # Used on cygwin: assembler.
15133 AS="$AS"
15134
15135 # The name of the directory that contains temporary libtool files.
15136 objdir=$objdir
15137
15138 # How to create reloadable object files.
15139 reload_flag=$lt_reload_flag
15140 reload_cmds=$lt_reload_cmds
15141
15142 # How to pass a linker flag through the compiler.
15143 wl=$lt_lt_prog_compiler_wl_F77
15144
15145 # Object file suffix (normally "o").
15146 objext="$ac_objext"
15147
15148 # Old archive suffix (normally "a").
15149 libext="$libext"
15150
15151 # Shared library suffix (normally ".so").
15152 shrext='$shrext'
15153
15154 # Executable file suffix (normally "").
15155 exeext="$exeext"
15156
15157 # Additional compiler flags for building library objects.
15158 pic_flag=$lt_lt_prog_compiler_pic_F77
15159 pic_mode=$pic_mode
15160
15161 # What is the maximum length of a command?
15162 max_cmd_len=$lt_cv_sys_max_cmd_len
15163
15164 # Does compiler simultaneously support -c and -o options?
15165 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15166
15167 # Must we lock files when doing compilation ?
15168 need_locks=$lt_need_locks
15169
15170 # Do we need the lib prefix for modules?
15171 need_lib_prefix=$need_lib_prefix
15172
15173 # Do we need a version for libraries?
15174 need_version=$need_version
15175
15176 # Whether dlopen is supported.
15177 dlopen_support=$enable_dlopen
15178
15179 # Whether dlopen of programs is supported.
15180 dlopen_self=$enable_dlopen_self
15181
15182 # Whether dlopen of statically linked programs is supported.
15183 dlopen_self_static=$enable_dlopen_self_static
15184
15185 # Compiler flag to prevent dynamic linking.
15186 link_static_flag=$lt_lt_prog_compiler_static_F77
15187
15188 # Compiler flag to turn off builtin functions.
15189 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15190
15191 # Compiler flag to allow reflexive dlopens.
15192 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15193
15194 # Compiler flag to generate shared objects directly from archives.
15195 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15196
15197 # Compiler flag to generate thread-safe objects.
15198 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15199
15200 # Library versioning type.
15201 version_type=$version_type
15202
15203 # Format of library name prefix.
15204 libname_spec=$lt_libname_spec
15205
15206 # List of archive names.  First name is the real one, the rest are links.
15207 # The last name is the one that the linker finds with -lNAME.
15208 library_names_spec=$lt_library_names_spec
15209
15210 # The coded name of the library, if different from the real name.
15211 soname_spec=$lt_soname_spec
15212
15213 # Commands used to build and install an old-style archive.
15214 RANLIB=$lt_RANLIB
15215 old_archive_cmds=$lt_old_archive_cmds_F77
15216 old_postinstall_cmds=$lt_old_postinstall_cmds
15217 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15218
15219 # Create an old-style archive from a shared archive.
15220 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15221
15222 # Create a temporary old-style archive to link instead of a shared archive.
15223 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15224
15225 # Commands used to build and install a shared archive.
15226 archive_cmds=$lt_archive_cmds_F77
15227 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15228 postinstall_cmds=$lt_postinstall_cmds
15229 postuninstall_cmds=$lt_postuninstall_cmds
15230
15231 # Commands used to build a loadable module (assumed same as above if empty)
15232 module_cmds=$lt_module_cmds_F77
15233 module_expsym_cmds=$lt_module_expsym_cmds_F77
15234
15235 # Commands to strip libraries.
15236 old_striplib=$lt_old_striplib
15237 striplib=$lt_striplib
15238
15239 # Dependencies to place before the objects being linked to create a
15240 # shared library.
15241 predep_objects=$lt_predep_objects_F77
15242
15243 # Dependencies to place after the objects being linked to create a
15244 # shared library.
15245 postdep_objects=$lt_postdep_objects_F77
15246
15247 # Dependencies to place before the objects being linked to create a
15248 # shared library.
15249 predeps=$lt_predeps_F77
15250
15251 # Dependencies to place after the objects being linked to create a
15252 # shared library.
15253 postdeps=$lt_postdeps_F77
15254
15255 # The library search path used internally by the compiler when linking
15256 # a shared library.
15257 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15258
15259 # Method to check whether dependent libraries are shared objects.
15260 deplibs_check_method=$lt_deplibs_check_method
15261
15262 # Command to use when deplibs_check_method == file_magic.
15263 file_magic_cmd=$lt_file_magic_cmd
15264
15265 # Flag that allows shared libraries with undefined symbols to be built.
15266 allow_undefined_flag=$lt_allow_undefined_flag_F77
15267
15268 # Flag that forces no undefined symbols.
15269 no_undefined_flag=$lt_no_undefined_flag_F77
15270
15271 # Commands used to finish a libtool library installation in a directory.
15272 finish_cmds=$lt_finish_cmds
15273
15274 # Same as above, but a single script fragment to be evaled but not shown.
15275 finish_eval=$lt_finish_eval
15276
15277 # Take the output of nm and produce a listing of raw symbols and C names.
15278 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15279
15280 # Transform the output of nm in a proper C declaration
15281 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15282
15283 # Transform the output of nm in a C name address pair
15284 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15285
15286 # This is the shared library runtime path variable.
15287 runpath_var=$runpath_var
15288
15289 # This is the shared library path variable.
15290 shlibpath_var=$shlibpath_var
15291
15292 # Is shlibpath searched before the hard-coded library search path?
15293 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15294
15295 # How to hardcode a shared library path into an executable.
15296 hardcode_action=$hardcode_action_F77
15297
15298 # Whether we should hardcode library paths into libraries.
15299 hardcode_into_libs=$hardcode_into_libs
15300
15301 # Flag to hardcode \$libdir into a binary during linking.
15302 # This must work even if \$libdir does not exist.
15303 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15304
15305 # If ld is used when linking, flag to hardcode \$libdir into
15306 # a binary during linking. This must work even if \$libdir does
15307 # not exist.
15308 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15309
15310 # Whether we need a single -rpath flag with a separated argument.
15311 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15312
15313 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15314 # resulting binary.
15315 hardcode_direct=$hardcode_direct_F77
15316
15317 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15318 # resulting binary.
15319 hardcode_minus_L=$hardcode_minus_L_F77
15320
15321 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15322 # the resulting binary.
15323 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15324
15325 # Set to yes if building a shared library automatically hardcodes DIR into the library
15326 # and all subsequent libraries and executables linked against it.
15327 hardcode_automatic=$hardcode_automatic_F77
15328
15329 # Variables whose values should be saved in libtool wrapper scripts and
15330 # restored at relink time.
15331 variables_saved_for_relink="$variables_saved_for_relink"
15332
15333 # Whether libtool must link a program against all its dependency libraries.
15334 link_all_deplibs=$link_all_deplibs_F77
15335
15336 # Compile-time system search path for libraries
15337 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15338
15339 # Run-time system search path for libraries
15340 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15341
15342 # Fix the shell variable \$srcfile for the compiler.
15343 fix_srcfile_path="$fix_srcfile_path_F77"
15344
15345 # Set to yes if exported symbols are required.
15346 always_export_symbols=$always_export_symbols_F77
15347
15348 # The commands to list exported symbols.
15349 export_symbols_cmds=$lt_export_symbols_cmds_F77
15350
15351 # The commands to extract the exported symbol list from a shared archive.
15352 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15353
15354 # Symbols that should not be listed in the preloaded symbols.
15355 exclude_expsyms=$lt_exclude_expsyms_F77
15356
15357 # Symbols that must always be exported.
15358 include_expsyms=$lt_include_expsyms_F77
15359
15360 # ### END LIBTOOL TAG CONFIG: $tagname
15361
15362 __EOF__
15363
15364
15365 else
15366   # If there is no Makefile yet, we rely on a make rule to execute
15367   # `config.status --recheck' to rerun these tests and create the
15368   # libtool script then.
15369   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15370   if test -f "$ltmain_in"; then
15371     test -f Makefile && make "$ltmain"
15372   fi
15373 fi
15374
15375
15376 ac_ext=c
15377 ac_cpp='$CPP $CPPFLAGS'
15378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15381
15382 CC="$lt_save_CC"
15383
15384         else
15385           tagname=""
15386         fi
15387         ;;
15388
15389       GCJ)
15390         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15391
15392
15393
15394 # Source file extension for Java test sources.
15395 ac_ext=java
15396
15397 # Object file extension for compiled Java test sources.
15398 objext=o
15399 objext_GCJ=$objext
15400
15401 # Code to be used in simple compile tests
15402 lt_simple_compile_test_code="class foo {}\n"
15403
15404 # Code to be used in simple link tests
15405 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15406
15407 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15408
15409 # If no C compiler was specified, use CC.
15410 LTCC=${LTCC-"$CC"}
15411
15412 # Allow CC to be a program name with arguments.
15413 compiler=$CC
15414
15415
15416 # Allow CC to be a program name with arguments.
15417 lt_save_CC="$CC"
15418 CC=${GCJ-"gcj"}
15419 compiler=$CC
15420 compiler_GCJ=$CC
15421
15422 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15423 archive_cmds_need_lc_GCJ=no
15424
15425
15426 lt_prog_compiler_no_builtin_flag_GCJ=
15427
15428 if test "$GCC" = yes; then
15429   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15430
15431
15432 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15433 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15434 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15435   echo $ECHO_N "(cached) $ECHO_C" >&6
15436 else
15437   lt_cv_prog_compiler_rtti_exceptions=no
15438   ac_outfile=conftest.$ac_objext
15439    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15440    lt_compiler_flag="-fno-rtti -fno-exceptions"
15441    # Insert the option either (1) after the last *FLAGS variable, or
15442    # (2) before a word containing "conftest.", or (3) at the end.
15443    # Note that $ac_compile itself does not contain backslashes and begins
15444    # with a dollar sign (not a hyphen), so the echo should work correctly.
15445    # The option is referenced via a variable to avoid confusing sed.
15446    lt_compile=`echo "$ac_compile" | $SED \
15447    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15448    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15449    -e 's:$: $lt_compiler_flag:'`
15450    (eval echo "\"\$as_me:15450: $lt_compile\"" >&5)
15451    (eval "$lt_compile" 2>conftest.err)
15452    ac_status=$?
15453    cat conftest.err >&5
15454    echo "$as_me:15454: \$? = $ac_status" >&5
15455    if (exit $ac_status) && test -s "$ac_outfile"; then
15456      # The compiler can only warn and ignore the option if not recognized
15457      # So say no if there are warnings
15458      if test ! -s conftest.err; then
15459        lt_cv_prog_compiler_rtti_exceptions=yes
15460      fi
15461    fi
15462    $rm conftest*
15463
15464 fi
15465 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15466 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15467
15468 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15469     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15470 else
15471     :
15472 fi
15473
15474 fi
15475
15476 lt_prog_compiler_wl_GCJ=
15477 lt_prog_compiler_pic_GCJ=
15478 lt_prog_compiler_static_GCJ=
15479
15480 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15481 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15482
15483   if test "$GCC" = yes; then
15484     lt_prog_compiler_wl_GCJ='-Wl,'
15485     lt_prog_compiler_static_GCJ='-static'
15486
15487     case $host_os in
15488       aix*)
15489       # All AIX code is PIC.
15490       if test "$host_cpu" = ia64; then
15491         # AIX 5 now supports IA64 processor
15492         lt_prog_compiler_static_GCJ='-Bstatic'
15493       fi
15494       ;;
15495
15496     amigaos*)
15497       # FIXME: we need at least 68020 code to build shared libraries, but
15498       # adding the `-m68020' flag to GCC prevents building anything better,
15499       # like `-m68040'.
15500       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15501       ;;
15502
15503     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15504       # PIC is the default for these OSes.
15505       ;;
15506
15507     mingw* | pw32* | os2*)
15508       # This hack is so that the source file can tell whether it is being
15509       # built for inclusion in a dll (and should export symbols for example).
15510       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15511       ;;
15512
15513     darwin* | rhapsody*)
15514       # PIC is the default on this platform
15515       # Common symbols not allowed in MH_DYLIB files
15516       lt_prog_compiler_pic_GCJ='-fno-common'
15517       ;;
15518
15519     msdosdjgpp*)
15520       # Just because we use GCC doesn't mean we suddenly get shared libraries
15521       # on systems that don't support them.
15522       lt_prog_compiler_can_build_shared_GCJ=no
15523       enable_shared=no
15524       ;;
15525
15526     sysv4*MP*)
15527       if test -d /usr/nec; then
15528         lt_prog_compiler_pic_GCJ=-Kconform_pic
15529       fi
15530       ;;
15531
15532     hpux*)
15533       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15534       # not for PA HP-UX.
15535       case "$host_cpu" in
15536       hppa*64*|ia64*)
15537         # +Z the default
15538         ;;
15539       *)
15540         lt_prog_compiler_pic_GCJ='-fPIC'
15541         ;;
15542       esac
15543       ;;
15544
15545     *)
15546       lt_prog_compiler_pic_GCJ='-fPIC'
15547       ;;
15548     esac
15549   else
15550     # PORTME Check for flag to pass linker flags through the system compiler.
15551     case $host_os in
15552     aix*)
15553       lt_prog_compiler_wl_GCJ='-Wl,'
15554       if test "$host_cpu" = ia64; then
15555         # AIX 5 now supports IA64 processor
15556         lt_prog_compiler_static_GCJ='-Bstatic'
15557       else
15558         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15559       fi
15560       ;;
15561
15562     mingw* | pw32* | os2*)
15563       # This hack is so that the source file can tell whether it is being
15564       # built for inclusion in a dll (and should export symbols for example).
15565       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15566       ;;
15567
15568     hpux9* | hpux10* | hpux11*)
15569       lt_prog_compiler_wl_GCJ='-Wl,'
15570       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15571       # not for PA HP-UX.
15572       case "$host_cpu" in
15573       hppa*64*|ia64*)
15574         # +Z the default
15575         ;;
15576       *)
15577         lt_prog_compiler_pic_GCJ='+Z'
15578         ;;
15579       esac
15580       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15581       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15582       ;;
15583
15584     irix5* | irix6* | nonstopux*)
15585       lt_prog_compiler_wl_GCJ='-Wl,'
15586       # PIC (with -KPIC) is the default.
15587       lt_prog_compiler_static_GCJ='-non_shared'
15588       ;;
15589
15590     newsos6)
15591       lt_prog_compiler_pic_GCJ='-KPIC'
15592       lt_prog_compiler_static_GCJ='-Bstatic'
15593       ;;
15594
15595     linux*)
15596       case $CC in
15597       icc* | ecc*)
15598         lt_prog_compiler_wl_GCJ='-Wl,'
15599         lt_prog_compiler_pic_GCJ='-KPIC'
15600         lt_prog_compiler_static_GCJ='-static'
15601         ;;
15602       ccc*)
15603         lt_prog_compiler_wl_GCJ='-Wl,'
15604         # All Alpha code is PIC.
15605         lt_prog_compiler_static_GCJ='-non_shared'
15606         ;;
15607       esac
15608       ;;
15609
15610     osf3* | osf4* | osf5*)
15611       lt_prog_compiler_wl_GCJ='-Wl,'
15612       # All OSF/1 code is PIC.
15613       lt_prog_compiler_static_GCJ='-non_shared'
15614       ;;
15615
15616     sco3.2v5*)
15617       lt_prog_compiler_pic_GCJ='-Kpic'
15618       lt_prog_compiler_static_GCJ='-dn'
15619       ;;
15620
15621     solaris*)
15622       lt_prog_compiler_wl_GCJ='-Wl,'
15623       lt_prog_compiler_pic_GCJ='-KPIC'
15624       lt_prog_compiler_static_GCJ='-Bstatic'
15625       ;;
15626
15627     sunos4*)
15628       lt_prog_compiler_wl_GCJ='-Qoption ld '
15629       lt_prog_compiler_pic_GCJ='-PIC'
15630       lt_prog_compiler_static_GCJ='-Bstatic'
15631       ;;
15632
15633     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15634       lt_prog_compiler_wl_GCJ='-Wl,'
15635       lt_prog_compiler_pic_GCJ='-KPIC'
15636       lt_prog_compiler_static_GCJ='-Bstatic'
15637       ;;
15638
15639     sysv4*MP*)
15640       if test -d /usr/nec ;then
15641         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15642         lt_prog_compiler_static_GCJ='-Bstatic'
15643       fi
15644       ;;
15645
15646     uts4*)
15647       lt_prog_compiler_pic_GCJ='-pic'
15648       lt_prog_compiler_static_GCJ='-Bstatic'
15649       ;;
15650
15651     *)
15652       lt_prog_compiler_can_build_shared_GCJ=no
15653       ;;
15654     esac
15655   fi
15656
15657 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15658 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15659
15660 #
15661 # Check to make sure the PIC flag actually works.
15662 #
15663 if test -n "$lt_prog_compiler_pic_GCJ"; then
15664
15665 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15666 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15667 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15668   echo $ECHO_N "(cached) $ECHO_C" >&6
15669 else
15670   lt_prog_compiler_pic_works_GCJ=no
15671   ac_outfile=conftest.$ac_objext
15672    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15673    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15674    # Insert the option either (1) after the last *FLAGS variable, or
15675    # (2) before a word containing "conftest.", or (3) at the end.
15676    # Note that $ac_compile itself does not contain backslashes and begins
15677    # with a dollar sign (not a hyphen), so the echo should work correctly.
15678    # The option is referenced via a variable to avoid confusing sed.
15679    lt_compile=`echo "$ac_compile" | $SED \
15680    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15681    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15682    -e 's:$: $lt_compiler_flag:'`
15683    (eval echo "\"\$as_me:15683: $lt_compile\"" >&5)
15684    (eval "$lt_compile" 2>conftest.err)
15685    ac_status=$?
15686    cat conftest.err >&5
15687    echo "$as_me:15687: \$? = $ac_status" >&5
15688    if (exit $ac_status) && test -s "$ac_outfile"; then
15689      # The compiler can only warn and ignore the option if not recognized
15690      # So say no if there are warnings
15691      if test ! -s conftest.err; then
15692        lt_prog_compiler_pic_works_GCJ=yes
15693      fi
15694    fi
15695    $rm conftest*
15696
15697 fi
15698 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15699 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15700
15701 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15702     case $lt_prog_compiler_pic_GCJ in
15703      "" | " "*) ;;
15704      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15705      esac
15706 else
15707     lt_prog_compiler_pic_GCJ=
15708      lt_prog_compiler_can_build_shared_GCJ=no
15709 fi
15710
15711 fi
15712 case "$host_os" in
15713   # For platforms which do not support PIC, -DPIC is meaningless:
15714   *djgpp*)
15715     lt_prog_compiler_pic_GCJ=
15716     ;;
15717   *)
15718     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15719     ;;
15720 esac
15721
15722 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15723 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15724 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15725   echo $ECHO_N "(cached) $ECHO_C" >&6
15726 else
15727   lt_cv_prog_compiler_c_o_GCJ=no
15728    $rm -r conftest 2>/dev/null
15729    mkdir conftest
15730    cd conftest
15731    mkdir out
15732    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15733
15734    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15735    # that will create temporary files in the current directory regardless of
15736    # the output directory.  Thus, making CWD read-only will cause this test
15737    # to fail, enabling locking or at least warning the user not to do parallel
15738    # builds.
15739    chmod -w .
15740
15741    lt_compiler_flag="-o out/conftest2.$ac_objext"
15742    # Insert the option either (1) after the last *FLAGS variable, or
15743    # (2) before a word containing "conftest.", or (3) at the end.
15744    # Note that $ac_compile itself does not contain backslashes and begins
15745    # with a dollar sign (not a hyphen), so the echo should work correctly.
15746    lt_compile=`echo "$ac_compile" | $SED \
15747    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15748    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15749    -e 's:$: $lt_compiler_flag:'`
15750    (eval echo "\"\$as_me:15750: $lt_compile\"" >&5)
15751    (eval "$lt_compile" 2>out/conftest.err)
15752    ac_status=$?
15753    cat out/conftest.err >&5
15754    echo "$as_me:15754: \$? = $ac_status" >&5
15755    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15756    then
15757      # The compiler can only warn and ignore the option if not recognized
15758      # So say no if there are warnings
15759      if test ! -s out/conftest.err; then
15760        lt_cv_prog_compiler_c_o_GCJ=yes
15761      fi
15762    fi
15763    chmod u+w .
15764    $rm conftest*
15765    # SGI C++ compiler will create directory out/ii_files/ for
15766    # template instantiation
15767    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15768    $rm out/* && rmdir out
15769    cd ..
15770    rmdir conftest
15771    $rm conftest*
15772
15773 fi
15774 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15775 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15776
15777
15778 hard_links="nottested"
15779 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15780   # do not overwrite the value of need_locks provided by the user
15781   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15782 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15783   hard_links=yes
15784   $rm conftest*
15785   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15786   touch conftest.a
15787   ln conftest.a conftest.b 2>&5 || hard_links=no
15788   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15789   echo "$as_me:$LINENO: result: $hard_links" >&5
15790 echo "${ECHO_T}$hard_links" >&6
15791   if test "$hard_links" = no; then
15792     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15793 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15794     need_locks=warn
15795   fi
15796 else
15797   need_locks=no
15798 fi
15799
15800 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15801 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15802
15803   runpath_var=
15804   allow_undefined_flag_GCJ=
15805   enable_shared_with_static_runtimes_GCJ=no
15806   archive_cmds_GCJ=
15807   archive_expsym_cmds_GCJ=
15808   old_archive_From_new_cmds_GCJ=
15809   old_archive_from_expsyms_cmds_GCJ=
15810   export_dynamic_flag_spec_GCJ=
15811   whole_archive_flag_spec_GCJ=
15812   thread_safe_flag_spec_GCJ=
15813   hardcode_libdir_flag_spec_GCJ=
15814   hardcode_libdir_flag_spec_ld_GCJ=
15815   hardcode_libdir_separator_GCJ=
15816   hardcode_direct_GCJ=no
15817   hardcode_minus_L_GCJ=no
15818   hardcode_shlibpath_var_GCJ=unsupported
15819   link_all_deplibs_GCJ=unknown
15820   hardcode_automatic_GCJ=no
15821   module_cmds_GCJ=
15822   module_expsym_cmds_GCJ=
15823   always_export_symbols_GCJ=no
15824   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15825   # include_expsyms should be a list of space-separated symbols to be *always*
15826   # included in the symbol list
15827   include_expsyms_GCJ=
15828   # exclude_expsyms can be an extended regexp of symbols to exclude
15829   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15830   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15831   # as well as any symbol that contains `d'.
15832   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15833   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15834   # platforms (ab)use it in PIC code, but their linkers get confused if
15835   # the symbol is explicitly referenced.  Since portable code cannot
15836   # rely on this symbol name, it's probably fine to never include it in
15837   # preloaded symbol tables.
15838   extract_expsyms_cmds=
15839
15840   case $host_os in
15841   cygwin* | mingw* | pw32*)
15842     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15843     # When not using gcc, we currently assume that we are using
15844     # Microsoft Visual C++.
15845     if test "$GCC" != yes; then
15846       with_gnu_ld=no
15847     fi
15848     ;;
15849   openbsd*)
15850     with_gnu_ld=no
15851     ;;
15852   esac
15853
15854   ld_shlibs_GCJ=yes
15855   if test "$with_gnu_ld" = yes; then
15856     # If archive_cmds runs LD, not CC, wlarc should be empty
15857     wlarc='${wl}'
15858
15859     # See if GNU ld supports shared libraries.
15860     case $host_os in
15861     aix3* | aix4* | aix5*)
15862       # On AIX/PPC, the GNU linker is very broken
15863       if test "$host_cpu" != ia64; then
15864         ld_shlibs_GCJ=no
15865         cat <<EOF 1>&2
15866
15867 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15868 *** to be unable to reliably create shared libraries on AIX.
15869 *** Therefore, libtool is disabling shared libraries support.  If you
15870 *** really care for shared libraries, you may want to modify your PATH
15871 *** so that a non-GNU linker is found, and then restart.
15872
15873 EOF
15874       fi
15875       ;;
15876
15877     amigaos*)
15878       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)'
15879       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15880       hardcode_minus_L_GCJ=yes
15881
15882       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15883       # that the semantics of dynamic libraries on AmigaOS, at least up
15884       # to version 4, is to share data among multiple programs linked
15885       # with the same dynamic library.  Since this doesn't match the
15886       # behavior of shared libraries on other platforms, we can't use
15887       # them.
15888       ld_shlibs_GCJ=no
15889       ;;
15890
15891     beos*)
15892       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15893         allow_undefined_flag_GCJ=unsupported
15894         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15895         # support --undefined.  This deserves some investigation.  FIXME
15896         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15897       else
15898         ld_shlibs_GCJ=no
15899       fi
15900       ;;
15901
15902     cygwin* | mingw* | pw32*)
15903       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15904       # as there is no search path for DLLs.
15905       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15906       allow_undefined_flag_GCJ=unsupported
15907       always_export_symbols_GCJ=no
15908       enable_shared_with_static_runtimes_GCJ=yes
15909       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15910
15911       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15912         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15913         # If the export-symbols file already is a .def file (1st line
15914         # is EXPORTS), use it as is; otherwise, prepend...
15915         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15916           cp $export_symbols $output_objdir/$soname.def;
15917         else
15918           echo EXPORTS > $output_objdir/$soname.def;
15919           cat $export_symbols >> $output_objdir/$soname.def;
15920         fi~
15921         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15922       else
15923         ld_shlibs=no
15924       fi
15925       ;;
15926
15927     netbsd*)
15928       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15929         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15930         wlarc=
15931       else
15932         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15933         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15934       fi
15935       ;;
15936
15937     solaris* | sysv5*)
15938       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15939         ld_shlibs_GCJ=no
15940         cat <<EOF 1>&2
15941
15942 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15943 *** create shared libraries on Solaris systems.  Therefore, libtool
15944 *** is disabling shared libraries support.  We urge you to upgrade GNU
15945 *** binutils to release 2.9.1 or newer.  Another option is to modify
15946 *** your PATH or compiler configuration so that the native linker is
15947 *** used, and then restart.
15948
15949 EOF
15950       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15951         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15952         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15953       else
15954         ld_shlibs_GCJ=no
15955       fi
15956       ;;
15957
15958     sunos4*)
15959       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15960       wlarc=
15961       hardcode_direct_GCJ=yes
15962       hardcode_shlibpath_var_GCJ=no
15963       ;;
15964
15965   linux*)
15966     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15967         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15968         archive_cmds_GCJ="$tmp_archive_cmds"
15969       supports_anon_versioning=no
15970       case `$LD -v 2>/dev/null` in
15971         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15972         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15973         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15974         *\ 2.11.*) ;; # other 2.11 versions
15975         *) supports_anon_versioning=yes ;;
15976       esac
15977       if test $supports_anon_versioning = yes; then
15978         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15979 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15980 $echo "local: *; };" >> $output_objdir/$libname.ver~
15981         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15982       else
15983         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15984       fi
15985     else
15986       ld_shlibs_GCJ=no
15987     fi
15988     ;;
15989
15990     *)
15991       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15992         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15993         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15994       else
15995         ld_shlibs_GCJ=no
15996       fi
15997       ;;
15998     esac
15999
16000     if test "$ld_shlibs_GCJ" = yes; then
16001       runpath_var=LD_RUN_PATH
16002       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16003       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16004       # ancient GNU ld didn't support --whole-archive et. al.
16005       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16006         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16007       else
16008         whole_archive_flag_spec_GCJ=
16009       fi
16010     fi
16011   else
16012     # PORTME fill in a description of your system's linker (not GNU ld)
16013     case $host_os in
16014     aix3*)
16015       allow_undefined_flag_GCJ=unsupported
16016       always_export_symbols_GCJ=yes
16017       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'
16018       # Note: this linker hardcodes the directories in LIBPATH if there
16019       # are no directories specified by -L.
16020       hardcode_minus_L_GCJ=yes
16021       if test "$GCC" = yes && test -z "$link_static_flag"; then
16022         # Neither direct hardcoding nor static linking is supported with a
16023         # broken collect2.
16024         hardcode_direct_GCJ=unsupported
16025       fi
16026       ;;
16027
16028     aix4* | aix5*)
16029       if test "$host_cpu" = ia64; then
16030         # On IA64, the linker does run time linking by default, so we don't
16031         # have to do anything special.
16032         aix_use_runtimelinking=no
16033         exp_sym_flag='-Bexport'
16034         no_entry_flag=""
16035       else
16036         # If we're using GNU nm, then we don't want the "-C" option.
16037         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16038         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16039           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'
16040         else
16041           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'
16042         fi
16043         aix_use_runtimelinking=no
16044
16045         # Test if we are trying to use run time linking or normal
16046         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16047         # need to do runtime linking.
16048         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16049           for ld_flag in $LDFLAGS; do
16050           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16051             aix_use_runtimelinking=yes
16052             break
16053           fi
16054           done
16055         esac
16056
16057         exp_sym_flag='-bexport'
16058         no_entry_flag='-bnoentry'
16059       fi
16060
16061       # When large executables or shared objects are built, AIX ld can
16062       # have problems creating the table of contents.  If linking a library
16063       # or program results in "error TOC overflow" add -mminimal-toc to
16064       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16065       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16066
16067       archive_cmds_GCJ=''
16068       hardcode_direct_GCJ=yes
16069       hardcode_libdir_separator_GCJ=':'
16070       link_all_deplibs_GCJ=yes
16071
16072       if test "$GCC" = yes; then
16073         case $host_os in aix4.012|aix4.012.*)
16074         # We only want to do this on AIX 4.2 and lower, the check
16075         # below for broken collect2 doesn't work under 4.3+
16076           collect2name=`${CC} -print-prog-name=collect2`
16077           if test -f "$collect2name" && \
16078            strings "$collect2name" | grep resolve_lib_name >/dev/null
16079           then
16080           # We have reworked collect2
16081           hardcode_direct_GCJ=yes
16082           else
16083           # We have old collect2
16084           hardcode_direct_GCJ=unsupported
16085           # It fails to find uninstalled libraries when the uninstalled
16086           # path is not listed in the libpath.  Setting hardcode_minus_L
16087           # to unsupported forces relinking
16088           hardcode_minus_L_GCJ=yes
16089           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16090           hardcode_libdir_separator_GCJ=
16091           fi
16092         esac
16093         shared_flag='-shared'
16094       else
16095         # not using gcc
16096         if test "$host_cpu" = ia64; then
16097         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16098         # chokes on -Wl,-G. The following line is correct:
16099           shared_flag='-G'
16100         else
16101         if test "$aix_use_runtimelinking" = yes; then
16102             shared_flag='${wl}-G'
16103           else
16104             shared_flag='${wl}-bM:SRE'
16105         fi
16106         fi
16107       fi
16108
16109       # It seems that -bexpall does not export symbols beginning with
16110       # underscore (_), so it is better to generate a list of symbols to export.
16111       always_export_symbols_GCJ=yes
16112       if test "$aix_use_runtimelinking" = yes; then
16113         # Warning - without using the other runtime loading flags (-brtl),
16114         # -berok will link without error, but may produce a broken library.
16115         allow_undefined_flag_GCJ='-berok'
16116        # Determine the default libpath from the value encoded in an empty executable.
16117        cat >conftest.$ac_ext <<_ACEOF
16118 /* confdefs.h.  */
16119 _ACEOF
16120 cat confdefs.h >>conftest.$ac_ext
16121 cat >>conftest.$ac_ext <<_ACEOF
16122 /* end confdefs.h.  */
16123
16124 int
16125 main ()
16126 {
16127
16128   ;
16129   return 0;
16130 }
16131 _ACEOF
16132 rm -f conftest.$ac_objext conftest$ac_exeext
16133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16134   (eval $ac_link) 2>conftest.er1
16135   ac_status=$?
16136   grep -v '^ *+' conftest.er1 >conftest.err
16137   rm -f conftest.er1
16138   cat conftest.err >&5
16139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140   (exit $ac_status); } &&
16141          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16143   (eval $ac_try) 2>&5
16144   ac_status=$?
16145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146   (exit $ac_status); }; } &&
16147          { ac_try='test -s conftest$ac_exeext'
16148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16149   (eval $ac_try) 2>&5
16150   ac_status=$?
16151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152   (exit $ac_status); }; }; then
16153
16154 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16155 }'`
16156 # Check for a 64-bit object if we didn't find anything.
16157 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; }
16158 }'`; fi
16159 else
16160   echo "$as_me: failed program was:" >&5
16161 sed 's/^/| /' conftest.$ac_ext >&5
16162
16163 fi
16164 rm -f conftest.err conftest.$ac_objext \
16165       conftest$ac_exeext conftest.$ac_ext
16166 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16167
16168        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16169         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"
16170        else
16171         if test "$host_cpu" = ia64; then
16172           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16173           allow_undefined_flag_GCJ="-z nodefs"
16174           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"
16175         else
16176          # Determine the default libpath from the value encoded in an empty executable.
16177          cat >conftest.$ac_ext <<_ACEOF
16178 /* confdefs.h.  */
16179 _ACEOF
16180 cat confdefs.h >>conftest.$ac_ext
16181 cat >>conftest.$ac_ext <<_ACEOF
16182 /* end confdefs.h.  */
16183
16184 int
16185 main ()
16186 {
16187
16188   ;
16189   return 0;
16190 }
16191 _ACEOF
16192 rm -f conftest.$ac_objext conftest$ac_exeext
16193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16194   (eval $ac_link) 2>conftest.er1
16195   ac_status=$?
16196   grep -v '^ *+' conftest.er1 >conftest.err
16197   rm -f conftest.er1
16198   cat conftest.err >&5
16199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200   (exit $ac_status); } &&
16201          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16203   (eval $ac_try) 2>&5
16204   ac_status=$?
16205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206   (exit $ac_status); }; } &&
16207          { ac_try='test -s conftest$ac_exeext'
16208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16209   (eval $ac_try) 2>&5
16210   ac_status=$?
16211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212   (exit $ac_status); }; }; then
16213
16214 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16215 }'`
16216 # Check for a 64-bit object if we didn't find anything.
16217 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; }
16218 }'`; fi
16219 else
16220   echo "$as_me: failed program was:" >&5
16221 sed 's/^/| /' conftest.$ac_ext >&5
16222
16223 fi
16224 rm -f conftest.err conftest.$ac_objext \
16225       conftest$ac_exeext conftest.$ac_ext
16226 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16227
16228          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16229           # Warning - without using the other run time loading flags,
16230           # -berok will link without error, but may produce a broken library.
16231           no_undefined_flag_GCJ=' ${wl}-bernotok'
16232           allow_undefined_flag_GCJ=' ${wl}-berok'
16233           # -bexpall does not export symbols beginning with underscore (_)
16234           always_export_symbols_GCJ=yes
16235           # Exported symbols can be pulled into shared objects from archives
16236           whole_archive_flag_spec_GCJ=' '
16237           archive_cmds_need_lc_GCJ=yes
16238           # This is similar to how AIX traditionally builds it's shared libraries.
16239           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'
16240         fi
16241       fi
16242       ;;
16243
16244     amigaos*)
16245       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)'
16246       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16247       hardcode_minus_L_GCJ=yes
16248       # see comment about different semantics on the GNU ld section
16249       ld_shlibs_GCJ=no
16250       ;;
16251
16252     bsdi4*)
16253       export_dynamic_flag_spec_GCJ=-rdynamic
16254       ;;
16255
16256     cygwin* | mingw* | pw32*)
16257       # When not using gcc, we currently assume that we are using
16258       # Microsoft Visual C++.
16259       # hardcode_libdir_flag_spec is actually meaningless, as there is
16260       # no search path for DLLs.
16261       hardcode_libdir_flag_spec_GCJ=' '
16262       allow_undefined_flag_GCJ=unsupported
16263       # Tell ltmain to make .lib files, not .a files.
16264       libext=lib
16265       # Tell ltmain to make .dll files, not .so files.
16266       shrext=".dll"
16267       # FIXME: Setting linknames here is a bad hack.
16268       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16269       # The linker will automatically build a .lib file if we build a DLL.
16270       old_archive_From_new_cmds_GCJ='true'
16271       # FIXME: Should let the user specify the lib program.
16272       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16273       fix_srcfile_path='`cygpath -w "$srcfile"`'
16274       enable_shared_with_static_runtimes_GCJ=yes
16275       ;;
16276
16277     darwin* | rhapsody*)
16278     if test "$GXX" = yes ; then
16279       archive_cmds_need_lc_GCJ=no
16280       case "$host_os" in
16281       rhapsody* | darwin1.[012])
16282         allow_undefined_flag_GCJ='-undefined suppress'
16283         ;;
16284       *) # Darwin 1.3 on
16285       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16286         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16287       else
16288         case ${MACOSX_DEPLOYMENT_TARGET} in
16289           10.[012])
16290             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16291             ;;
16292           10.*)
16293             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16294             ;;
16295         esac
16296       fi
16297         ;;
16298       esac
16299         lt_int_apple_cc_single_mod=no
16300         output_verbose_link_cmd='echo'
16301         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16302           lt_int_apple_cc_single_mod=yes
16303         fi
16304         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16305           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16306         else
16307         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'
16308       fi
16309       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16310       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16311         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16312           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}'
16313         else
16314           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}'
16315         fi
16316           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}'
16317       hardcode_direct_GCJ=no
16318       hardcode_automatic_GCJ=yes
16319       hardcode_shlibpath_var_GCJ=unsupported
16320       whole_archive_flag_spec_GCJ='-all_load $convenience'
16321       link_all_deplibs_GCJ=yes
16322     else
16323       ld_shlibs_GCJ=no
16324     fi
16325       ;;
16326
16327     dgux*)
16328       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16329       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16330       hardcode_shlibpath_var_GCJ=no
16331       ;;
16332
16333     freebsd1*)
16334       ld_shlibs_GCJ=no
16335       ;;
16336
16337     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16338     # support.  Future versions do this automatically, but an explicit c++rt0.o
16339     # does not break anything, and helps significantly (at the cost of a little
16340     # extra space).
16341     freebsd2.2*)
16342       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16343       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16344       hardcode_direct_GCJ=yes
16345       hardcode_shlibpath_var_GCJ=no
16346       ;;
16347
16348     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16349     freebsd2*)
16350       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16351       hardcode_direct_GCJ=yes
16352       hardcode_minus_L_GCJ=yes
16353       hardcode_shlibpath_var_GCJ=no
16354       ;;
16355
16356     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16357     freebsd* | kfreebsd*-gnu)
16358       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16359       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16360       hardcode_direct_GCJ=yes
16361       hardcode_shlibpath_var_GCJ=no
16362       ;;
16363
16364     hpux9*)
16365       if test "$GCC" = yes; then
16366         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'
16367       else
16368         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'
16369       fi
16370       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16371       hardcode_libdir_separator_GCJ=:
16372       hardcode_direct_GCJ=yes
16373
16374       # hardcode_minus_L: Not really in the search PATH,
16375       # but as the default location of the library.
16376       hardcode_minus_L_GCJ=yes
16377       export_dynamic_flag_spec_GCJ='${wl}-E'
16378       ;;
16379
16380     hpux10* | hpux11*)
16381       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16382         case "$host_cpu" in
16383         hppa*64*|ia64*)
16384           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16385           ;;
16386         *)
16387           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16388           ;;
16389         esac
16390       else
16391         case "$host_cpu" in
16392         hppa*64*|ia64*)
16393           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16394           ;;
16395         *)
16396           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16397           ;;
16398         esac
16399       fi
16400       if test "$with_gnu_ld" = no; then
16401         case "$host_cpu" in
16402         hppa*64*)
16403           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16404           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16405           hardcode_libdir_separator_GCJ=:
16406           hardcode_direct_GCJ=no
16407           hardcode_shlibpath_var_GCJ=no
16408           ;;
16409         ia64*)
16410           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16411           hardcode_direct_GCJ=no
16412           hardcode_shlibpath_var_GCJ=no
16413
16414           # hardcode_minus_L: Not really in the search PATH,
16415           # but as the default location of the library.
16416           hardcode_minus_L_GCJ=yes
16417           ;;
16418         *)
16419           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16420           hardcode_libdir_separator_GCJ=:
16421           hardcode_direct_GCJ=yes
16422           export_dynamic_flag_spec_GCJ='${wl}-E'
16423
16424           # hardcode_minus_L: Not really in the search PATH,
16425           # but as the default location of the library.
16426           hardcode_minus_L_GCJ=yes
16427           ;;
16428         esac
16429       fi
16430       ;;
16431
16432     irix5* | irix6* | nonstopux*)
16433       if test "$GCC" = yes; then
16434         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'
16435       else
16436         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'
16437         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16438       fi
16439       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16440       hardcode_libdir_separator_GCJ=:
16441       link_all_deplibs_GCJ=yes
16442       ;;
16443
16444     netbsd*)
16445       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16446         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16447       else
16448         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16449       fi
16450       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16451       hardcode_direct_GCJ=yes
16452       hardcode_shlibpath_var_GCJ=no
16453       ;;
16454
16455     newsos6)
16456       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16457       hardcode_direct_GCJ=yes
16458       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16459       hardcode_libdir_separator_GCJ=:
16460       hardcode_shlibpath_var_GCJ=no
16461       ;;
16462
16463     openbsd*)
16464       hardcode_direct_GCJ=yes
16465       hardcode_shlibpath_var_GCJ=no
16466       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16467         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16468         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16469         export_dynamic_flag_spec_GCJ='${wl}-E'
16470       else
16471        case $host_os in
16472          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16473            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16474            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16475            ;;
16476          *)
16477            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16478            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16479            ;;
16480        esac
16481       fi
16482       ;;
16483
16484     os2*)
16485       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16486       hardcode_minus_L_GCJ=yes
16487       allow_undefined_flag_GCJ=unsupported
16488       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'
16489       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16490       ;;
16491
16492     osf3*)
16493       if test "$GCC" = yes; then
16494         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16495         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'
16496       else
16497         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16498         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'
16499       fi
16500       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16501       hardcode_libdir_separator_GCJ=:
16502       ;;
16503
16504     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16505       if test "$GCC" = yes; then
16506         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16507         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'
16508         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16509       else
16510         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16511         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'
16512         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~
16513         $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'
16514
16515         # Both c and cxx compiler support -rpath directly
16516         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16517       fi
16518       hardcode_libdir_separator_GCJ=:
16519       ;;
16520
16521     sco3.2v5*)
16522       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16523       hardcode_shlibpath_var_GCJ=no
16524       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16525       runpath_var=LD_RUN_PATH
16526       hardcode_runpath_var=yes
16527       ;;
16528
16529     solaris*)
16530       no_undefined_flag_GCJ=' -z text'
16531       if test "$GCC" = yes; then
16532         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16533         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16534           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16535       else
16536         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16537         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16538         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16539       fi
16540       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16541       hardcode_shlibpath_var_GCJ=no
16542       case $host_os in
16543       solaris2.[0-5] | solaris2.[0-5].*) ;;
16544       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16545         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16546       esac
16547       link_all_deplibs_GCJ=yes
16548       ;;
16549
16550     sunos4*)
16551       if test "x$host_vendor" = xsequent; then
16552         # Use $CC to link under sequent, because it throws in some extra .o
16553         # files that make .init and .fini sections work.
16554         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16555       else
16556         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16557       fi
16558       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16559       hardcode_direct_GCJ=yes
16560       hardcode_minus_L_GCJ=yes
16561       hardcode_shlibpath_var_GCJ=no
16562       ;;
16563
16564     sysv4)
16565       case $host_vendor in
16566         sni)
16567           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16568           hardcode_direct_GCJ=yes # is this really true???
16569         ;;
16570         siemens)
16571           ## LD is ld it makes a PLAMLIB
16572           ## CC just makes a GrossModule.
16573           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16574           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16575           hardcode_direct_GCJ=no
16576         ;;
16577         motorola)
16578           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16579           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16580         ;;
16581       esac
16582       runpath_var='LD_RUN_PATH'
16583       hardcode_shlibpath_var_GCJ=no
16584       ;;
16585
16586     sysv4.3*)
16587       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16588       hardcode_shlibpath_var_GCJ=no
16589       export_dynamic_flag_spec_GCJ='-Bexport'
16590       ;;
16591
16592     sysv4*MP*)
16593       if test -d /usr/nec; then
16594         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16595         hardcode_shlibpath_var_GCJ=no
16596         runpath_var=LD_RUN_PATH
16597         hardcode_runpath_var=yes
16598         ld_shlibs_GCJ=yes
16599       fi
16600       ;;
16601
16602     sysv4.2uw2*)
16603       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16604       hardcode_direct_GCJ=yes
16605       hardcode_minus_L_GCJ=no
16606       hardcode_shlibpath_var_GCJ=no
16607       hardcode_runpath_var=yes
16608       runpath_var=LD_RUN_PATH
16609       ;;
16610
16611    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16612       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16613       if test "$GCC" = yes; then
16614         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16615       else
16616         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16617       fi
16618       runpath_var='LD_RUN_PATH'
16619       hardcode_shlibpath_var_GCJ=no
16620       ;;
16621
16622     sysv5*)
16623       no_undefined_flag_GCJ=' -z text'
16624       # $CC -shared without GNU ld will not create a library from C++
16625       # object files and a static libstdc++, better avoid it by now
16626       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16627       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16628                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16629       hardcode_libdir_flag_spec_GCJ=
16630       hardcode_shlibpath_var_GCJ=no
16631       runpath_var='LD_RUN_PATH'
16632       ;;
16633
16634     uts4*)
16635       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16636       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16637       hardcode_shlibpath_var_GCJ=no
16638       ;;
16639
16640     *)
16641       ld_shlibs_GCJ=no
16642       ;;
16643     esac
16644   fi
16645
16646 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16647 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16648 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16649
16650 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16651 if test "$GCC" = yes; then
16652   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16653 fi
16654
16655 #
16656 # Do we need to explicitly link libc?
16657 #
16658 case "x$archive_cmds_need_lc_GCJ" in
16659 x|xyes)
16660   # Assume -lc should be added
16661   archive_cmds_need_lc_GCJ=yes
16662
16663   if test "$enable_shared" = yes && test "$GCC" = yes; then
16664     case $archive_cmds_GCJ in
16665     *'~'*)
16666       # FIXME: we may have to deal with multi-command sequences.
16667       ;;
16668     '$CC '*)
16669       # Test whether the compiler implicitly links with -lc since on some
16670       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16671       # to ld, don't add -lc before -lgcc.
16672       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16673 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16674       $rm conftest*
16675       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16676
16677       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16678   (eval $ac_compile) 2>&5
16679   ac_status=$?
16680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681   (exit $ac_status); } 2>conftest.err; then
16682         soname=conftest
16683         lib=conftest
16684         libobjs=conftest.$ac_objext
16685         deplibs=
16686         wl=$lt_prog_compiler_wl_GCJ
16687         compiler_flags=-v
16688         linker_flags=-v
16689         verstring=
16690         output_objdir=.
16691         libname=conftest
16692         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16693         allow_undefined_flag_GCJ=
16694         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16695   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16696   ac_status=$?
16697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698   (exit $ac_status); }
16699         then
16700           archive_cmds_need_lc_GCJ=no
16701         else
16702           archive_cmds_need_lc_GCJ=yes
16703         fi
16704         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16705       else
16706         cat conftest.err 1>&5
16707       fi
16708       $rm conftest*
16709       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16710 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16711       ;;
16712     esac
16713   fi
16714   ;;
16715 esac
16716
16717 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16718 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16719 library_names_spec=
16720 libname_spec='lib$name'
16721 soname_spec=
16722 shrext=".so"
16723 postinstall_cmds=
16724 postuninstall_cmds=
16725 finish_cmds=
16726 finish_eval=
16727 shlibpath_var=
16728 shlibpath_overrides_runpath=unknown
16729 version_type=none
16730 dynamic_linker="$host_os ld.so"
16731 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16732 if test "$GCC" = yes; then
16733   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16734   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16735     # if the path contains ";" then we assume it to be the separator
16736     # otherwise default to the standard path separator (i.e. ":") - it is
16737     # assumed that no part of a normal pathname contains ";" but that should
16738     # okay in the real world where ";" in dirpaths is itself problematic.
16739     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16740   else
16741     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16742   fi
16743 else
16744   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16745 fi
16746 need_lib_prefix=unknown
16747 hardcode_into_libs=no
16748
16749 # when you set need_version to no, make sure it does not cause -set_version
16750 # flags to be left without arguments
16751 need_version=unknown
16752
16753 case $host_os in
16754 aix3*)
16755   version_type=linux
16756   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16757   shlibpath_var=LIBPATH
16758
16759   # AIX 3 has no versioning support, so we append a major version to the name.
16760   soname_spec='${libname}${release}${shared_ext}$major'
16761   ;;
16762
16763 aix4* | aix5*)
16764   version_type=linux
16765   need_lib_prefix=no
16766   need_version=no
16767   hardcode_into_libs=yes
16768   if test "$host_cpu" = ia64; then
16769     # AIX 5 supports IA64
16770     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16771     shlibpath_var=LD_LIBRARY_PATH
16772   else
16773     # With GCC up to 2.95.x, collect2 would create an import file
16774     # for dependence libraries.  The import file would start with
16775     # the line `#! .'.  This would cause the generated library to
16776     # depend on `.', always an invalid library.  This was fixed in
16777     # development snapshots of GCC prior to 3.0.
16778     case $host_os in
16779       aix4 | aix4.[01] | aix4.[01].*)
16780       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16781            echo ' yes '
16782            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16783         :
16784       else
16785         can_build_shared=no
16786       fi
16787       ;;
16788     esac
16789     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16790     # soname into executable. Probably we can add versioning support to
16791     # collect2, so additional links can be useful in future.
16792     if test "$aix_use_runtimelinking" = yes; then
16793       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16794       # instead of lib<name>.a to let people know that these are not
16795       # typical AIX shared libraries.
16796       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16797     else
16798       # We preserve .a as extension for shared libraries through AIX4.2
16799       # and later when we are not doing run time linking.
16800       library_names_spec='${libname}${release}.a $libname.a'
16801       soname_spec='${libname}${release}${shared_ext}$major'
16802     fi
16803     shlibpath_var=LIBPATH
16804   fi
16805   ;;
16806
16807 amigaos*)
16808   library_names_spec='$libname.ixlibrary $libname.a'
16809   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16810   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'
16811   ;;
16812
16813 beos*)
16814   library_names_spec='${libname}${shared_ext}'
16815   dynamic_linker="$host_os ld.so"
16816   shlibpath_var=LIBRARY_PATH
16817   ;;
16818
16819 bsdi4*)
16820   version_type=linux
16821   need_version=no
16822   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16823   soname_spec='${libname}${release}${shared_ext}$major'
16824   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16825   shlibpath_var=LD_LIBRARY_PATH
16826   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16827   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16828   # the default ld.so.conf also contains /usr/contrib/lib and
16829   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16830   # libtool to hard-code these into programs
16831   ;;
16832
16833 cygwin* | mingw* | pw32*)
16834   version_type=windows
16835   shrext=".dll"
16836   need_version=no
16837   need_lib_prefix=no
16838
16839   case $GCC,$host_os in
16840   yes,cygwin* | yes,mingw* | yes,pw32*)
16841     library_names_spec='$libname.dll.a'
16842     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16843     postinstall_cmds='base_file=`basename \${file}`~
16844       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16845       dldir=$destdir/`dirname \$dlpath`~
16846       test -d \$dldir || mkdir -p \$dldir~
16847       $install_prog $dir/$dlname \$dldir/$dlname'
16848     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16849       dlpath=$dir/\$dldll~
16850        $rm \$dlpath'
16851     shlibpath_overrides_runpath=yes
16852
16853     case $host_os in
16854     cygwin*)
16855       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16856       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16857       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16858       ;;
16859     mingw*)
16860       # MinGW DLLs use traditional 'lib' prefix
16861       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16862       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16863       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16864         # It is most probably a Windows format PATH printed by
16865         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16866         # path with ; separators, and with drive letters. We can handle the
16867         # drive letters (cygwin fileutils understands them), so leave them,
16868         # especially as we might pass files found there to a mingw objdump,
16869         # which wouldn't understand a cygwinified path. Ahh.
16870         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16871       else
16872         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16873       fi
16874       ;;
16875     pw32*)
16876       # pw32 DLLs use 'pw' prefix rather than 'lib'
16877       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16878       ;;
16879     esac
16880     ;;
16881
16882   *)
16883     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16884     ;;
16885   esac
16886   dynamic_linker='Win32 ld.exe'
16887   # FIXME: first we should search . and the directory the executable is in
16888   shlibpath_var=PATH
16889   ;;
16890
16891 darwin* | rhapsody*)
16892   dynamic_linker="$host_os dyld"
16893   version_type=darwin
16894   need_lib_prefix=no
16895   need_version=no
16896   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16897   soname_spec='${libname}${release}${major}$shared_ext'
16898   shlibpath_overrides_runpath=yes
16899   shlibpath_var=DYLD_LIBRARY_PATH
16900   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16901   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16902   if test "$GCC" = yes; then
16903     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"`
16904   else
16905     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16906   fi
16907   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16908   ;;
16909
16910 dgux*)
16911   version_type=linux
16912   need_lib_prefix=no
16913   need_version=no
16914   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16915   soname_spec='${libname}${release}${shared_ext}$major'
16916   shlibpath_var=LD_LIBRARY_PATH
16917   ;;
16918
16919 freebsd1*)
16920   dynamic_linker=no
16921   ;;
16922
16923 kfreebsd*-gnu)
16924   version_type=linux
16925   need_lib_prefix=no
16926   need_version=no
16927   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16928   soname_spec='${libname}${release}${shared_ext}$major'
16929   shlibpath_var=LD_LIBRARY_PATH
16930   shlibpath_overrides_runpath=no
16931   hardcode_into_libs=yes
16932   dynamic_linker='GNU ld.so'
16933   ;;
16934
16935 freebsd*)
16936   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16937   version_type=freebsd-$objformat
16938   case $version_type in
16939     freebsd-elf*)
16940       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16941       need_version=no
16942       need_lib_prefix=no
16943       ;;
16944     freebsd-*)
16945       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16946       need_version=yes
16947       ;;
16948   esac
16949   shlibpath_var=LD_LIBRARY_PATH
16950   case $host_os in
16951   freebsd2*)
16952     shlibpath_overrides_runpath=yes
16953     ;;
16954   freebsd3.01* | freebsdelf3.01*)
16955     shlibpath_overrides_runpath=yes
16956     hardcode_into_libs=yes
16957     ;;
16958   *) # from 3.2 on
16959     shlibpath_overrides_runpath=no
16960     hardcode_into_libs=yes
16961     ;;
16962   esac
16963   ;;
16964
16965 gnu*)
16966   version_type=linux
16967   need_lib_prefix=no
16968   need_version=no
16969   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16970   soname_spec='${libname}${release}${shared_ext}$major'
16971   shlibpath_var=LD_LIBRARY_PATH
16972   hardcode_into_libs=yes
16973   ;;
16974
16975 hpux9* | hpux10* | hpux11*)
16976   # Give a soname corresponding to the major version so that dld.sl refuses to
16977   # link against other versions.
16978   version_type=sunos
16979   need_lib_prefix=no
16980   need_version=no
16981   case "$host_cpu" in
16982   ia64*)
16983     shrext='.so'
16984     hardcode_into_libs=yes
16985     dynamic_linker="$host_os dld.so"
16986     shlibpath_var=LD_LIBRARY_PATH
16987     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16988     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16989     soname_spec='${libname}${release}${shared_ext}$major'
16990     if test "X$HPUX_IA64_MODE" = X32; then
16991       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16992     else
16993       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16994     fi
16995     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16996     ;;
16997    hppa*64*)
16998      shrext='.sl'
16999      hardcode_into_libs=yes
17000      dynamic_linker="$host_os dld.sl"
17001      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17002      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17003      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17004      soname_spec='${libname}${release}${shared_ext}$major'
17005      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17006      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17007      ;;
17008    *)
17009     shrext='.sl'
17010     dynamic_linker="$host_os dld.sl"
17011     shlibpath_var=SHLIB_PATH
17012     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17013     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17014     soname_spec='${libname}${release}${shared_ext}$major'
17015     ;;
17016   esac
17017   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17018   postinstall_cmds='chmod 555 $lib'
17019   ;;
17020
17021 irix5* | irix6* | nonstopux*)
17022   case $host_os in
17023     nonstopux*) version_type=nonstopux ;;
17024     *)
17025         if test "$lt_cv_prog_gnu_ld" = yes; then
17026                 version_type=linux
17027         else
17028                 version_type=irix
17029         fi ;;
17030   esac
17031   need_lib_prefix=no
17032   need_version=no
17033   soname_spec='${libname}${release}${shared_ext}$major'
17034   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17035   case $host_os in
17036   irix5* | nonstopux*)
17037     libsuff= shlibsuff=
17038     ;;
17039   *)
17040     case $LD in # libtool.m4 will add one of these switches to LD
17041     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17042       libsuff= shlibsuff= libmagic=32-bit;;
17043     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17044       libsuff=32 shlibsuff=N32 libmagic=N32;;
17045     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17046       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17047     *) libsuff= shlibsuff= libmagic=never-match;;
17048     esac
17049     ;;
17050   esac
17051   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17052   shlibpath_overrides_runpath=no
17053   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17054   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17055   hardcode_into_libs=yes
17056   ;;
17057
17058 # No shared lib support for Linux oldld, aout, or coff.
17059 linux*oldld* | linux*aout* | linux*coff*)
17060   dynamic_linker=no
17061   ;;
17062
17063 # This must be Linux ELF.
17064 linux*)
17065   version_type=linux
17066   need_lib_prefix=no
17067   need_version=no
17068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17069   soname_spec='${libname}${release}${shared_ext}$major'
17070   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17071   shlibpath_var=LD_LIBRARY_PATH
17072   shlibpath_overrides_runpath=no
17073   # This implies no fast_install, which is unacceptable.
17074   # Some rework will be needed to allow for fast_install
17075   # before this can be enabled.
17076   hardcode_into_libs=yes
17077
17078   # Append ld.so.conf contents to the search path
17079   if test -f /etc/ld.so.conf; then
17080     ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
17081     sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
17082   fi
17083
17084   # We used to test for /lib/ld.so.1 and disable shared libraries on
17085   # powerpc, because MkLinux only supported shared libraries with the
17086   # GNU dynamic linker.  Since this was broken with cross compilers,
17087   # most powerpc-linux boxes support dynamic linking these days and
17088   # people can always --disable-shared, the test was removed, and we
17089   # assume the GNU/Linux dynamic linker is in use.
17090   dynamic_linker='GNU/Linux ld.so'
17091   ;;
17092
17093 knetbsd*-gnu)
17094   version_type=linux
17095   need_lib_prefix=no
17096   need_version=no
17097   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17098   soname_spec='${libname}${release}${shared_ext}$major'
17099   shlibpath_var=LD_LIBRARY_PATH
17100   shlibpath_overrides_runpath=no
17101   hardcode_into_libs=yes
17102   dynamic_linker='GNU ld.so'
17103   ;;
17104
17105 netbsd*)
17106   version_type=sunos
17107   need_lib_prefix=no
17108   need_version=no
17109   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17110     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17111     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17112     dynamic_linker='NetBSD (a.out) ld.so'
17113   else
17114     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
17115     soname_spec='${libname}${release}${shared_ext}$major'
17116     dynamic_linker='NetBSD ld.elf_so'
17117   fi
17118   shlibpath_var=LD_LIBRARY_PATH
17119   shlibpath_overrides_runpath=yes
17120   hardcode_into_libs=yes
17121   ;;
17122
17123 newsos6)
17124   version_type=linux
17125   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17126   shlibpath_var=LD_LIBRARY_PATH
17127   shlibpath_overrides_runpath=yes
17128   ;;
17129
17130 nto-qnx*)
17131   version_type=linux
17132   need_lib_prefix=no
17133   need_version=no
17134   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17135   soname_spec='${libname}${release}${shared_ext}$major'
17136   shlibpath_var=LD_LIBRARY_PATH
17137   shlibpath_overrides_runpath=yes
17138   ;;
17139
17140 openbsd*)
17141   version_type=sunos
17142   need_lib_prefix=no
17143   need_version=yes
17144   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17145   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17146   shlibpath_var=LD_LIBRARY_PATH
17147   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17148     case $host_os in
17149       openbsd2.[89] | openbsd2.[89].*)
17150         shlibpath_overrides_runpath=no
17151         ;;
17152       *)
17153         shlibpath_overrides_runpath=yes
17154         ;;
17155       esac
17156   else
17157     shlibpath_overrides_runpath=yes
17158   fi
17159   ;;
17160
17161 os2*)
17162   libname_spec='$name'
17163   shrext=".dll"
17164   need_lib_prefix=no
17165   library_names_spec='$libname${shared_ext} $libname.a'
17166   dynamic_linker='OS/2 ld.exe'
17167   shlibpath_var=LIBPATH
17168   ;;
17169
17170 osf3* | osf4* | osf5*)
17171   version_type=osf
17172   need_lib_prefix=no
17173   need_version=no
17174   soname_spec='${libname}${release}${shared_ext}$major'
17175   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17176   shlibpath_var=LD_LIBRARY_PATH
17177   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17178   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17179   ;;
17180
17181 sco3.2v5*)
17182   version_type=osf
17183   soname_spec='${libname}${release}${shared_ext}$major'
17184   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17185   shlibpath_var=LD_LIBRARY_PATH
17186   ;;
17187
17188 solaris*)
17189   version_type=linux
17190   need_lib_prefix=no
17191   need_version=no
17192   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17193   soname_spec='${libname}${release}${shared_ext}$major'
17194   shlibpath_var=LD_LIBRARY_PATH
17195   shlibpath_overrides_runpath=yes
17196   hardcode_into_libs=yes
17197   # ldd complains unless libraries are executable
17198   postinstall_cmds='chmod +x $lib'
17199   ;;
17200
17201 sunos4*)
17202   version_type=sunos
17203   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17204   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17205   shlibpath_var=LD_LIBRARY_PATH
17206   shlibpath_overrides_runpath=yes
17207   if test "$with_gnu_ld" = yes; then
17208     need_lib_prefix=no
17209   fi
17210   need_version=yes
17211   ;;
17212
17213 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17214   version_type=linux
17215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17216   soname_spec='${libname}${release}${shared_ext}$major'
17217   shlibpath_var=LD_LIBRARY_PATH
17218   case $host_vendor in
17219     sni)
17220       shlibpath_overrides_runpath=no
17221       need_lib_prefix=no
17222       export_dynamic_flag_spec='${wl}-Blargedynsym'
17223       runpath_var=LD_RUN_PATH
17224       ;;
17225     siemens)
17226       need_lib_prefix=no
17227       ;;
17228     motorola)
17229       need_lib_prefix=no
17230       need_version=no
17231       shlibpath_overrides_runpath=no
17232       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17233       ;;
17234   esac
17235   ;;
17236
17237 sysv4*MP*)
17238   if test -d /usr/nec ;then
17239     version_type=linux
17240     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17241     soname_spec='$libname${shared_ext}.$major'
17242     shlibpath_var=LD_LIBRARY_PATH
17243   fi
17244   ;;
17245
17246 uts4*)
17247   version_type=linux
17248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17249   soname_spec='${libname}${release}${shared_ext}$major'
17250   shlibpath_var=LD_LIBRARY_PATH
17251   ;;
17252
17253 *)
17254   dynamic_linker=no
17255   ;;
17256 esac
17257 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17258 echo "${ECHO_T}$dynamic_linker" >&6
17259 test "$dynamic_linker" = no && can_build_shared=no
17260
17261 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17262 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17263 hardcode_action_GCJ=
17264 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17265    test -n "$runpath_var GCJ" || \
17266    test "X$hardcode_automatic_GCJ"="Xyes" ; then
17267
17268   # We can hardcode non-existant directories.
17269   if test "$hardcode_direct_GCJ" != no &&
17270      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17271      # have to relink, otherwise we might link with an installed library
17272      # when we should be linking with a yet-to-be-installed one
17273      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17274      test "$hardcode_minus_L_GCJ" != no; then
17275     # Linking always hardcodes the temporary library directory.
17276     hardcode_action_GCJ=relink
17277   else
17278     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17279     hardcode_action_GCJ=immediate
17280   fi
17281 else
17282   # We cannot hardcode anything, or else we can only hardcode existing
17283   # directories.
17284   hardcode_action_GCJ=unsupported
17285 fi
17286 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17287 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17288
17289 if test "$hardcode_action_GCJ" = relink; then
17290   # Fast installation is not supported
17291   enable_fast_install=no
17292 elif test "$shlibpath_overrides_runpath" = yes ||
17293      test "$enable_shared" = no; then
17294   # Fast installation is not necessary
17295   enable_fast_install=needless
17296 fi
17297
17298 striplib=
17299 old_striplib=
17300 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17301 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17302 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17303   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17304   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17305   echo "$as_me:$LINENO: result: yes" >&5
17306 echo "${ECHO_T}yes" >&6
17307 else
17308 # FIXME - insert some real tests, host_os isn't really good enough
17309   case $host_os in
17310    darwin*)
17311        if test -n "$STRIP" ; then
17312          striplib="$STRIP -x"
17313          echo "$as_me:$LINENO: result: yes" >&5
17314 echo "${ECHO_T}yes" >&6
17315        else
17316   echo "$as_me:$LINENO: result: no" >&5
17317 echo "${ECHO_T}no" >&6
17318 fi
17319        ;;
17320    *)
17321   echo "$as_me:$LINENO: result: no" >&5
17322 echo "${ECHO_T}no" >&6
17323     ;;
17324   esac
17325 fi
17326
17327 if test "x$enable_dlopen" != xyes; then
17328   enable_dlopen=unknown
17329   enable_dlopen_self=unknown
17330   enable_dlopen_self_static=unknown
17331 else
17332   lt_cv_dlopen=no
17333   lt_cv_dlopen_libs=
17334
17335   case $host_os in
17336   beos*)
17337     lt_cv_dlopen="load_add_on"
17338     lt_cv_dlopen_libs=
17339     lt_cv_dlopen_self=yes
17340     ;;
17341
17342   mingw* | pw32*)
17343     lt_cv_dlopen="LoadLibrary"
17344     lt_cv_dlopen_libs=
17345    ;;
17346
17347   cygwin*)
17348     lt_cv_dlopen="dlopen"
17349     lt_cv_dlopen_libs=
17350    ;;
17351
17352   darwin*)
17353   # if libdl is installed we need to link against it
17354     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17355 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17356 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17357   echo $ECHO_N "(cached) $ECHO_C" >&6
17358 else
17359   ac_check_lib_save_LIBS=$LIBS
17360 LIBS="-ldl  $LIBS"
17361 cat >conftest.$ac_ext <<_ACEOF
17362 /* confdefs.h.  */
17363 _ACEOF
17364 cat confdefs.h >>conftest.$ac_ext
17365 cat >>conftest.$ac_ext <<_ACEOF
17366 /* end confdefs.h.  */
17367
17368 /* Override any gcc2 internal prototype to avoid an error.  */
17369 #ifdef __cplusplus
17370 extern "C"
17371 #endif
17372 /* We use char because int might match the return type of a gcc2
17373    builtin and then its argument prototype would still apply.  */
17374 char dlopen ();
17375 int
17376 main ()
17377 {
17378 dlopen ();
17379   ;
17380   return 0;
17381 }
17382 _ACEOF
17383 rm -f conftest.$ac_objext conftest$ac_exeext
17384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17385   (eval $ac_link) 2>conftest.er1
17386   ac_status=$?
17387   grep -v '^ *+' conftest.er1 >conftest.err
17388   rm -f conftest.er1
17389   cat conftest.err >&5
17390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391   (exit $ac_status); } &&
17392          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17394   (eval $ac_try) 2>&5
17395   ac_status=$?
17396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397   (exit $ac_status); }; } &&
17398          { ac_try='test -s conftest$ac_exeext'
17399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17400   (eval $ac_try) 2>&5
17401   ac_status=$?
17402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403   (exit $ac_status); }; }; then
17404   ac_cv_lib_dl_dlopen=yes
17405 else
17406   echo "$as_me: failed program was:" >&5
17407 sed 's/^/| /' conftest.$ac_ext >&5
17408
17409 ac_cv_lib_dl_dlopen=no
17410 fi
17411 rm -f conftest.err conftest.$ac_objext \
17412       conftest$ac_exeext conftest.$ac_ext
17413 LIBS=$ac_check_lib_save_LIBS
17414 fi
17415 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17416 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17417 if test $ac_cv_lib_dl_dlopen = yes; then
17418   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17419 else
17420
17421     lt_cv_dlopen="dyld"
17422     lt_cv_dlopen_libs=
17423     lt_cv_dlopen_self=yes
17424
17425 fi
17426
17427    ;;
17428
17429   *)
17430     echo "$as_me:$LINENO: checking for shl_load" >&5
17431 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17432 if test "${ac_cv_func_shl_load+set}" = set; then
17433   echo $ECHO_N "(cached) $ECHO_C" >&6
17434 else
17435   cat >conftest.$ac_ext <<_ACEOF
17436 /* confdefs.h.  */
17437 _ACEOF
17438 cat confdefs.h >>conftest.$ac_ext
17439 cat >>conftest.$ac_ext <<_ACEOF
17440 /* end confdefs.h.  */
17441 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17442    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17443 #define shl_load innocuous_shl_load
17444
17445 /* System header to define __stub macros and hopefully few prototypes,
17446     which can conflict with char shl_load (); below.
17447     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17448     <limits.h> exists even on freestanding compilers.  */
17449
17450 #ifdef __STDC__
17451 # include <limits.h>
17452 #else
17453 # include <assert.h>
17454 #endif
17455
17456 #undef shl_load
17457
17458 /* Override any gcc2 internal prototype to avoid an error.  */
17459 #ifdef __cplusplus
17460 extern "C"
17461 {
17462 #endif
17463 /* We use char because int might match the return type of a gcc2
17464    builtin and then its argument prototype would still apply.  */
17465 char shl_load ();
17466 /* The GNU C library defines this for functions which it implements
17467     to always fail with ENOSYS.  Some functions are actually named
17468     something starting with __ and the normal name is an alias.  */
17469 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17470 choke me
17471 #else
17472 char (*f) () = shl_load;
17473 #endif
17474 #ifdef __cplusplus
17475 }
17476 #endif
17477
17478 int
17479 main ()
17480 {
17481 return f != shl_load;
17482   ;
17483   return 0;
17484 }
17485 _ACEOF
17486 rm -f conftest.$ac_objext conftest$ac_exeext
17487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17488   (eval $ac_link) 2>conftest.er1
17489   ac_status=$?
17490   grep -v '^ *+' conftest.er1 >conftest.err
17491   rm -f conftest.er1
17492   cat conftest.err >&5
17493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494   (exit $ac_status); } &&
17495          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17497   (eval $ac_try) 2>&5
17498   ac_status=$?
17499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500   (exit $ac_status); }; } &&
17501          { ac_try='test -s conftest$ac_exeext'
17502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17503   (eval $ac_try) 2>&5
17504   ac_status=$?
17505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506   (exit $ac_status); }; }; then
17507   ac_cv_func_shl_load=yes
17508 else
17509   echo "$as_me: failed program was:" >&5
17510 sed 's/^/| /' conftest.$ac_ext >&5
17511
17512 ac_cv_func_shl_load=no
17513 fi
17514 rm -f conftest.err conftest.$ac_objext \
17515       conftest$ac_exeext conftest.$ac_ext
17516 fi
17517 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17518 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17519 if test $ac_cv_func_shl_load = yes; then
17520   lt_cv_dlopen="shl_load"
17521 else
17522   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17523 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17524 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17525   echo $ECHO_N "(cached) $ECHO_C" >&6
17526 else
17527   ac_check_lib_save_LIBS=$LIBS
17528 LIBS="-ldld  $LIBS"
17529 cat >conftest.$ac_ext <<_ACEOF
17530 /* confdefs.h.  */
17531 _ACEOF
17532 cat confdefs.h >>conftest.$ac_ext
17533 cat >>conftest.$ac_ext <<_ACEOF
17534 /* end confdefs.h.  */
17535
17536 /* Override any gcc2 internal prototype to avoid an error.  */
17537 #ifdef __cplusplus
17538 extern "C"
17539 #endif
17540 /* We use char because int might match the return type of a gcc2
17541    builtin and then its argument prototype would still apply.  */
17542 char shl_load ();
17543 int
17544 main ()
17545 {
17546 shl_load ();
17547   ;
17548   return 0;
17549 }
17550 _ACEOF
17551 rm -f conftest.$ac_objext conftest$ac_exeext
17552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17553   (eval $ac_link) 2>conftest.er1
17554   ac_status=$?
17555   grep -v '^ *+' conftest.er1 >conftest.err
17556   rm -f conftest.er1
17557   cat conftest.err >&5
17558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559   (exit $ac_status); } &&
17560          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17562   (eval $ac_try) 2>&5
17563   ac_status=$?
17564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565   (exit $ac_status); }; } &&
17566          { ac_try='test -s conftest$ac_exeext'
17567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17568   (eval $ac_try) 2>&5
17569   ac_status=$?
17570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571   (exit $ac_status); }; }; then
17572   ac_cv_lib_dld_shl_load=yes
17573 else
17574   echo "$as_me: failed program was:" >&5
17575 sed 's/^/| /' conftest.$ac_ext >&5
17576
17577 ac_cv_lib_dld_shl_load=no
17578 fi
17579 rm -f conftest.err conftest.$ac_objext \
17580       conftest$ac_exeext conftest.$ac_ext
17581 LIBS=$ac_check_lib_save_LIBS
17582 fi
17583 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17584 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17585 if test $ac_cv_lib_dld_shl_load = yes; then
17586   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17587 else
17588   echo "$as_me:$LINENO: checking for dlopen" >&5
17589 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17590 if test "${ac_cv_func_dlopen+set}" = set; then
17591   echo $ECHO_N "(cached) $ECHO_C" >&6
17592 else
17593   cat >conftest.$ac_ext <<_ACEOF
17594 /* confdefs.h.  */
17595 _ACEOF
17596 cat confdefs.h >>conftest.$ac_ext
17597 cat >>conftest.$ac_ext <<_ACEOF
17598 /* end confdefs.h.  */
17599 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17600    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17601 #define dlopen innocuous_dlopen
17602
17603 /* System header to define __stub macros and hopefully few prototypes,
17604     which can conflict with char dlopen (); below.
17605     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17606     <limits.h> exists even on freestanding compilers.  */
17607
17608 #ifdef __STDC__
17609 # include <limits.h>
17610 #else
17611 # include <assert.h>
17612 #endif
17613
17614 #undef dlopen
17615
17616 /* Override any gcc2 internal prototype to avoid an error.  */
17617 #ifdef __cplusplus
17618 extern "C"
17619 {
17620 #endif
17621 /* We use char because int might match the return type of a gcc2
17622    builtin and then its argument prototype would still apply.  */
17623 char dlopen ();
17624 /* The GNU C library defines this for functions which it implements
17625     to always fail with ENOSYS.  Some functions are actually named
17626     something starting with __ and the normal name is an alias.  */
17627 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17628 choke me
17629 #else
17630 char (*f) () = dlopen;
17631 #endif
17632 #ifdef __cplusplus
17633 }
17634 #endif
17635
17636 int
17637 main ()
17638 {
17639 return f != dlopen;
17640   ;
17641   return 0;
17642 }
17643 _ACEOF
17644 rm -f conftest.$ac_objext conftest$ac_exeext
17645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17646   (eval $ac_link) 2>conftest.er1
17647   ac_status=$?
17648   grep -v '^ *+' conftest.er1 >conftest.err
17649   rm -f conftest.er1
17650   cat conftest.err >&5
17651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652   (exit $ac_status); } &&
17653          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17655   (eval $ac_try) 2>&5
17656   ac_status=$?
17657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658   (exit $ac_status); }; } &&
17659          { ac_try='test -s conftest$ac_exeext'
17660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17661   (eval $ac_try) 2>&5
17662   ac_status=$?
17663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664   (exit $ac_status); }; }; then
17665   ac_cv_func_dlopen=yes
17666 else
17667   echo "$as_me: failed program was:" >&5
17668 sed 's/^/| /' conftest.$ac_ext >&5
17669
17670 ac_cv_func_dlopen=no
17671 fi
17672 rm -f conftest.err conftest.$ac_objext \
17673       conftest$ac_exeext conftest.$ac_ext
17674 fi
17675 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17676 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17677 if test $ac_cv_func_dlopen = yes; then
17678   lt_cv_dlopen="dlopen"
17679 else
17680   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17681 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17682 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17683   echo $ECHO_N "(cached) $ECHO_C" >&6
17684 else
17685   ac_check_lib_save_LIBS=$LIBS
17686 LIBS="-ldl  $LIBS"
17687 cat >conftest.$ac_ext <<_ACEOF
17688 /* confdefs.h.  */
17689 _ACEOF
17690 cat confdefs.h >>conftest.$ac_ext
17691 cat >>conftest.$ac_ext <<_ACEOF
17692 /* end confdefs.h.  */
17693
17694 /* Override any gcc2 internal prototype to avoid an error.  */
17695 #ifdef __cplusplus
17696 extern "C"
17697 #endif
17698 /* We use char because int might match the return type of a gcc2
17699    builtin and then its argument prototype would still apply.  */
17700 char dlopen ();
17701 int
17702 main ()
17703 {
17704 dlopen ();
17705   ;
17706   return 0;
17707 }
17708 _ACEOF
17709 rm -f conftest.$ac_objext conftest$ac_exeext
17710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17711   (eval $ac_link) 2>conftest.er1
17712   ac_status=$?
17713   grep -v '^ *+' conftest.er1 >conftest.err
17714   rm -f conftest.er1
17715   cat conftest.err >&5
17716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17717   (exit $ac_status); } &&
17718          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17720   (eval $ac_try) 2>&5
17721   ac_status=$?
17722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723   (exit $ac_status); }; } &&
17724          { ac_try='test -s conftest$ac_exeext'
17725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17726   (eval $ac_try) 2>&5
17727   ac_status=$?
17728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17729   (exit $ac_status); }; }; then
17730   ac_cv_lib_dl_dlopen=yes
17731 else
17732   echo "$as_me: failed program was:" >&5
17733 sed 's/^/| /' conftest.$ac_ext >&5
17734
17735 ac_cv_lib_dl_dlopen=no
17736 fi
17737 rm -f conftest.err conftest.$ac_objext \
17738       conftest$ac_exeext conftest.$ac_ext
17739 LIBS=$ac_check_lib_save_LIBS
17740 fi
17741 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17742 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17743 if test $ac_cv_lib_dl_dlopen = yes; then
17744   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17745 else
17746   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17747 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17748 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17749   echo $ECHO_N "(cached) $ECHO_C" >&6
17750 else
17751   ac_check_lib_save_LIBS=$LIBS
17752 LIBS="-lsvld  $LIBS"
17753 cat >conftest.$ac_ext <<_ACEOF
17754 /* confdefs.h.  */
17755 _ACEOF
17756 cat confdefs.h >>conftest.$ac_ext
17757 cat >>conftest.$ac_ext <<_ACEOF
17758 /* end confdefs.h.  */
17759
17760 /* Override any gcc2 internal prototype to avoid an error.  */
17761 #ifdef __cplusplus
17762 extern "C"
17763 #endif
17764 /* We use char because int might match the return type of a gcc2
17765    builtin and then its argument prototype would still apply.  */
17766 char dlopen ();
17767 int
17768 main ()
17769 {
17770 dlopen ();
17771   ;
17772   return 0;
17773 }
17774 _ACEOF
17775 rm -f conftest.$ac_objext conftest$ac_exeext
17776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17777   (eval $ac_link) 2>conftest.er1
17778   ac_status=$?
17779   grep -v '^ *+' conftest.er1 >conftest.err
17780   rm -f conftest.er1
17781   cat conftest.err >&5
17782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783   (exit $ac_status); } &&
17784          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17786   (eval $ac_try) 2>&5
17787   ac_status=$?
17788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789   (exit $ac_status); }; } &&
17790          { ac_try='test -s conftest$ac_exeext'
17791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17792   (eval $ac_try) 2>&5
17793   ac_status=$?
17794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795   (exit $ac_status); }; }; then
17796   ac_cv_lib_svld_dlopen=yes
17797 else
17798   echo "$as_me: failed program was:" >&5
17799 sed 's/^/| /' conftest.$ac_ext >&5
17800
17801 ac_cv_lib_svld_dlopen=no
17802 fi
17803 rm -f conftest.err conftest.$ac_objext \
17804       conftest$ac_exeext conftest.$ac_ext
17805 LIBS=$ac_check_lib_save_LIBS
17806 fi
17807 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17808 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17809 if test $ac_cv_lib_svld_dlopen = yes; then
17810   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17811 else
17812   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17813 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17814 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17815   echo $ECHO_N "(cached) $ECHO_C" >&6
17816 else
17817   ac_check_lib_save_LIBS=$LIBS
17818 LIBS="-ldld  $LIBS"
17819 cat >conftest.$ac_ext <<_ACEOF
17820 /* confdefs.h.  */
17821 _ACEOF
17822 cat confdefs.h >>conftest.$ac_ext
17823 cat >>conftest.$ac_ext <<_ACEOF
17824 /* end confdefs.h.  */
17825
17826 /* Override any gcc2 internal prototype to avoid an error.  */
17827 #ifdef __cplusplus
17828 extern "C"
17829 #endif
17830 /* We use char because int might match the return type of a gcc2
17831    builtin and then its argument prototype would still apply.  */
17832 char dld_link ();
17833 int
17834 main ()
17835 {
17836 dld_link ();
17837   ;
17838   return 0;
17839 }
17840 _ACEOF
17841 rm -f conftest.$ac_objext conftest$ac_exeext
17842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17843   (eval $ac_link) 2>conftest.er1
17844   ac_status=$?
17845   grep -v '^ *+' conftest.er1 >conftest.err
17846   rm -f conftest.er1
17847   cat conftest.err >&5
17848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849   (exit $ac_status); } &&
17850          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17852   (eval $ac_try) 2>&5
17853   ac_status=$?
17854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855   (exit $ac_status); }; } &&
17856          { ac_try='test -s conftest$ac_exeext'
17857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17858   (eval $ac_try) 2>&5
17859   ac_status=$?
17860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861   (exit $ac_status); }; }; then
17862   ac_cv_lib_dld_dld_link=yes
17863 else
17864   echo "$as_me: failed program was:" >&5
17865 sed 's/^/| /' conftest.$ac_ext >&5
17866
17867 ac_cv_lib_dld_dld_link=no
17868 fi
17869 rm -f conftest.err conftest.$ac_objext \
17870       conftest$ac_exeext conftest.$ac_ext
17871 LIBS=$ac_check_lib_save_LIBS
17872 fi
17873 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17874 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17875 if test $ac_cv_lib_dld_dld_link = yes; then
17876   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17877 fi
17878
17879
17880 fi
17881
17882
17883 fi
17884
17885
17886 fi
17887
17888
17889 fi
17890
17891
17892 fi
17893
17894     ;;
17895   esac
17896
17897   if test "x$lt_cv_dlopen" != xno; then
17898     enable_dlopen=yes
17899   else
17900     enable_dlopen=no
17901   fi
17902
17903   case $lt_cv_dlopen in
17904   dlopen)
17905     save_CPPFLAGS="$CPPFLAGS"
17906     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17907
17908     save_LDFLAGS="$LDFLAGS"
17909     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17910
17911     save_LIBS="$LIBS"
17912     LIBS="$lt_cv_dlopen_libs $LIBS"
17913
17914     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17915 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17916 if test "${lt_cv_dlopen_self+set}" = set; then
17917   echo $ECHO_N "(cached) $ECHO_C" >&6
17918 else
17919           if test "$cross_compiling" = yes; then :
17920   lt_cv_dlopen_self=cross
17921 else
17922   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17923   lt_status=$lt_dlunknown
17924   cat > conftest.$ac_ext <<EOF
17925 #line 17925 "configure"
17926 #include "confdefs.h"
17927
17928 #if HAVE_DLFCN_H
17929 #include <dlfcn.h>
17930 #endif
17931
17932 #include <stdio.h>
17933
17934 #ifdef RTLD_GLOBAL
17935 #  define LT_DLGLOBAL           RTLD_GLOBAL
17936 #else
17937 #  ifdef DL_GLOBAL
17938 #    define LT_DLGLOBAL         DL_GLOBAL
17939 #  else
17940 #    define LT_DLGLOBAL         0
17941 #  endif
17942 #endif
17943
17944 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17945    find out it does not work in some platform. */
17946 #ifndef LT_DLLAZY_OR_NOW
17947 #  ifdef RTLD_LAZY
17948 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17949 #  else
17950 #    ifdef DL_LAZY
17951 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17952 #    else
17953 #      ifdef RTLD_NOW
17954 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17955 #      else
17956 #        ifdef DL_NOW
17957 #          define LT_DLLAZY_OR_NOW      DL_NOW
17958 #        else
17959 #          define LT_DLLAZY_OR_NOW      0
17960 #        endif
17961 #      endif
17962 #    endif
17963 #  endif
17964 #endif
17965
17966 #ifdef __cplusplus
17967 extern "C" void exit (int);
17968 #endif
17969
17970 void fnord() { int i=42;}
17971 int main ()
17972 {
17973   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17974   int status = $lt_dlunknown;
17975
17976   if (self)
17977     {
17978       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17979       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17980       /* dlclose (self); */
17981     }
17982
17983     exit (status);
17984 }
17985 EOF
17986   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17987   (eval $ac_link) 2>&5
17988   ac_status=$?
17989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17991     (./conftest; exit; ) 2>/dev/null
17992     lt_status=$?
17993     case x$lt_status in
17994       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17995       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17996       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17997     esac
17998   else :
17999     # compilation failed
18000     lt_cv_dlopen_self=no
18001   fi
18002 fi
18003 rm -fr conftest*
18004
18005
18006 fi
18007 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18008 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18009
18010     if test "x$lt_cv_dlopen_self" = xyes; then
18011       LDFLAGS="$LDFLAGS $link_static_flag"
18012       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18013 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18014 if test "${lt_cv_dlopen_self_static+set}" = set; then
18015   echo $ECHO_N "(cached) $ECHO_C" >&6
18016 else
18017           if test "$cross_compiling" = yes; then :
18018   lt_cv_dlopen_self_static=cross
18019 else
18020   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18021   lt_status=$lt_dlunknown
18022   cat > conftest.$ac_ext <<EOF
18023 #line 18023 "configure"
18024 #include "confdefs.h"
18025
18026 #if HAVE_DLFCN_H
18027 #include <dlfcn.h>
18028 #endif
18029
18030 #include <stdio.h>
18031
18032 #ifdef RTLD_GLOBAL
18033 #  define LT_DLGLOBAL           RTLD_GLOBAL
18034 #else
18035 #  ifdef DL_GLOBAL
18036 #    define LT_DLGLOBAL         DL_GLOBAL
18037 #  else
18038 #    define LT_DLGLOBAL         0
18039 #  endif
18040 #endif
18041
18042 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18043    find out it does not work in some platform. */
18044 #ifndef LT_DLLAZY_OR_NOW
18045 #  ifdef RTLD_LAZY
18046 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18047 #  else
18048 #    ifdef DL_LAZY
18049 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18050 #    else
18051 #      ifdef RTLD_NOW
18052 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18053 #      else
18054 #        ifdef DL_NOW
18055 #          define LT_DLLAZY_OR_NOW      DL_NOW
18056 #        else
18057 #          define LT_DLLAZY_OR_NOW      0
18058 #        endif
18059 #      endif
18060 #    endif
18061 #  endif
18062 #endif
18063
18064 #ifdef __cplusplus
18065 extern "C" void exit (int);
18066 #endif
18067
18068 void fnord() { int i=42;}
18069 int main ()
18070 {
18071   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18072   int status = $lt_dlunknown;
18073
18074   if (self)
18075     {
18076       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18077       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18078       /* dlclose (self); */
18079     }
18080
18081     exit (status);
18082 }
18083 EOF
18084   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18085   (eval $ac_link) 2>&5
18086   ac_status=$?
18087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18089     (./conftest; exit; ) 2>/dev/null
18090     lt_status=$?
18091     case x$lt_status in
18092       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18093       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18094       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18095     esac
18096   else :
18097     # compilation failed
18098     lt_cv_dlopen_self_static=no
18099   fi
18100 fi
18101 rm -fr conftest*
18102
18103
18104 fi
18105 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18106 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18107     fi
18108
18109     CPPFLAGS="$save_CPPFLAGS"
18110     LDFLAGS="$save_LDFLAGS"
18111     LIBS="$save_LIBS"
18112     ;;
18113   esac
18114
18115   case $lt_cv_dlopen_self in
18116   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18117   *) enable_dlopen_self=unknown ;;
18118   esac
18119
18120   case $lt_cv_dlopen_self_static in
18121   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18122   *) enable_dlopen_self_static=unknown ;;
18123   esac
18124 fi
18125
18126
18127 # The else clause should only fire when bootstrapping the
18128 # libtool distribution, otherwise you forgot to ship ltmain.sh
18129 # with your package, and you will get complaints that there are
18130 # no rules to generate ltmain.sh.
18131 if test -f "$ltmain"; then
18132   # See if we are running on zsh, and set the options which allow our commands through
18133   # without removal of \ escapes.
18134   if test -n "${ZSH_VERSION+set}" ; then
18135     setopt NO_GLOB_SUBST
18136   fi
18137   # Now quote all the things that may contain metacharacters while being
18138   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18139   # variables and quote the copies for generation of the libtool script.
18140   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18141     SED SHELL STRIP \
18142     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18143     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18144     deplibs_check_method reload_flag reload_cmds need_locks \
18145     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18146     lt_cv_sys_global_symbol_to_c_name_address \
18147     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18148     old_postinstall_cmds old_postuninstall_cmds \
18149     compiler_GCJ \
18150     CC_GCJ \
18151     LD_GCJ \
18152     lt_prog_compiler_wl_GCJ \
18153     lt_prog_compiler_pic_GCJ \
18154     lt_prog_compiler_static_GCJ \
18155     lt_prog_compiler_no_builtin_flag_GCJ \
18156     export_dynamic_flag_spec_GCJ \
18157     thread_safe_flag_spec_GCJ \
18158     whole_archive_flag_spec_GCJ \
18159     enable_shared_with_static_runtimes_GCJ \
18160     old_archive_cmds_GCJ \
18161     old_archive_from_new_cmds_GCJ \
18162     predep_objects_GCJ \
18163     postdep_objects_GCJ \
18164     predeps_GCJ \
18165     postdeps_GCJ \
18166     compiler_lib_search_path_GCJ \
18167     archive_cmds_GCJ \
18168     archive_expsym_cmds_GCJ \
18169     postinstall_cmds_GCJ \
18170     postuninstall_cmds_GCJ \
18171     old_archive_from_expsyms_cmds_GCJ \
18172     allow_undefined_flag_GCJ \
18173     no_undefined_flag_GCJ \
18174     export_symbols_cmds_GCJ \
18175     hardcode_libdir_flag_spec_GCJ \
18176     hardcode_libdir_flag_spec_ld_GCJ \
18177     hardcode_libdir_separator_GCJ \
18178     hardcode_automatic_GCJ \
18179     module_cmds_GCJ \
18180     module_expsym_cmds_GCJ \
18181     lt_cv_prog_compiler_c_o_GCJ \
18182     exclude_expsyms_GCJ \
18183     include_expsyms_GCJ; do
18184
18185     case $var in
18186     old_archive_cmds_GCJ | \
18187     old_archive_from_new_cmds_GCJ | \
18188     archive_cmds_GCJ | \
18189     archive_expsym_cmds_GCJ | \
18190     module_cmds_GCJ | \
18191     module_expsym_cmds_GCJ | \
18192     old_archive_from_expsyms_cmds_GCJ | \
18193     export_symbols_cmds_GCJ | \
18194     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18195     postinstall_cmds | postuninstall_cmds | \
18196     old_postinstall_cmds | old_postuninstall_cmds | \
18197     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18198       # Double-quote double-evaled strings.
18199       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18200       ;;
18201     *)
18202       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18203       ;;
18204     esac
18205   done
18206
18207   case $lt_echo in
18208   *'\$0 --fallback-echo"')
18209     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18210     ;;
18211   esac
18212
18213 cfgfile="$ofile"
18214
18215   cat <<__EOF__ >> "$cfgfile"
18216 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18217
18218 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18219
18220 # Shell to use when invoking shell scripts.
18221 SHELL=$lt_SHELL
18222
18223 # Whether or not to build shared libraries.
18224 build_libtool_libs=$enable_shared
18225
18226 # Whether or not to build static libraries.
18227 build_old_libs=$enable_static
18228
18229 # Whether or not to add -lc for building shared libraries.
18230 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18231
18232 # Whether or not to disallow shared libs when runtime libs are static
18233 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18234
18235 # Whether or not to optimize for fast installation.
18236 fast_install=$enable_fast_install
18237
18238 # The host system.
18239 host_alias=$host_alias
18240 host=$host
18241
18242 # An echo program that does not interpret backslashes.
18243 echo=$lt_echo
18244
18245 # The archiver.
18246 AR=$lt_AR
18247 AR_FLAGS=$lt_AR_FLAGS
18248
18249 # A C compiler.
18250 LTCC=$lt_LTCC
18251
18252 # A language-specific compiler.
18253 CC=$lt_compiler_GCJ
18254
18255 # Is the compiler the GNU C compiler?
18256 with_gcc=$GCC_GCJ
18257
18258 # An ERE matcher.
18259 EGREP=$lt_EGREP
18260
18261 # The linker used to build libraries.
18262 LD=$lt_LD_GCJ
18263
18264 # Whether we need hard or soft links.
18265 LN_S=$lt_LN_S
18266
18267 # A BSD-compatible nm program.
18268 NM=$lt_NM
18269
18270 # A symbol stripping program
18271 STRIP=$lt_STRIP
18272
18273 # Used to examine libraries when file_magic_cmd begins "file"
18274 MAGIC_CMD=$MAGIC_CMD
18275
18276 # Used on cygwin: DLL creation program.
18277 DLLTOOL="$DLLTOOL"
18278
18279 # Used on cygwin: object dumper.
18280 OBJDUMP="$OBJDUMP"
18281
18282 # Used on cygwin: assembler.
18283 AS="$AS"
18284
18285 # The name of the directory that contains temporary libtool files.
18286 objdir=$objdir
18287
18288 # How to create reloadable object files.
18289 reload_flag=$lt_reload_flag
18290 reload_cmds=$lt_reload_cmds
18291
18292 # How to pass a linker flag through the compiler.
18293 wl=$lt_lt_prog_compiler_wl_GCJ
18294
18295 # Object file suffix (normally "o").
18296 objext="$ac_objext"
18297
18298 # Old archive suffix (normally "a").
18299 libext="$libext"
18300
18301 # Shared library suffix (normally ".so").
18302 shrext='$shrext'
18303
18304 # Executable file suffix (normally "").
18305 exeext="$exeext"
18306
18307 # Additional compiler flags for building library objects.
18308 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18309 pic_mode=$pic_mode
18310
18311 # What is the maximum length of a command?
18312 max_cmd_len=$lt_cv_sys_max_cmd_len
18313
18314 # Does compiler simultaneously support -c and -o options?
18315 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18316
18317 # Must we lock files when doing compilation ?
18318 need_locks=$lt_need_locks
18319
18320 # Do we need the lib prefix for modules?
18321 need_lib_prefix=$need_lib_prefix
18322
18323 # Do we need a version for libraries?
18324 need_version=$need_version
18325
18326 # Whether dlopen is supported.
18327 dlopen_support=$enable_dlopen
18328
18329 # Whether dlopen of programs is supported.
18330 dlopen_self=$enable_dlopen_self
18331
18332 # Whether dlopen of statically linked programs is supported.
18333 dlopen_self_static=$enable_dlopen_self_static
18334
18335 # Compiler flag to prevent dynamic linking.
18336 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18337
18338 # Compiler flag to turn off builtin functions.
18339 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18340
18341 # Compiler flag to allow reflexive dlopens.
18342 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18343
18344 # Compiler flag to generate shared objects directly from archives.
18345 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18346
18347 # Compiler flag to generate thread-safe objects.
18348 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18349
18350 # Library versioning type.
18351 version_type=$version_type
18352
18353 # Format of library name prefix.
18354 libname_spec=$lt_libname_spec
18355
18356 # List of archive names.  First name is the real one, the rest are links.
18357 # The last name is the one that the linker finds with -lNAME.
18358 library_names_spec=$lt_library_names_spec
18359
18360 # The coded name of the library, if different from the real name.
18361 soname_spec=$lt_soname_spec
18362
18363 # Commands used to build and install an old-style archive.
18364 RANLIB=$lt_RANLIB
18365 old_archive_cmds=$lt_old_archive_cmds_GCJ
18366 old_postinstall_cmds=$lt_old_postinstall_cmds
18367 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18368
18369 # Create an old-style archive from a shared archive.
18370 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18371
18372 # Create a temporary old-style archive to link instead of a shared archive.
18373 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18374
18375 # Commands used to build and install a shared archive.
18376 archive_cmds=$lt_archive_cmds_GCJ
18377 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18378 postinstall_cmds=$lt_postinstall_cmds
18379 postuninstall_cmds=$lt_postuninstall_cmds
18380
18381 # Commands used to build a loadable module (assumed same as above if empty)
18382 module_cmds=$lt_module_cmds_GCJ
18383 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18384
18385 # Commands to strip libraries.
18386 old_striplib=$lt_old_striplib
18387 striplib=$lt_striplib
18388
18389 # Dependencies to place before the objects being linked to create a
18390 # shared library.
18391 predep_objects=$lt_predep_objects_GCJ
18392
18393 # Dependencies to place after the objects being linked to create a
18394 # shared library.
18395 postdep_objects=$lt_postdep_objects_GCJ
18396
18397 # Dependencies to place before the objects being linked to create a
18398 # shared library.
18399 predeps=$lt_predeps_GCJ
18400
18401 # Dependencies to place after the objects being linked to create a
18402 # shared library.
18403 postdeps=$lt_postdeps_GCJ
18404
18405 # The library search path used internally by the compiler when linking
18406 # a shared library.
18407 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18408
18409 # Method to check whether dependent libraries are shared objects.
18410 deplibs_check_method=$lt_deplibs_check_method
18411
18412 # Command to use when deplibs_check_method == file_magic.
18413 file_magic_cmd=$lt_file_magic_cmd
18414
18415 # Flag that allows shared libraries with undefined symbols to be built.
18416 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18417
18418 # Flag that forces no undefined symbols.
18419 no_undefined_flag=$lt_no_undefined_flag_GCJ
18420
18421 # Commands used to finish a libtool library installation in a directory.
18422 finish_cmds=$lt_finish_cmds
18423
18424 # Same as above, but a single script fragment to be evaled but not shown.
18425 finish_eval=$lt_finish_eval
18426
18427 # Take the output of nm and produce a listing of raw symbols and C names.
18428 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18429
18430 # Transform the output of nm in a proper C declaration
18431 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18432
18433 # Transform the output of nm in a C name address pair
18434 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18435
18436 # This is the shared library runtime path variable.
18437 runpath_var=$runpath_var
18438
18439 # This is the shared library path variable.
18440 shlibpath_var=$shlibpath_var
18441
18442 # Is shlibpath searched before the hard-coded library search path?
18443 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18444
18445 # How to hardcode a shared library path into an executable.
18446 hardcode_action=$hardcode_action_GCJ
18447
18448 # Whether we should hardcode library paths into libraries.
18449 hardcode_into_libs=$hardcode_into_libs
18450
18451 # Flag to hardcode \$libdir into a binary during linking.
18452 # This must work even if \$libdir does not exist.
18453 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18454
18455 # If ld is used when linking, flag to hardcode \$libdir into
18456 # a binary during linking. This must work even if \$libdir does
18457 # not exist.
18458 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18459
18460 # Whether we need a single -rpath flag with a separated argument.
18461 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18462
18463 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18464 # resulting binary.
18465 hardcode_direct=$hardcode_direct_GCJ
18466
18467 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18468 # resulting binary.
18469 hardcode_minus_L=$hardcode_minus_L_GCJ
18470
18471 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18472 # the resulting binary.
18473 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18474
18475 # Set to yes if building a shared library automatically hardcodes DIR into the library
18476 # and all subsequent libraries and executables linked against it.
18477 hardcode_automatic=$hardcode_automatic_GCJ
18478
18479 # Variables whose values should be saved in libtool wrapper scripts and
18480 # restored at relink time.
18481 variables_saved_for_relink="$variables_saved_for_relink"
18482
18483 # Whether libtool must link a program against all its dependency libraries.
18484 link_all_deplibs=$link_all_deplibs_GCJ
18485
18486 # Compile-time system search path for libraries
18487 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18488
18489 # Run-time system search path for libraries
18490 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18491
18492 # Fix the shell variable \$srcfile for the compiler.
18493 fix_srcfile_path="$fix_srcfile_path_GCJ"
18494
18495 # Set to yes if exported symbols are required.
18496 always_export_symbols=$always_export_symbols_GCJ
18497
18498 # The commands to list exported symbols.
18499 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18500
18501 # The commands to extract the exported symbol list from a shared archive.
18502 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18503
18504 # Symbols that should not be listed in the preloaded symbols.
18505 exclude_expsyms=$lt_exclude_expsyms_GCJ
18506
18507 # Symbols that must always be exported.
18508 include_expsyms=$lt_include_expsyms_GCJ
18509
18510 # ### END LIBTOOL TAG CONFIG: $tagname
18511
18512 __EOF__
18513
18514
18515 else
18516   # If there is no Makefile yet, we rely on a make rule to execute
18517   # `config.status --recheck' to rerun these tests and create the
18518   # libtool script then.
18519   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18520   if test -f "$ltmain_in"; then
18521     test -f Makefile && make "$ltmain"
18522   fi
18523 fi
18524
18525
18526 ac_ext=c
18527 ac_cpp='$CPP $CPPFLAGS'
18528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18531
18532 CC="$lt_save_CC"
18533
18534         else
18535           tagname=""
18536         fi
18537         ;;
18538
18539       RC)
18540
18541
18542
18543 # Source file extension for RC test sources.
18544 ac_ext=rc
18545
18546 # Object file extension for compiled RC test sources.
18547 objext=o
18548 objext_RC=$objext
18549
18550 # Code to be used in simple compile tests
18551 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18552
18553 # Code to be used in simple link tests
18554 lt_simple_link_test_code="$lt_simple_compile_test_code"
18555
18556 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18557
18558 # If no C compiler was specified, use CC.
18559 LTCC=${LTCC-"$CC"}
18560
18561 # Allow CC to be a program name with arguments.
18562 compiler=$CC
18563
18564
18565 # Allow CC to be a program name with arguments.
18566 lt_save_CC="$CC"
18567 CC=${RC-"windres"}
18568 compiler=$CC
18569 compiler_RC=$CC
18570 lt_cv_prog_compiler_c_o_RC=yes
18571
18572 # The else clause should only fire when bootstrapping the
18573 # libtool distribution, otherwise you forgot to ship ltmain.sh
18574 # with your package, and you will get complaints that there are
18575 # no rules to generate ltmain.sh.
18576 if test -f "$ltmain"; then
18577   # See if we are running on zsh, and set the options which allow our commands through
18578   # without removal of \ escapes.
18579   if test -n "${ZSH_VERSION+set}" ; then
18580     setopt NO_GLOB_SUBST
18581   fi
18582   # Now quote all the things that may contain metacharacters while being
18583   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18584   # variables and quote the copies for generation of the libtool script.
18585   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18586     SED SHELL STRIP \
18587     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18588     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18589     deplibs_check_method reload_flag reload_cmds need_locks \
18590     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18591     lt_cv_sys_global_symbol_to_c_name_address \
18592     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18593     old_postinstall_cmds old_postuninstall_cmds \
18594     compiler_RC \
18595     CC_RC \
18596     LD_RC \
18597     lt_prog_compiler_wl_RC \
18598     lt_prog_compiler_pic_RC \
18599     lt_prog_compiler_static_RC \
18600     lt_prog_compiler_no_builtin_flag_RC \
18601     export_dynamic_flag_spec_RC \
18602     thread_safe_flag_spec_RC \
18603     whole_archive_flag_spec_RC \
18604     enable_shared_with_static_runtimes_RC \
18605     old_archive_cmds_RC \
18606     old_archive_from_new_cmds_RC \
18607     predep_objects_RC \
18608     postdep_objects_RC \
18609     predeps_RC \
18610     postdeps_RC \
18611     compiler_lib_search_path_RC \
18612     archive_cmds_RC \
18613     archive_expsym_cmds_RC \
18614     postinstall_cmds_RC \
18615     postuninstall_cmds_RC \
18616     old_archive_from_expsyms_cmds_RC \
18617     allow_undefined_flag_RC \
18618     no_undefined_flag_RC \
18619     export_symbols_cmds_RC \
18620     hardcode_libdir_flag_spec_RC \
18621     hardcode_libdir_flag_spec_ld_RC \
18622     hardcode_libdir_separator_RC \
18623     hardcode_automatic_RC \
18624     module_cmds_RC \
18625     module_expsym_cmds_RC \
18626     lt_cv_prog_compiler_c_o_RC \
18627     exclude_expsyms_RC \
18628     include_expsyms_RC; do
18629
18630     case $var in
18631     old_archive_cmds_RC | \
18632     old_archive_from_new_cmds_RC | \
18633     archive_cmds_RC | \
18634     archive_expsym_cmds_RC | \
18635     module_cmds_RC | \
18636     module_expsym_cmds_RC | \
18637     old_archive_from_expsyms_cmds_RC | \
18638     export_symbols_cmds_RC | \
18639     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18640     postinstall_cmds | postuninstall_cmds | \
18641     old_postinstall_cmds | old_postuninstall_cmds | \
18642     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18643       # Double-quote double-evaled strings.
18644       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18645       ;;
18646     *)
18647       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18648       ;;
18649     esac
18650   done
18651
18652   case $lt_echo in
18653   *'\$0 --fallback-echo"')
18654     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18655     ;;
18656   esac
18657
18658 cfgfile="$ofile"
18659
18660   cat <<__EOF__ >> "$cfgfile"
18661 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18662
18663 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18664
18665 # Shell to use when invoking shell scripts.
18666 SHELL=$lt_SHELL
18667
18668 # Whether or not to build shared libraries.
18669 build_libtool_libs=$enable_shared
18670
18671 # Whether or not to build static libraries.
18672 build_old_libs=$enable_static
18673
18674 # Whether or not to add -lc for building shared libraries.
18675 build_libtool_need_lc=$archive_cmds_need_lc_RC
18676
18677 # Whether or not to disallow shared libs when runtime libs are static
18678 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18679
18680 # Whether or not to optimize for fast installation.
18681 fast_install=$enable_fast_install
18682
18683 # The host system.
18684 host_alias=$host_alias
18685 host=$host
18686
18687 # An echo program that does not interpret backslashes.
18688 echo=$lt_echo
18689
18690 # The archiver.
18691 AR=$lt_AR
18692 AR_FLAGS=$lt_AR_FLAGS
18693
18694 # A C compiler.
18695 LTCC=$lt_LTCC
18696
18697 # A language-specific compiler.
18698 CC=$lt_compiler_RC
18699
18700 # Is the compiler the GNU C compiler?
18701 with_gcc=$GCC_RC
18702
18703 # An ERE matcher.
18704 EGREP=$lt_EGREP
18705
18706 # The linker used to build libraries.
18707 LD=$lt_LD_RC
18708
18709 # Whether we need hard or soft links.
18710 LN_S=$lt_LN_S
18711
18712 # A BSD-compatible nm program.
18713 NM=$lt_NM
18714
18715 # A symbol stripping program
18716 STRIP=$lt_STRIP
18717
18718 # Used to examine libraries when file_magic_cmd begins "file"
18719 MAGIC_CMD=$MAGIC_CMD
18720
18721 # Used on cygwin: DLL creation program.
18722 DLLTOOL="$DLLTOOL"
18723
18724 # Used on cygwin: object dumper.
18725 OBJDUMP="$OBJDUMP"
18726
18727 # Used on cygwin: assembler.
18728 AS="$AS"
18729
18730 # The name of the directory that contains temporary libtool files.
18731 objdir=$objdir
18732
18733 # How to create reloadable object files.
18734 reload_flag=$lt_reload_flag
18735 reload_cmds=$lt_reload_cmds
18736
18737 # How to pass a linker flag through the compiler.
18738 wl=$lt_lt_prog_compiler_wl_RC
18739
18740 # Object file suffix (normally "o").
18741 objext="$ac_objext"
18742
18743 # Old archive suffix (normally "a").
18744 libext="$libext"
18745
18746 # Shared library suffix (normally ".so").
18747 shrext='$shrext'
18748
18749 # Executable file suffix (normally "").
18750 exeext="$exeext"
18751
18752 # Additional compiler flags for building library objects.
18753 pic_flag=$lt_lt_prog_compiler_pic_RC
18754 pic_mode=$pic_mode
18755
18756 # What is the maximum length of a command?
18757 max_cmd_len=$lt_cv_sys_max_cmd_len
18758
18759 # Does compiler simultaneously support -c and -o options?
18760 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18761
18762 # Must we lock files when doing compilation ?
18763 need_locks=$lt_need_locks
18764
18765 # Do we need the lib prefix for modules?
18766 need_lib_prefix=$need_lib_prefix
18767
18768 # Do we need a version for libraries?
18769 need_version=$need_version
18770
18771 # Whether dlopen is supported.
18772 dlopen_support=$enable_dlopen
18773
18774 # Whether dlopen of programs is supported.
18775 dlopen_self=$enable_dlopen_self
18776
18777 # Whether dlopen of statically linked programs is supported.
18778 dlopen_self_static=$enable_dlopen_self_static
18779
18780 # Compiler flag to prevent dynamic linking.
18781 link_static_flag=$lt_lt_prog_compiler_static_RC
18782
18783 # Compiler flag to turn off builtin functions.
18784 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18785
18786 # Compiler flag to allow reflexive dlopens.
18787 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18788
18789 # Compiler flag to generate shared objects directly from archives.
18790 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18791
18792 # Compiler flag to generate thread-safe objects.
18793 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18794
18795 # Library versioning type.
18796 version_type=$version_type
18797
18798 # Format of library name prefix.
18799 libname_spec=$lt_libname_spec
18800
18801 # List of archive names.  First name is the real one, the rest are links.
18802 # The last name is the one that the linker finds with -lNAME.
18803 library_names_spec=$lt_library_names_spec
18804
18805 # The coded name of the library, if different from the real name.
18806 soname_spec=$lt_soname_spec
18807
18808 # Commands used to build and install an old-style archive.
18809 RANLIB=$lt_RANLIB
18810 old_archive_cmds=$lt_old_archive_cmds_RC
18811 old_postinstall_cmds=$lt_old_postinstall_cmds
18812 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18813
18814 # Create an old-style archive from a shared archive.
18815 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18816
18817 # Create a temporary old-style archive to link instead of a shared archive.
18818 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18819
18820 # Commands used to build and install a shared archive.
18821 archive_cmds=$lt_archive_cmds_RC
18822 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18823 postinstall_cmds=$lt_postinstall_cmds
18824 postuninstall_cmds=$lt_postuninstall_cmds
18825
18826 # Commands used to build a loadable module (assumed same as above if empty)
18827 module_cmds=$lt_module_cmds_RC
18828 module_expsym_cmds=$lt_module_expsym_cmds_RC
18829
18830 # Commands to strip libraries.
18831 old_striplib=$lt_old_striplib
18832 striplib=$lt_striplib
18833
18834 # Dependencies to place before the objects being linked to create a
18835 # shared library.
18836 predep_objects=$lt_predep_objects_RC
18837
18838 # Dependencies to place after the objects being linked to create a
18839 # shared library.
18840 postdep_objects=$lt_postdep_objects_RC
18841
18842 # Dependencies to place before the objects being linked to create a
18843 # shared library.
18844 predeps=$lt_predeps_RC
18845
18846 # Dependencies to place after the objects being linked to create a
18847 # shared library.
18848 postdeps=$lt_postdeps_RC
18849
18850 # The library search path used internally by the compiler when linking
18851 # a shared library.
18852 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18853
18854 # Method to check whether dependent libraries are shared objects.
18855 deplibs_check_method=$lt_deplibs_check_method
18856
18857 # Command to use when deplibs_check_method == file_magic.
18858 file_magic_cmd=$lt_file_magic_cmd
18859
18860 # Flag that allows shared libraries with undefined symbols to be built.
18861 allow_undefined_flag=$lt_allow_undefined_flag_RC
18862
18863 # Flag that forces no undefined symbols.
18864 no_undefined_flag=$lt_no_undefined_flag_RC
18865
18866 # Commands used to finish a libtool library installation in a directory.
18867 finish_cmds=$lt_finish_cmds
18868
18869 # Same as above, but a single script fragment to be evaled but not shown.
18870 finish_eval=$lt_finish_eval
18871
18872 # Take the output of nm and produce a listing of raw symbols and C names.
18873 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18874
18875 # Transform the output of nm in a proper C declaration
18876 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18877
18878 # Transform the output of nm in a C name address pair
18879 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18880
18881 # This is the shared library runtime path variable.
18882 runpath_var=$runpath_var
18883
18884 # This is the shared library path variable.
18885 shlibpath_var=$shlibpath_var
18886
18887 # Is shlibpath searched before the hard-coded library search path?
18888 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18889
18890 # How to hardcode a shared library path into an executable.
18891 hardcode_action=$hardcode_action_RC
18892
18893 # Whether we should hardcode library paths into libraries.
18894 hardcode_into_libs=$hardcode_into_libs
18895
18896 # Flag to hardcode \$libdir into a binary during linking.
18897 # This must work even if \$libdir does not exist.
18898 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18899
18900 # If ld is used when linking, flag to hardcode \$libdir into
18901 # a binary during linking. This must work even if \$libdir does
18902 # not exist.
18903 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18904
18905 # Whether we need a single -rpath flag with a separated argument.
18906 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18907
18908 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18909 # resulting binary.
18910 hardcode_direct=$hardcode_direct_RC
18911
18912 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18913 # resulting binary.
18914 hardcode_minus_L=$hardcode_minus_L_RC
18915
18916 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18917 # the resulting binary.
18918 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18919
18920 # Set to yes if building a shared library automatically hardcodes DIR into the library
18921 # and all subsequent libraries and executables linked against it.
18922 hardcode_automatic=$hardcode_automatic_RC
18923
18924 # Variables whose values should be saved in libtool wrapper scripts and
18925 # restored at relink time.
18926 variables_saved_for_relink="$variables_saved_for_relink"
18927
18928 # Whether libtool must link a program against all its dependency libraries.
18929 link_all_deplibs=$link_all_deplibs_RC
18930
18931 # Compile-time system search path for libraries
18932 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18933
18934 # Run-time system search path for libraries
18935 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18936
18937 # Fix the shell variable \$srcfile for the compiler.
18938 fix_srcfile_path="$fix_srcfile_path_RC"
18939
18940 # Set to yes if exported symbols are required.
18941 always_export_symbols=$always_export_symbols_RC
18942
18943 # The commands to list exported symbols.
18944 export_symbols_cmds=$lt_export_symbols_cmds_RC
18945
18946 # The commands to extract the exported symbol list from a shared archive.
18947 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18948
18949 # Symbols that should not be listed in the preloaded symbols.
18950 exclude_expsyms=$lt_exclude_expsyms_RC
18951
18952 # Symbols that must always be exported.
18953 include_expsyms=$lt_include_expsyms_RC
18954
18955 # ### END LIBTOOL TAG CONFIG: $tagname
18956
18957 __EOF__
18958
18959
18960 else
18961   # If there is no Makefile yet, we rely on a make rule to execute
18962   # `config.status --recheck' to rerun these tests and create the
18963   # libtool script then.
18964   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18965   if test -f "$ltmain_in"; then
18966     test -f Makefile && make "$ltmain"
18967   fi
18968 fi
18969
18970
18971 ac_ext=c
18972 ac_cpp='$CPP $CPPFLAGS'
18973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18976
18977 CC="$lt_save_CC"
18978
18979         ;;
18980
18981       *)
18982         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18983 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18984    { (exit 1); exit 1; }; }
18985         ;;
18986       esac
18987
18988       # Append the new tag name to the list of available tags.
18989       if test -n "$tagname" ; then
18990       available_tags="$available_tags $tagname"
18991     fi
18992     fi
18993   done
18994   IFS="$lt_save_ifs"
18995
18996   # Now substitute the updated list of available tags.
18997   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18998     mv "${ofile}T" "$ofile"
18999     chmod +x "$ofile"
19000   else
19001     rm -f "${ofile}T"
19002     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19003 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19004    { (exit 1); exit 1; }; }
19005   fi
19006 fi
19007
19008
19009
19010 # This can be used to rebuild libtool when needed
19011 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19012
19013 # Always use our own libtool.
19014 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19015
19016 # Prevent multiple expansion
19017
19018
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035
19036
19037
19038
19039 # Check whether --with-html-dir or --without-html-dir was given.
19040 if test "${with_html_dir+set}" = set; then
19041   withval="$with_html_dir"
19042
19043 else
19044   with_html_dir='${datadir}/gtk-doc/html'
19045 fi;
19046   HTML_DIR="$with_html_dir"
19047
19048
19049     # Check whether --enable-gtk-doc or --disable-gtk-doc was given.
19050 if test "${enable_gtk_doc+set}" = set; then
19051   enableval="$enable_gtk_doc"
19052
19053 else
19054   enable_gtk_doc=no
19055 fi;
19056
19057   have_gtk_doc=no
19058   if test -z "$PKG_CONFIG"; then
19059     # Extract the first word of "pkg-config", so it can be a program name with args.
19060 set dummy pkg-config; ac_word=$2
19061 echo "$as_me:$LINENO: checking for $ac_word" >&5
19062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19063 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19064   echo $ECHO_N "(cached) $ECHO_C" >&6
19065 else
19066   case $PKG_CONFIG in
19067   [\\/]* | ?:[\\/]*)
19068   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19069   ;;
19070   *)
19071   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19072 for as_dir in $PATH
19073 do
19074   IFS=$as_save_IFS
19075   test -z "$as_dir" && as_dir=.
19076   for ac_exec_ext in '' $ac_executable_extensions; do
19077   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19078     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19079     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19080     break 2
19081   fi
19082 done
19083 done
19084
19085   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19086   ;;
19087 esac
19088 fi
19089 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19090
19091 if test -n "$PKG_CONFIG"; then
19092   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19093 echo "${ECHO_T}$PKG_CONFIG" >&6
19094 else
19095   echo "$as_me:$LINENO: result: no" >&5
19096 echo "${ECHO_T}no" >&6
19097 fi
19098
19099   fi
19100   if test "$PKG_CONFIG" != "no" && $PKG_CONFIG --exists gtk-doc; then
19101     have_gtk_doc=yes
19102   fi
19103
19104
19105   if test x$enable_gtk_doc = xyes; then
19106     if test "$have_gtk_doc" != yes; then
19107       enable_gtk_doc=no
19108     fi
19109   fi
19110
19111
19112
19113 if test x$enable_gtk_doc = xyes; then
19114   ENABLE_GTK_DOC_TRUE=
19115   ENABLE_GTK_DOC_FALSE='#'
19116 else
19117   ENABLE_GTK_DOC_TRUE='#'
19118   ENABLE_GTK_DOC_FALSE=
19119 fi
19120
19121
19122
19123 if test -n "$LIBTOOL"; then
19124   GTK_DOC_USE_LIBTOOL_TRUE=
19125   GTK_DOC_USE_LIBTOOL_FALSE='#'
19126 else
19127   GTK_DOC_USE_LIBTOOL_TRUE='#'
19128   GTK_DOC_USE_LIBTOOL_FALSE=
19129 fi
19130
19131
19132
19133 # declare the modules (no optional module)
19134
19135 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
19136 ACLOCAL="$ACLOCAL -I acmacro"
19137
19138
19139 ac_ext=c
19140 ac_cpp='$CPP $CPPFLAGS'
19141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19144 if test -n "$ac_tool_prefix"; then
19145   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19146 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19147 echo "$as_me:$LINENO: checking for $ac_word" >&5
19148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19149 if test "${ac_cv_prog_CC+set}" = set; then
19150   echo $ECHO_N "(cached) $ECHO_C" >&6
19151 else
19152   if test -n "$CC"; then
19153   ac_cv_prog_CC="$CC" # Let the user override the test.
19154 else
19155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19156 for as_dir in $PATH
19157 do
19158   IFS=$as_save_IFS
19159   test -z "$as_dir" && as_dir=.
19160   for ac_exec_ext in '' $ac_executable_extensions; do
19161   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19162     ac_cv_prog_CC="${ac_tool_prefix}gcc"
19163     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19164     break 2
19165   fi
19166 done
19167 done
19168
19169 fi
19170 fi
19171 CC=$ac_cv_prog_CC
19172 if test -n "$CC"; then
19173   echo "$as_me:$LINENO: result: $CC" >&5
19174 echo "${ECHO_T}$CC" >&6
19175 else
19176   echo "$as_me:$LINENO: result: no" >&5
19177 echo "${ECHO_T}no" >&6
19178 fi
19179
19180 fi
19181 if test -z "$ac_cv_prog_CC"; then
19182   ac_ct_CC=$CC
19183   # Extract the first word of "gcc", so it can be a program name with args.
19184 set dummy gcc; ac_word=$2
19185 echo "$as_me:$LINENO: checking for $ac_word" >&5
19186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19187 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19188   echo $ECHO_N "(cached) $ECHO_C" >&6
19189 else
19190   if test -n "$ac_ct_CC"; then
19191   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19192 else
19193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19194 for as_dir in $PATH
19195 do
19196   IFS=$as_save_IFS
19197   test -z "$as_dir" && as_dir=.
19198   for ac_exec_ext in '' $ac_executable_extensions; do
19199   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19200     ac_cv_prog_ac_ct_CC="gcc"
19201     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19202     break 2
19203   fi
19204 done
19205 done
19206
19207 fi
19208 fi
19209 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19210 if test -n "$ac_ct_CC"; then
19211   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19212 echo "${ECHO_T}$ac_ct_CC" >&6
19213 else
19214   echo "$as_me:$LINENO: result: no" >&5
19215 echo "${ECHO_T}no" >&6
19216 fi
19217
19218   CC=$ac_ct_CC
19219 else
19220   CC="$ac_cv_prog_CC"
19221 fi
19222
19223 if test -z "$CC"; then
19224   if test -n "$ac_tool_prefix"; then
19225   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19226 set dummy ${ac_tool_prefix}cc; ac_word=$2
19227 echo "$as_me:$LINENO: checking for $ac_word" >&5
19228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19229 if test "${ac_cv_prog_CC+set}" = set; then
19230   echo $ECHO_N "(cached) $ECHO_C" >&6
19231 else
19232   if test -n "$CC"; then
19233   ac_cv_prog_CC="$CC" # Let the user override the test.
19234 else
19235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19236 for as_dir in $PATH
19237 do
19238   IFS=$as_save_IFS
19239   test -z "$as_dir" && as_dir=.
19240   for ac_exec_ext in '' $ac_executable_extensions; do
19241   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19242     ac_cv_prog_CC="${ac_tool_prefix}cc"
19243     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19244     break 2
19245   fi
19246 done
19247 done
19248
19249 fi
19250 fi
19251 CC=$ac_cv_prog_CC
19252 if test -n "$CC"; then
19253   echo "$as_me:$LINENO: result: $CC" >&5
19254 echo "${ECHO_T}$CC" >&6
19255 else
19256   echo "$as_me:$LINENO: result: no" >&5
19257 echo "${ECHO_T}no" >&6
19258 fi
19259
19260 fi
19261 if test -z "$ac_cv_prog_CC"; then
19262   ac_ct_CC=$CC
19263   # Extract the first word of "cc", so it can be a program name with args.
19264 set dummy cc; ac_word=$2
19265 echo "$as_me:$LINENO: checking for $ac_word" >&5
19266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19267 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19268   echo $ECHO_N "(cached) $ECHO_C" >&6
19269 else
19270   if test -n "$ac_ct_CC"; then
19271   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19272 else
19273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19274 for as_dir in $PATH
19275 do
19276   IFS=$as_save_IFS
19277   test -z "$as_dir" && as_dir=.
19278   for ac_exec_ext in '' $ac_executable_extensions; do
19279   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19280     ac_cv_prog_ac_ct_CC="cc"
19281     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19282     break 2
19283   fi
19284 done
19285 done
19286
19287 fi
19288 fi
19289 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19290 if test -n "$ac_ct_CC"; then
19291   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19292 echo "${ECHO_T}$ac_ct_CC" >&6
19293 else
19294   echo "$as_me:$LINENO: result: no" >&5
19295 echo "${ECHO_T}no" >&6
19296 fi
19297
19298   CC=$ac_ct_CC
19299 else
19300   CC="$ac_cv_prog_CC"
19301 fi
19302
19303 fi
19304 if test -z "$CC"; then
19305   # Extract the first word of "cc", so it can be a program name with args.
19306 set dummy cc; ac_word=$2
19307 echo "$as_me:$LINENO: checking for $ac_word" >&5
19308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19309 if test "${ac_cv_prog_CC+set}" = set; then
19310   echo $ECHO_N "(cached) $ECHO_C" >&6
19311 else
19312   if test -n "$CC"; then
19313   ac_cv_prog_CC="$CC" # Let the user override the test.
19314 else
19315   ac_prog_rejected=no
19316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19317 for as_dir in $PATH
19318 do
19319   IFS=$as_save_IFS
19320   test -z "$as_dir" && as_dir=.
19321   for ac_exec_ext in '' $ac_executable_extensions; do
19322   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19323     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19324        ac_prog_rejected=yes
19325        continue
19326      fi
19327     ac_cv_prog_CC="cc"
19328     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19329     break 2
19330   fi
19331 done
19332 done
19333
19334 if test $ac_prog_rejected = yes; then
19335   # We found a bogon in the path, so make sure we never use it.
19336   set dummy $ac_cv_prog_CC
19337   shift
19338   if test $# != 0; then
19339     # We chose a different compiler from the bogus one.
19340     # However, it has the same basename, so the bogon will be chosen
19341     # first if we set CC to just the basename; use the full file name.
19342     shift
19343     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19344   fi
19345 fi
19346 fi
19347 fi
19348 CC=$ac_cv_prog_CC
19349 if test -n "$CC"; then
19350   echo "$as_me:$LINENO: result: $CC" >&5
19351 echo "${ECHO_T}$CC" >&6
19352 else
19353   echo "$as_me:$LINENO: result: no" >&5
19354 echo "${ECHO_T}no" >&6
19355 fi
19356
19357 fi
19358 if test -z "$CC"; then
19359   if test -n "$ac_tool_prefix"; then
19360   for ac_prog in cl
19361   do
19362     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19363 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19364 echo "$as_me:$LINENO: checking for $ac_word" >&5
19365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19366 if test "${ac_cv_prog_CC+set}" = set; then
19367   echo $ECHO_N "(cached) $ECHO_C" >&6
19368 else
19369   if test -n "$CC"; then
19370   ac_cv_prog_CC="$CC" # Let the user override the test.
19371 else
19372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19373 for as_dir in $PATH
19374 do
19375   IFS=$as_save_IFS
19376   test -z "$as_dir" && as_dir=.
19377   for ac_exec_ext in '' $ac_executable_extensions; do
19378   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19379     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19380     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19381     break 2
19382   fi
19383 done
19384 done
19385
19386 fi
19387 fi
19388 CC=$ac_cv_prog_CC
19389 if test -n "$CC"; then
19390   echo "$as_me:$LINENO: result: $CC" >&5
19391 echo "${ECHO_T}$CC" >&6
19392 else
19393   echo "$as_me:$LINENO: result: no" >&5
19394 echo "${ECHO_T}no" >&6
19395 fi
19396
19397     test -n "$CC" && break
19398   done
19399 fi
19400 if test -z "$CC"; then
19401   ac_ct_CC=$CC
19402   for ac_prog in cl
19403 do
19404   # Extract the first word of "$ac_prog", so it can be a program name with args.
19405 set dummy $ac_prog; ac_word=$2
19406 echo "$as_me:$LINENO: checking for $ac_word" >&5
19407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19408 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19409   echo $ECHO_N "(cached) $ECHO_C" >&6
19410 else
19411   if test -n "$ac_ct_CC"; then
19412   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19413 else
19414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19415 for as_dir in $PATH
19416 do
19417   IFS=$as_save_IFS
19418   test -z "$as_dir" && as_dir=.
19419   for ac_exec_ext in '' $ac_executable_extensions; do
19420   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19421     ac_cv_prog_ac_ct_CC="$ac_prog"
19422     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19423     break 2
19424   fi
19425 done
19426 done
19427
19428 fi
19429 fi
19430 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19431 if test -n "$ac_ct_CC"; then
19432   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19433 echo "${ECHO_T}$ac_ct_CC" >&6
19434 else
19435   echo "$as_me:$LINENO: result: no" >&5
19436 echo "${ECHO_T}no" >&6
19437 fi
19438
19439   test -n "$ac_ct_CC" && break
19440 done
19441
19442   CC=$ac_ct_CC
19443 fi
19444
19445 fi
19446
19447
19448 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19449 See \`config.log' for more details." >&5
19450 echo "$as_me: error: no acceptable C compiler found in \$PATH
19451 See \`config.log' for more details." >&2;}
19452    { (exit 1); exit 1; }; }
19453
19454 # Provide some information about the compiler.
19455 echo "$as_me:$LINENO:" \
19456      "checking for C compiler version" >&5
19457 ac_compiler=`set X $ac_compile; echo $2`
19458 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19459   (eval $ac_compiler --version </dev/null >&5) 2>&5
19460   ac_status=$?
19461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462   (exit $ac_status); }
19463 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19464   (eval $ac_compiler -v </dev/null >&5) 2>&5
19465   ac_status=$?
19466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467   (exit $ac_status); }
19468 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19469   (eval $ac_compiler -V </dev/null >&5) 2>&5
19470   ac_status=$?
19471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472   (exit $ac_status); }
19473
19474 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19475 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19476 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19477   echo $ECHO_N "(cached) $ECHO_C" >&6
19478 else
19479   cat >conftest.$ac_ext <<_ACEOF
19480 /* confdefs.h.  */
19481 _ACEOF
19482 cat confdefs.h >>conftest.$ac_ext
19483 cat >>conftest.$ac_ext <<_ACEOF
19484 /* end confdefs.h.  */
19485
19486 int
19487 main ()
19488 {
19489 #ifndef __GNUC__
19490        choke me
19491 #endif
19492
19493   ;
19494   return 0;
19495 }
19496 _ACEOF
19497 rm -f conftest.$ac_objext
19498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19499   (eval $ac_compile) 2>conftest.er1
19500   ac_status=$?
19501   grep -v '^ *+' conftest.er1 >conftest.err
19502   rm -f conftest.er1
19503   cat conftest.err >&5
19504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505   (exit $ac_status); } &&
19506          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19508   (eval $ac_try) 2>&5
19509   ac_status=$?
19510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511   (exit $ac_status); }; } &&
19512          { ac_try='test -s conftest.$ac_objext'
19513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19514   (eval $ac_try) 2>&5
19515   ac_status=$?
19516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517   (exit $ac_status); }; }; then
19518   ac_compiler_gnu=yes
19519 else
19520   echo "$as_me: failed program was:" >&5
19521 sed 's/^/| /' conftest.$ac_ext >&5
19522
19523 ac_compiler_gnu=no
19524 fi
19525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19526 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19527
19528 fi
19529 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19530 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19531 GCC=`test $ac_compiler_gnu = yes && echo yes`
19532 ac_test_CFLAGS=${CFLAGS+set}
19533 ac_save_CFLAGS=$CFLAGS
19534 CFLAGS="-g"
19535 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19536 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19537 if test "${ac_cv_prog_cc_g+set}" = set; then
19538   echo $ECHO_N "(cached) $ECHO_C" >&6
19539 else
19540   cat >conftest.$ac_ext <<_ACEOF
19541 /* confdefs.h.  */
19542 _ACEOF
19543 cat confdefs.h >>conftest.$ac_ext
19544 cat >>conftest.$ac_ext <<_ACEOF
19545 /* end confdefs.h.  */
19546
19547 int
19548 main ()
19549 {
19550
19551   ;
19552   return 0;
19553 }
19554 _ACEOF
19555 rm -f conftest.$ac_objext
19556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19557   (eval $ac_compile) 2>conftest.er1
19558   ac_status=$?
19559   grep -v '^ *+' conftest.er1 >conftest.err
19560   rm -f conftest.er1
19561   cat conftest.err >&5
19562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563   (exit $ac_status); } &&
19564          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19566   (eval $ac_try) 2>&5
19567   ac_status=$?
19568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569   (exit $ac_status); }; } &&
19570          { ac_try='test -s conftest.$ac_objext'
19571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19572   (eval $ac_try) 2>&5
19573   ac_status=$?
19574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575   (exit $ac_status); }; }; then
19576   ac_cv_prog_cc_g=yes
19577 else
19578   echo "$as_me: failed program was:" >&5
19579 sed 's/^/| /' conftest.$ac_ext >&5
19580
19581 ac_cv_prog_cc_g=no
19582 fi
19583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19584 fi
19585 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19586 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19587 if test "$ac_test_CFLAGS" = set; then
19588   CFLAGS=$ac_save_CFLAGS
19589 elif test $ac_cv_prog_cc_g = yes; then
19590   if test "$GCC" = yes; then
19591     CFLAGS="-g -O2"
19592   else
19593     CFLAGS="-g"
19594   fi
19595 else
19596   if test "$GCC" = yes; then
19597     CFLAGS="-O2"
19598   else
19599     CFLAGS=
19600   fi
19601 fi
19602 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19603 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19604 if test "${ac_cv_prog_cc_stdc+set}" = set; then
19605   echo $ECHO_N "(cached) $ECHO_C" >&6
19606 else
19607   ac_cv_prog_cc_stdc=no
19608 ac_save_CC=$CC
19609 cat >conftest.$ac_ext <<_ACEOF
19610 /* confdefs.h.  */
19611 _ACEOF
19612 cat confdefs.h >>conftest.$ac_ext
19613 cat >>conftest.$ac_ext <<_ACEOF
19614 /* end confdefs.h.  */
19615 #include <stdarg.h>
19616 #include <stdio.h>
19617 #include <sys/types.h>
19618 #include <sys/stat.h>
19619 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19620 struct buf { int x; };
19621 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19622 static char *e (p, i)
19623      char **p;
19624      int i;
19625 {
19626   return p[i];
19627 }
19628 static char *f (char * (*g) (char **, int), char **p, ...)
19629 {
19630   char *s;
19631   va_list v;
19632   va_start (v,p);
19633   s = g (p, va_arg (v,int));
19634   va_end (v);
19635   return s;
19636 }
19637
19638 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
19639    function prototypes and stuff, but not '\xHH' hex character constants.
19640    These don't provoke an error unfortunately, instead are silently treated
19641    as 'x'.  The following induces an error, until -std1 is added to get
19642    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
19643    array size at least.  It's necessary to write '\x00'==0 to get something
19644    that's true only with -std1.  */
19645 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19646
19647 int test (int i, double x);
19648 struct s1 {int (*f) (int a);};
19649 struct s2 {int (*f) (double a);};
19650 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19651 int argc;
19652 char **argv;
19653 int
19654 main ()
19655 {
19656 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
19657   ;
19658   return 0;
19659 }
19660 _ACEOF
19661 # Don't try gcc -ansi; that turns off useful extensions and
19662 # breaks some systems' header files.
19663 # AIX                   -qlanglvl=ansi
19664 # Ultrix and OSF/1      -std1
19665 # HP-UX 10.20 and later -Ae
19666 # HP-UX older versions  -Aa -D_HPUX_SOURCE
19667 # SVR4                  -Xc -D__EXTENSIONS__
19668 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19669 do
19670   CC="$ac_save_CC $ac_arg"
19671   rm -f conftest.$ac_objext
19672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19673   (eval $ac_compile) 2>conftest.er1
19674   ac_status=$?
19675   grep -v '^ *+' conftest.er1 >conftest.err
19676   rm -f conftest.er1
19677   cat conftest.err >&5
19678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679   (exit $ac_status); } &&
19680          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19682   (eval $ac_try) 2>&5
19683   ac_status=$?
19684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685   (exit $ac_status); }; } &&
19686          { ac_try='test -s conftest.$ac_objext'
19687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19688   (eval $ac_try) 2>&5
19689   ac_status=$?
19690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691   (exit $ac_status); }; }; then
19692   ac_cv_prog_cc_stdc=$ac_arg
19693 break
19694 else
19695   echo "$as_me: failed program was:" >&5
19696 sed 's/^/| /' conftest.$ac_ext >&5
19697
19698 fi
19699 rm -f conftest.err conftest.$ac_objext
19700 done
19701 rm -f conftest.$ac_ext conftest.$ac_objext
19702 CC=$ac_save_CC
19703
19704 fi
19705
19706 case "x$ac_cv_prog_cc_stdc" in
19707   x|xno)
19708     echo "$as_me:$LINENO: result: none needed" >&5
19709 echo "${ECHO_T}none needed" >&6 ;;
19710   *)
19711     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19712 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19713     CC="$CC $ac_cv_prog_cc_stdc" ;;
19714 esac
19715
19716 # Some people use a C++ compiler to compile C.  Since we use `exit',
19717 # in C++ we need to declare it.  In case someone uses the same compiler
19718 # for both compiling C and C++ we need to have the C++ compiler decide
19719 # the declaration of exit, since it's the most demanding environment.
19720 cat >conftest.$ac_ext <<_ACEOF
19721 #ifndef __cplusplus
19722   choke me
19723 #endif
19724 _ACEOF
19725 rm -f conftest.$ac_objext
19726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19727   (eval $ac_compile) 2>conftest.er1
19728   ac_status=$?
19729   grep -v '^ *+' conftest.er1 >conftest.err
19730   rm -f conftest.er1
19731   cat conftest.err >&5
19732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733   (exit $ac_status); } &&
19734          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19736   (eval $ac_try) 2>&5
19737   ac_status=$?
19738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739   (exit $ac_status); }; } &&
19740          { ac_try='test -s conftest.$ac_objext'
19741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19742   (eval $ac_try) 2>&5
19743   ac_status=$?
19744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745   (exit $ac_status); }; }; then
19746   for ac_declaration in \
19747    '' \
19748    'extern "C" void std::exit (int) throw (); using std::exit;' \
19749    'extern "C" void std::exit (int); using std::exit;' \
19750    'extern "C" void exit (int) throw ();' \
19751    'extern "C" void exit (int);' \
19752    'void exit (int);'
19753 do
19754   cat >conftest.$ac_ext <<_ACEOF
19755 /* confdefs.h.  */
19756 _ACEOF
19757 cat confdefs.h >>conftest.$ac_ext
19758 cat >>conftest.$ac_ext <<_ACEOF
19759 /* end confdefs.h.  */
19760 $ac_declaration
19761 #include <stdlib.h>
19762 int
19763 main ()
19764 {
19765 exit (42);
19766   ;
19767   return 0;
19768 }
19769 _ACEOF
19770 rm -f conftest.$ac_objext
19771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19772   (eval $ac_compile) 2>conftest.er1
19773   ac_status=$?
19774   grep -v '^ *+' conftest.er1 >conftest.err
19775   rm -f conftest.er1
19776   cat conftest.err >&5
19777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778   (exit $ac_status); } &&
19779          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19781   (eval $ac_try) 2>&5
19782   ac_status=$?
19783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784   (exit $ac_status); }; } &&
19785          { ac_try='test -s conftest.$ac_objext'
19786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19787   (eval $ac_try) 2>&5
19788   ac_status=$?
19789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790   (exit $ac_status); }; }; then
19791   :
19792 else
19793   echo "$as_me: failed program was:" >&5
19794 sed 's/^/| /' conftest.$ac_ext >&5
19795
19796 continue
19797 fi
19798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19799   cat >conftest.$ac_ext <<_ACEOF
19800 /* confdefs.h.  */
19801 _ACEOF
19802 cat confdefs.h >>conftest.$ac_ext
19803 cat >>conftest.$ac_ext <<_ACEOF
19804 /* end confdefs.h.  */
19805 $ac_declaration
19806 int
19807 main ()
19808 {
19809 exit (42);
19810   ;
19811   return 0;
19812 }
19813 _ACEOF
19814 rm -f conftest.$ac_objext
19815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19816   (eval $ac_compile) 2>conftest.er1
19817   ac_status=$?
19818   grep -v '^ *+' conftest.er1 >conftest.err
19819   rm -f conftest.er1
19820   cat conftest.err >&5
19821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822   (exit $ac_status); } &&
19823          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19825   (eval $ac_try) 2>&5
19826   ac_status=$?
19827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19828   (exit $ac_status); }; } &&
19829          { ac_try='test -s conftest.$ac_objext'
19830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19831   (eval $ac_try) 2>&5
19832   ac_status=$?
19833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834   (exit $ac_status); }; }; then
19835   break
19836 else
19837   echo "$as_me: failed program was:" >&5
19838 sed 's/^/| /' conftest.$ac_ext >&5
19839
19840 fi
19841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19842 done
19843 rm -f conftest*
19844 if test -n "$ac_declaration"; then
19845   echo '#ifdef __cplusplus' >>confdefs.h
19846   echo $ac_declaration      >>confdefs.h
19847   echo '#endif'             >>confdefs.h
19848 fi
19849
19850 else
19851   echo "$as_me: failed program was:" >&5
19852 sed 's/^/| /' conftest.$ac_ext >&5
19853
19854 fi
19855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19856 ac_ext=c
19857 ac_cpp='$CPP $CPPFLAGS'
19858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19861
19862 depcc="$CC"   am_compiler_list=
19863
19864 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19865 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19866 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19867   echo $ECHO_N "(cached) $ECHO_C" >&6
19868 else
19869   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19870   # We make a subdir and do the tests there.  Otherwise we can end up
19871   # making bogus files that we don't know about and never remove.  For
19872   # instance it was reported that on HP-UX the gcc test will end up
19873   # making a dummy file named `D' -- because `-MD' means `put the output
19874   # in D'.
19875   mkdir conftest.dir
19876   # Copy depcomp to subdir because otherwise we won't find it if we're
19877   # using a relative directory.
19878   cp "$am_depcomp" conftest.dir
19879   cd conftest.dir
19880   # We will build objects and dependencies in a subdirectory because
19881   # it helps to detect inapplicable dependency modes.  For instance
19882   # both Tru64's cc and ICC support -MD to output dependencies as a
19883   # side effect of compilation, but ICC will put the dependencies in
19884   # the current directory while Tru64 will put them in the object
19885   # directory.
19886   mkdir sub
19887
19888   am_cv_CC_dependencies_compiler_type=none
19889   if test "$am_compiler_list" = ""; then
19890      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19891   fi
19892   for depmode in $am_compiler_list; do
19893     # Setup a source with many dependencies, because some compilers
19894     # like to wrap large dependency lists on column 80 (with \), and
19895     # we should not choose a depcomp mode which is confused by this.
19896     #
19897     # We need to recreate these files for each test, as the compiler may
19898     # overwrite some of them when testing with obscure command lines.
19899     # This happens at least with the AIX C compiler.
19900     : > sub/conftest.c
19901     for i in 1 2 3 4 5 6; do
19902       echo '#include "conftst'$i'.h"' >> sub/conftest.c
19903       : > sub/conftst$i.h
19904     done
19905     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19906
19907     case $depmode in
19908     nosideeffect)
19909       # after this tag, mechanisms are not by side-effect, so they'll
19910       # only be used when explicitly requested
19911       if test "x$enable_dependency_tracking" = xyes; then
19912         continue
19913       else
19914         break
19915       fi
19916       ;;
19917     none) break ;;
19918     esac
19919     # We check with `-c' and `-o' for the sake of the "dashmstdout"
19920     # mode.  It turns out that the SunPro C++ compiler does not properly
19921     # handle `-M -o', and we need to detect this.
19922     if depmode=$depmode \
19923        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19924        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19925        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19926          >/dev/null 2>conftest.err &&
19927        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19928        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19929        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19930       # icc doesn't choke on unknown options, it will just issue warnings
19931       # (even with -Werror).  So we grep stderr for any message
19932       # that says an option was ignored.
19933       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
19934         am_cv_CC_dependencies_compiler_type=$depmode
19935         break
19936       fi
19937     fi
19938   done
19939
19940   cd ..
19941   rm -rf conftest.dir
19942 else
19943   am_cv_CC_dependencies_compiler_type=none
19944 fi
19945
19946 fi
19947 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19948 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19949 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19950
19951
19952
19953 if
19954   test "x$enable_dependency_tracking" != xno \
19955   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19956   am__fastdepCC_TRUE=
19957   am__fastdepCC_FALSE='#'
19958 else
19959   am__fastdepCC_TRUE='#'
19960   am__fastdepCC_FALSE=
19961 fi
19962
19963
19964 ac_ext=f
19965 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
19966 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19967 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
19968 if test -n "$ac_tool_prefix"; then
19969   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
19970   do
19971     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19972 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19973 echo "$as_me:$LINENO: checking for $ac_word" >&5
19974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19975 if test "${ac_cv_prog_F77+set}" = set; then
19976   echo $ECHO_N "(cached) $ECHO_C" >&6
19977 else
19978   if test -n "$F77"; then
19979   ac_cv_prog_F77="$F77" # Let the user override the test.
19980 else
19981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19982 for as_dir in $PATH
19983 do
19984   IFS=$as_save_IFS
19985   test -z "$as_dir" && as_dir=.
19986   for ac_exec_ext in '' $ac_executable_extensions; do
19987   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19988     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
19989     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19990     break 2
19991   fi
19992 done
19993 done
19994
19995 fi
19996 fi
19997 F77=$ac_cv_prog_F77
19998 if test -n "$F77"; then
19999   echo "$as_me:$LINENO: result: $F77" >&5
20000 echo "${ECHO_T}$F77" >&6
20001 else
20002   echo "$as_me:$LINENO: result: no" >&5
20003 echo "${ECHO_T}no" >&6
20004 fi
20005
20006     test -n "$F77" && break
20007   done
20008 fi
20009 if test -z "$F77"; then
20010   ac_ct_F77=$F77
20011   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
20012 do
20013   # Extract the first word of "$ac_prog", so it can be a program name with args.
20014 set dummy $ac_prog; ac_word=$2
20015 echo "$as_me:$LINENO: checking for $ac_word" >&5
20016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20017 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
20018   echo $ECHO_N "(cached) $ECHO_C" >&6
20019 else
20020   if test -n "$ac_ct_F77"; then
20021   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
20022 else
20023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20024 for as_dir in $PATH
20025 do
20026   IFS=$as_save_IFS
20027   test -z "$as_dir" && as_dir=.
20028   for ac_exec_ext in '' $ac_executable_extensions; do
20029   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20030     ac_cv_prog_ac_ct_F77="$ac_prog"
20031     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20032     break 2
20033   fi
20034 done
20035 done
20036
20037 fi
20038 fi
20039 ac_ct_F77=$ac_cv_prog_ac_ct_F77
20040 if test -n "$ac_ct_F77"; then
20041   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
20042 echo "${ECHO_T}$ac_ct_F77" >&6
20043 else
20044   echo "$as_me:$LINENO: result: no" >&5
20045 echo "${ECHO_T}no" >&6
20046 fi
20047
20048   test -n "$ac_ct_F77" && break
20049 done
20050
20051   F77=$ac_ct_F77
20052 fi
20053
20054
20055 # Provide some information about the compiler.
20056 echo "$as_me:20056:" \
20057      "checking for Fortran 77 compiler version" >&5
20058 ac_compiler=`set X $ac_compile; echo $2`
20059 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
20060   (eval $ac_compiler --version </dev/null >&5) 2>&5
20061   ac_status=$?
20062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20063   (exit $ac_status); }
20064 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
20065   (eval $ac_compiler -v </dev/null >&5) 2>&5
20066   ac_status=$?
20067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20068   (exit $ac_status); }
20069 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
20070   (eval $ac_compiler -V </dev/null >&5) 2>&5
20071   ac_status=$?
20072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20073   (exit $ac_status); }
20074 rm -f a.out
20075
20076 # If we don't use `.F' as extension, the preprocessor is not run on the
20077 # input file.  (Note that this only needs to work for GNU compilers.)
20078 ac_save_ext=$ac_ext
20079 ac_ext=F
20080 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
20081 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
20082 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
20083   echo $ECHO_N "(cached) $ECHO_C" >&6
20084 else
20085   cat >conftest.$ac_ext <<_ACEOF
20086       program main
20087 #ifndef __GNUC__
20088        choke me
20089 #endif
20090
20091       end
20092 _ACEOF
20093 rm -f conftest.$ac_objext
20094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20095   (eval $ac_compile) 2>conftest.er1
20096   ac_status=$?
20097   grep -v '^ *+' conftest.er1 >conftest.err
20098   rm -f conftest.er1
20099   cat conftest.err >&5
20100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101   (exit $ac_status); } &&
20102          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
20103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20104   (eval $ac_try) 2>&5
20105   ac_status=$?
20106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20107   (exit $ac_status); }; } &&
20108          { ac_try='test -s conftest.$ac_objext'
20109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20110   (eval $ac_try) 2>&5
20111   ac_status=$?
20112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20113   (exit $ac_status); }; }; then
20114   ac_compiler_gnu=yes
20115 else
20116   echo "$as_me: failed program was:" >&5
20117 sed 's/^/| /' conftest.$ac_ext >&5
20118
20119 ac_compiler_gnu=no
20120 fi
20121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20122 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
20123
20124 fi
20125 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
20126 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
20127 ac_ext=$ac_save_ext
20128 ac_test_FFLAGS=${FFLAGS+set}
20129 ac_save_FFLAGS=$FFLAGS
20130 FFLAGS=
20131 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
20132 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
20133 if test "${ac_cv_prog_f77_g+set}" = set; then
20134   echo $ECHO_N "(cached) $ECHO_C" >&6
20135 else
20136   FFLAGS=-g
20137 cat >conftest.$ac_ext <<_ACEOF
20138       program main
20139
20140       end
20141 _ACEOF
20142 rm -f conftest.$ac_objext
20143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20144   (eval $ac_compile) 2>conftest.er1
20145   ac_status=$?
20146   grep -v '^ *+' conftest.er1 >conftest.err
20147   rm -f conftest.er1
20148   cat conftest.err >&5
20149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150   (exit $ac_status); } &&
20151          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
20152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20153   (eval $ac_try) 2>&5
20154   ac_status=$?
20155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156   (exit $ac_status); }; } &&
20157          { ac_try='test -s conftest.$ac_objext'
20158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20159   (eval $ac_try) 2>&5
20160   ac_status=$?
20161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162   (exit $ac_status); }; }; then
20163   ac_cv_prog_f77_g=yes
20164 else
20165   echo "$as_me: failed program was:" >&5
20166 sed 's/^/| /' conftest.$ac_ext >&5
20167
20168 ac_cv_prog_f77_g=no
20169 fi
20170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20171
20172 fi
20173 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
20174 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
20175 if test "$ac_test_FFLAGS" = set; then
20176   FFLAGS=$ac_save_FFLAGS
20177 elif test $ac_cv_prog_f77_g = yes; then
20178   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
20179     FFLAGS="-g -O2"
20180   else
20181     FFLAGS="-g"
20182   fi
20183 else
20184   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
20185     FFLAGS="-O2"
20186   else
20187     FFLAGS=
20188   fi
20189 fi
20190
20191 G77=`test $ac_compiler_gnu = yes && echo yes`
20192 ac_ext=c
20193 ac_cpp='$CPP $CPPFLAGS'
20194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20197
20198 ac_ext=f
20199 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20200 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20201 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20202 echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
20203 echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
20204 if test "${ac_cv_prog_f77_v+set}" = set; then
20205   echo $ECHO_N "(cached) $ECHO_C" >&6
20206 else
20207   cat >conftest.$ac_ext <<_ACEOF
20208       program main
20209
20210       end
20211 _ACEOF
20212 rm -f conftest.$ac_objext
20213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20214   (eval $ac_compile) 2>conftest.er1
20215   ac_status=$?
20216   grep -v '^ *+' conftest.er1 >conftest.err
20217   rm -f conftest.er1
20218   cat conftest.err >&5
20219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220   (exit $ac_status); } &&
20221          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
20222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20223   (eval $ac_try) 2>&5
20224   ac_status=$?
20225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226   (exit $ac_status); }; } &&
20227          { ac_try='test -s conftest.$ac_objext'
20228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20229   (eval $ac_try) 2>&5
20230   ac_status=$?
20231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232   (exit $ac_status); }; }; then
20233   ac_cv_prog_f77_v=
20234 # Try some options frequently used verbose output
20235 for ac_verb in -v -verbose --verbose -V -\#\#\#; do
20236   cat >conftest.$ac_ext <<_ACEOF
20237       program main
20238
20239       end
20240 _ACEOF
20241
20242 # Compile and link our simple test program by passing a flag (argument
20243 # 1 to this macro) to the Fortran compiler in order to get
20244 # "verbose" output that we can then parse for the Fortran linker
20245 # flags.
20246 ac_save_FFLAGS=$FFLAGS
20247 FFLAGS="$FFLAGS $ac_verb"
20248 (eval echo $as_me:20248: \"$ac_link\") >&5
20249 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
20250 echo "$ac_f77_v_output" >&5
20251 FFLAGS=$ac_save_FFLAGS
20252
20253 rm -f conftest*
20254
20255 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
20256 # /foo, /bar, and /baz are search directories for the Fortran linker.
20257 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
20258 ac_f77_v_output="`echo $ac_f77_v_output |
20259         grep 'LPATH is:' |
20260         sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
20261
20262 case $ac_f77_v_output in
20263   # If we are using xlf then replace all the commas with spaces.
20264   *xlfentry*)
20265     ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
20266
20267   # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
20268   # $LIBS confuse us, and the libraries appear later in the output anyway).
20269   *mGLOB_options_string*)
20270     ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
20271
20272   # If we are using Cray Fortran then delete quotes.
20273   # Use "\"" instead of '"' for font-lock-mode.
20274   # FIXME: a more general fix for quoted arguments with spaces?
20275   *cft90*)
20276     ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
20277 esac
20278
20279
20280   # look for -l* and *.a constructs in the output
20281   for ac_arg in $ac_f77_v_output; do
20282      case $ac_arg in
20283         [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
20284           ac_cv_prog_f77_v=$ac_verb
20285           break 2 ;;
20286      esac
20287   done
20288 done
20289 if test -z "$ac_cv_prog_f77_v"; then
20290    { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
20291 echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
20292 fi
20293 else
20294   echo "$as_me: failed program was:" >&5
20295 sed 's/^/| /' conftest.$ac_ext >&5
20296
20297 { echo "$as_me:$LINENO: WARNING: compilation failed" >&5
20298 echo "$as_me: WARNING: compilation failed" >&2;}
20299 fi
20300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20301
20302 fi
20303 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
20304 echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
20305 echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
20306 echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
20307 if test "${ac_cv_f77_libs+set}" = set; then
20308   echo $ECHO_N "(cached) $ECHO_C" >&6
20309 else
20310   if test "x$FLIBS" != "x"; then
20311   ac_cv_f77_libs="$FLIBS" # Let the user override the test.
20312 else
20313
20314 cat >conftest.$ac_ext <<_ACEOF
20315       program main
20316
20317       end
20318 _ACEOF
20319
20320 # Compile and link our simple test program by passing a flag (argument
20321 # 1 to this macro) to the Fortran compiler in order to get
20322 # "verbose" output that we can then parse for the Fortran linker
20323 # flags.
20324 ac_save_FFLAGS=$FFLAGS
20325 FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
20326 (eval echo $as_me:20326: \"$ac_link\") >&5
20327 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
20328 echo "$ac_f77_v_output" >&5
20329 FFLAGS=$ac_save_FFLAGS
20330
20331 rm -f conftest*
20332
20333 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
20334 # /foo, /bar, and /baz are search directories for the Fortran linker.
20335 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
20336 ac_f77_v_output="`echo $ac_f77_v_output |
20337         grep 'LPATH is:' |
20338         sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
20339
20340 case $ac_f77_v_output in
20341   # If we are using xlf then replace all the commas with spaces.
20342   *xlfentry*)
20343     ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
20344
20345   # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
20346   # $LIBS confuse us, and the libraries appear later in the output anyway).
20347   *mGLOB_options_string*)
20348     ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
20349
20350   # If we are using Cray Fortran then delete quotes.
20351   # Use "\"" instead of '"' for font-lock-mode.
20352   # FIXME: a more general fix for quoted arguments with spaces?
20353   *cft90*)
20354     ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
20355 esac
20356
20357
20358
20359 ac_cv_f77_libs=
20360
20361 # Save positional arguments (if any)
20362 ac_save_positional="$@"
20363
20364 set X $ac_f77_v_output
20365 while test $# != 1; do
20366   shift
20367   ac_arg=$1
20368   case $ac_arg in
20369         [\\/]*.a | ?:[\\/]*.a)
20370             ac_exists=false
20371   for ac_i in $ac_cv_f77_libs; do
20372     if test x"$ac_arg" = x"$ac_i"; then
20373       ac_exists=true
20374       break
20375     fi
20376   done
20377
20378   if test x"$ac_exists" = xtrue; then
20379   :
20380 else
20381   ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
20382 fi
20383
20384           ;;
20385         -bI:*)
20386             ac_exists=false
20387   for ac_i in $ac_cv_f77_libs; do
20388     if test x"$ac_arg" = x"$ac_i"; then
20389       ac_exists=true
20390       break
20391     fi
20392   done
20393
20394   if test x"$ac_exists" = xtrue; then
20395   :
20396 else
20397   if test "$ac_compiler_gnu" = yes; then
20398   for ac_link_opt in $ac_arg; do
20399     ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
20400   done
20401 else
20402   ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
20403 fi
20404 fi
20405
20406           ;;
20407           # Ignore these flags.
20408         -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
20409           ;;
20410         -lkernel32)
20411           test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
20412           ;;
20413         -[LRuY])
20414           # These flags, when seen by themselves, take an argument.
20415           # We remove the space between option and argument and re-iterate
20416           # unless we find an empty arg or a new option (starting with -)
20417           case $2 in
20418              "" | -*);;
20419              *)
20420                 ac_arg="$ac_arg$2"
20421                 shift; shift
20422                 set X $ac_arg "$@"
20423                 ;;
20424           esac
20425           ;;
20426         -YP,*)
20427           for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
20428               ac_exists=false
20429   for ac_i in $ac_cv_f77_libs; do
20430     if test x"$ac_j" = x"$ac_i"; then
20431       ac_exists=true
20432       break
20433     fi
20434   done
20435
20436   if test x"$ac_exists" = xtrue; then
20437   :
20438 else
20439   ac_arg="$ac_arg $ac_j"
20440                                ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
20441 fi
20442
20443           done
20444           ;;
20445         -[lLR]*)
20446             ac_exists=false
20447   for ac_i in $ac_cv_f77_libs; do
20448     if test x"$ac_arg" = x"$ac_i"; then
20449       ac_exists=true
20450       break
20451     fi
20452   done
20453
20454   if test x"$ac_exists" = xtrue; then
20455   :
20456 else
20457   ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
20458 fi
20459
20460           ;;
20461           # Ignore everything else.
20462   esac
20463 done
20464 # restore positional arguments
20465 set X $ac_save_positional; shift
20466
20467 # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
20468 # then we insist that the "run path" must be an absolute path (i.e. it
20469 # must begin with a "/").
20470 case `(uname -sr) 2>/dev/null` in
20471    "SunOS 5"*)
20472       ac_ld_run_path=`echo $ac_f77_v_output |
20473                         sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
20474       test "x$ac_ld_run_path" != x &&
20475         if test "$ac_compiler_gnu" = yes; then
20476   for ac_link_opt in $ac_ld_run_path; do
20477     ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
20478   done
20479 else
20480   ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
20481 fi
20482       ;;
20483 esac
20484 fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
20485
20486 fi
20487 echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
20488 echo "${ECHO_T}$ac_cv_f77_libs" >&6
20489 FLIBS="$ac_cv_f77_libs"
20490
20491
20492 ac_ext=c
20493 ac_cpp='$CPP $CPPFLAGS'
20494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20497
20498 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
20499 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
20500 # Just in case
20501 sleep 1
20502 echo timestamp > conftest.file
20503 # Do `set' in a subshell so we don't clobber the current shell's
20504 # arguments.  Must try -L first in case configure is actually a
20505 # symlink; some systems play weird games with the mod time of symlinks
20506 # (eg FreeBSD returns the mod time of the symlink's containing
20507 # directory).
20508 if (
20509    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
20510    if test "$*" = "X"; then
20511       # -L didn't work.
20512       set X `ls -t $srcdir/configure conftest.file`
20513    fi
20514    rm -f conftest.file
20515    if test "$*" != "X $srcdir/configure conftest.file" \
20516       && test "$*" != "X conftest.file $srcdir/configure"; then
20517
20518       # If neither matched, then we have a broken ls.  This can happen
20519       # if, for instance, CONFIG_SHELL is bash and it inherits a
20520       # broken ls alias from the environment.  This has actually
20521       # happened.  Such a system could not be considered "sane".
20522       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
20523 alias in your environment" >&5
20524 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
20525 alias in your environment" >&2;}
20526    { (exit 1); exit 1; }; }
20527    fi
20528
20529    test "$2" = conftest.file
20530    )
20531 then
20532    # Ok.
20533    :
20534 else
20535    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
20536 Check your system clock" >&5
20537 echo "$as_me: error: newly created file is older than distributed files!
20538 Check your system clock" >&2;}
20539    { (exit 1); exit 1; }; }
20540 fi
20541 echo "$as_me:$LINENO: result: yes" >&5
20542 echo "${ECHO_T}yes" >&6
20543 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20544 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
20545 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
20546 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
20547   echo $ECHO_N "(cached) $ECHO_C" >&6
20548 else
20549   cat >conftest.make <<\_ACEOF
20550 all:
20551         @echo 'ac_maketemp="$(MAKE)"'
20552 _ACEOF
20553 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20554 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
20555 if test -n "$ac_maketemp"; then
20556   eval ac_cv_prog_make_${ac_make}_set=yes
20557 else
20558   eval ac_cv_prog_make_${ac_make}_set=no
20559 fi
20560 rm -f conftest.make
20561 fi
20562 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
20563   echo "$as_me:$LINENO: result: yes" >&5
20564 echo "${ECHO_T}yes" >&6
20565   SET_MAKE=
20566 else
20567   echo "$as_me:$LINENO: result: no" >&5
20568 echo "${ECHO_T}no" >&6
20569   SET_MAKE="MAKE=${MAKE-make}"
20570 fi
20571
20572
20573 # Checks for header files.
20574 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20575 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20576 if test "${ac_cv_header_stdc+set}" = set; then
20577   echo $ECHO_N "(cached) $ECHO_C" >&6
20578 else
20579   cat >conftest.$ac_ext <<_ACEOF
20580 /* confdefs.h.  */
20581 _ACEOF
20582 cat confdefs.h >>conftest.$ac_ext
20583 cat >>conftest.$ac_ext <<_ACEOF
20584 /* end confdefs.h.  */
20585 #include <stdlib.h>
20586 #include <stdarg.h>
20587 #include <string.h>
20588 #include <float.h>
20589
20590 int
20591 main ()
20592 {
20593
20594   ;
20595   return 0;
20596 }
20597 _ACEOF
20598 rm -f conftest.$ac_objext
20599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20600   (eval $ac_compile) 2>conftest.er1
20601   ac_status=$?
20602   grep -v '^ *+' conftest.er1 >conftest.err
20603   rm -f conftest.er1
20604   cat conftest.err >&5
20605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20606   (exit $ac_status); } &&
20607          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20609   (eval $ac_try) 2>&5
20610   ac_status=$?
20611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612   (exit $ac_status); }; } &&
20613          { ac_try='test -s conftest.$ac_objext'
20614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20615   (eval $ac_try) 2>&5
20616   ac_status=$?
20617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20618   (exit $ac_status); }; }; then
20619   ac_cv_header_stdc=yes
20620 else
20621   echo "$as_me: failed program was:" >&5
20622 sed 's/^/| /' conftest.$ac_ext >&5
20623
20624 ac_cv_header_stdc=no
20625 fi
20626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20627
20628 if test $ac_cv_header_stdc = yes; then
20629   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20630   cat >conftest.$ac_ext <<_ACEOF
20631 /* confdefs.h.  */
20632 _ACEOF
20633 cat confdefs.h >>conftest.$ac_ext
20634 cat >>conftest.$ac_ext <<_ACEOF
20635 /* end confdefs.h.  */
20636 #include <string.h>
20637
20638 _ACEOF
20639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20640   $EGREP "memchr" >/dev/null 2>&1; then
20641   :
20642 else
20643   ac_cv_header_stdc=no
20644 fi
20645 rm -f conftest*
20646
20647 fi
20648
20649 if test $ac_cv_header_stdc = yes; then
20650   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20651   cat >conftest.$ac_ext <<_ACEOF
20652 /* confdefs.h.  */
20653 _ACEOF
20654 cat confdefs.h >>conftest.$ac_ext
20655 cat >>conftest.$ac_ext <<_ACEOF
20656 /* end confdefs.h.  */
20657 #include <stdlib.h>
20658
20659 _ACEOF
20660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20661   $EGREP "free" >/dev/null 2>&1; then
20662   :
20663 else
20664   ac_cv_header_stdc=no
20665 fi
20666 rm -f conftest*
20667
20668 fi
20669
20670 if test $ac_cv_header_stdc = yes; then
20671   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20672   if test "$cross_compiling" = yes; then
20673   :
20674 else
20675   cat >conftest.$ac_ext <<_ACEOF
20676 /* confdefs.h.  */
20677 _ACEOF
20678 cat confdefs.h >>conftest.$ac_ext
20679 cat >>conftest.$ac_ext <<_ACEOF
20680 /* end confdefs.h.  */
20681 #include <ctype.h>
20682 #if ((' ' & 0x0FF) == 0x020)
20683 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20684 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20685 #else
20686 # define ISLOWER(c) \
20687                    (('a' <= (c) && (c) <= 'i') \
20688                      || ('j' <= (c) && (c) <= 'r') \
20689                      || ('s' <= (c) && (c) <= 'z'))
20690 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20691 #endif
20692
20693 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20694 int
20695 main ()
20696 {
20697   int i;
20698   for (i = 0; i < 256; i++)
20699     if (XOR (islower (i), ISLOWER (i))
20700         || toupper (i) != TOUPPER (i))
20701       exit(2);
20702   exit (0);
20703 }
20704 _ACEOF
20705 rm -f conftest$ac_exeext
20706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20707   (eval $ac_link) 2>&5
20708   ac_status=$?
20709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20712   (eval $ac_try) 2>&5
20713   ac_status=$?
20714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715   (exit $ac_status); }; }; then
20716   :
20717 else
20718   echo "$as_me: program exited with status $ac_status" >&5
20719 echo "$as_me: failed program was:" >&5
20720 sed 's/^/| /' conftest.$ac_ext >&5
20721
20722 ( exit $ac_status )
20723 ac_cv_header_stdc=no
20724 fi
20725 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20726 fi
20727 fi
20728 fi
20729 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20730 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20731 if test $ac_cv_header_stdc = yes; then
20732
20733 cat >>confdefs.h <<\_ACEOF
20734 #define STDC_HEADERS 1
20735 _ACEOF
20736
20737 fi
20738
20739
20740
20741
20742
20743 for ac_header in stddef.h stdlib.h string.h unistd.h
20744 do
20745 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20747   echo "$as_me:$LINENO: checking for $ac_header" >&5
20748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20750   echo $ECHO_N "(cached) $ECHO_C" >&6
20751 fi
20752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20753 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20754 else
20755   # Is the header compilable?
20756 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20757 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20758 cat >conftest.$ac_ext <<_ACEOF
20759 /* confdefs.h.  */
20760 _ACEOF
20761 cat confdefs.h >>conftest.$ac_ext
20762 cat >>conftest.$ac_ext <<_ACEOF
20763 /* end confdefs.h.  */
20764 $ac_includes_default
20765 #include <$ac_header>
20766 _ACEOF
20767 rm -f conftest.$ac_objext
20768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20769   (eval $ac_compile) 2>conftest.er1
20770   ac_status=$?
20771   grep -v '^ *+' conftest.er1 >conftest.err
20772   rm -f conftest.er1
20773   cat conftest.err >&5
20774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775   (exit $ac_status); } &&
20776          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20778   (eval $ac_try) 2>&5
20779   ac_status=$?
20780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781   (exit $ac_status); }; } &&
20782          { ac_try='test -s conftest.$ac_objext'
20783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20784   (eval $ac_try) 2>&5
20785   ac_status=$?
20786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787   (exit $ac_status); }; }; then
20788   ac_header_compiler=yes
20789 else
20790   echo "$as_me: failed program was:" >&5
20791 sed 's/^/| /' conftest.$ac_ext >&5
20792
20793 ac_header_compiler=no
20794 fi
20795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20796 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20797 echo "${ECHO_T}$ac_header_compiler" >&6
20798
20799 # Is the header present?
20800 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20801 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20802 cat >conftest.$ac_ext <<_ACEOF
20803 /* confdefs.h.  */
20804 _ACEOF
20805 cat confdefs.h >>conftest.$ac_ext
20806 cat >>conftest.$ac_ext <<_ACEOF
20807 /* end confdefs.h.  */
20808 #include <$ac_header>
20809 _ACEOF
20810 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20811   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20812   ac_status=$?
20813   grep -v '^ *+' conftest.er1 >conftest.err
20814   rm -f conftest.er1
20815   cat conftest.err >&5
20816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817   (exit $ac_status); } >/dev/null; then
20818   if test -s conftest.err; then
20819     ac_cpp_err=$ac_c_preproc_warn_flag
20820     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20821   else
20822     ac_cpp_err=
20823   fi
20824 else
20825   ac_cpp_err=yes
20826 fi
20827 if test -z "$ac_cpp_err"; then
20828   ac_header_preproc=yes
20829 else
20830   echo "$as_me: failed program was:" >&5
20831 sed 's/^/| /' conftest.$ac_ext >&5
20832
20833   ac_header_preproc=no
20834 fi
20835 rm -f conftest.err conftest.$ac_ext
20836 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20837 echo "${ECHO_T}$ac_header_preproc" >&6
20838
20839 # So?  What about this header?
20840 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20841   yes:no: )
20842     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20843 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20844     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20845 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20846     ac_header_preproc=yes
20847     ;;
20848   no:yes:* )
20849     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20850 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20851     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20852 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20853     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20854 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20855     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20856 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20857     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20858 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20859     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20860 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20861     (
20862       cat <<\_ASBOX
20863 ## ----------------------------------------- ##
20864 ## Report this to martin.quinson@ens-lyon.fr ##
20865 ## ----------------------------------------- ##
20866 _ASBOX
20867     ) |
20868       sed "s/^/$as_me: WARNING:     /" >&2
20869     ;;
20870 esac
20871 echo "$as_me:$LINENO: checking for $ac_header" >&5
20872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20874   echo $ECHO_N "(cached) $ECHO_C" >&6
20875 else
20876   eval "$as_ac_Header=\$ac_header_preproc"
20877 fi
20878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20879 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20880
20881 fi
20882 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20883   cat >>confdefs.h <<_ACEOF
20884 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20885 _ACEOF
20886
20887 fi
20888
20889 done
20890
20891
20892 # Checks for typedefs, structures, and compiler characteristics.
20893 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20894 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20895 if test "${ac_cv_c_const+set}" = set; then
20896   echo $ECHO_N "(cached) $ECHO_C" >&6
20897 else
20898   cat >conftest.$ac_ext <<_ACEOF
20899 /* confdefs.h.  */
20900 _ACEOF
20901 cat confdefs.h >>conftest.$ac_ext
20902 cat >>conftest.$ac_ext <<_ACEOF
20903 /* end confdefs.h.  */
20904
20905 int
20906 main ()
20907 {
20908 /* FIXME: Include the comments suggested by Paul. */
20909 #ifndef __cplusplus
20910   /* Ultrix mips cc rejects this.  */
20911   typedef int charset[2];
20912   const charset x;
20913   /* SunOS 4.1.1 cc rejects this.  */
20914   char const *const *ccp;
20915   char **p;
20916   /* NEC SVR4.0.2 mips cc rejects this.  */
20917   struct point {int x, y;};
20918   static struct point const zero = {0,0};
20919   /* AIX XL C 1.02.0.0 rejects this.
20920      It does not let you subtract one const X* pointer from another in
20921      an arm of an if-expression whose if-part is not a constant
20922      expression */
20923   const char *g = "string";
20924   ccp = &g + (g ? g-g : 0);
20925   /* HPUX 7.0 cc rejects these. */
20926   ++ccp;
20927   p = (char**) ccp;
20928   ccp = (char const *const *) p;
20929   { /* SCO 3.2v4 cc rejects this.  */
20930     char *t;
20931     char const *s = 0 ? (char *) 0 : (char const *) 0;
20932
20933     *t++ = 0;
20934   }
20935   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20936     int x[] = {25, 17};
20937     const int *foo = &x[0];
20938     ++foo;
20939   }
20940   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20941     typedef const int *iptr;
20942     iptr p = 0;
20943     ++p;
20944   }
20945   { /* AIX XL C 1.02.0.0 rejects this saying
20946        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20947     struct s { int j; const int *ap[3]; };
20948     struct s *b; b->j = 5;
20949   }
20950   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20951     const int foo = 10;
20952   }
20953 #endif
20954
20955   ;
20956   return 0;
20957 }
20958 _ACEOF
20959 rm -f conftest.$ac_objext
20960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20961   (eval $ac_compile) 2>conftest.er1
20962   ac_status=$?
20963   grep -v '^ *+' conftest.er1 >conftest.err
20964   rm -f conftest.er1
20965   cat conftest.err >&5
20966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20967   (exit $ac_status); } &&
20968          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20970   (eval $ac_try) 2>&5
20971   ac_status=$?
20972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973   (exit $ac_status); }; } &&
20974          { ac_try='test -s conftest.$ac_objext'
20975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20976   (eval $ac_try) 2>&5
20977   ac_status=$?
20978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979   (exit $ac_status); }; }; then
20980   ac_cv_c_const=yes
20981 else
20982   echo "$as_me: failed program was:" >&5
20983 sed 's/^/| /' conftest.$ac_ext >&5
20984
20985 ac_cv_c_const=no
20986 fi
20987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20988 fi
20989 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20990 echo "${ECHO_T}$ac_cv_c_const" >&6
20991 if test $ac_cv_c_const = no; then
20992
20993 cat >>confdefs.h <<\_ACEOF
20994 #define const
20995 _ACEOF
20996
20997 fi
20998
20999 echo "$as_me:$LINENO: checking for inline" >&5
21000 echo $ECHO_N "checking for inline... $ECHO_C" >&6
21001 if test "${ac_cv_c_inline+set}" = set; then
21002   echo $ECHO_N "(cached) $ECHO_C" >&6
21003 else
21004   ac_cv_c_inline=no
21005 for ac_kw in inline __inline__ __inline; do
21006   cat >conftest.$ac_ext <<_ACEOF
21007 /* confdefs.h.  */
21008 _ACEOF
21009 cat confdefs.h >>conftest.$ac_ext
21010 cat >>conftest.$ac_ext <<_ACEOF
21011 /* end confdefs.h.  */
21012 #ifndef __cplusplus
21013 typedef int foo_t;
21014 static $ac_kw foo_t static_foo () {return 0; }
21015 $ac_kw foo_t foo () {return 0; }
21016 #endif
21017
21018 _ACEOF
21019 rm -f conftest.$ac_objext
21020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21021   (eval $ac_compile) 2>conftest.er1
21022   ac_status=$?
21023   grep -v '^ *+' conftest.er1 >conftest.err
21024   rm -f conftest.er1
21025   cat conftest.err >&5
21026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21027   (exit $ac_status); } &&
21028          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21030   (eval $ac_try) 2>&5
21031   ac_status=$?
21032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033   (exit $ac_status); }; } &&
21034          { ac_try='test -s conftest.$ac_objext'
21035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21036   (eval $ac_try) 2>&5
21037   ac_status=$?
21038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21039   (exit $ac_status); }; }; then
21040   ac_cv_c_inline=$ac_kw; break
21041 else
21042   echo "$as_me: failed program was:" >&5
21043 sed 's/^/| /' conftest.$ac_ext >&5
21044
21045 fi
21046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21047 done
21048
21049 fi
21050 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21051 echo "${ECHO_T}$ac_cv_c_inline" >&6
21052
21053
21054 case $ac_cv_c_inline in
21055   inline | yes) ;;
21056   *)
21057     case $ac_cv_c_inline in
21058       no) ac_val=;;
21059       *) ac_val=$ac_cv_c_inline;;
21060     esac
21061     cat >>confdefs.h <<_ACEOF
21062 #ifndef __cplusplus
21063 #define inline $ac_val
21064 #endif
21065 _ACEOF
21066     ;;
21067 esac
21068
21069 echo "$as_me:$LINENO: checking for size_t" >&5
21070 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21071 if test "${ac_cv_type_size_t+set}" = set; then
21072   echo $ECHO_N "(cached) $ECHO_C" >&6
21073 else
21074   cat >conftest.$ac_ext <<_ACEOF
21075 /* confdefs.h.  */
21076 _ACEOF
21077 cat confdefs.h >>conftest.$ac_ext
21078 cat >>conftest.$ac_ext <<_ACEOF
21079 /* end confdefs.h.  */
21080 $ac_includes_default
21081 int
21082 main ()
21083 {
21084 if ((size_t *) 0)
21085   return 0;
21086 if (sizeof (size_t))
21087   return 0;
21088   ;
21089   return 0;
21090 }
21091 _ACEOF
21092 rm -f conftest.$ac_objext
21093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21094   (eval $ac_compile) 2>conftest.er1
21095   ac_status=$?
21096   grep -v '^ *+' conftest.er1 >conftest.err
21097   rm -f conftest.er1
21098   cat conftest.err >&5
21099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100   (exit $ac_status); } &&
21101          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21103   (eval $ac_try) 2>&5
21104   ac_status=$?
21105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106   (exit $ac_status); }; } &&
21107          { ac_try='test -s conftest.$ac_objext'
21108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21109   (eval $ac_try) 2>&5
21110   ac_status=$?
21111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112   (exit $ac_status); }; }; then
21113   ac_cv_type_size_t=yes
21114 else
21115   echo "$as_me: failed program was:" >&5
21116 sed 's/^/| /' conftest.$ac_ext >&5
21117
21118 ac_cv_type_size_t=no
21119 fi
21120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21121 fi
21122 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21123 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21124 if test $ac_cv_type_size_t = yes; then
21125   :
21126 else
21127
21128 cat >>confdefs.h <<_ACEOF
21129 #define size_t unsigned
21130 _ACEOF
21131
21132 fi
21133
21134
21135 # Checks for library functions.
21136
21137 for ac_header in stdlib.h
21138 do
21139 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21140 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21141   echo "$as_me:$LINENO: checking for $ac_header" >&5
21142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21144   echo $ECHO_N "(cached) $ECHO_C" >&6
21145 fi
21146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21147 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21148 else
21149   # Is the header compilable?
21150 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21151 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21152 cat >conftest.$ac_ext <<_ACEOF
21153 /* confdefs.h.  */
21154 _ACEOF
21155 cat confdefs.h >>conftest.$ac_ext
21156 cat >>conftest.$ac_ext <<_ACEOF
21157 /* end confdefs.h.  */
21158 $ac_includes_default
21159 #include <$ac_header>
21160 _ACEOF
21161 rm -f conftest.$ac_objext
21162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21163   (eval $ac_compile) 2>conftest.er1
21164   ac_status=$?
21165   grep -v '^ *+' conftest.er1 >conftest.err
21166   rm -f conftest.er1
21167   cat conftest.err >&5
21168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21169   (exit $ac_status); } &&
21170          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21172   (eval $ac_try) 2>&5
21173   ac_status=$?
21174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21175   (exit $ac_status); }; } &&
21176          { ac_try='test -s conftest.$ac_objext'
21177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21178   (eval $ac_try) 2>&5
21179   ac_status=$?
21180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181   (exit $ac_status); }; }; then
21182   ac_header_compiler=yes
21183 else
21184   echo "$as_me: failed program was:" >&5
21185 sed 's/^/| /' conftest.$ac_ext >&5
21186
21187 ac_header_compiler=no
21188 fi
21189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21190 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21191 echo "${ECHO_T}$ac_header_compiler" >&6
21192
21193 # Is the header present?
21194 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21195 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21196 cat >conftest.$ac_ext <<_ACEOF
21197 /* confdefs.h.  */
21198 _ACEOF
21199 cat confdefs.h >>conftest.$ac_ext
21200 cat >>conftest.$ac_ext <<_ACEOF
21201 /* end confdefs.h.  */
21202 #include <$ac_header>
21203 _ACEOF
21204 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21205   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21206   ac_status=$?
21207   grep -v '^ *+' conftest.er1 >conftest.err
21208   rm -f conftest.er1
21209   cat conftest.err >&5
21210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211   (exit $ac_status); } >/dev/null; then
21212   if test -s conftest.err; then
21213     ac_cpp_err=$ac_c_preproc_warn_flag
21214     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21215   else
21216     ac_cpp_err=
21217   fi
21218 else
21219   ac_cpp_err=yes
21220 fi
21221 if test -z "$ac_cpp_err"; then
21222   ac_header_preproc=yes
21223 else
21224   echo "$as_me: failed program was:" >&5
21225 sed 's/^/| /' conftest.$ac_ext >&5
21226
21227   ac_header_preproc=no
21228 fi
21229 rm -f conftest.err conftest.$ac_ext
21230 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21231 echo "${ECHO_T}$ac_header_preproc" >&6
21232
21233 # So?  What about this header?
21234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21235   yes:no: )
21236     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21237 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21238     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21239 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21240     ac_header_preproc=yes
21241     ;;
21242   no:yes:* )
21243     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21244 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21245     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21246 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21247     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21248 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21249     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21250 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21251     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21252 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21253     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21254 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21255     (
21256       cat <<\_ASBOX
21257 ## ----------------------------------------- ##
21258 ## Report this to martin.quinson@ens-lyon.fr ##
21259 ## ----------------------------------------- ##
21260 _ASBOX
21261     ) |
21262       sed "s/^/$as_me: WARNING:     /" >&2
21263     ;;
21264 esac
21265 echo "$as_me:$LINENO: checking for $ac_header" >&5
21266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21268   echo $ECHO_N "(cached) $ECHO_C" >&6
21269 else
21270   eval "$as_ac_Header=\$ac_header_preproc"
21271 fi
21272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21273 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21274
21275 fi
21276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21277   cat >>confdefs.h <<_ACEOF
21278 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21279 _ACEOF
21280
21281 fi
21282
21283 done
21284
21285 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
21286 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
21287 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
21288   echo $ECHO_N "(cached) $ECHO_C" >&6
21289 else
21290   if test "$cross_compiling" = yes; then
21291   ac_cv_func_malloc_0_nonnull=no
21292 else
21293   cat >conftest.$ac_ext <<_ACEOF
21294 /* confdefs.h.  */
21295 _ACEOF
21296 cat confdefs.h >>conftest.$ac_ext
21297 cat >>conftest.$ac_ext <<_ACEOF
21298 /* end confdefs.h.  */
21299 #if STDC_HEADERS || HAVE_STDLIB_H
21300 # include <stdlib.h>
21301 #else
21302 char *malloc ();
21303 #endif
21304
21305 int
21306 main ()
21307 {
21308 exit (malloc (0) ? 0 : 1);
21309   ;
21310   return 0;
21311 }
21312 _ACEOF
21313 rm -f conftest$ac_exeext
21314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21315   (eval $ac_link) 2>&5
21316   ac_status=$?
21317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21320   (eval $ac_try) 2>&5
21321   ac_status=$?
21322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323   (exit $ac_status); }; }; then
21324   ac_cv_func_malloc_0_nonnull=yes
21325 else
21326   echo "$as_me: program exited with status $ac_status" >&5
21327 echo "$as_me: failed program was:" >&5
21328 sed 's/^/| /' conftest.$ac_ext >&5
21329
21330 ( exit $ac_status )
21331 ac_cv_func_malloc_0_nonnull=no
21332 fi
21333 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21334 fi
21335 fi
21336 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
21337 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
21338 if test $ac_cv_func_malloc_0_nonnull = yes; then
21339
21340 cat >>confdefs.h <<\_ACEOF
21341 #define HAVE_MALLOC 1
21342 _ACEOF
21343
21344 else
21345   cat >>confdefs.h <<\_ACEOF
21346 #define HAVE_MALLOC 0
21347 _ACEOF
21348
21349    case $LIBOBJS in
21350     "malloc.$ac_objext"   | \
21351   *" malloc.$ac_objext"   | \
21352     "malloc.$ac_objext "* | \
21353   *" malloc.$ac_objext "* ) ;;
21354   *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
21355 esac
21356
21357
21358 cat >>confdefs.h <<\_ACEOF
21359 #define malloc rpl_malloc
21360 _ACEOF
21361
21362 fi
21363
21364
21365
21366 echo "$as_me:$LINENO: checking for working memcmp" >&5
21367 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21368 if test "${ac_cv_func_memcmp_working+set}" = set; then
21369   echo $ECHO_N "(cached) $ECHO_C" >&6
21370 else
21371   if test "$cross_compiling" = yes; then
21372   ac_cv_func_memcmp_working=no
21373 else
21374   cat >conftest.$ac_ext <<_ACEOF
21375 /* confdefs.h.  */
21376 _ACEOF
21377 cat confdefs.h >>conftest.$ac_ext
21378 cat >>conftest.$ac_ext <<_ACEOF
21379 /* end confdefs.h.  */
21380 $ac_includes_default
21381 int
21382 main ()
21383 {
21384
21385   /* Some versions of memcmp are not 8-bit clean.  */
21386   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21387   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21388     exit (1);
21389
21390   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21391      or more and with at least one buffer not starting on a 4-byte boundary.
21392      William Lewis provided this test program.   */
21393   {
21394     char foo[21];
21395     char bar[21];
21396     int i;
21397     for (i = 0; i < 4; i++)
21398       {
21399         char *a = foo + i;
21400         char *b = bar + i;
21401         strcpy (a, "--------01111111");
21402         strcpy (b, "--------10000000");
21403         if (memcmp (a, b, 16) >= 0)
21404           exit (1);
21405       }
21406     exit (0);
21407   }
21408
21409   ;
21410   return 0;
21411 }
21412 _ACEOF
21413 rm -f conftest$ac_exeext
21414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21415   (eval $ac_link) 2>&5
21416   ac_status=$?
21417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21418   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21420   (eval $ac_try) 2>&5
21421   ac_status=$?
21422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21423   (exit $ac_status); }; }; then
21424   ac_cv_func_memcmp_working=yes
21425 else
21426   echo "$as_me: program exited with status $ac_status" >&5
21427 echo "$as_me: failed program was:" >&5
21428 sed 's/^/| /' conftest.$ac_ext >&5
21429
21430 ( exit $ac_status )
21431 ac_cv_func_memcmp_working=no
21432 fi
21433 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21434 fi
21435 fi
21436 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21437 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21438 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
21439     "memcmp.$ac_objext"   | \
21440   *" memcmp.$ac_objext"   | \
21441     "memcmp.$ac_objext "* | \
21442   *" memcmp.$ac_objext "* ) ;;
21443   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
21444 esac
21445
21446
21447
21448
21449
21450 for ac_func in memset strchr strerror
21451 do
21452 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21453 echo "$as_me:$LINENO: checking for $ac_func" >&5
21454 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21455 if eval "test \"\${$as_ac_var+set}\" = set"; then
21456   echo $ECHO_N "(cached) $ECHO_C" >&6
21457 else
21458   cat >conftest.$ac_ext <<_ACEOF
21459 /* confdefs.h.  */
21460 _ACEOF
21461 cat confdefs.h >>conftest.$ac_ext
21462 cat >>conftest.$ac_ext <<_ACEOF
21463 /* end confdefs.h.  */
21464 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21465    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21466 #define $ac_func innocuous_$ac_func
21467
21468 /* System header to define __stub macros and hopefully few prototypes,
21469     which can conflict with char $ac_func (); below.
21470     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21471     <limits.h> exists even on freestanding compilers.  */
21472
21473 #ifdef __STDC__
21474 # include <limits.h>
21475 #else
21476 # include <assert.h>
21477 #endif
21478
21479 #undef $ac_func
21480
21481 /* Override any gcc2 internal prototype to avoid an error.  */
21482 #ifdef __cplusplus
21483 extern "C"
21484 {
21485 #endif
21486 /* We use char because int might match the return type of a gcc2
21487    builtin and then its argument prototype would still apply.  */
21488 char $ac_func ();
21489 /* The GNU C library defines this for functions which it implements
21490     to always fail with ENOSYS.  Some functions are actually named
21491     something starting with __ and the normal name is an alias.  */
21492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21493 choke me
21494 #else
21495 char (*f) () = $ac_func;
21496 #endif
21497 #ifdef __cplusplus
21498 }
21499 #endif
21500
21501 int
21502 main ()
21503 {
21504 return f != $ac_func;
21505   ;
21506   return 0;
21507 }
21508 _ACEOF
21509 rm -f conftest.$ac_objext conftest$ac_exeext
21510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21511   (eval $ac_link) 2>conftest.er1
21512   ac_status=$?
21513   grep -v '^ *+' conftest.er1 >conftest.err
21514   rm -f conftest.er1
21515   cat conftest.err >&5
21516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517   (exit $ac_status); } &&
21518          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21520   (eval $ac_try) 2>&5
21521   ac_status=$?
21522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21523   (exit $ac_status); }; } &&
21524          { ac_try='test -s conftest$ac_exeext'
21525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21526   (eval $ac_try) 2>&5
21527   ac_status=$?
21528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21529   (exit $ac_status); }; }; then
21530   eval "$as_ac_var=yes"
21531 else
21532   echo "$as_me: failed program was:" >&5
21533 sed 's/^/| /' conftest.$ac_ext >&5
21534
21535 eval "$as_ac_var=no"
21536 fi
21537 rm -f conftest.err conftest.$ac_objext \
21538       conftest$ac_exeext conftest.$ac_ext
21539 fi
21540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21541 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21542 if test `eval echo '${'$as_ac_var'}'` = yes; then
21543   cat >>confdefs.h <<_ACEOF
21544 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21545 _ACEOF
21546
21547 fi
21548 done
21549
21550
21551
21552   echo "BEGINING OF ACI-PACKAGE-SAVED(XML)">&5;
21553   # Extract the first word of "xml2-config", so it can be a program name with args.
21554 set dummy xml2-config; ac_word=$2
21555 echo "$as_me:$LINENO: checking for $ac_word" >&5
21556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21557 if test "${ac_cv_path_ACI_CACHE_PROG+set}" = set; then
21558   echo $ECHO_N "(cached) $ECHO_C" >&6
21559 else
21560   case $ACI_CACHE_PROG in
21561   [\\/]* | ?:[\\/]*)
21562   ac_cv_path_ACI_CACHE_PROG="$ACI_CACHE_PROG" # Let the user override the test with a path.
21563   ;;
21564   *)
21565   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21566 for as_dir in $PATH
21567 do
21568   IFS=$as_save_IFS
21569   test -z "$as_dir" && as_dir=.
21570   for ac_exec_ext in '' $ac_executable_extensions; do
21571   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21572     ac_cv_path_ACI_CACHE_PROG="$as_dir/$ac_word$ac_exec_ext"
21573     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21574     break 2
21575   fi
21576 done
21577 done
21578
21579   test -z "$ac_cv_path_ACI_CACHE_PROG" && ac_cv_path_ACI_CACHE_PROG="no"
21580   ;;
21581 esac
21582 fi
21583 ACI_CACHE_PROG=$ac_cv_path_ACI_CACHE_PROG
21584
21585 if test -n "$ACI_CACHE_PROG"; then
21586   echo "$as_me:$LINENO: result: $ACI_CACHE_PROG" >&5
21587 echo "${ECHO_T}$ACI_CACHE_PROG" >&6
21588 else
21589   echo "$as_me:$LINENO: result: no" >&5
21590 echo "${ECHO_T}no" >&6
21591 fi
21592
21593   aci_module_desc_XML="XML library (version XML2)"
21594     aci_pkg_config_XML=xml2-config
21595     aci_packages="$aci_packages XML"
21596   if test x$ACI_CACHE_PROG = xno; then
21597     HAVE_XML=no
21598     CFLAGS_XML=""
21599     LIBS_XML=""
21600     :
21601   else
21602     HAVE_XML=yes
21603     CFLAGS_XML=`$ACI_CACHE_PROG --cflags `
21604     LIBS_XML=`$ACI_CACHE_PROG --libs `
21605     echo >/dev/null
21606   fi
21607           echo "END OF ACI-PACKAGE-SAVED(XML)">&5;
21608
21609
21610
21611
21612
21613
21614
21615
21616
21617
21618         aci_nameok=`echo SimGrid|sed 'y/-/./'`
21619         if test "xSimGrid" != "x$aci_nameok" ; then
21620           { { echo "$as_me:$LINENO: error: ACI error: Please no '-' in package name. (ie, SimGrid is not a valid name)" >&5
21621 echo "$as_me: error: ACI error: Please no '-' in package name. (ie, SimGrid is not a valid name)" >&2;}
21622    { (exit 1); exit 1; }; }
21623         fi
21624         echo "BEGINING OF ACI-PACKAGE(SimGrid)">&5;
21625         aci_module_desc_SimGrid="the SimGrid simulator"
21626                 aci_packages="$aci_packages SimGrid"
21627
21628
21629 # Check whether --with-SimGrid or --without-SimGrid was given.
21630 if test "${with_SimGrid+set}" = set; then
21631   withval="$with_SimGrid"
21632   with_SimGrid=$withval
21633            good=yes
21634            if test "$withval" = yes ; then good=no; fi
21635            if test "$withval" = no ; then good=no; fi
21636            if test $good = no ; then
21637              { { 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
21638 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;}
21639    { (exit 1); exit 1; }; }
21640            fi
21641            aci_pkg_prefix_SimGrid="$withval"
21642            CFLAGS_SimGrid="-I$withval/include $CFLAGS_SimGrid"
21643            LIBS_SimGrid="-L$withval/lib $LIBS_SimGrid"
21644
21645 fi;
21646
21647
21648 # Check whether --with-SimGrid-includes or --without-SimGrid-includes was given.
21649 if test "${with_SimGrid_includes+set}" = set; then
21650   withval="$with_SimGrid_includes"
21651   CFLAGS_SimGrid="-I$withval $CFLAGS_SimGrid"
21652            aci_pkg_inc_SimGrid="$withval"
21653
21654 fi;
21655
21656
21657 # Check whether --with-SimGrid-libraries or --without-SimGrid-libraries was given.
21658 if test "${with_SimGrid_libraries+set}" = set; then
21659   withval="$with_SimGrid_libraries"
21660   LIBS_SimGrid="-L$withval $LIBS_SimGrid"
21661              aci_pkg_lib_SimGrid="$withval"
21662 fi;
21663
21664
21665 # Check whether --with-SimGrid-extra or --without-SimGrid-extra was given.
21666 if test "${with_SimGrid_extra+set}" = set; then
21667   withval="$with_SimGrid_extra"
21668   LIBS_SimGrid=`echo $withval|sed 's/!/ /g'`" $LIBS_SimGrid"
21669              aci_pkg_extra_SimGrid="$withval"
21670 fi;
21671
21672
21673                                 OLD_LDFLAGS=$LDFLAGS
21674         OLD_CFLAGS=$CFLAGS
21675         OLD_CPPFLAGS=$CPPFLAGS
21676
21677                 i=`echo -lsimgrid|wc -l`
21678         if test $i != 1 && test $i != 0 ; then
21679           { { echo "$as_me:$LINENO: error: Badly formed args for function ACI-PACKAGE.
21680             please no newline and no tab." >&5
21681 echo "$as_me: error: Badly formed args for function ACI-PACKAGE.
21682             please no newline and no tab." >&2;}
21683    { (exit 1); exit 1; }; }
21684         fi
21685
21686         ac_func_search_save_LIBS="$LIBS"
21687         ac_func_search_save_this_LIBS="$LIBS_SimGrid"
21688         aci_found="no"
21689         echo "----------------------------------------" >&5
21690         echo "$as_me:$LINENO: checking for SimGrid. Can I access SG_init without new libs" >&5
21691 echo $ECHO_N "checking for SimGrid. Can I access SG_init without new libs... $ECHO_C" >&6
21692         cat >conftest.$ac_ext <<_ACEOF
21693 /* confdefs.h.  */
21694 _ACEOF
21695 cat confdefs.h >>conftest.$ac_ext
21696 cat >>conftest.$ac_ext <<_ACEOF
21697 /* end confdefs.h.  */
21698
21699 /* Override any gcc2 internal prototype to avoid an error.  */
21700 #ifdef __cplusplus
21701 extern "C"
21702 #endif
21703 /* We use char because int might match the return type of a gcc2
21704    builtin and then its argument prototype would still apply.  */
21705 char SG_init ();
21706 int
21707 main ()
21708 {
21709 SG_init ();
21710   ;
21711   return 0;
21712 }
21713 _ACEOF
21714 rm -f conftest.$ac_objext conftest$ac_exeext
21715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21716   (eval $ac_link) 2>conftest.er1
21717   ac_status=$?
21718   grep -v '^ *+' conftest.er1 >conftest.err
21719   rm -f conftest.er1
21720   cat conftest.err >&5
21721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722   (exit $ac_status); } &&
21723          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21725   (eval $ac_try) 2>&5
21726   ac_status=$?
21727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21728   (exit $ac_status); }; } &&
21729          { ac_try='test -s conftest$ac_exeext'
21730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21731   (eval $ac_try) 2>&5
21732   ac_status=$?
21733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21734   (exit $ac_status); }; }; then
21735   echo "$as_me:$LINENO: result: yes" >&5
21736 echo "${ECHO_T}yes" >&6 aci_found="yes"
21737 else
21738   echo "$as_me: failed program was:" >&5
21739 sed 's/^/| /' conftest.$ac_ext >&5
21740
21741 echo "$as_me:$LINENO: result: no" >&5
21742 echo "${ECHO_T}no" >&6
21743 fi
21744 rm -f conftest.err conftest.$ac_objext \
21745       conftest$ac_exeext conftest.$ac_ext
21746         if test "$aci_found" = "no"; then
21747           if test -n "$LIBS_SimGrid" ; then
21748             LIBS="$LIBS_SimGrid"
21749             echo "----------------------------------------" >&5
21750             echo "$as_me:$LINENO: checking for SimGrid. Can I access SG_init the specified extra args" >&5
21751 echo $ECHO_N "checking for SimGrid. Can I access SG_init the specified extra args... $ECHO_C" >&6
21752             cat >conftest.$ac_ext <<_ACEOF
21753 /* confdefs.h.  */
21754 _ACEOF
21755 cat confdefs.h >>conftest.$ac_ext
21756 cat >>conftest.$ac_ext <<_ACEOF
21757 /* end confdefs.h.  */
21758
21759 /* Override any gcc2 internal prototype to avoid an error.  */
21760 #ifdef __cplusplus
21761 extern "C"
21762 #endif
21763 /* We use char because int might match the return type of a gcc2
21764    builtin and then its argument prototype would still apply.  */
21765 char SG_init ();
21766 int
21767 main ()
21768 {
21769 SG_init ();
21770   ;
21771   return 0;
21772 }
21773 _ACEOF
21774 rm -f conftest.$ac_objext conftest$ac_exeext
21775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21776   (eval $ac_link) 2>conftest.er1
21777   ac_status=$?
21778   grep -v '^ *+' conftest.er1 >conftest.err
21779   rm -f conftest.er1
21780   cat conftest.err >&5
21781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21782   (exit $ac_status); } &&
21783          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21785   (eval $ac_try) 2>&5
21786   ac_status=$?
21787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21788   (exit $ac_status); }; } &&
21789          { ac_try='test -s conftest$ac_exeext'
21790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21791   (eval $ac_try) 2>&5
21792   ac_status=$?
21793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794   (exit $ac_status); }; }; then
21795   aci_found="yes"
21796 else
21797   echo "$as_me: failed program was:" >&5
21798 sed 's/^/| /' conftest.$ac_ext >&5
21799
21800 aci_found="no"
21801 fi
21802 rm -f conftest.err conftest.$ac_objext \
21803       conftest$ac_exeext conftest.$ac_ext
21804             echo "$as_me:$LINENO: result: $aci_found" >&5
21805 echo "${ECHO_T}$aci_found" >&6
21806           fi
21807         fi
21808         for i in -lsimgrid
21809         do
21810           if test "x$aci_found" = "xno"; then
21811             LIBS_SimGrid=`echo "$i $ac_func_search_save_this_LIBS"|sed 's/!/ /g'`
21812             LIBS="$LIBS_SimGrid $ac_func_search_save_LIBS"
21813             echo "----------------------------------------" >&5
21814             echo "$as_me:$LINENO: checking for SimGrid. Can I access SG_init with $LIBS_SimGrid" >&5
21815 echo $ECHO_N "checking for SimGrid. Can I access SG_init with $LIBS_SimGrid... $ECHO_C" >&6
21816             cat >conftest.$ac_ext <<_ACEOF
21817 /* confdefs.h.  */
21818 _ACEOF
21819 cat confdefs.h >>conftest.$ac_ext
21820 cat >>conftest.$ac_ext <<_ACEOF
21821 /* end confdefs.h.  */
21822
21823 /* Override any gcc2 internal prototype to avoid an error.  */
21824 #ifdef __cplusplus
21825 extern "C"
21826 #endif
21827 /* We use char because int might match the return type of a gcc2
21828    builtin and then its argument prototype would still apply.  */
21829 char SG_init ();
21830 int
21831 main ()
21832 {
21833 SG_init ();
21834   ;
21835   return 0;
21836 }
21837 _ACEOF
21838 rm -f conftest.$ac_objext conftest$ac_exeext
21839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21840   (eval $ac_link) 2>conftest.er1
21841   ac_status=$?
21842   grep -v '^ *+' conftest.er1 >conftest.err
21843   rm -f conftest.er1
21844   cat conftest.err >&5
21845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846   (exit $ac_status); } &&
21847          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21849   (eval $ac_try) 2>&5
21850   ac_status=$?
21851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852   (exit $ac_status); }; } &&
21853          { ac_try='test -s conftest$ac_exeext'
21854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21855   (eval $ac_try) 2>&5
21856   ac_status=$?
21857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21858   (exit $ac_status); }; }; then
21859   aci_found="yes"
21860 else
21861   echo "$as_me: failed program was:" >&5
21862 sed 's/^/| /' conftest.$ac_ext >&5
21863
21864 aci_found="no"
21865 fi
21866 rm -f conftest.err conftest.$ac_objext \
21867       conftest$ac_exeext conftest.$ac_ext
21868             echo "$as_me:$LINENO: result: $aci_found" >&5
21869 echo "${ECHO_T}$aci_found" >&6
21870           fi
21871         done
21872         LIBS="$ac_func_search_save_LIBS"
21873
21874                                 if test "x$aci_found" = "xyes" && test "x"simgrid.h != "x" ; then
21875           CPPFLAGS="$CPPFLAGS $CFLAGS_SimGrid"
21876           echo "CPPFLAGS=$CPPFLAGS">&5;
21877           if test "${ac_cv_header_simgrid_h+set}" = set; then
21878   echo "$as_me:$LINENO: checking for simgrid.h" >&5
21879 echo $ECHO_N "checking for simgrid.h... $ECHO_C" >&6
21880 if test "${ac_cv_header_simgrid_h+set}" = set; then
21881   echo $ECHO_N "(cached) $ECHO_C" >&6
21882 fi
21883 echo "$as_me:$LINENO: result: $ac_cv_header_simgrid_h" >&5
21884 echo "${ECHO_T}$ac_cv_header_simgrid_h" >&6
21885 else
21886   # Is the header compilable?
21887 echo "$as_me:$LINENO: checking simgrid.h usability" >&5
21888 echo $ECHO_N "checking simgrid.h usability... $ECHO_C" >&6
21889 cat >conftest.$ac_ext <<_ACEOF
21890 /* confdefs.h.  */
21891 _ACEOF
21892 cat confdefs.h >>conftest.$ac_ext
21893 cat >>conftest.$ac_ext <<_ACEOF
21894 /* end confdefs.h.  */
21895 $ac_includes_default
21896 #include <simgrid.h>
21897 _ACEOF
21898 rm -f conftest.$ac_objext
21899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21900   (eval $ac_compile) 2>conftest.er1
21901   ac_status=$?
21902   grep -v '^ *+' conftest.er1 >conftest.err
21903   rm -f conftest.er1
21904   cat conftest.err >&5
21905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906   (exit $ac_status); } &&
21907          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21909   (eval $ac_try) 2>&5
21910   ac_status=$?
21911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21912   (exit $ac_status); }; } &&
21913          { ac_try='test -s conftest.$ac_objext'
21914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21915   (eval $ac_try) 2>&5
21916   ac_status=$?
21917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21918   (exit $ac_status); }; }; then
21919   ac_header_compiler=yes
21920 else
21921   echo "$as_me: failed program was:" >&5
21922 sed 's/^/| /' conftest.$ac_ext >&5
21923
21924 ac_header_compiler=no
21925 fi
21926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21927 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21928 echo "${ECHO_T}$ac_header_compiler" >&6
21929
21930 # Is the header present?
21931 echo "$as_me:$LINENO: checking simgrid.h presence" >&5
21932 echo $ECHO_N "checking simgrid.h presence... $ECHO_C" >&6
21933 cat >conftest.$ac_ext <<_ACEOF
21934 /* confdefs.h.  */
21935 _ACEOF
21936 cat confdefs.h >>conftest.$ac_ext
21937 cat >>conftest.$ac_ext <<_ACEOF
21938 /* end confdefs.h.  */
21939 #include <simgrid.h>
21940 _ACEOF
21941 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21942   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21943   ac_status=$?
21944   grep -v '^ *+' conftest.er1 >conftest.err
21945   rm -f conftest.er1
21946   cat conftest.err >&5
21947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21948   (exit $ac_status); } >/dev/null; then
21949   if test -s conftest.err; then
21950     ac_cpp_err=$ac_c_preproc_warn_flag
21951     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21952   else
21953     ac_cpp_err=
21954   fi
21955 else
21956   ac_cpp_err=yes
21957 fi
21958 if test -z "$ac_cpp_err"; then
21959   ac_header_preproc=yes
21960 else
21961   echo "$as_me: failed program was:" >&5
21962 sed 's/^/| /' conftest.$ac_ext >&5
21963
21964   ac_header_preproc=no
21965 fi
21966 rm -f conftest.err conftest.$ac_ext
21967 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21968 echo "${ECHO_T}$ac_header_preproc" >&6
21969
21970 # So?  What about this header?
21971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21972   yes:no: )
21973     { echo "$as_me:$LINENO: WARNING: simgrid.h: accepted by the compiler, rejected by the preprocessor!" >&5
21974 echo "$as_me: WARNING: simgrid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21975     { echo "$as_me:$LINENO: WARNING: simgrid.h: proceeding with the compiler's result" >&5
21976 echo "$as_me: WARNING: simgrid.h: proceeding with the compiler's result" >&2;}
21977     ac_header_preproc=yes
21978     ;;
21979   no:yes:* )
21980     { echo "$as_me:$LINENO: WARNING: simgrid.h: present but cannot be compiled" >&5
21981 echo "$as_me: WARNING: simgrid.h: present but cannot be compiled" >&2;}
21982     { echo "$as_me:$LINENO: WARNING: simgrid.h:     check for missing prerequisite headers?" >&5
21983 echo "$as_me: WARNING: simgrid.h:     check for missing prerequisite headers?" >&2;}
21984     { echo "$as_me:$LINENO: WARNING: simgrid.h: see the Autoconf documentation" >&5
21985 echo "$as_me: WARNING: simgrid.h: see the Autoconf documentation" >&2;}
21986     { echo "$as_me:$LINENO: WARNING: simgrid.h:     section \"Present But Cannot Be Compiled\"" >&5
21987 echo "$as_me: WARNING: simgrid.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21988     { echo "$as_me:$LINENO: WARNING: simgrid.h: proceeding with the preprocessor's result" >&5
21989 echo "$as_me: WARNING: simgrid.h: proceeding with the preprocessor's result" >&2;}
21990     { echo "$as_me:$LINENO: WARNING: simgrid.h: in the future, the compiler will take precedence" >&5
21991 echo "$as_me: WARNING: simgrid.h: in the future, the compiler will take precedence" >&2;}
21992     (
21993       cat <<\_ASBOX
21994 ## ----------------------------------------- ##
21995 ## Report this to martin.quinson@ens-lyon.fr ##
21996 ## ----------------------------------------- ##
21997 _ASBOX
21998     ) |
21999       sed "s/^/$as_me: WARNING:     /" >&2
22000     ;;
22001 esac
22002 echo "$as_me:$LINENO: checking for simgrid.h" >&5
22003 echo $ECHO_N "checking for simgrid.h... $ECHO_C" >&6
22004 if test "${ac_cv_header_simgrid_h+set}" = set; then
22005   echo $ECHO_N "(cached) $ECHO_C" >&6
22006 else
22007   ac_cv_header_simgrid_h=$ac_header_preproc
22008 fi
22009 echo "$as_me:$LINENO: result: $ac_cv_header_simgrid_h" >&5
22010 echo "${ECHO_T}$ac_cv_header_simgrid_h" >&6
22011
22012 fi
22013 if test $ac_cv_header_simgrid_h = yes; then
22014   good=yes
22015 else
22016   good=no
22017 fi
22018
22019
22020         fi
22021         if test "x$aci_found" = "xno" ; then
22022                                    { { 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
22023 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;}
22024    { (exit 1); exit 1; }; }
22025         else
22026                         HAVE_SimGrid="yes"
22027                 echo >/dev/null
22028         fi
22029         if test "x$HAVE_SimGrid" != "xyes" ; then
22030           CFLAGS_SimGrid=""
22031           LIBS_SimGrid=""
22032         fi
22033
22034
22035
22036
22037         echo "END OF ACI-PACKAGE(SimGrid)">&5;
22038                 LDFLAGS=$OLDLDFLAGS
22039         CPPFLAGS=$OLDCPPFLAGS
22040         CFLAGS=$OLDCFLAGS
22041
22042
22043
22044 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
22045 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
22046     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
22047 if test "${enable_maintainer_mode+set}" = set; then
22048   enableval="$enable_maintainer_mode"
22049   USE_MAINTAINER_MODE=$enableval
22050 else
22051   USE_MAINTAINER_MODE=no
22052 fi;
22053   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
22054 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
22055
22056
22057 if test $USE_MAINTAINER_MODE = yes; then
22058   MAINTAINER_MODE_TRUE=
22059   MAINTAINER_MODE_FALSE='#'
22060 else
22061   MAINTAINER_MODE_TRUE='#'
22062   MAINTAINER_MODE_FALSE=
22063 fi
22064
22065   MAINT=$MAINTAINER_MODE_TRUE
22066
22067
22068 if test x$USE_MAINTAINER_MODE = xyes
22069 then
22070
22071   # Check whether --enable-compile-warnings or --disable-compile-warnings was given.
22072 if test "${enable_compile_warnings+set}" = set; then
22073   enableval="$enable_compile_warnings"
22074
22075 else
22076   enable_compile_warnings=yes
22077 fi;
22078
22079   echo "$as_me:$LINENO: checking what warning flags to pass to the C compiler" >&5
22080 echo $ECHO_N "checking what warning flags to pass to the C compiler... $ECHO_C" >&6
22081   warnCFLAGS=
22082   if test "x$GCC" != xyes; then
22083     enable_compile_warnings=no
22084   fi
22085
22086   if test "x$enable_compile_warnings" != "xno"; then
22087     if test "x$GCC" = "xyes"; then
22088       case " $CFLAGS " in
22089       *-Wall*) ;;
22090       *) warnCFLAGS="-g -Wall -Wunused" ;;
22091       esac
22092
22093       ## -W is not all that useful.  And it cannot be controlled
22094       ## with individual -Wno-xxx flags, unlike -Wall
22095       if test "x$enable_compile_warnings" = "xyes"; then
22096         warnCFLAGS="$warnCFLAGS  -Wmissing-prototypes -Wmissing-declarations\
22097                     -finline-functions  -Wshadow -Wpointer-arith \
22098                     -Wwrite-strings -Wno-unused-function -Werror"
22099       fi
22100     fi
22101   fi
22102   echo "$as_me:$LINENO: result: $warnCFLAGS" >&5
22103 echo "${ECHO_T}$warnCFLAGS" >&6
22104
22105   # Check whether --enable-iso-c or --disable-iso-c was given.
22106 if test "${enable_iso_c+set}" = set; then
22107   enableval="$enable_iso_c"
22108
22109 else
22110   enable_iso_c=no
22111 fi;
22112
22113   echo "$as_me:$LINENO: checking what language compliance flags to pass to the C compiler" >&5
22114 echo $ECHO_N "checking what language compliance flags to pass to the C compiler... $ECHO_C" >&6
22115   complCFLAGS=
22116   if test "x$enable_iso_c" != "xno"; then
22117     if test "x$GCC" = "xyes"; then
22118       case " $CFLAGS " in
22119       *-ansi*) ;;
22120       *) complCFLAGS="$complCFLAGS -ansi" ;;
22121       esac
22122
22123       case " $CFLAGS " in
22124       *-pedantic*) ;;
22125       *) complCFLAGS="$complCFLAGS -pedantic" ;;
22126       esac
22127     fi
22128   fi
22129   echo "$as_me:$LINENO: result: $complCFLAGS" >&5
22130 echo "${ECHO_T}$complCFLAGS" >&6
22131   if test "x$cflags_set" != "xyes"; then
22132     CFLAGS="$CFLAGS $warnCFLAGS $complCFLAGS"
22133     cflags_set=yes
22134
22135   fi
22136
22137 fi
22138
22139
22140
22141
22142
22143 # Extract the first word of "bash", so it can be a program name with args.
22144 set dummy bash; ac_word=$2
22145 echo "$as_me:$LINENO: checking for $ac_word" >&5
22146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22147 if test "${ac_cv_prog_BASH+set}" = set; then
22148   echo $ECHO_N "(cached) $ECHO_C" >&6
22149 else
22150   if test -n "$BASH"; then
22151   ac_cv_prog_BASH="$BASH" # Let the user override the test.
22152 else
22153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22154 for as_dir in $PATH
22155 do
22156   IFS=$as_save_IFS
22157   test -z "$as_dir" && as_dir=.
22158   for ac_exec_ext in '' $ac_executable_extensions; do
22159   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22160     ac_cv_prog_BASH="`which bash`"
22161     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22162     break 2
22163   fi
22164 done
22165 done
22166
22167   test -z "$ac_cv_prog_BASH" && ac_cv_prog_BASH="/bin/sh"
22168 fi
22169 fi
22170 BASH=$ac_cv_prog_BASH
22171 if test -n "$BASH"; then
22172   echo "$as_me:$LINENO: result: $BASH" >&5
22173 echo "${ECHO_T}$BASH" >&6
22174 else
22175   echo "$as_me:$LINENO: result: no" >&5
22176 echo "${ECHO_T}no" >&6
22177 fi
22178
22179 WARNING="This file is generated, do not edit"
22180
22181
22182                                                                                                                                                       ac_config_files="$ac_config_files Makefile src/Makefile src/include/Makefile src/include/modules/Makefile src/base/Makefile src/base/Tests/Makefile src/base/Tests/gs_example src/base/Tests/run_tests src/modules/Makefile src/examples/Makefile src/examples/ping/Makefile src/examples/bandwidth/Makefile src/examples/saturate/Makefile src/examples/alnem/Makefile doc/Makefile"
22183
22184
22185 cat >confcache <<\_ACEOF
22186 # This file is a shell script that caches the results of configure
22187 # tests run on this system so they can be shared between configure
22188 # scripts and configure runs, see configure's option --config-cache.
22189 # It is not useful on other systems.  If it contains results you don't
22190 # want to keep, you may remove or edit it.
22191 #
22192 # config.status only pays attention to the cache file if you give it
22193 # the --recheck option to rerun configure.
22194 #
22195 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22196 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22197 # following values.
22198
22199 _ACEOF
22200
22201 # The following way of writing the cache mishandles newlines in values,
22202 # but we know of no workaround that is simple, portable, and efficient.
22203 # So, don't put newlines in cache variables' values.
22204 # Ultrix sh set writes to stderr and can't be redirected directly,
22205 # and sets the high bit in the cache file unless we assign to the vars.
22206 {
22207   (set) 2>&1 |
22208     case `(ac_space=' '; set | grep ac_space) 2>&1` in
22209     *ac_space=\ *)
22210       # `set' does not quote correctly, so add quotes (double-quote
22211       # substitution turns \\\\ into \\, and sed turns \\ into \).
22212       sed -n \
22213         "s/'/'\\\\''/g;
22214           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22215       ;;
22216     *)
22217       # `set' quotes correctly as required by POSIX, so do not add quotes.
22218       sed -n \
22219         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22220       ;;
22221     esac;
22222 } |
22223   sed '
22224      t clear
22225      : clear
22226      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22227      t end
22228      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22229      : end' >>confcache
22230 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22231   if test -w $cache_file; then
22232     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22233     cat confcache >$cache_file
22234   else
22235     echo "not updating unwritable cache $cache_file"
22236   fi
22237 fi
22238 rm -f confcache
22239
22240 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22241 # Let make expand exec_prefix.
22242 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22243
22244 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22245 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22246 # trailing colons and then remove the whole line if VPATH becomes empty
22247 # (actually we leave an empty line to preserve line numbers).
22248 if test "x$srcdir" = x.; then
22249   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22250 s/:*\$(srcdir):*/:/;
22251 s/:*\${srcdir}:*/:/;
22252 s/:*@srcdir@:*/:/;
22253 s/^\([^=]*=[     ]*\):*/\1/;
22254 s/:*$//;
22255 s/^[^=]*=[       ]*$//;
22256 }'
22257 fi
22258
22259 DEFS=-DHAVE_CONFIG_H
22260
22261 ac_libobjs=
22262 ac_ltlibobjs=
22263 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22264   # 1. Remove the extension, and $U if already installed.
22265   ac_i=`echo "$ac_i" |
22266          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22267   # 2. Add them.
22268   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22269   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22270 done
22271 LIBOBJS=$ac_libobjs
22272
22273 LTLIBOBJS=$ac_ltlibobjs
22274
22275
22276 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22277   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22278 Usually this means the macro was only invoked conditionally." >&5
22279 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22280 Usually this means the macro was only invoked conditionally." >&2;}
22281    { (exit 1); exit 1; }; }
22282 fi
22283 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22284   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22285 Usually this means the macro was only invoked conditionally." >&5
22286 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22287 Usually this means the macro was only invoked conditionally." >&2;}
22288    { (exit 1); exit 1; }; }
22289 fi
22290 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22291   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22292 Usually this means the macro was only invoked conditionally." >&5
22293 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22294 Usually this means the macro was only invoked conditionally." >&2;}
22295    { (exit 1); exit 1; }; }
22296 fi
22297 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
22298   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK_DOC\" was never defined.
22299 Usually this means the macro was only invoked conditionally." >&5
22300 echo "$as_me: error: conditional \"ENABLE_GTK_DOC\" was never defined.
22301 Usually this means the macro was only invoked conditionally." >&2;}
22302    { (exit 1); exit 1; }; }
22303 fi
22304 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
22305   { { echo "$as_me:$LINENO: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
22306 Usually this means the macro was only invoked conditionally." >&5
22307 echo "$as_me: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
22308 Usually this means the macro was only invoked conditionally." >&2;}
22309    { (exit 1); exit 1; }; }
22310 fi
22311 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22312   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22313 Usually this means the macro was only invoked conditionally." >&5
22314 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22315 Usually this means the macro was only invoked conditionally." >&2;}
22316    { (exit 1); exit 1; }; }
22317 fi
22318 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22319   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22320 Usually this means the macro was only invoked conditionally." >&5
22321 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22322 Usually this means the macro was only invoked conditionally." >&2;}
22323    { (exit 1); exit 1; }; }
22324 fi
22325
22326 : ${CONFIG_STATUS=./config.status}
22327 ac_clean_files_save=$ac_clean_files
22328 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22329 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22330 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22331 cat >$CONFIG_STATUS <<_ACEOF
22332 #! $SHELL
22333 # Generated by $as_me.
22334 # Run this file to recreate the current configuration.
22335 # Compiler output produced by configure, useful for debugging
22336 # configure, is in config.log if it exists.
22337
22338 debug=false
22339 ac_cs_recheck=false
22340 ac_cs_silent=false
22341 SHELL=\${CONFIG_SHELL-$SHELL}
22342 _ACEOF
22343
22344 cat >>$CONFIG_STATUS <<\_ACEOF
22345 ## --------------------- ##
22346 ## M4sh Initialization.  ##
22347 ## --------------------- ##
22348
22349 # Be Bourne compatible
22350 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22351   emulate sh
22352   NULLCMD=:
22353   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22354   # is contrary to our usage.  Disable this feature.
22355   alias -g '${1+"$@"}'='"$@"'
22356 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22357   set -o posix
22358 fi
22359 DUALCASE=1; export DUALCASE # for MKS sh
22360
22361 # Support unset when possible.
22362 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22363   as_unset=unset
22364 else
22365   as_unset=false
22366 fi
22367
22368
22369 # Work around bugs in pre-3.0 UWIN ksh.
22370 $as_unset ENV MAIL MAILPATH
22371 PS1='$ '
22372 PS2='> '
22373 PS4='+ '
22374
22375 # NLS nuisances.
22376 for as_var in \
22377   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22378   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22379   LC_TELEPHONE LC_TIME
22380 do
22381   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22382     eval $as_var=C; export $as_var
22383   else
22384     $as_unset $as_var
22385   fi
22386 done
22387
22388 # Required to use basename.
22389 if expr a : '\(a\)' >/dev/null 2>&1; then
22390   as_expr=expr
22391 else
22392   as_expr=false
22393 fi
22394
22395 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22396   as_basename=basename
22397 else
22398   as_basename=false
22399 fi
22400
22401
22402 # Name of the executable.
22403 as_me=`$as_basename "$0" ||
22404 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22405          X"$0" : 'X\(//\)$' \| \
22406          X"$0" : 'X\(/\)$' \| \
22407          .     : '\(.\)' 2>/dev/null ||
22408 echo X/"$0" |
22409     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22410           /^X\/\(\/\/\)$/{ s//\1/; q; }
22411           /^X\/\(\/\).*/{ s//\1/; q; }
22412           s/.*/./; q'`
22413
22414
22415 # PATH needs CR, and LINENO needs CR and PATH.
22416 # Avoid depending upon Character Ranges.
22417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22420 as_cr_digits='0123456789'
22421 as_cr_alnum=$as_cr_Letters$as_cr_digits
22422
22423 # The user is always right.
22424 if test "${PATH_SEPARATOR+set}" != set; then
22425   echo "#! /bin/sh" >conf$$.sh
22426   echo  "exit 0"   >>conf$$.sh
22427   chmod +x conf$$.sh
22428   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22429     PATH_SEPARATOR=';'
22430   else
22431     PATH_SEPARATOR=:
22432   fi
22433   rm -f conf$$.sh
22434 fi
22435
22436
22437   as_lineno_1=$LINENO
22438   as_lineno_2=$LINENO
22439   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22440   test "x$as_lineno_1" != "x$as_lineno_2" &&
22441   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
22442   # Find who we are.  Look in the path if we contain no path at all
22443   # relative or not.
22444   case $0 in
22445     *[\\/]* ) as_myself=$0 ;;
22446     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22447 for as_dir in $PATH
22448 do
22449   IFS=$as_save_IFS
22450   test -z "$as_dir" && as_dir=.
22451   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22452 done
22453
22454        ;;
22455   esac
22456   # We did not find ourselves, most probably we were run as `sh COMMAND'
22457   # in which case we are not to be found in the path.
22458   if test "x$as_myself" = x; then
22459     as_myself=$0
22460   fi
22461   if test ! -f "$as_myself"; then
22462     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22463 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22464    { (exit 1); exit 1; }; }
22465   fi
22466   case $CONFIG_SHELL in
22467   '')
22468     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22469 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22470 do
22471   IFS=$as_save_IFS
22472   test -z "$as_dir" && as_dir=.
22473   for as_base in sh bash ksh sh5; do
22474          case $as_dir in
22475          /*)
22476            if ("$as_dir/$as_base" -c '
22477   as_lineno_1=$LINENO
22478   as_lineno_2=$LINENO
22479   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22480   test "x$as_lineno_1" != "x$as_lineno_2" &&
22481   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
22482              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22483              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22484              CONFIG_SHELL=$as_dir/$as_base
22485              export CONFIG_SHELL
22486              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22487            fi;;
22488          esac
22489        done
22490 done
22491 ;;
22492   esac
22493
22494   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22495   # uniformly replaced by the line number.  The first 'sed' inserts a
22496   # line-number line before each line; the second 'sed' does the real
22497   # work.  The second script uses 'N' to pair each line-number line
22498   # with the numbered line, and appends trailing '-' during
22499   # substitution so that $LINENO is not a special case at line end.
22500   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22501   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
22502   sed '=' <$as_myself |
22503     sed '
22504       N
22505       s,$,-,
22506       : loop
22507       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22508       t loop
22509       s,-$,,
22510       s,^['$as_cr_digits']*\n,,
22511     ' >$as_me.lineno &&
22512   chmod +x $as_me.lineno ||
22513     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22514 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22515    { (exit 1); exit 1; }; }
22516
22517   # Don't try to exec as it changes $[0], causing all sort of problems
22518   # (the dirname of $[0] is not the place where we might find the
22519   # original and so on.  Autoconf is especially sensible to this).
22520   . ./$as_me.lineno
22521   # Exit status is that of the last command.
22522   exit
22523 }
22524
22525
22526 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22527   *c*,-n*) ECHO_N= ECHO_C='
22528 ' ECHO_T='      ' ;;
22529   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22530   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
22531 esac
22532
22533 if expr a : '\(a\)' >/dev/null 2>&1; then
22534   as_expr=expr
22535 else
22536   as_expr=false
22537 fi
22538
22539 rm -f conf$$ conf$$.exe conf$$.file
22540 echo >conf$$.file
22541 if ln -s conf$$.file conf$$ 2>/dev/null; then
22542   # We could just check for DJGPP; but this test a) works b) is more generic
22543   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22544   if test -f conf$$.exe; then
22545     # Don't use ln at all; we don't have any links
22546     as_ln_s='cp -p'
22547   else
22548     as_ln_s='ln -s'
22549   fi
22550 elif ln conf$$.file conf$$ 2>/dev/null; then
22551   as_ln_s=ln
22552 else
22553   as_ln_s='cp -p'
22554 fi
22555 rm -f conf$$ conf$$.exe conf$$.file
22556
22557 if mkdir -p . 2>/dev/null; then
22558   as_mkdir_p=:
22559 else
22560   test -d ./-p && rmdir ./-p
22561   as_mkdir_p=false
22562 fi
22563
22564 as_executable_p="test -f"
22565
22566 # Sed expression to map a string onto a valid CPP name.
22567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22568
22569 # Sed expression to map a string onto a valid variable name.
22570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22571
22572
22573 # IFS
22574 # We need space, tab and new line, in precisely that order.
22575 as_nl='
22576 '
22577 IFS="   $as_nl"
22578
22579 # CDPATH.
22580 $as_unset CDPATH
22581
22582 exec 6>&1
22583
22584 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22585 # report actual input values of CONFIG_FILES etc. instead of their
22586 # values after options handling.  Logging --version etc. is OK.
22587 exec 5>>config.log
22588 {
22589   echo
22590   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22591 ## Running $as_me. ##
22592 _ASBOX
22593 } >&5
22594 cat >&5 <<_CSEOF
22595
22596 This file was extended by GRAS $as_me 0.0.040129, which was
22597 generated by GNU Autoconf 2.59.  Invocation command line was
22598
22599   CONFIG_FILES    = $CONFIG_FILES
22600   CONFIG_HEADERS  = $CONFIG_HEADERS
22601   CONFIG_LINKS    = $CONFIG_LINKS
22602   CONFIG_COMMANDS = $CONFIG_COMMANDS
22603   $ $0 $@
22604
22605 _CSEOF
22606 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22607 echo >&5
22608 _ACEOF
22609
22610 # Files that config.status was made for.
22611 if test -n "$ac_config_files"; then
22612   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22613 fi
22614
22615 if test -n "$ac_config_headers"; then
22616   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22617 fi
22618
22619 if test -n "$ac_config_links"; then
22620   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22621 fi
22622
22623 if test -n "$ac_config_commands"; then
22624   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22625 fi
22626
22627 cat >>$CONFIG_STATUS <<\_ACEOF
22628
22629 ac_cs_usage="\
22630 \`$as_me' instantiates files from templates according to the
22631 current configuration.
22632
22633 Usage: $0 [OPTIONS] [FILE]...
22634
22635   -h, --help       print this help, then exit
22636   -V, --version    print version number, then exit
22637   -q, --quiet      do not print progress messages
22638   -d, --debug      don't remove temporary files
22639       --recheck    update $as_me by reconfiguring in the same conditions
22640   --file=FILE[:TEMPLATE]
22641                    instantiate the configuration file FILE
22642   --header=FILE[:TEMPLATE]
22643                    instantiate the configuration header FILE
22644
22645 Configuration files:
22646 $config_files
22647
22648 Configuration headers:
22649 $config_headers
22650
22651 Configuration commands:
22652 $config_commands
22653
22654 Report bugs to <bug-autoconf@gnu.org>."
22655 _ACEOF
22656
22657 cat >>$CONFIG_STATUS <<_ACEOF
22658 ac_cs_version="\\
22659 GRAS config.status 0.0.040129
22660 configured by $0, generated by GNU Autoconf 2.59,
22661   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22662
22663 Copyright (C) 2003 Free Software Foundation, Inc.
22664 This config.status script is free software; the Free Software Foundation
22665 gives unlimited permission to copy, distribute and modify it."
22666 srcdir=$srcdir
22667 INSTALL="$INSTALL"
22668 _ACEOF
22669
22670 cat >>$CONFIG_STATUS <<\_ACEOF
22671 # If no file are specified by the user, then we need to provide default
22672 # value.  By we need to know if files were specified by the user.
22673 ac_need_defaults=:
22674 while test $# != 0
22675 do
22676   case $1 in
22677   --*=*)
22678     ac_option=`expr "x$1" : 'x\([^=]*\)='`
22679     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22680     ac_shift=:
22681     ;;
22682   -*)
22683     ac_option=$1
22684     ac_optarg=$2
22685     ac_shift=shift
22686     ;;
22687   *) # This is not an option, so the user has probably given explicit
22688      # arguments.
22689      ac_option=$1
22690      ac_need_defaults=false;;
22691   esac
22692
22693   case $ac_option in
22694   # Handling of the options.
22695 _ACEOF
22696 cat >>$CONFIG_STATUS <<\_ACEOF
22697   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22698     ac_cs_recheck=: ;;
22699   --version | --vers* | -V )
22700     echo "$ac_cs_version"; exit 0 ;;
22701   --he | --h)
22702     # Conflict between --help and --header
22703     { { echo "$as_me:$LINENO: error: ambiguous option: $1
22704 Try \`$0 --help' for more information." >&5
22705 echo "$as_me: error: ambiguous option: $1
22706 Try \`$0 --help' for more information." >&2;}
22707    { (exit 1); exit 1; }; };;
22708   --help | --hel | -h )
22709     echo "$ac_cs_usage"; exit 0 ;;
22710   --debug | --d* | -d )
22711     debug=: ;;
22712   --file | --fil | --fi | --f )
22713     $ac_shift
22714     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22715     ac_need_defaults=false;;
22716   --header | --heade | --head | --hea )
22717     $ac_shift
22718     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22719     ac_need_defaults=false;;
22720   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22721   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22722     ac_cs_silent=: ;;
22723
22724   # This is an error.
22725   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22726 Try \`$0 --help' for more information." >&5
22727 echo "$as_me: error: unrecognized option: $1
22728 Try \`$0 --help' for more information." >&2;}
22729    { (exit 1); exit 1; }; } ;;
22730
22731   *) ac_config_targets="$ac_config_targets $1" ;;
22732
22733   esac
22734   shift
22735 done
22736
22737 ac_configure_extra_args=
22738
22739 if $ac_cs_silent; then
22740   exec 6>/dev/null
22741   ac_configure_extra_args="$ac_configure_extra_args --silent"
22742 fi
22743
22744 _ACEOF
22745 cat >>$CONFIG_STATUS <<_ACEOF
22746 if \$ac_cs_recheck; then
22747   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22748   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22749 fi
22750
22751 _ACEOF
22752
22753 cat >>$CONFIG_STATUS <<_ACEOF
22754 #
22755 # INIT-COMMANDS section.
22756 #
22757
22758 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22759
22760 _ACEOF
22761
22762
22763
22764 cat >>$CONFIG_STATUS <<\_ACEOF
22765 for ac_config_target in $ac_config_targets
22766 do
22767   case "$ac_config_target" in
22768   # Handling of arguments.
22769   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22770   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22771   "src/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
22772   "src/include/modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/modules/Makefile" ;;
22773   "src/base/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/base/Makefile" ;;
22774   "src/base/Tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/base/Tests/Makefile" ;;
22775   "src/base/Tests/gs_example" ) CONFIG_FILES="$CONFIG_FILES src/base/Tests/gs_example" ;;
22776   "src/base/Tests/run_tests" ) CONFIG_FILES="$CONFIG_FILES src/base/Tests/run_tests" ;;
22777   "src/modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/modules/Makefile" ;;
22778   "src/examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/Makefile" ;;
22779   "src/examples/ping/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/ping/Makefile" ;;
22780   "src/examples/bandwidth/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/bandwidth/Makefile" ;;
22781   "src/examples/saturate/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/saturate/Makefile" ;;
22782   "src/examples/alnem/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/alnem/Makefile" ;;
22783   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22784   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22785   "src/gras_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/gras_config.h" ;;
22786   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22787 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22788    { (exit 1); exit 1; }; };;
22789   esac
22790 done
22791
22792 # If the user did not use the arguments to specify the items to instantiate,
22793 # then the envvar interface is used.  Set only those that are not.
22794 # We use the long form for the default assignment because of an extremely
22795 # bizarre bug on SunOS 4.1.3.
22796 if $ac_need_defaults; then
22797   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22798   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22799   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22800 fi
22801
22802 # Have a temporary directory for convenience.  Make it in the build tree
22803 # simply because there is no reason to put it here, and in addition,
22804 # creating and moving files from /tmp can sometimes cause problems.
22805 # Create a temporary directory, and hook for its removal unless debugging.
22806 $debug ||
22807 {
22808   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22809   trap '{ (exit 1); exit 1; }' 1 2 13 15
22810 }
22811
22812 # Create a (secure) tmp directory for tmp files.
22813
22814 {
22815   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22816   test -n "$tmp" && test -d "$tmp"
22817 }  ||
22818 {
22819   tmp=./confstat$$-$RANDOM
22820   (umask 077 && mkdir $tmp)
22821 } ||
22822 {
22823    echo "$me: cannot create a temporary directory in ." >&2
22824    { (exit 1); exit 1; }
22825 }
22826
22827 _ACEOF
22828
22829 cat >>$CONFIG_STATUS <<_ACEOF
22830
22831 #
22832 # CONFIG_FILES section.
22833 #
22834
22835 # No need to generate the scripts if there are no CONFIG_FILES.
22836 # This happens for instance when ./config.status config.h
22837 if test -n "\$CONFIG_FILES"; then
22838   # Protect against being on the right side of a sed subst in config.status.
22839   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22840    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22841 s,@SHELL@,$SHELL,;t t
22842 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22843 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22844 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22845 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22846 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22847 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22848 s,@exec_prefix@,$exec_prefix,;t t
22849 s,@prefix@,$prefix,;t t
22850 s,@program_transform_name@,$program_transform_name,;t t
22851 s,@bindir@,$bindir,;t t
22852 s,@sbindir@,$sbindir,;t t
22853 s,@libexecdir@,$libexecdir,;t t
22854 s,@datadir@,$datadir,;t t
22855 s,@sysconfdir@,$sysconfdir,;t t
22856 s,@sharedstatedir@,$sharedstatedir,;t t
22857 s,@localstatedir@,$localstatedir,;t t
22858 s,@libdir@,$libdir,;t t
22859 s,@includedir@,$includedir,;t t
22860 s,@oldincludedir@,$oldincludedir,;t t
22861 s,@infodir@,$infodir,;t t
22862 s,@mandir@,$mandir,;t t
22863 s,@build_alias@,$build_alias,;t t
22864 s,@host_alias@,$host_alias,;t t
22865 s,@target_alias@,$target_alias,;t t
22866 s,@DEFS@,$DEFS,;t t
22867 s,@ECHO_C@,$ECHO_C,;t t
22868 s,@ECHO_N@,$ECHO_N,;t t
22869 s,@ECHO_T@,$ECHO_T,;t t
22870 s,@LIBS@,$LIBS,;t t
22871 s,@subdirs@,$subdirs,;t t
22872 s,@build@,$build,;t t
22873 s,@build_cpu@,$build_cpu,;t t
22874 s,@build_vendor@,$build_vendor,;t t
22875 s,@build_os@,$build_os,;t t
22876 s,@host@,$host,;t t
22877 s,@host_cpu@,$host_cpu,;t t
22878 s,@host_vendor@,$host_vendor,;t t
22879 s,@host_os@,$host_os,;t t
22880 s,@target@,$target,;t t
22881 s,@target_cpu@,$target_cpu,;t t
22882 s,@target_vendor@,$target_vendor,;t t
22883 s,@target_os@,$target_os,;t t
22884 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22885 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22886 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22887 s,@CYGPATH_W@,$CYGPATH_W,;t t
22888 s,@PACKAGE@,$PACKAGE,;t t
22889 s,@VERSION@,$VERSION,;t t
22890 s,@ACLOCAL@,$ACLOCAL,;t t
22891 s,@AUTOCONF@,$AUTOCONF,;t t
22892 s,@AUTOMAKE@,$AUTOMAKE,;t t
22893 s,@AUTOHEADER@,$AUTOHEADER,;t t
22894 s,@MAKEINFO@,$MAKEINFO,;t t
22895 s,@AMTAR@,$AMTAR,;t t
22896 s,@install_sh@,$install_sh,;t t
22897 s,@STRIP@,$STRIP,;t t
22898 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22899 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22900 s,@AWK@,$AWK,;t t
22901 s,@SET_MAKE@,$SET_MAKE,;t t
22902 s,@am__leading_dot@,$am__leading_dot,;t t
22903 s,@CC@,$CC,;t t
22904 s,@CFLAGS@,$CFLAGS,;t t
22905 s,@LDFLAGS@,$LDFLAGS,;t t
22906 s,@CPPFLAGS@,$CPPFLAGS,;t t
22907 s,@ac_ct_CC@,$ac_ct_CC,;t t
22908 s,@EXEEXT@,$EXEEXT,;t t
22909 s,@OBJEXT@,$OBJEXT,;t t
22910 s,@DEPDIR@,$DEPDIR,;t t
22911 s,@am__include@,$am__include,;t t
22912 s,@am__quote@,$am__quote,;t t
22913 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22914 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22915 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22916 s,@CCDEPMODE@,$CCDEPMODE,;t t
22917 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22918 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22919 s,@EGREP@,$EGREP,;t t
22920 s,@LN_S@,$LN_S,;t t
22921 s,@ECHO@,$ECHO,;t t
22922 s,@AR@,$AR,;t t
22923 s,@ac_ct_AR@,$ac_ct_AR,;t t
22924 s,@RANLIB@,$RANLIB,;t t
22925 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22926 s,@CPP@,$CPP,;t t
22927 s,@CXX@,$CXX,;t t
22928 s,@CXXFLAGS@,$CXXFLAGS,;t t
22929 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22930 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22931 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22932 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22933 s,@CXXCPP@,$CXXCPP,;t t
22934 s,@F77@,$F77,;t t
22935 s,@FFLAGS@,$FFLAGS,;t t
22936 s,@ac_ct_F77@,$ac_ct_F77,;t t
22937 s,@LIBTOOL@,$LIBTOOL,;t t
22938 s,@HTML_DIR@,$HTML_DIR,;t t
22939 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
22940 s,@ENABLE_GTK_DOC_TRUE@,$ENABLE_GTK_DOC_TRUE,;t t
22941 s,@ENABLE_GTK_DOC_FALSE@,$ENABLE_GTK_DOC_FALSE,;t t
22942 s,@GTK_DOC_USE_LIBTOOL_TRUE@,$GTK_DOC_USE_LIBTOOL_TRUE,;t t
22943 s,@GTK_DOC_USE_LIBTOOL_FALSE@,$GTK_DOC_USE_LIBTOOL_FALSE,;t t
22944 s,@FLIBS@,$FLIBS,;t t
22945 s,@LIBOBJS@,$LIBOBJS,;t t
22946 s,@ACI_CACHE_PROG@,$ACI_CACHE_PROG,;t t
22947 s,@aci_module_desc_XML@,$aci_module_desc_XML,;t t
22948 s,@aci_pkg_config_XML@,$aci_pkg_config_XML,;t t
22949 s,@HAVE_XML@,$HAVE_XML,;t t
22950 s,@CFLAGS_XML@,$CFLAGS_XML,;t t
22951 s,@LIBS_XML@,$LIBS_XML,;t t
22952 s,@aci_module_desc_SimGrid@,$aci_module_desc_SimGrid,;t t
22953 s,@aci_pkg_prefix_SimGrid@,$aci_pkg_prefix_SimGrid,;t t
22954 s,@aci_pkg_inc_SimGrid@,$aci_pkg_inc_SimGrid,;t t
22955 s,@aci_pkg_lib_SimGrid@,$aci_pkg_lib_SimGrid,;t t
22956 s,@aci_pkg_extra_SimGrid@,$aci_pkg_extra_SimGrid,;t t
22957 s,@HAVE_SimGrid@,$HAVE_SimGrid,;t t
22958 s,@CFLAGS_SimGrid@,$CFLAGS_SimGrid,;t t
22959 s,@LIBS_SimGrid@,$LIBS_SimGrid,;t t
22960 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22961 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22962 s,@MAINT@,$MAINT,;t t
22963 s,@cflags_set@,$cflags_set,;t t
22964 s,@BASH@,$BASH,;t t
22965 s,@WARNING@,$WARNING,;t t
22966 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22967 CEOF
22968
22969 _ACEOF
22970
22971   cat >>$CONFIG_STATUS <<\_ACEOF
22972   # Split the substitutions into bite-sized pieces for seds with
22973   # small command number limits, like on Digital OSF/1 and HP-UX.
22974   ac_max_sed_lines=48
22975   ac_sed_frag=1 # Number of current file.
22976   ac_beg=1 # First line for current file.
22977   ac_end=$ac_max_sed_lines # Line after last line for current file.
22978   ac_more_lines=:
22979   ac_sed_cmds=
22980   while $ac_more_lines; do
22981     if test $ac_beg -gt 1; then
22982       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22983     else
22984       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22985     fi
22986     if test ! -s $tmp/subs.frag; then
22987       ac_more_lines=false
22988     else
22989       # The purpose of the label and of the branching condition is to
22990       # speed up the sed processing (if there are no `@' at all, there
22991       # is no need to browse any of the substitutions).
22992       # These are the two extra sed commands mentioned above.
22993       (echo ':t
22994   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22995       if test -z "$ac_sed_cmds"; then
22996         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22997       else
22998         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22999       fi
23000       ac_sed_frag=`expr $ac_sed_frag + 1`
23001       ac_beg=$ac_end
23002       ac_end=`expr $ac_end + $ac_max_sed_lines`
23003     fi
23004   done
23005   if test -z "$ac_sed_cmds"; then
23006     ac_sed_cmds=cat
23007   fi
23008 fi # test -n "$CONFIG_FILES"
23009
23010 _ACEOF
23011 cat >>$CONFIG_STATUS <<\_ACEOF
23012 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23013   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23014   case $ac_file in
23015   - | *:- | *:-:* ) # input from stdin
23016         cat >$tmp/stdin
23017         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23018         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23019   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23020         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23021   * )   ac_file_in=$ac_file.in ;;
23022   esac
23023
23024   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23025   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23026 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23027          X"$ac_file" : 'X\(//\)[^/]' \| \
23028          X"$ac_file" : 'X\(//\)$' \| \
23029          X"$ac_file" : 'X\(/\)' \| \
23030          .     : '\(.\)' 2>/dev/null ||
23031 echo X"$ac_file" |
23032     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23033           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23034           /^X\(\/\/\)$/{ s//\1/; q; }
23035           /^X\(\/\).*/{ s//\1/; q; }
23036           s/.*/./; q'`
23037   { if $as_mkdir_p; then
23038     mkdir -p "$ac_dir"
23039   else
23040     as_dir="$ac_dir"
23041     as_dirs=
23042     while test ! -d "$as_dir"; do
23043       as_dirs="$as_dir $as_dirs"
23044       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23045 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23046          X"$as_dir" : 'X\(//\)[^/]' \| \
23047          X"$as_dir" : 'X\(//\)$' \| \
23048          X"$as_dir" : 'X\(/\)' \| \
23049          .     : '\(.\)' 2>/dev/null ||
23050 echo X"$as_dir" |
23051     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23052           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23053           /^X\(\/\/\)$/{ s//\1/; q; }
23054           /^X\(\/\).*/{ s//\1/; q; }
23055           s/.*/./; q'`
23056     done
23057     test ! -n "$as_dirs" || mkdir $as_dirs
23058   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23059 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23060    { (exit 1); exit 1; }; }; }
23061
23062   ac_builddir=.
23063
23064 if test "$ac_dir" != .; then
23065   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23066   # A "../" for each directory in $ac_dir_suffix.
23067   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23068 else
23069   ac_dir_suffix= ac_top_builddir=
23070 fi
23071
23072 case $srcdir in
23073   .)  # No --srcdir option.  We are building in place.
23074     ac_srcdir=.
23075     if test -z "$ac_top_builddir"; then
23076        ac_top_srcdir=.
23077     else
23078        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23079     fi ;;
23080   [\\/]* | ?:[\\/]* )  # Absolute path.
23081     ac_srcdir=$srcdir$ac_dir_suffix;
23082     ac_top_srcdir=$srcdir ;;
23083   *) # Relative path.
23084     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23085     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23086 esac
23087
23088 # Do not use `cd foo && pwd` to compute absolute paths, because
23089 # the directories may not exist.
23090 case `pwd` in
23091 .) ac_abs_builddir="$ac_dir";;
23092 *)
23093   case "$ac_dir" in
23094   .) ac_abs_builddir=`pwd`;;
23095   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23096   *) ac_abs_builddir=`pwd`/"$ac_dir";;
23097   esac;;
23098 esac
23099 case $ac_abs_builddir in
23100 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23101 *)
23102   case ${ac_top_builddir}. in
23103   .) ac_abs_top_builddir=$ac_abs_builddir;;
23104   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23105   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23106   esac;;
23107 esac
23108 case $ac_abs_builddir in
23109 .) ac_abs_srcdir=$ac_srcdir;;
23110 *)
23111   case $ac_srcdir in
23112   .) ac_abs_srcdir=$ac_abs_builddir;;
23113   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23114   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23115   esac;;
23116 esac
23117 case $ac_abs_builddir in
23118 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23119 *)
23120   case $ac_top_srcdir in
23121   .) ac_abs_top_srcdir=$ac_abs_builddir;;
23122   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23123   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23124   esac;;
23125 esac
23126
23127
23128   case $INSTALL in
23129   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23130   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23131   esac
23132
23133   # Let's still pretend it is `configure' which instantiates (i.e., don't
23134   # use $as_me), people would be surprised to read:
23135   #    /* config.h.  Generated by config.status.  */
23136   if test x"$ac_file" = x-; then
23137     configure_input=
23138   else
23139     configure_input="$ac_file.  "
23140   fi
23141   configure_input=$configure_input"Generated from `echo $ac_file_in |
23142                                      sed 's,.*/,,'` by configure."
23143
23144   # First look for the input files in the build tree, otherwise in the
23145   # src tree.
23146   ac_file_inputs=`IFS=:
23147     for f in $ac_file_in; do
23148       case $f in
23149       -) echo $tmp/stdin ;;
23150       [\\/$]*)
23151          # Absolute (can't be DOS-style, as IFS=:)
23152          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23153 echo "$as_me: error: cannot find input file: $f" >&2;}
23154    { (exit 1); exit 1; }; }
23155          echo "$f";;
23156       *) # Relative
23157          if test -f "$f"; then
23158            # Build tree
23159            echo "$f"
23160          elif test -f "$srcdir/$f"; then
23161            # Source tree
23162            echo "$srcdir/$f"
23163          else
23164            # /dev/null tree
23165            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23166 echo "$as_me: error: cannot find input file: $f" >&2;}
23167    { (exit 1); exit 1; }; }
23168          fi;;
23169       esac
23170     done` || { (exit 1); exit 1; }
23171
23172   if test x"$ac_file" != x-; then
23173     { echo "$as_me:$LINENO: creating $ac_file" >&5
23174 echo "$as_me: creating $ac_file" >&6;}
23175     rm -f "$ac_file"
23176   fi
23177 _ACEOF
23178 cat >>$CONFIG_STATUS <<_ACEOF
23179   sed "$ac_vpsub
23180 $extrasub
23181 _ACEOF
23182 cat >>$CONFIG_STATUS <<\_ACEOF
23183 :t
23184 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23185 s,@configure_input@,$configure_input,;t t
23186 s,@srcdir@,$ac_srcdir,;t t
23187 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23188 s,@top_srcdir@,$ac_top_srcdir,;t t
23189 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23190 s,@builddir@,$ac_builddir,;t t
23191 s,@abs_builddir@,$ac_abs_builddir,;t t
23192 s,@top_builddir@,$ac_top_builddir,;t t
23193 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23194 s,@INSTALL@,$ac_INSTALL,;t t
23195 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23196   rm -f $tmp/stdin
23197   if test x"$ac_file" != x-; then
23198     mv $tmp/out $ac_file
23199   else
23200     cat $tmp/out
23201     rm -f $tmp/out
23202   fi
23203
23204   # Run the commands associated with the file.
23205   case $ac_file in
23206     Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
23207      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
23208      test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
23209     src/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
23210      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
23211      test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
23212     src/include/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
23213      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
23214      test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
23215     src/include/modules/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
23216      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
23217      test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
23218     src/base/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
23219      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
23220      test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
23221     src/base/Tests/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
23222      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
23223      test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
23224     src/base/Tests/gs_example ) ( cd src/include ; test -e gras || ln -s . gras )
23225      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
23226      test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
23227     src/base/Tests/run_tests ) ( cd src/include ; test -e gras || ln -s . gras )
23228      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
23229      test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
23230     src/modules/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
23231      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
23232      test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
23233     src/examples/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
23234      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
23235      test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
23236     src/examples/ping/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
23237      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
23238      test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
23239     src/examples/bandwidth/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
23240      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
23241      test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
23242     src/examples/saturate/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
23243      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
23244      test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
23245     src/examples/alnem/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
23246      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
23247      test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
23248     doc/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
23249      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
23250      test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
23251   esac
23252 done
23253 _ACEOF
23254 cat >>$CONFIG_STATUS <<\_ACEOF
23255
23256 #
23257 # CONFIG_HEADER section.
23258 #
23259
23260 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23261 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23262 #
23263 # ac_d sets the value in "#define NAME VALUE" lines.
23264 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
23265 ac_dB='[         ].*$,\1#\2'
23266 ac_dC=' '
23267 ac_dD=',;t'
23268 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23269 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
23270 ac_uB='$,\1#\2define\3'
23271 ac_uC=' '
23272 ac_uD=',;t'
23273
23274 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23275   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23276   case $ac_file in
23277   - | *:- | *:-:* ) # input from stdin
23278         cat >$tmp/stdin
23279         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23280         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23281   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23282         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23283   * )   ac_file_in=$ac_file.in ;;
23284   esac
23285
23286   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23287 echo "$as_me: creating $ac_file" >&6;}
23288
23289   # First look for the input files in the build tree, otherwise in the
23290   # src tree.
23291   ac_file_inputs=`IFS=:
23292     for f in $ac_file_in; do
23293       case $f in
23294       -) echo $tmp/stdin ;;
23295       [\\/$]*)
23296          # Absolute (can't be DOS-style, as IFS=:)
23297          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23298 echo "$as_me: error: cannot find input file: $f" >&2;}
23299    { (exit 1); exit 1; }; }
23300          # Do quote $f, to prevent DOS paths from being IFS'd.
23301          echo "$f";;
23302       *) # Relative
23303          if test -f "$f"; then
23304            # Build tree
23305            echo "$f"
23306          elif test -f "$srcdir/$f"; then
23307            # Source tree
23308            echo "$srcdir/$f"
23309          else
23310            # /dev/null tree
23311            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23312 echo "$as_me: error: cannot find input file: $f" >&2;}
23313    { (exit 1); exit 1; }; }
23314          fi;;
23315       esac
23316     done` || { (exit 1); exit 1; }
23317   # Remove the trailing spaces.
23318   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
23319
23320 _ACEOF
23321
23322 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23323 # `conftest.undefs', that substitutes the proper values into
23324 # config.h.in to produce config.h.  The first handles `#define'
23325 # templates, and the second `#undef' templates.
23326 # And first: Protect against being on the right side of a sed subst in
23327 # config.status.  Protect against being in an unquoted here document
23328 # in config.status.
23329 rm -f conftest.defines conftest.undefs
23330 # Using a here document instead of a string reduces the quoting nightmare.
23331 # Putting comments in sed scripts is not portable.
23332 #
23333 # `end' is used to avoid that the second main sed command (meant for
23334 # 0-ary CPP macros) applies to n-ary macro definitions.
23335 # See the Autoconf documentation for `clear'.
23336 cat >confdef2sed.sed <<\_ACEOF
23337 s/[\\&,]/\\&/g
23338 s,[\\$`],\\&,g
23339 t clear
23340 : clear
23341 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23342 t end
23343 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23344 : end
23345 _ACEOF
23346 # If some macros were called several times there might be several times
23347 # the same #defines, which is useless.  Nevertheless, we may not want to
23348 # sort them, since we want the *last* AC-DEFINE to be honored.
23349 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23350 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23351 rm -f confdef2sed.sed
23352
23353 # This sed command replaces #undef with comments.  This is necessary, for
23354 # example, in the case of _POSIX_SOURCE, which is predefined and required
23355 # on some systems where configure will not decide to define it.
23356 cat >>conftest.undefs <<\_ACEOF
23357 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23358 _ACEOF
23359
23360 # Break up conftest.defines because some shells have a limit on the size
23361 # of here documents, and old seds have small limits too (100 cmds).
23362 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23363 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23364 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23365 echo '  :' >>$CONFIG_STATUS
23366 rm -f conftest.tail
23367 while grep . conftest.defines >/dev/null
23368 do
23369   # Write a limited-size here document to $tmp/defines.sed.
23370   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23371   # Speed up: don't consider the non `#define' lines.
23372   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
23373   # Work around the forget-to-reset-the-flag bug.
23374   echo 't clr' >>$CONFIG_STATUS
23375   echo ': clr' >>$CONFIG_STATUS
23376   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23377   echo 'CEOF
23378   sed -f $tmp/defines.sed $tmp/in >$tmp/out
23379   rm -f $tmp/in
23380   mv $tmp/out $tmp/in
23381 ' >>$CONFIG_STATUS
23382   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23383   rm -f conftest.defines
23384   mv conftest.tail conftest.defines
23385 done
23386 rm -f conftest.defines
23387 echo '  fi # grep' >>$CONFIG_STATUS
23388 echo >>$CONFIG_STATUS
23389
23390 # Break up conftest.undefs because some shells have a limit on the size
23391 # of here documents, and old seds have small limits too (100 cmds).
23392 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
23393 rm -f conftest.tail
23394 while grep . conftest.undefs >/dev/null
23395 do
23396   # Write a limited-size here document to $tmp/undefs.sed.
23397   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23398   # Speed up: don't consider the non `#undef'
23399   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
23400   # Work around the forget-to-reset-the-flag bug.
23401   echo 't clr' >>$CONFIG_STATUS
23402   echo ': clr' >>$CONFIG_STATUS
23403   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23404   echo 'CEOF
23405   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23406   rm -f $tmp/in
23407   mv $tmp/out $tmp/in
23408 ' >>$CONFIG_STATUS
23409   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23410   rm -f conftest.undefs
23411   mv conftest.tail conftest.undefs
23412 done
23413 rm -f conftest.undefs
23414
23415 cat >>$CONFIG_STATUS <<\_ACEOF
23416   # Let's still pretend it is `configure' which instantiates (i.e., don't
23417   # use $as_me), people would be surprised to read:
23418   #    /* config.h.  Generated by config.status.  */
23419   if test x"$ac_file" = x-; then
23420     echo "/* Generated by configure.  */" >$tmp/config.h
23421   else
23422     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
23423   fi
23424   cat $tmp/in >>$tmp/config.h
23425   rm -f $tmp/in
23426   if test x"$ac_file" != x-; then
23427     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23428       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23429 echo "$as_me: $ac_file is unchanged" >&6;}
23430     else
23431       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23432 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23433          X"$ac_file" : 'X\(//\)[^/]' \| \
23434          X"$ac_file" : 'X\(//\)$' \| \
23435          X"$ac_file" : 'X\(/\)' \| \
23436          .     : '\(.\)' 2>/dev/null ||
23437 echo X"$ac_file" |
23438     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23439           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23440           /^X\(\/\/\)$/{ s//\1/; q; }
23441           /^X\(\/\).*/{ s//\1/; q; }
23442           s/.*/./; q'`
23443       { if $as_mkdir_p; then
23444     mkdir -p "$ac_dir"
23445   else
23446     as_dir="$ac_dir"
23447     as_dirs=
23448     while test ! -d "$as_dir"; do
23449       as_dirs="$as_dir $as_dirs"
23450       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23451 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23452          X"$as_dir" : 'X\(//\)[^/]' \| \
23453          X"$as_dir" : 'X\(//\)$' \| \
23454          X"$as_dir" : 'X\(/\)' \| \
23455          .     : '\(.\)' 2>/dev/null ||
23456 echo X"$as_dir" |
23457     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23458           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23459           /^X\(\/\/\)$/{ s//\1/; q; }
23460           /^X\(\/\).*/{ s//\1/; q; }
23461           s/.*/./; q'`
23462     done
23463     test ! -n "$as_dirs" || mkdir $as_dirs
23464   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23465 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23466    { (exit 1); exit 1; }; }; }
23467
23468       rm -f $ac_file
23469       mv $tmp/config.h $ac_file
23470     fi
23471   else
23472     cat $tmp/config.h
23473     rm -f $tmp/config.h
23474   fi
23475 # Compute $ac_file's index in $config_headers.
23476 _am_stamp_count=1
23477 for _am_header in $config_headers :; do
23478   case $_am_header in
23479     $ac_file | $ac_file:* )
23480       break ;;
23481     * )
23482       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23483   esac
23484 done
23485 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
23486 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23487          X$ac_file : 'X\(//\)[^/]' \| \
23488          X$ac_file : 'X\(//\)$' \| \
23489          X$ac_file : 'X\(/\)' \| \
23490          .     : '\(.\)' 2>/dev/null ||
23491 echo X$ac_file |
23492     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23493           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23494           /^X\(\/\/\)$/{ s//\1/; q; }
23495           /^X\(\/\).*/{ s//\1/; q; }
23496           s/.*/./; q'`/stamp-h$_am_stamp_count
23497 done
23498 _ACEOF
23499 cat >>$CONFIG_STATUS <<\_ACEOF
23500
23501 #
23502 # CONFIG_COMMANDS section.
23503 #
23504 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23505   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23506   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23507   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23508 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23509          X"$ac_dest" : 'X\(//\)[^/]' \| \
23510          X"$ac_dest" : 'X\(//\)$' \| \
23511          X"$ac_dest" : 'X\(/\)' \| \
23512          .     : '\(.\)' 2>/dev/null ||
23513 echo X"$ac_dest" |
23514     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23515           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23516           /^X\(\/\/\)$/{ s//\1/; q; }
23517           /^X\(\/\).*/{ s//\1/; q; }
23518           s/.*/./; q'`
23519   { if $as_mkdir_p; then
23520     mkdir -p "$ac_dir"
23521   else
23522     as_dir="$ac_dir"
23523     as_dirs=
23524     while test ! -d "$as_dir"; do
23525       as_dirs="$as_dir $as_dirs"
23526       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23527 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23528          X"$as_dir" : 'X\(//\)[^/]' \| \
23529          X"$as_dir" : 'X\(//\)$' \| \
23530          X"$as_dir" : 'X\(/\)' \| \
23531          .     : '\(.\)' 2>/dev/null ||
23532 echo X"$as_dir" |
23533     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23534           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23535           /^X\(\/\/\)$/{ s//\1/; q; }
23536           /^X\(\/\).*/{ s//\1/; q; }
23537           s/.*/./; q'`
23538     done
23539     test ! -n "$as_dirs" || mkdir $as_dirs
23540   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23541 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23542    { (exit 1); exit 1; }; }; }
23543
23544   ac_builddir=.
23545
23546 if test "$ac_dir" != .; then
23547   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23548   # A "../" for each directory in $ac_dir_suffix.
23549   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23550 else
23551   ac_dir_suffix= ac_top_builddir=
23552 fi
23553
23554 case $srcdir in
23555   .)  # No --srcdir option.  We are building in place.
23556     ac_srcdir=.
23557     if test -z "$ac_top_builddir"; then
23558        ac_top_srcdir=.
23559     else
23560        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23561     fi ;;
23562   [\\/]* | ?:[\\/]* )  # Absolute path.
23563     ac_srcdir=$srcdir$ac_dir_suffix;
23564     ac_top_srcdir=$srcdir ;;
23565   *) # Relative path.
23566     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23567     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23568 esac
23569
23570 # Do not use `cd foo && pwd` to compute absolute paths, because
23571 # the directories may not exist.
23572 case `pwd` in
23573 .) ac_abs_builddir="$ac_dir";;
23574 *)
23575   case "$ac_dir" in
23576   .) ac_abs_builddir=`pwd`;;
23577   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23578   *) ac_abs_builddir=`pwd`/"$ac_dir";;
23579   esac;;
23580 esac
23581 case $ac_abs_builddir in
23582 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23583 *)
23584   case ${ac_top_builddir}. in
23585   .) ac_abs_top_builddir=$ac_abs_builddir;;
23586   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23587   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23588   esac;;
23589 esac
23590 case $ac_abs_builddir in
23591 .) ac_abs_srcdir=$ac_srcdir;;
23592 *)
23593   case $ac_srcdir in
23594   .) ac_abs_srcdir=$ac_abs_builddir;;
23595   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23596   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23597   esac;;
23598 esac
23599 case $ac_abs_builddir in
23600 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23601 *)
23602   case $ac_top_srcdir in
23603   .) ac_abs_top_srcdir=$ac_abs_builddir;;
23604   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23605   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23606   esac;;
23607 esac
23608
23609
23610   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23611 echo "$as_me: executing $ac_dest commands" >&6;}
23612   case $ac_dest in
23613     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23614   # Strip MF so we end up with the name of the file.
23615   mf=`echo "$mf" | sed -e 's/:.*$//'`
23616   # Check whether this is an Automake generated Makefile or not.
23617   # We used to match only the files named `Makefile.in', but
23618   # some people rename them; so instead we look at the file content.
23619   # Grep'ing the first line is not enough: some people post-process
23620   # each Makefile.in and add a new line on top of each file to say so.
23621   # So let's grep whole file.
23622   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23623     dirpart=`(dirname "$mf") 2>/dev/null ||
23624 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23625          X"$mf" : 'X\(//\)[^/]' \| \
23626          X"$mf" : 'X\(//\)$' \| \
23627          X"$mf" : 'X\(/\)' \| \
23628          .     : '\(.\)' 2>/dev/null ||
23629 echo X"$mf" |
23630     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23631           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23632           /^X\(\/\/\)$/{ s//\1/; q; }
23633           /^X\(\/\).*/{ s//\1/; q; }
23634           s/.*/./; q'`
23635   else
23636     continue
23637   fi
23638   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
23639   # Extract the definition of DEP_FILES from the Makefile without
23640   # running `make'.
23641   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
23642   test -z "$DEPDIR" && continue
23643   # When using ansi2knr, U may be empty or an underscore; expand it
23644   U=`sed -n -e '/^U = / s///p' < "$mf"`
23645   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
23646   # We invoke sed twice because it is the simplest approach to
23647   # changing $(DEPDIR) to its actual value in the expansion.
23648   for file in `sed -n -e '
23649     /^DEP_FILES = .*\\\\$/ {
23650       s/^DEP_FILES = //
23651       :loop
23652         s/\\\\$//
23653         p
23654         n
23655         /\\\\$/ b loop
23656       p
23657     }
23658     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
23659        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23660     # Make sure the directory exists.
23661     test -f "$dirpart/$file" && continue
23662     fdir=`(dirname "$file") 2>/dev/null ||
23663 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23664          X"$file" : 'X\(//\)[^/]' \| \
23665          X"$file" : 'X\(//\)$' \| \
23666          X"$file" : 'X\(/\)' \| \
23667          .     : '\(.\)' 2>/dev/null ||
23668 echo X"$file" |
23669     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23670           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23671           /^X\(\/\/\)$/{ s//\1/; q; }
23672           /^X\(\/\).*/{ s//\1/; q; }
23673           s/.*/./; q'`
23674     { if $as_mkdir_p; then
23675     mkdir -p $dirpart/$fdir
23676   else
23677     as_dir=$dirpart/$fdir
23678     as_dirs=
23679     while test ! -d "$as_dir"; do
23680       as_dirs="$as_dir $as_dirs"
23681       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23682 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23683          X"$as_dir" : 'X\(//\)[^/]' \| \
23684          X"$as_dir" : 'X\(//\)$' \| \
23685          X"$as_dir" : 'X\(/\)' \| \
23686          .     : '\(.\)' 2>/dev/null ||
23687 echo X"$as_dir" |
23688     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23689           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23690           /^X\(\/\/\)$/{ s//\1/; q; }
23691           /^X\(\/\).*/{ s//\1/; q; }
23692           s/.*/./; q'`
23693     done
23694     test ! -n "$as_dirs" || mkdir $as_dirs
23695   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23696 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23697    { (exit 1); exit 1; }; }; }
23698
23699     # echo "creating $dirpart/$file"
23700     echo '# dummy' > "$dirpart/$file"
23701   done
23702 done
23703  ;;
23704   esac
23705 done
23706 _ACEOF
23707
23708 cat >>$CONFIG_STATUS <<\_ACEOF
23709
23710 { (exit 0); exit 0; }
23711 _ACEOF
23712 chmod +x $CONFIG_STATUS
23713 ac_clean_files=$ac_clean_files_save
23714
23715
23716 # configure is writing to config.log, and then calls config.status.
23717 # config.status does its own redirection, appending to config.log.
23718 # Unfortunately, on DOS this fails, as config.log is still kept open
23719 # by configure, so config.status won't be able to write to it; its
23720 # output is simply discarded.  So we exec the FD to /dev/null,
23721 # effectively closing config.log, so it can be properly (re)opened and
23722 # appended to by config.status.  When coming back to configure, we
23723 # need to make the FD available again.
23724 if test "$no_create" != yes; then
23725   ac_cs_success=:
23726   ac_config_status_args=
23727   test "$silent" = yes &&
23728     ac_config_status_args="$ac_config_status_args --quiet"
23729   exec 5>/dev/null
23730   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23731   exec 5>>config.log
23732   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23733   # would make configure fail if this is the last instruction.
23734   $ac_cs_success || { (exit 1); exit 1; }
23735 fi
23736
23737 #
23738 # CONFIG_SUBDIRS section.
23739 #
23740 if test "$no_recursion" != yes; then
23741
23742   # Remove --cache-file and --srcdir arguments so they do not pile up.
23743   ac_sub_configure_args=
23744   ac_prev=
23745   for ac_arg in $ac_configure_args; do
23746     if test -n "$ac_prev"; then
23747       ac_prev=
23748       continue
23749     fi
23750     case $ac_arg in
23751     -cache-file | --cache-file | --cache-fil | --cache-fi \
23752     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23753       ac_prev=cache_file ;;
23754     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23755     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23756     | --c=*)
23757       ;;
23758     --config-cache | -C)
23759       ;;
23760     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23761       ac_prev=srcdir ;;
23762     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23763       ;;
23764     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23765       ac_prev=prefix ;;
23766     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23767       ;;
23768     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23769     esac
23770   done
23771
23772   # Always prepend --prefix to ensure using the same prefix
23773   # in subdir configurations.
23774   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
23775
23776   ac_popdir=`pwd`
23777   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23778
23779     # Do not complain, so a configure script can configure whichever
23780     # parts of a large source tree are present.
23781     test -d $srcdir/$ac_dir || continue
23782
23783     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23784 echo "$as_me: configuring in $ac_dir" >&6;}
23785     { if $as_mkdir_p; then
23786     mkdir -p "$ac_dir"
23787   else
23788     as_dir="$ac_dir"
23789     as_dirs=
23790     while test ! -d "$as_dir"; do
23791       as_dirs="$as_dir $as_dirs"
23792       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23793 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23794          X"$as_dir" : 'X\(//\)[^/]' \| \
23795          X"$as_dir" : 'X\(//\)$' \| \
23796          X"$as_dir" : 'X\(/\)' \| \
23797          .     : '\(.\)' 2>/dev/null ||
23798 echo X"$as_dir" |
23799     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23800           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23801           /^X\(\/\/\)$/{ s//\1/; q; }
23802           /^X\(\/\).*/{ s//\1/; q; }
23803           s/.*/./; q'`
23804     done
23805     test ! -n "$as_dirs" || mkdir $as_dirs
23806   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23807 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23808    { (exit 1); exit 1; }; }; }
23809
23810     ac_builddir=.
23811
23812 if test "$ac_dir" != .; then
23813   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23814   # A "../" for each directory in $ac_dir_suffix.
23815   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23816 else
23817   ac_dir_suffix= ac_top_builddir=
23818 fi
23819
23820 case $srcdir in
23821   .)  # No --srcdir option.  We are building in place.
23822     ac_srcdir=.
23823     if test -z "$ac_top_builddir"; then
23824        ac_top_srcdir=.
23825     else
23826        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23827     fi ;;
23828   [\\/]* | ?:[\\/]* )  # Absolute path.
23829     ac_srcdir=$srcdir$ac_dir_suffix;
23830     ac_top_srcdir=$srcdir ;;
23831   *) # Relative path.
23832     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23833     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23834 esac
23835
23836 # Do not use `cd foo && pwd` to compute absolute paths, because
23837 # the directories may not exist.
23838 case `pwd` in
23839 .) ac_abs_builddir="$ac_dir";;
23840 *)
23841   case "$ac_dir" in
23842   .) ac_abs_builddir=`pwd`;;
23843   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23844   *) ac_abs_builddir=`pwd`/"$ac_dir";;
23845   esac;;
23846 esac
23847 case $ac_abs_builddir in
23848 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23849 *)
23850   case ${ac_top_builddir}. in
23851   .) ac_abs_top_builddir=$ac_abs_builddir;;
23852   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23853   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23854   esac;;
23855 esac
23856 case $ac_abs_builddir in
23857 .) ac_abs_srcdir=$ac_srcdir;;
23858 *)
23859   case $ac_srcdir in
23860   .) ac_abs_srcdir=$ac_abs_builddir;;
23861   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23862   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23863   esac;;
23864 esac
23865 case $ac_abs_builddir in
23866 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23867 *)
23868   case $ac_top_srcdir in
23869   .) ac_abs_top_srcdir=$ac_abs_builddir;;
23870   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23871   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23872   esac;;
23873 esac
23874
23875
23876     cd $ac_dir
23877
23878     # Check for guested configure; otherwise get Cygnus style configure.
23879     if test -f $ac_srcdir/configure.gnu; then
23880       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
23881     elif test -f $ac_srcdir/configure; then
23882       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
23883     elif test -f $ac_srcdir/configure.in; then
23884       ac_sub_configure=$ac_configure
23885     else
23886       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23887 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23888       ac_sub_configure=
23889     fi
23890
23891     # The recursion is here.
23892     if test -n "$ac_sub_configure"; then
23893       # Make the cache file name correct relative to the subdirectory.
23894       case $cache_file in
23895       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23896       *) # Relative path.
23897         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
23898       esac
23899
23900       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23901 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23902       # The eval makes quoting arguments work.
23903       eval $ac_sub_configure $ac_sub_configure_args \
23904            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23905         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23906 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23907    { (exit 1); exit 1; }; }
23908     fi
23909
23910     cd "$ac_popdir"
23911   done
23912 fi
23913
23914
23915 echo "
23916
23917 Configuration of package \`${PACKAGE}':
23918
23919         Compiler:       ${CC}
23920
23921         CFlags:         ${CFLAGS}
23922         LDFlags:        ${LDFLAGS}
23923 "
23924
23925 exit 0;