Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Back to automake-1.8 now that my machine works again
[simgrid.git] / configure
1 #! /bin/sh
2 # From configure.ac Revision: 1.8 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for GRAS 0.0.040304.
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.040304'
428 PACKAGE_STRING='GRAS 0.0.040304'
429 PACKAGE_BUGREPORT='martin.quinson@ens-lyon.fr'
430
431 ac_unique_file="src/include/gras.h"
432 # Factoring default headers for most tests.
433 ac_includes_default="\
434 #include <stdio.h>
435 #if HAVE_SYS_TYPES_H
436 # include <sys/types.h>
437 #endif
438 #if HAVE_SYS_STAT_H
439 # include <sys/stat.h>
440 #endif
441 #if STDC_HEADERS
442 # include <stdlib.h>
443 # include <stddef.h>
444 #else
445 # if HAVE_STDLIB_H
446 #  include <stdlib.h>
447 # endif
448 #endif
449 #if HAVE_STRING_H
450 # if !STDC_HEADERS && HAVE_MEMORY_H
451 #  include <memory.h>
452 # endif
453 # include <string.h>
454 #endif
455 #if HAVE_STRINGS_H
456 # include <strings.h>
457 #endif
458 #if HAVE_INTTYPES_H
459 # include <inttypes.h>
460 #else
461 # if HAVE_STDINT_H
462 #  include <stdint.h>
463 # endif
464 #endif
465 #if HAVE_UNISTD_H
466 # include <unistd.h>
467 #endif"
468
469 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA 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 LIBOBJS HTML_DIR PKG_CONFIG ENABLE_GTK_DOC_TRUE ENABLE_GTK_DOC_FALSE GTK_DOC_USE_LIBTOOL_TRUE GTK_DOC_USE_LIBTOOL_FALSE 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'
470 ac_subst_files=''
471
472 # Initialize some variables set by options.
473 ac_init_help=
474 ac_init_version=false
475 # The variables have the same names as the options, with
476 # dashes changed to underlines.
477 cache_file=/dev/null
478 exec_prefix=NONE
479 no_create=
480 no_recursion=
481 prefix=NONE
482 program_prefix=NONE
483 program_suffix=NONE
484 program_transform_name=s,x,x,
485 silent=
486 site=
487 srcdir=
488 verbose=
489 x_includes=NONE
490 x_libraries=NONE
491
492 # Installation directory options.
493 # These are left unexpanded so users can "make install exec_prefix=/foo"
494 # and all the variables that are supposed to be based on exec_prefix
495 # by default will actually change.
496 # Use braces instead of parens because sh, perl, etc. also accept them.
497 bindir='${exec_prefix}/bin'
498 sbindir='${exec_prefix}/sbin'
499 libexecdir='${exec_prefix}/libexec'
500 datadir='${prefix}/share'
501 sysconfdir='${prefix}/etc'
502 sharedstatedir='${prefix}/com'
503 localstatedir='${prefix}/var'
504 libdir='${exec_prefix}/lib'
505 includedir='${prefix}/include'
506 oldincludedir='/usr/include'
507 infodir='${prefix}/info'
508 mandir='${prefix}/man'
509
510 ac_prev=
511 for ac_option
512 do
513   # If the previous option needs an argument, assign it.
514   if test -n "$ac_prev"; then
515     eval "$ac_prev=\$ac_option"
516     ac_prev=
517     continue
518   fi
519
520   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521
522   # Accept the important Cygnus configure options, so we can diagnose typos.
523
524   case $ac_option in
525
526   -bindir | --bindir | --bindi | --bind | --bin | --bi)
527     ac_prev=bindir ;;
528   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529     bindir=$ac_optarg ;;
530
531   -build | --build | --buil | --bui | --bu)
532     ac_prev=build_alias ;;
533   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
534     build_alias=$ac_optarg ;;
535
536   -cache-file | --cache-file | --cache-fil | --cache-fi \
537   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538     ac_prev=cache_file ;;
539   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
541     cache_file=$ac_optarg ;;
542
543   --config-cache | -C)
544     cache_file=config.cache ;;
545
546   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547     ac_prev=datadir ;;
548   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549   | --da=*)
550     datadir=$ac_optarg ;;
551
552   -disable-* | --disable-*)
553     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
554     # Reject names that are not valid shell variable names.
555     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557    { (exit 1); exit 1; }; }
558     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559     eval "enable_$ac_feature=no" ;;
560
561   -enable-* | --enable-*)
562     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
563     # Reject names that are not valid shell variable names.
564     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566    { (exit 1); exit 1; }; }
567     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568     case $ac_option in
569       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570       *) ac_optarg=yes ;;
571     esac
572     eval "enable_$ac_feature='$ac_optarg'" ;;
573
574   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
575   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
576   | --exec | --exe | --ex)
577     ac_prev=exec_prefix ;;
578   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
579   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
580   | --exec=* | --exe=* | --ex=*)
581     exec_prefix=$ac_optarg ;;
582
583   -gas | --gas | --ga | --g)
584     # Obsolete; use --with-gas.
585     with_gas=yes ;;
586
587   -help | --help | --hel | --he | -h)
588     ac_init_help=long ;;
589   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
590     ac_init_help=recursive ;;
591   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
592     ac_init_help=short ;;
593
594   -host | --host | --hos | --ho)
595     ac_prev=host_alias ;;
596   -host=* | --host=* | --hos=* | --ho=*)
597     host_alias=$ac_optarg ;;
598
599   -includedir | --includedir | --includedi | --included | --include \
600   | --includ | --inclu | --incl | --inc)
601     ac_prev=includedir ;;
602   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
603   | --includ=* | --inclu=* | --incl=* | --inc=*)
604     includedir=$ac_optarg ;;
605
606   -infodir | --infodir | --infodi | --infod | --info | --inf)
607     ac_prev=infodir ;;
608   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
609     infodir=$ac_optarg ;;
610
611   -libdir | --libdir | --libdi | --libd)
612     ac_prev=libdir ;;
613   -libdir=* | --libdir=* | --libdi=* | --libd=*)
614     libdir=$ac_optarg ;;
615
616   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
617   | --libexe | --libex | --libe)
618     ac_prev=libexecdir ;;
619   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
620   | --libexe=* | --libex=* | --libe=*)
621     libexecdir=$ac_optarg ;;
622
623   -localstatedir | --localstatedir | --localstatedi | --localstated \
624   | --localstate | --localstat | --localsta | --localst \
625   | --locals | --local | --loca | --loc | --lo)
626     ac_prev=localstatedir ;;
627   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
628   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
629   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
630     localstatedir=$ac_optarg ;;
631
632   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633     ac_prev=mandir ;;
634   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635     mandir=$ac_optarg ;;
636
637   -nfp | --nfp | --nf)
638     # Obsolete; use --without-fp.
639     with_fp=no ;;
640
641   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
642   | --no-cr | --no-c | -n)
643     no_create=yes ;;
644
645   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
646   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647     no_recursion=yes ;;
648
649   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
650   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
651   | --oldin | --oldi | --old | --ol | --o)
652     ac_prev=oldincludedir ;;
653   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
654   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
655   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
656     oldincludedir=$ac_optarg ;;
657
658   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659     ac_prev=prefix ;;
660   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661     prefix=$ac_optarg ;;
662
663   -program-prefix | --program-prefix | --program-prefi | --program-pref \
664   | --program-pre | --program-pr | --program-p)
665     ac_prev=program_prefix ;;
666   -program-prefix=* | --program-prefix=* | --program-prefi=* \
667   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
668     program_prefix=$ac_optarg ;;
669
670   -program-suffix | --program-suffix | --program-suffi | --program-suff \
671   | --program-suf | --program-su | --program-s)
672     ac_prev=program_suffix ;;
673   -program-suffix=* | --program-suffix=* | --program-suffi=* \
674   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
675     program_suffix=$ac_optarg ;;
676
677   -program-transform-name | --program-transform-name \
678   | --program-transform-nam | --program-transform-na \
679   | --program-transform-n | --program-transform- \
680   | --program-transform | --program-transfor \
681   | --program-transfo | --program-transf \
682   | --program-trans | --program-tran \
683   | --progr-tra | --program-tr | --program-t)
684     ac_prev=program_transform_name ;;
685   -program-transform-name=* | --program-transform-name=* \
686   | --program-transform-nam=* | --program-transform-na=* \
687   | --program-transform-n=* | --program-transform-=* \
688   | --program-transform=* | --program-transfor=* \
689   | --program-transfo=* | --program-transf=* \
690   | --program-trans=* | --program-tran=* \
691   | --progr-tra=* | --program-tr=* | --program-t=*)
692     program_transform_name=$ac_optarg ;;
693
694   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
695   | -silent | --silent | --silen | --sile | --sil)
696     silent=yes ;;
697
698   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699     ac_prev=sbindir ;;
700   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701   | --sbi=* | --sb=*)
702     sbindir=$ac_optarg ;;
703
704   -sharedstatedir | --sharedstatedir | --sharedstatedi \
705   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
706   | --sharedst | --shareds | --shared | --share | --shar \
707   | --sha | --sh)
708     ac_prev=sharedstatedir ;;
709   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
710   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
711   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712   | --sha=* | --sh=*)
713     sharedstatedir=$ac_optarg ;;
714
715   -site | --site | --sit)
716     ac_prev=site ;;
717   -site=* | --site=* | --sit=*)
718     site=$ac_optarg ;;
719
720   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721     ac_prev=srcdir ;;
722   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723     srcdir=$ac_optarg ;;
724
725   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
726   | --syscon | --sysco | --sysc | --sys | --sy)
727     ac_prev=sysconfdir ;;
728   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
729   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
730     sysconfdir=$ac_optarg ;;
731
732   -target | --target | --targe | --targ | --tar | --ta | --t)
733     ac_prev=target_alias ;;
734   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
735     target_alias=$ac_optarg ;;
736
737   -v | -verbose | --verbose | --verbos | --verbo | --verb)
738     verbose=yes ;;
739
740   -version | --version | --versio | --versi | --vers | -V)
741     ac_init_version=: ;;
742
743   -with-* | --with-*)
744     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
745     # Reject names that are not valid shell variable names.
746     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747       { echo "$as_me: error: invalid package name: $ac_package" >&2
748    { (exit 1); exit 1; }; }
749     ac_package=`echo $ac_package| sed 's/-/_/g'`
750     case $ac_option in
751       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752       *) ac_optarg=yes ;;
753     esac
754     eval "with_$ac_package='$ac_optarg'" ;;
755
756   -without-* | --without-*)
757     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
758     # Reject names that are not valid shell variable names.
759     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
760       { echo "$as_me: error: invalid package name: $ac_package" >&2
761    { (exit 1); exit 1; }; }
762     ac_package=`echo $ac_package | sed 's/-/_/g'`
763     eval "with_$ac_package=no" ;;
764
765   --x)
766     # Obsolete; use --with-x.
767     with_x=yes ;;
768
769   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
770   | --x-incl | --x-inc | --x-in | --x-i)
771     ac_prev=x_includes ;;
772   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
773   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
774     x_includes=$ac_optarg ;;
775
776   -x-libraries | --x-libraries | --x-librarie | --x-librari \
777   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
778     ac_prev=x_libraries ;;
779   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
780   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
781     x_libraries=$ac_optarg ;;
782
783   -*) { echo "$as_me: error: unrecognized option: $ac_option
784 Try \`$0 --help' for more information." >&2
785    { (exit 1); exit 1; }; }
786     ;;
787
788   *=*)
789     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
790     # Reject names that are not valid shell variable names.
791     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
792       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
793    { (exit 1); exit 1; }; }
794     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
795     eval "$ac_envvar='$ac_optarg'"
796     export $ac_envvar ;;
797
798   *)
799     # FIXME: should be removed in autoconf 3.0.
800     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
801     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
802       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
803     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
804     ;;
805
806   esac
807 done
808
809 if test -n "$ac_prev"; then
810   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
811   { echo "$as_me: error: missing argument to $ac_option" >&2
812    { (exit 1); exit 1; }; }
813 fi
814
815 # Be sure to have absolute paths.
816 for ac_var in exec_prefix prefix
817 do
818   eval ac_val=$`echo $ac_var`
819   case $ac_val in
820     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
821     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822    { (exit 1); exit 1; }; };;
823   esac
824 done
825
826 # Be sure to have absolute paths.
827 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
828               localstatedir libdir includedir oldincludedir infodir mandir
829 do
830   eval ac_val=$`echo $ac_var`
831   case $ac_val in
832     [\\/$]* | ?:[\\/]* ) ;;
833     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
834    { (exit 1); exit 1; }; };;
835   esac
836 done
837
838 # There might be people who depend on the old broken behavior: `$host'
839 # used to hold the argument of --host etc.
840 # FIXME: To remove some day.
841 build=$build_alias
842 host=$host_alias
843 target=$target_alias
844
845 # FIXME: To remove some day.
846 if test "x$host_alias" != x; then
847   if test "x$build_alias" = x; then
848     cross_compiling=maybe
849     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
850     If a cross compiler is detected then cross compile mode will be used." >&2
851   elif test "x$build_alias" != "x$host_alias"; then
852     cross_compiling=yes
853   fi
854 fi
855
856 ac_tool_prefix=
857 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858
859 test "$silent" = yes && exec 6>/dev/null
860
861
862 # Find the source files, if location was not specified.
863 if test -z "$srcdir"; then
864   ac_srcdir_defaulted=yes
865   # Try the directory containing this script, then its parent.
866   ac_confdir=`(dirname "$0") 2>/dev/null ||
867 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
868          X"$0" : 'X\(//\)[^/]' \| \
869          X"$0" : 'X\(//\)$' \| \
870          X"$0" : 'X\(/\)' \| \
871          .     : '\(.\)' 2>/dev/null ||
872 echo X"$0" |
873     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
874           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
875           /^X\(\/\/\)$/{ s//\1/; q; }
876           /^X\(\/\).*/{ s//\1/; q; }
877           s/.*/./; q'`
878   srcdir=$ac_confdir
879   if test ! -r $srcdir/$ac_unique_file; then
880     srcdir=..
881   fi
882 else
883   ac_srcdir_defaulted=no
884 fi
885 if test ! -r $srcdir/$ac_unique_file; then
886   if test "$ac_srcdir_defaulted" = yes; then
887     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
888    { (exit 1); exit 1; }; }
889   else
890     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
891    { (exit 1); exit 1; }; }
892   fi
893 fi
894 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
895   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
896    { (exit 1); exit 1; }; }
897 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
898 ac_env_build_alias_set=${build_alias+set}
899 ac_env_build_alias_value=$build_alias
900 ac_cv_env_build_alias_set=${build_alias+set}
901 ac_cv_env_build_alias_value=$build_alias
902 ac_env_host_alias_set=${host_alias+set}
903 ac_env_host_alias_value=$host_alias
904 ac_cv_env_host_alias_set=${host_alias+set}
905 ac_cv_env_host_alias_value=$host_alias
906 ac_env_target_alias_set=${target_alias+set}
907 ac_env_target_alias_value=$target_alias
908 ac_cv_env_target_alias_set=${target_alias+set}
909 ac_cv_env_target_alias_value=$target_alias
910 ac_env_CC_set=${CC+set}
911 ac_env_CC_value=$CC
912 ac_cv_env_CC_set=${CC+set}
913 ac_cv_env_CC_value=$CC
914 ac_env_CFLAGS_set=${CFLAGS+set}
915 ac_env_CFLAGS_value=$CFLAGS
916 ac_cv_env_CFLAGS_set=${CFLAGS+set}
917 ac_cv_env_CFLAGS_value=$CFLAGS
918 ac_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_env_LDFLAGS_value=$LDFLAGS
920 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_cv_env_LDFLAGS_value=$LDFLAGS
922 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_env_CPPFLAGS_value=$CPPFLAGS
924 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
926 ac_env_CPP_set=${CPP+set}
927 ac_env_CPP_value=$CPP
928 ac_cv_env_CPP_set=${CPP+set}
929 ac_cv_env_CPP_value=$CPP
930 ac_env_CXX_set=${CXX+set}
931 ac_env_CXX_value=$CXX
932 ac_cv_env_CXX_set=${CXX+set}
933 ac_cv_env_CXX_value=$CXX
934 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_env_CXXFLAGS_value=$CXXFLAGS
936 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
937 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
938 ac_env_CXXCPP_set=${CXXCPP+set}
939 ac_env_CXXCPP_value=$CXXCPP
940 ac_cv_env_CXXCPP_set=${CXXCPP+set}
941 ac_cv_env_CXXCPP_value=$CXXCPP
942 ac_env_F77_set=${F77+set}
943 ac_env_F77_value=$F77
944 ac_cv_env_F77_set=${F77+set}
945 ac_cv_env_F77_value=$F77
946 ac_env_FFLAGS_set=${FFLAGS+set}
947 ac_env_FFLAGS_value=$FFLAGS
948 ac_cv_env_FFLAGS_set=${FFLAGS+set}
949 ac_cv_env_FFLAGS_value=$FFLAGS
950
951 #
952 # Report the --help message.
953 #
954 if test "$ac_init_help" = "long"; then
955   # Omit some internal or obsolete options to make the list less imposing.
956   # This message is too long to be a string in the A/UX 3.1 sh.
957   cat <<_ACEOF
958 \`configure' configures GRAS 0.0.040304 to adapt to many kinds of systems.
959
960 Usage: $0 [OPTION]... [VAR=VALUE]...
961
962 To assign environment variables (e.g., CC, CFLAGS...), specify them as
963 VAR=VALUE.  See below for descriptions of some of the useful variables.
964
965 Defaults for the options are specified in brackets.
966
967 Configuration:
968   -h, --help              display this help and exit
969       --help=short        display options specific to this package
970       --help=recursive    display the short help of all the included packages
971   -V, --version           display version information and exit
972   -q, --quiet, --silent   do not print \`checking...' messages
973       --cache-file=FILE   cache test results in FILE [disabled]
974   -C, --config-cache      alias for \`--cache-file=config.cache'
975   -n, --no-create         do not create output files
976       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
977
978 _ACEOF
979
980   cat <<_ACEOF
981 Installation directories:
982   --prefix=PREFIX         install architecture-independent files in PREFIX
983                           [$ac_default_prefix]
984   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
985                           [PREFIX]
986
987 By default, \`make install' will install all the files in
988 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
989 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
990 for instance \`--prefix=\$HOME'.
991
992 For better control, use the options below.
993
994 Fine tuning of the installation directories:
995   --bindir=DIR           user executables [EPREFIX/bin]
996   --sbindir=DIR          system admin executables [EPREFIX/sbin]
997   --libexecdir=DIR       program executables [EPREFIX/libexec]
998   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
999   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1000   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1001   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1002   --libdir=DIR           object code libraries [EPREFIX/lib]
1003   --includedir=DIR       C header files [PREFIX/include]
1004   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1005   --infodir=DIR          info documentation [PREFIX/info]
1006   --mandir=DIR           man documentation [PREFIX/man]
1007 _ACEOF
1008
1009   cat <<\_ACEOF
1010
1011 Program names:
1012   --program-prefix=PREFIX            prepend PREFIX to installed program names
1013   --program-suffix=SUFFIX            append SUFFIX to installed program names
1014   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1015
1016 System types:
1017   --build=BUILD     configure for building on BUILD [guessed]
1018   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1019   --target=TARGET   configure for building compilers for TARGET [HOST]
1020 _ACEOF
1021 fi
1022
1023 if test -n "$ac_init_help"; then
1024   case $ac_init_help in
1025      short | recursive ) echo "Configuration of GRAS 0.0.040304:";;
1026    esac
1027   cat <<\_ACEOF
1028
1029 Optional Features:
1030   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1031   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1032   --enable-shared[=PKGS]
1033                           build shared libraries [default=yes]
1034   --enable-static[=PKGS]
1035                           build static libraries [default=yes]
1036   --enable-fast-install[=PKGS]
1037                           optimize for fast installation [default=yes]
1038   --disable-dependency-tracking Speeds up one-time builds
1039   --enable-dependency-tracking  Do not reject slow dependency extractors
1040   --disable-libtool-lock  avoid locking (might break parallel builds)
1041   --enable-gtk-doc        use gtk-doc to build documentation default=no
1042   --enable-maintainer-mode enable make rules and dependencies not useful
1043                           (and sometimes confusing) to the casual installer
1044   --enable-compile-warnings=no/minimum/yes       Turn on compiler warnings.
1045   --enable-iso-c          Try to warn if code is not ISO C
1046
1047 Optional Packages:
1048   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1049   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1050   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1051   --with-pic              try to use only PIC/non-PIC objects [default=use
1052                           both]
1053   --with-tags[=TAGS]
1054                           include additional configurations [automatic]
1055   --with-html-dir=PATH    path to installed docs
1056   --with-SimGrid=DIR      root directory of the SimGrid simulator installation
1057   --with-SimGrid-includes=DIR
1058                           specify exact include dir for the SimGrid simulator headers
1059   --with-SimGrid-libraries=DIR
1060                           specify exact library dir for the SimGrid simulator library
1061   --with-SimGrid-extra=ARG
1062                           specify extra args to pass to the linker to get the
1063                           the SimGrid simulator library (with no space. A sed to change "!"
1064                           to " " is run)
1065
1066 Some influential environment variables:
1067   CC          C compiler command
1068   CFLAGS      C compiler flags
1069   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1070               nonstandard directory <lib dir>
1071   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1072               headers in a nonstandard directory <include dir>
1073   CPP         C preprocessor
1074   CXX         C++ compiler command
1075   CXXFLAGS    C++ compiler flags
1076   CXXCPP      C++ preprocessor
1077   F77         Fortran 77 compiler command
1078   FFLAGS      Fortran 77 compiler flags
1079
1080 Use these variables to override the choices made by `configure' or to help
1081 it to find libraries and programs with nonstandard names/locations.
1082
1083 Report bugs to <martin.quinson@ens-lyon.fr>.
1084 _ACEOF
1085 fi
1086
1087 if test "$ac_init_help" = "recursive"; then
1088   # If there are subdirs, report their specific --help.
1089   ac_popdir=`pwd`
1090   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1091     test -d $ac_dir || continue
1092     ac_builddir=.
1093
1094 if test "$ac_dir" != .; then
1095   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1096   # A "../" for each directory in $ac_dir_suffix.
1097   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1098 else
1099   ac_dir_suffix= ac_top_builddir=
1100 fi
1101
1102 case $srcdir in
1103   .)  # No --srcdir option.  We are building in place.
1104     ac_srcdir=.
1105     if test -z "$ac_top_builddir"; then
1106        ac_top_srcdir=.
1107     else
1108        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1109     fi ;;
1110   [\\/]* | ?:[\\/]* )  # Absolute path.
1111     ac_srcdir=$srcdir$ac_dir_suffix;
1112     ac_top_srcdir=$srcdir ;;
1113   *) # Relative path.
1114     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1115     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1116 esac
1117
1118 # Do not use `cd foo && pwd` to compute absolute paths, because
1119 # the directories may not exist.
1120 case `pwd` in
1121 .) ac_abs_builddir="$ac_dir";;
1122 *)
1123   case "$ac_dir" in
1124   .) ac_abs_builddir=`pwd`;;
1125   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1126   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1127   esac;;
1128 esac
1129 case $ac_abs_builddir in
1130 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1131 *)
1132   case ${ac_top_builddir}. in
1133   .) ac_abs_top_builddir=$ac_abs_builddir;;
1134   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1135   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1136   esac;;
1137 esac
1138 case $ac_abs_builddir in
1139 .) ac_abs_srcdir=$ac_srcdir;;
1140 *)
1141   case $ac_srcdir in
1142   .) ac_abs_srcdir=$ac_abs_builddir;;
1143   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1144   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1145   esac;;
1146 esac
1147 case $ac_abs_builddir in
1148 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1149 *)
1150   case $ac_top_srcdir in
1151   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1152   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1153   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1154   esac;;
1155 esac
1156
1157     cd $ac_dir
1158     # Check for guested configure; otherwise get Cygnus style configure.
1159     if test -f $ac_srcdir/configure.gnu; then
1160       echo
1161       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1162     elif test -f $ac_srcdir/configure; then
1163       echo
1164       $SHELL $ac_srcdir/configure  --help=recursive
1165     elif test -f $ac_srcdir/configure.ac ||
1166            test -f $ac_srcdir/configure.in; then
1167       echo
1168       $ac_configure --help
1169     else
1170       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1171     fi
1172     cd "$ac_popdir"
1173   done
1174 fi
1175
1176 test -n "$ac_init_help" && exit 0
1177 if $ac_init_version; then
1178   cat <<\_ACEOF
1179 GRAS configure 0.0.040304
1180 generated by GNU Autoconf 2.59
1181
1182 Copyright (C) 2003 Free Software Foundation, Inc.
1183 This configure script is free software; the Free Software Foundation
1184 gives unlimited permission to copy, distribute and modify it.
1185 _ACEOF
1186   exit 0
1187 fi
1188 exec 5>config.log
1189 cat >&5 <<_ACEOF
1190 This file contains any messages produced by compilers while
1191 running configure, to aid debugging if configure makes a mistake.
1192
1193 It was created by GRAS $as_me 0.0.040304, which was
1194 generated by GNU Autoconf 2.59.  Invocation command line was
1195
1196   $ $0 $@
1197
1198 _ACEOF
1199 {
1200 cat <<_ASUNAME
1201 ## --------- ##
1202 ## Platform. ##
1203 ## --------- ##
1204
1205 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1206 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1207 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1208 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1209 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1210
1211 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1212 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1213
1214 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1215 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1216 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1217 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1218 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1219 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1220 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1221
1222 _ASUNAME
1223
1224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1225 for as_dir in $PATH
1226 do
1227   IFS=$as_save_IFS
1228   test -z "$as_dir" && as_dir=.
1229   echo "PATH: $as_dir"
1230 done
1231
1232 } >&5
1233
1234 cat >&5 <<_ACEOF
1235
1236
1237 ## ----------- ##
1238 ## Core tests. ##
1239 ## ----------- ##
1240
1241 _ACEOF
1242
1243
1244 # Keep a trace of the command line.
1245 # Strip out --no-create and --no-recursion so they do not pile up.
1246 # Strip out --silent because we don't want to record it for future runs.
1247 # Also quote any args containing shell meta-characters.
1248 # Make two passes to allow for proper duplicate-argument suppression.
1249 ac_configure_args=
1250 ac_configure_args0=
1251 ac_configure_args1=
1252 ac_sep=
1253 ac_must_keep_next=false
1254 for ac_pass in 1 2
1255 do
1256   for ac_arg
1257   do
1258     case $ac_arg in
1259     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1260     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1261     | -silent | --silent | --silen | --sile | --sil)
1262       continue ;;
1263     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1264       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1265     esac
1266     case $ac_pass in
1267     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1268     2)
1269       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1270       if test $ac_must_keep_next = true; then
1271         ac_must_keep_next=false # Got value, back to normal.
1272       else
1273         case $ac_arg in
1274           *=* | --config-cache | -C | -disable-* | --disable-* \
1275           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1276           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1277           | -with-* | --with-* | -without-* | --without-* | --x)
1278             case "$ac_configure_args0 " in
1279               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1280             esac
1281             ;;
1282           -* ) ac_must_keep_next=true ;;
1283         esac
1284       fi
1285       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1286       # Get rid of the leading space.
1287       ac_sep=" "
1288       ;;
1289     esac
1290   done
1291 done
1292 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1293 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1294
1295 # When interrupted or exit'd, cleanup temporary files, and complete
1296 # config.log.  We remove comments because anyway the quotes in there
1297 # would cause problems or look ugly.
1298 # WARNING: Be sure not to use single quotes in there, as some shells,
1299 # such as our DU 5.0 friend, will then `close' the trap.
1300 trap 'exit_status=$?
1301   # Save into config.log some information that might help in debugging.
1302   {
1303     echo
1304
1305     cat <<\_ASBOX
1306 ## ---------------- ##
1307 ## Cache variables. ##
1308 ## ---------------- ##
1309 _ASBOX
1310     echo
1311     # The following way of writing the cache mishandles newlines in values,
1312 {
1313   (set) 2>&1 |
1314     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1315     *ac_space=\ *)
1316       sed -n \
1317         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1318           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1319       ;;
1320     *)
1321       sed -n \
1322         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1323       ;;
1324     esac;
1325 }
1326     echo
1327
1328     cat <<\_ASBOX
1329 ## ----------------- ##
1330 ## Output variables. ##
1331 ## ----------------- ##
1332 _ASBOX
1333     echo
1334     for ac_var in $ac_subst_vars
1335     do
1336       eval ac_val=$`echo $ac_var`
1337       echo "$ac_var='"'"'$ac_val'"'"'"
1338     done | sort
1339     echo
1340
1341     if test -n "$ac_subst_files"; then
1342       cat <<\_ASBOX
1343 ## ------------- ##
1344 ## Output files. ##
1345 ## ------------- ##
1346 _ASBOX
1347       echo
1348       for ac_var in $ac_subst_files
1349       do
1350         eval ac_val=$`echo $ac_var`
1351         echo "$ac_var='"'"'$ac_val'"'"'"
1352       done | sort
1353       echo
1354     fi
1355
1356     if test -s confdefs.h; then
1357       cat <<\_ASBOX
1358 ## ----------- ##
1359 ## confdefs.h. ##
1360 ## ----------- ##
1361 _ASBOX
1362       echo
1363       sed "/^$/d" confdefs.h | sort
1364       echo
1365     fi
1366     test "$ac_signal" != 0 &&
1367       echo "$as_me: caught signal $ac_signal"
1368     echo "$as_me: exit $exit_status"
1369   } >&5
1370   rm -f core *.core &&
1371   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1372     exit $exit_status
1373      ' 0
1374 for ac_signal in 1 2 13 15; do
1375   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1376 done
1377 ac_signal=0
1378
1379 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1380 rm -rf conftest* confdefs.h
1381 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1382 echo >confdefs.h
1383
1384 # Predefined preprocessor variables.
1385
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_NAME "$PACKAGE_NAME"
1388 _ACEOF
1389
1390
1391 cat >>confdefs.h <<_ACEOF
1392 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1393 _ACEOF
1394
1395
1396 cat >>confdefs.h <<_ACEOF
1397 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1398 _ACEOF
1399
1400
1401 cat >>confdefs.h <<_ACEOF
1402 #define PACKAGE_STRING "$PACKAGE_STRING"
1403 _ACEOF
1404
1405
1406 cat >>confdefs.h <<_ACEOF
1407 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1408 _ACEOF
1409
1410
1411 # Let the site file select an alternate cache file if it wants to.
1412 # Prefer explicitly selected file to automatically selected ones.
1413 if test -z "$CONFIG_SITE"; then
1414   if test "x$prefix" != xNONE; then
1415     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1416   else
1417     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1418   fi
1419 fi
1420 for ac_site_file in $CONFIG_SITE; do
1421   if test -r "$ac_site_file"; then
1422     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1423 echo "$as_me: loading site script $ac_site_file" >&6;}
1424     sed 's/^/| /' "$ac_site_file" >&5
1425     . "$ac_site_file"
1426   fi
1427 done
1428
1429 if test -r "$cache_file"; then
1430   # Some versions of bash will fail to source /dev/null (special
1431   # files actually), so we avoid doing that.
1432   if test -f "$cache_file"; then
1433     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1434 echo "$as_me: loading cache $cache_file" >&6;}
1435     case $cache_file in
1436       [\\/]* | ?:[\\/]* ) . $cache_file;;
1437       *)                      . ./$cache_file;;
1438     esac
1439   fi
1440 else
1441   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1442 echo "$as_me: creating cache $cache_file" >&6;}
1443   >$cache_file
1444 fi
1445
1446 # Check that the precious variables saved in the cache have kept the same
1447 # value.
1448 ac_cache_corrupted=false
1449 for ac_var in `(set) 2>&1 |
1450                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1451   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1452   eval ac_new_set=\$ac_env_${ac_var}_set
1453   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1454   eval ac_new_val="\$ac_env_${ac_var}_value"
1455   case $ac_old_set,$ac_new_set in
1456     set,)
1457       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1458 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1459       ac_cache_corrupted=: ;;
1460     ,set)
1461       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1462 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1463       ac_cache_corrupted=: ;;
1464     ,);;
1465     *)
1466       if test "x$ac_old_val" != "x$ac_new_val"; then
1467         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1468 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1469         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1470 echo "$as_me:   former value:  $ac_old_val" >&2;}
1471         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1472 echo "$as_me:   current value: $ac_new_val" >&2;}
1473         ac_cache_corrupted=:
1474       fi;;
1475   esac
1476   # Pass precious variables to config.status.
1477   if test "$ac_new_set" = set; then
1478     case $ac_new_val in
1479     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1480       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1481     *) ac_arg=$ac_var=$ac_new_val ;;
1482     esac
1483     case " $ac_configure_args " in
1484       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1485       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1486     esac
1487   fi
1488 done
1489 if $ac_cache_corrupted; then
1490   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1491 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1492   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1493 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1494    { (exit 1); exit 1; }; }
1495 fi
1496
1497 ac_ext=c
1498 ac_cpp='$CPP $CPPFLAGS'
1499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
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 # Make sure we can run config.sub.
1558 $ac_config_sub sun4 >/dev/null 2>&1 ||
1559   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1560 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1561    { (exit 1); exit 1; }; }
1562
1563 echo "$as_me:$LINENO: checking build system type" >&5
1564 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1565 if test "${ac_cv_build+set}" = set; then
1566   echo $ECHO_N "(cached) $ECHO_C" >&6
1567 else
1568   ac_cv_build_alias=$build_alias
1569 test -z "$ac_cv_build_alias" &&
1570   ac_cv_build_alias=`$ac_config_guess`
1571 test -z "$ac_cv_build_alias" &&
1572   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1573 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1574    { (exit 1); exit 1; }; }
1575 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1576   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1577 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1578    { (exit 1); exit 1; }; }
1579
1580 fi
1581 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1582 echo "${ECHO_T}$ac_cv_build" >&6
1583 build=$ac_cv_build
1584 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1585 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1586 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1587
1588
1589 echo "$as_me:$LINENO: checking host system type" >&5
1590 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1591 if test "${ac_cv_host+set}" = set; then
1592   echo $ECHO_N "(cached) $ECHO_C" >&6
1593 else
1594   ac_cv_host_alias=$host_alias
1595 test -z "$ac_cv_host_alias" &&
1596   ac_cv_host_alias=$ac_cv_build_alias
1597 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1598   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1599 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1600    { (exit 1); exit 1; }; }
1601
1602 fi
1603 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1604 echo "${ECHO_T}$ac_cv_host" >&6
1605 host=$ac_cv_host
1606 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1607 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1608 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1609
1610
1611 echo "$as_me:$LINENO: checking target system type" >&5
1612 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1613 if test "${ac_cv_target+set}" = set; then
1614   echo $ECHO_N "(cached) $ECHO_C" >&6
1615 else
1616   ac_cv_target_alias=$target_alias
1617 test "x$ac_cv_target_alias" = "x" &&
1618   ac_cv_target_alias=$ac_cv_host_alias
1619 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1620   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1621 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1622    { (exit 1); exit 1; }; }
1623
1624 fi
1625 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1626 echo "${ECHO_T}$ac_cv_target" >&6
1627 target=$ac_cv_target
1628 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1629 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1630 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1631
1632
1633 # The aliases save the names the user supplied, while $host etc.
1634 # will get canonicalized.
1635 test -n "$target_alias" &&
1636   test "$program_prefix$program_suffix$program_transform_name" = \
1637     NONENONEs,x,x, &&
1638   program_prefix=${target_alias}-
1639 ac_ext=c
1640 ac_cpp='$CPP $CPPFLAGS'
1641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1644
1645
1646           ac_config_headers="$ac_config_headers src/gras_config.h"
1647
1648 am__api_version="1.7"
1649 # Find a good install program.  We prefer a C program (faster),
1650 # so one script is as good as another.  But avoid the broken or
1651 # incompatible versions:
1652 # SysV /etc/install, /usr/sbin/install
1653 # SunOS /usr/etc/install
1654 # IRIX /sbin/install
1655 # AIX /bin/install
1656 # AmigaOS /C/install, which installs bootblocks on floppy discs
1657 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1658 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1659 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1660 # OS/2's system install, which has a completely different semantic
1661 # ./install, which can be erroneously created by make from ./install.sh.
1662 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1663 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1664 if test -z "$INSTALL"; then
1665 if test "${ac_cv_path_install+set}" = set; then
1666   echo $ECHO_N "(cached) $ECHO_C" >&6
1667 else
1668   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1669 for as_dir in $PATH
1670 do
1671   IFS=$as_save_IFS
1672   test -z "$as_dir" && as_dir=.
1673   # Account for people who put trailing slashes in PATH elements.
1674 case $as_dir/ in
1675   ./ | .// | /cC/* | \
1676   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1677   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1678   /usr/ucb/* ) ;;
1679   *)
1680     # OSF1 and SCO ODT 3.0 have their own names for install.
1681     # Don't use installbsd from OSF since it installs stuff as root
1682     # by default.
1683     for ac_prog in ginstall scoinst install; do
1684       for ac_exec_ext in '' $ac_executable_extensions; do
1685         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1686           if test $ac_prog = install &&
1687             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1688             # AIX install.  It has an incompatible calling convention.
1689             :
1690           elif test $ac_prog = install &&
1691             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1692             # program-specific install script used by HP pwplus--don't use.
1693             :
1694           else
1695             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1696             break 3
1697           fi
1698         fi
1699       done
1700     done
1701     ;;
1702 esac
1703 done
1704
1705
1706 fi
1707   if test "${ac_cv_path_install+set}" = set; then
1708     INSTALL=$ac_cv_path_install
1709   else
1710     # As a last resort, use the slow shell script.  We don't cache a
1711     # path for INSTALL within a source directory, because that will
1712     # break other packages using the cache if that directory is
1713     # removed, or if the path is relative.
1714     INSTALL=$ac_install_sh
1715   fi
1716 fi
1717 echo "$as_me:$LINENO: result: $INSTALL" >&5
1718 echo "${ECHO_T}$INSTALL" >&6
1719
1720 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1721 # It thinks the first close brace ends the variable substitution.
1722 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1723
1724 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1725
1726 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1727
1728 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1729 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1730 # Just in case
1731 sleep 1
1732 echo timestamp > conftest.file
1733 # Do `set' in a subshell so we don't clobber the current shell's
1734 # arguments.  Must try -L first in case configure is actually a
1735 # symlink; some systems play weird games with the mod time of symlinks
1736 # (eg FreeBSD returns the mod time of the symlink's containing
1737 # directory).
1738 if (
1739    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1740    if test "$*" = "X"; then
1741       # -L didn't work.
1742       set X `ls -t $srcdir/configure conftest.file`
1743    fi
1744    rm -f conftest.file
1745    if test "$*" != "X $srcdir/configure conftest.file" \
1746       && test "$*" != "X conftest.file $srcdir/configure"; then
1747
1748       # If neither matched, then we have a broken ls.  This can happen
1749       # if, for instance, CONFIG_SHELL is bash and it inherits a
1750       # broken ls alias from the environment.  This has actually
1751       # happened.  Such a system could not be considered "sane".
1752       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1753 alias in your environment" >&5
1754 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1755 alias in your environment" >&2;}
1756    { (exit 1); exit 1; }; }
1757    fi
1758
1759    test "$2" = conftest.file
1760    )
1761 then
1762    # Ok.
1763    :
1764 else
1765    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1766 Check your system clock" >&5
1767 echo "$as_me: error: newly created file is older than distributed files!
1768 Check your system clock" >&2;}
1769    { (exit 1); exit 1; }; }
1770 fi
1771 echo "$as_me:$LINENO: result: yes" >&5
1772 echo "${ECHO_T}yes" >&6
1773 test "$program_prefix" != NONE &&
1774   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1775 # Use a double $ so make ignores it.
1776 test "$program_suffix" != NONE &&
1777   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1778 # Double any \ or $.  echo might interpret backslashes.
1779 # By default was `s,x,x', remove it if useless.
1780 cat <<\_ACEOF >conftest.sed
1781 s/[\\$]/&&/g;s/;s,x,x,$//
1782 _ACEOF
1783 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1784 rm conftest.sed
1785
1786
1787 # expand $ac_aux_dir to an absolute path
1788 am_aux_dir=`cd $ac_aux_dir && pwd`
1789
1790 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1791 # Use eval to expand $SHELL
1792 if eval "$MISSING --run true"; then
1793   am_missing_run="$MISSING --run "
1794 else
1795   am_missing_run=
1796   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1797 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1798 fi
1799
1800 for ac_prog in gawk mawk nawk awk
1801 do
1802   # Extract the first word of "$ac_prog", so it can be a program name with args.
1803 set dummy $ac_prog; ac_word=$2
1804 echo "$as_me:$LINENO: checking for $ac_word" >&5
1805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1806 if test "${ac_cv_prog_AWK+set}" = set; then
1807   echo $ECHO_N "(cached) $ECHO_C" >&6
1808 else
1809   if test -n "$AWK"; then
1810   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1811 else
1812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1813 for as_dir in $PATH
1814 do
1815   IFS=$as_save_IFS
1816   test -z "$as_dir" && as_dir=.
1817   for ac_exec_ext in '' $ac_executable_extensions; do
1818   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1819     ac_cv_prog_AWK="$ac_prog"
1820     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1821     break 2
1822   fi
1823 done
1824 done
1825
1826 fi
1827 fi
1828 AWK=$ac_cv_prog_AWK
1829 if test -n "$AWK"; then
1830   echo "$as_me:$LINENO: result: $AWK" >&5
1831 echo "${ECHO_T}$AWK" >&6
1832 else
1833   echo "$as_me:$LINENO: result: no" >&5
1834 echo "${ECHO_T}no" >&6
1835 fi
1836
1837   test -n "$AWK" && break
1838 done
1839
1840 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1841 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1842 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1843 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1844   echo $ECHO_N "(cached) $ECHO_C" >&6
1845 else
1846   cat >conftest.make <<\_ACEOF
1847 all:
1848         @echo 'ac_maketemp="$(MAKE)"'
1849 _ACEOF
1850 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1851 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1852 if test -n "$ac_maketemp"; then
1853   eval ac_cv_prog_make_${ac_make}_set=yes
1854 else
1855   eval ac_cv_prog_make_${ac_make}_set=no
1856 fi
1857 rm -f conftest.make
1858 fi
1859 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1860   echo "$as_me:$LINENO: result: yes" >&5
1861 echo "${ECHO_T}yes" >&6
1862   SET_MAKE=
1863 else
1864   echo "$as_me:$LINENO: result: no" >&5
1865 echo "${ECHO_T}no" >&6
1866   SET_MAKE="MAKE=${MAKE-make}"
1867 fi
1868
1869 rm -rf .tst 2>/dev/null
1870 mkdir .tst 2>/dev/null
1871 if test -d .tst; then
1872   am__leading_dot=.
1873 else
1874   am__leading_dot=_
1875 fi
1876 rmdir .tst 2>/dev/null
1877
1878  # test to see if srcdir already configured
1879 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1880    test -f $srcdir/config.status; then
1881   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1882 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1883    { (exit 1); exit 1; }; }
1884 fi
1885
1886 # test whether we have cygpath
1887 if test -z "$CYGPATH_W"; then
1888   if (cygpath --version) >/dev/null 2>/dev/null; then
1889     CYGPATH_W='cygpath -w'
1890   else
1891     CYGPATH_W=echo
1892   fi
1893 fi
1894
1895
1896 # Define the identity of the package.
1897  PACKAGE='gras'
1898  VERSION='0.0.040304'
1899
1900
1901 cat >>confdefs.h <<_ACEOF
1902 #define PACKAGE "$PACKAGE"
1903 _ACEOF
1904
1905
1906 cat >>confdefs.h <<_ACEOF
1907 #define VERSION "$VERSION"
1908 _ACEOF
1909
1910 # Some tools Automake needs.
1911
1912 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1913
1914
1915 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1916
1917
1918 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1919
1920
1921 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1922
1923
1924 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1925
1926
1927 AMTAR=${AMTAR-"${am_missing_run}tar"}
1928
1929 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1930
1931 # Installed binaries are usually stripped using `strip' when the user
1932 # run `make install-strip'.  However `strip' might not be the right
1933 # tool to use in cross-compilation environments, therefore Automake
1934 # will honor the `STRIP' environment variable to overrule this program.
1935 if test "$cross_compiling" != no; then
1936   if test -n "$ac_tool_prefix"; then
1937   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1938 set dummy ${ac_tool_prefix}strip; ac_word=$2
1939 echo "$as_me:$LINENO: checking for $ac_word" >&5
1940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1941 if test "${ac_cv_prog_STRIP+set}" = set; then
1942   echo $ECHO_N "(cached) $ECHO_C" >&6
1943 else
1944   if test -n "$STRIP"; then
1945   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1946 else
1947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1948 for as_dir in $PATH
1949 do
1950   IFS=$as_save_IFS
1951   test -z "$as_dir" && as_dir=.
1952   for ac_exec_ext in '' $ac_executable_extensions; do
1953   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1954     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1955     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1956     break 2
1957   fi
1958 done
1959 done
1960
1961 fi
1962 fi
1963 STRIP=$ac_cv_prog_STRIP
1964 if test -n "$STRIP"; then
1965   echo "$as_me:$LINENO: result: $STRIP" >&5
1966 echo "${ECHO_T}$STRIP" >&6
1967 else
1968   echo "$as_me:$LINENO: result: no" >&5
1969 echo "${ECHO_T}no" >&6
1970 fi
1971
1972 fi
1973 if test -z "$ac_cv_prog_STRIP"; then
1974   ac_ct_STRIP=$STRIP
1975   # Extract the first word of "strip", so it can be a program name with args.
1976 set dummy strip; ac_word=$2
1977 echo "$as_me:$LINENO: checking for $ac_word" >&5
1978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1979 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1980   echo $ECHO_N "(cached) $ECHO_C" >&6
1981 else
1982   if test -n "$ac_ct_STRIP"; then
1983   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1984 else
1985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1986 for as_dir in $PATH
1987 do
1988   IFS=$as_save_IFS
1989   test -z "$as_dir" && as_dir=.
1990   for ac_exec_ext in '' $ac_executable_extensions; do
1991   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1992     ac_cv_prog_ac_ct_STRIP="strip"
1993     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1994     break 2
1995   fi
1996 done
1997 done
1998
1999   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2000 fi
2001 fi
2002 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2003 if test -n "$ac_ct_STRIP"; then
2004   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2005 echo "${ECHO_T}$ac_ct_STRIP" >&6
2006 else
2007   echo "$as_me:$LINENO: result: no" >&5
2008 echo "${ECHO_T}no" >&6
2009 fi
2010
2011   STRIP=$ac_ct_STRIP
2012 else
2013   STRIP="$ac_cv_prog_STRIP"
2014 fi
2015
2016 fi
2017 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2018
2019 # We need awk for the "check" target.  The system "awk" is bad on
2020 # some platforms.
2021
2022
2023
2024
2025 # Check whether --enable-shared or --disable-shared was given.
2026 if test "${enable_shared+set}" = set; then
2027   enableval="$enable_shared"
2028   p=${PACKAGE-default}
2029     case $enableval in
2030     yes) enable_shared=yes ;;
2031     no) enable_shared=no ;;
2032     *)
2033       enable_shared=no
2034       # Look at the argument we got.  We use all the common list separators.
2035       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2036       for pkg in $enableval; do
2037         IFS="$lt_save_ifs"
2038         if test "X$pkg" = "X$p"; then
2039           enable_shared=yes
2040         fi
2041       done
2042       IFS="$lt_save_ifs"
2043       ;;
2044     esac
2045 else
2046   enable_shared=yes
2047 fi;
2048
2049 # Check whether --enable-static or --disable-static was given.
2050 if test "${enable_static+set}" = set; then
2051   enableval="$enable_static"
2052   p=${PACKAGE-default}
2053     case $enableval in
2054     yes) enable_static=yes ;;
2055     no) enable_static=no ;;
2056     *)
2057      enable_static=no
2058       # Look at the argument we got.  We use all the common list separators.
2059       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2060       for pkg in $enableval; do
2061         IFS="$lt_save_ifs"
2062         if test "X$pkg" = "X$p"; then
2063           enable_static=yes
2064         fi
2065       done
2066       IFS="$lt_save_ifs"
2067       ;;
2068     esac
2069 else
2070   enable_static=yes
2071 fi;
2072
2073 # Check whether --enable-fast-install or --disable-fast-install was given.
2074 if test "${enable_fast_install+set}" = set; then
2075   enableval="$enable_fast_install"
2076   p=${PACKAGE-default}
2077     case $enableval in
2078     yes) enable_fast_install=yes ;;
2079     no) enable_fast_install=no ;;
2080     *)
2081       enable_fast_install=no
2082       # Look at the argument we got.  We use all the common list separators.
2083       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2084       for pkg in $enableval; do
2085         IFS="$lt_save_ifs"
2086         if test "X$pkg" = "X$p"; then
2087           enable_fast_install=yes
2088         fi
2089       done
2090       IFS="$lt_save_ifs"
2091       ;;
2092     esac
2093 else
2094   enable_fast_install=yes
2095 fi;
2096
2097 DEPDIR="${am__leading_dot}deps"
2098
2099           ac_config_commands="$ac_config_commands depfiles"
2100
2101
2102 am_make=${MAKE-make}
2103 cat > confinc << 'END'
2104 am__doit:
2105         @echo done
2106 .PHONY: am__doit
2107 END
2108 # If we don't find an include directive, just comment out the code.
2109 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2110 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2111 am__include="#"
2112 am__quote=
2113 _am_result=none
2114 # First try GNU make style include.
2115 echo "include confinc" > confmf
2116 # We grep out `Entering directory' and `Leaving directory'
2117 # messages which can occur if `w' ends up in MAKEFLAGS.
2118 # In particular we don't look at `^make:' because GNU make might
2119 # be invoked under some other name (usually "gmake"), in which
2120 # case it prints its new name instead of `make'.
2121 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2122    am__include=include
2123    am__quote=
2124    _am_result=GNU
2125 fi
2126 # Now try BSD make style include.
2127 if test "$am__include" = "#"; then
2128    echo '.include "confinc"' > confmf
2129    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2130       am__include=.include
2131       am__quote="\""
2132       _am_result=BSD
2133    fi
2134 fi
2135
2136
2137 echo "$as_me:$LINENO: result: $_am_result" >&5
2138 echo "${ECHO_T}$_am_result" >&6
2139 rm -f confinc confmf
2140
2141 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2142 if test "${enable_dependency_tracking+set}" = set; then
2143   enableval="$enable_dependency_tracking"
2144
2145 fi;
2146 if test "x$enable_dependency_tracking" != xno; then
2147   am_depcomp="$ac_aux_dir/depcomp"
2148   AMDEPBACKSLASH='\'
2149 fi
2150
2151
2152 if test "x$enable_dependency_tracking" != xno; then
2153   AMDEP_TRUE=
2154   AMDEP_FALSE='#'
2155 else
2156   AMDEP_TRUE='#'
2157   AMDEP_FALSE=
2158 fi
2159
2160
2161
2162 ac_ext=c
2163 ac_cpp='$CPP $CPPFLAGS'
2164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2167 if test -n "$ac_tool_prefix"; then
2168   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2169 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2170 echo "$as_me:$LINENO: checking for $ac_word" >&5
2171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2172 if test "${ac_cv_prog_CC+set}" = set; then
2173   echo $ECHO_N "(cached) $ECHO_C" >&6
2174 else
2175   if test -n "$CC"; then
2176   ac_cv_prog_CC="$CC" # Let the user override the test.
2177 else
2178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2179 for as_dir in $PATH
2180 do
2181   IFS=$as_save_IFS
2182   test -z "$as_dir" && as_dir=.
2183   for ac_exec_ext in '' $ac_executable_extensions; do
2184   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2185     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2186     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2187     break 2
2188   fi
2189 done
2190 done
2191
2192 fi
2193 fi
2194 CC=$ac_cv_prog_CC
2195 if test -n "$CC"; then
2196   echo "$as_me:$LINENO: result: $CC" >&5
2197 echo "${ECHO_T}$CC" >&6
2198 else
2199   echo "$as_me:$LINENO: result: no" >&5
2200 echo "${ECHO_T}no" >&6
2201 fi
2202
2203 fi
2204 if test -z "$ac_cv_prog_CC"; then
2205   ac_ct_CC=$CC
2206   # Extract the first word of "gcc", so it can be a program name with args.
2207 set dummy gcc; ac_word=$2
2208 echo "$as_me:$LINENO: checking for $ac_word" >&5
2209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2210 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2211   echo $ECHO_N "(cached) $ECHO_C" >&6
2212 else
2213   if test -n "$ac_ct_CC"; then
2214   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2215 else
2216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2217 for as_dir in $PATH
2218 do
2219   IFS=$as_save_IFS
2220   test -z "$as_dir" && as_dir=.
2221   for ac_exec_ext in '' $ac_executable_extensions; do
2222   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2223     ac_cv_prog_ac_ct_CC="gcc"
2224     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2225     break 2
2226   fi
2227 done
2228 done
2229
2230 fi
2231 fi
2232 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2233 if test -n "$ac_ct_CC"; then
2234   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2235 echo "${ECHO_T}$ac_ct_CC" >&6
2236 else
2237   echo "$as_me:$LINENO: result: no" >&5
2238 echo "${ECHO_T}no" >&6
2239 fi
2240
2241   CC=$ac_ct_CC
2242 else
2243   CC="$ac_cv_prog_CC"
2244 fi
2245
2246 if test -z "$CC"; then
2247   if test -n "$ac_tool_prefix"; then
2248   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2249 set dummy ${ac_tool_prefix}cc; ac_word=$2
2250 echo "$as_me:$LINENO: checking for $ac_word" >&5
2251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2252 if test "${ac_cv_prog_CC+set}" = set; then
2253   echo $ECHO_N "(cached) $ECHO_C" >&6
2254 else
2255   if test -n "$CC"; then
2256   ac_cv_prog_CC="$CC" # Let the user override the test.
2257 else
2258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2259 for as_dir in $PATH
2260 do
2261   IFS=$as_save_IFS
2262   test -z "$as_dir" && as_dir=.
2263   for ac_exec_ext in '' $ac_executable_extensions; do
2264   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2265     ac_cv_prog_CC="${ac_tool_prefix}cc"
2266     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2267     break 2
2268   fi
2269 done
2270 done
2271
2272 fi
2273 fi
2274 CC=$ac_cv_prog_CC
2275 if test -n "$CC"; then
2276   echo "$as_me:$LINENO: result: $CC" >&5
2277 echo "${ECHO_T}$CC" >&6
2278 else
2279   echo "$as_me:$LINENO: result: no" >&5
2280 echo "${ECHO_T}no" >&6
2281 fi
2282
2283 fi
2284 if test -z "$ac_cv_prog_CC"; then
2285   ac_ct_CC=$CC
2286   # Extract the first word of "cc", so it can be a program name with args.
2287 set dummy cc; ac_word=$2
2288 echo "$as_me:$LINENO: checking for $ac_word" >&5
2289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2290 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2291   echo $ECHO_N "(cached) $ECHO_C" >&6
2292 else
2293   if test -n "$ac_ct_CC"; then
2294   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2295 else
2296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2297 for as_dir in $PATH
2298 do
2299   IFS=$as_save_IFS
2300   test -z "$as_dir" && as_dir=.
2301   for ac_exec_ext in '' $ac_executable_extensions; do
2302   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2303     ac_cv_prog_ac_ct_CC="cc"
2304     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2305     break 2
2306   fi
2307 done
2308 done
2309
2310 fi
2311 fi
2312 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2313 if test -n "$ac_ct_CC"; then
2314   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2315 echo "${ECHO_T}$ac_ct_CC" >&6
2316 else
2317   echo "$as_me:$LINENO: result: no" >&5
2318 echo "${ECHO_T}no" >&6
2319 fi
2320
2321   CC=$ac_ct_CC
2322 else
2323   CC="$ac_cv_prog_CC"
2324 fi
2325
2326 fi
2327 if test -z "$CC"; then
2328   # Extract the first word of "cc", so it can be a program name with args.
2329 set dummy cc; ac_word=$2
2330 echo "$as_me:$LINENO: checking for $ac_word" >&5
2331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2332 if test "${ac_cv_prog_CC+set}" = set; then
2333   echo $ECHO_N "(cached) $ECHO_C" >&6
2334 else
2335   if test -n "$CC"; then
2336   ac_cv_prog_CC="$CC" # Let the user override the test.
2337 else
2338   ac_prog_rejected=no
2339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2340 for as_dir in $PATH
2341 do
2342   IFS=$as_save_IFS
2343   test -z "$as_dir" && as_dir=.
2344   for ac_exec_ext in '' $ac_executable_extensions; do
2345   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2346     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2347        ac_prog_rejected=yes
2348        continue
2349      fi
2350     ac_cv_prog_CC="cc"
2351     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2352     break 2
2353   fi
2354 done
2355 done
2356
2357 if test $ac_prog_rejected = yes; then
2358   # We found a bogon in the path, so make sure we never use it.
2359   set dummy $ac_cv_prog_CC
2360   shift
2361   if test $# != 0; then
2362     # We chose a different compiler from the bogus one.
2363     # However, it has the same basename, so the bogon will be chosen
2364     # first if we set CC to just the basename; use the full file name.
2365     shift
2366     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2367   fi
2368 fi
2369 fi
2370 fi
2371 CC=$ac_cv_prog_CC
2372 if test -n "$CC"; then
2373   echo "$as_me:$LINENO: result: $CC" >&5
2374 echo "${ECHO_T}$CC" >&6
2375 else
2376   echo "$as_me:$LINENO: result: no" >&5
2377 echo "${ECHO_T}no" >&6
2378 fi
2379
2380 fi
2381 if test -z "$CC"; then
2382   if test -n "$ac_tool_prefix"; then
2383   for ac_prog in cl
2384   do
2385     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2386 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2387 echo "$as_me:$LINENO: checking for $ac_word" >&5
2388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2389 if test "${ac_cv_prog_CC+set}" = set; then
2390   echo $ECHO_N "(cached) $ECHO_C" >&6
2391 else
2392   if test -n "$CC"; then
2393   ac_cv_prog_CC="$CC" # Let the user override the test.
2394 else
2395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2396 for as_dir in $PATH
2397 do
2398   IFS=$as_save_IFS
2399   test -z "$as_dir" && as_dir=.
2400   for ac_exec_ext in '' $ac_executable_extensions; do
2401   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2402     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2403     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2404     break 2
2405   fi
2406 done
2407 done
2408
2409 fi
2410 fi
2411 CC=$ac_cv_prog_CC
2412 if test -n "$CC"; then
2413   echo "$as_me:$LINENO: result: $CC" >&5
2414 echo "${ECHO_T}$CC" >&6
2415 else
2416   echo "$as_me:$LINENO: result: no" >&5
2417 echo "${ECHO_T}no" >&6
2418 fi
2419
2420     test -n "$CC" && break
2421   done
2422 fi
2423 if test -z "$CC"; then
2424   ac_ct_CC=$CC
2425   for ac_prog in cl
2426 do
2427   # Extract the first word of "$ac_prog", so it can be a program name with args.
2428 set dummy $ac_prog; ac_word=$2
2429 echo "$as_me:$LINENO: checking for $ac_word" >&5
2430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2431 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2432   echo $ECHO_N "(cached) $ECHO_C" >&6
2433 else
2434   if test -n "$ac_ct_CC"; then
2435   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2436 else
2437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438 for as_dir in $PATH
2439 do
2440   IFS=$as_save_IFS
2441   test -z "$as_dir" && as_dir=.
2442   for ac_exec_ext in '' $ac_executable_extensions; do
2443   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2444     ac_cv_prog_ac_ct_CC="$ac_prog"
2445     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2446     break 2
2447   fi
2448 done
2449 done
2450
2451 fi
2452 fi
2453 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2454 if test -n "$ac_ct_CC"; then
2455   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2456 echo "${ECHO_T}$ac_ct_CC" >&6
2457 else
2458   echo "$as_me:$LINENO: result: no" >&5
2459 echo "${ECHO_T}no" >&6
2460 fi
2461
2462   test -n "$ac_ct_CC" && break
2463 done
2464
2465   CC=$ac_ct_CC
2466 fi
2467
2468 fi
2469
2470
2471 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2472 See \`config.log' for more details." >&5
2473 echo "$as_me: error: no acceptable C compiler found in \$PATH
2474 See \`config.log' for more details." >&2;}
2475    { (exit 1); exit 1; }; }
2476
2477 # Provide some information about the compiler.
2478 echo "$as_me:$LINENO:" \
2479      "checking for C compiler version" >&5
2480 ac_compiler=`set X $ac_compile; echo $2`
2481 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2482   (eval $ac_compiler --version </dev/null >&5) 2>&5
2483   ac_status=$?
2484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485   (exit $ac_status); }
2486 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2487   (eval $ac_compiler -v </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
2497 cat >conftest.$ac_ext <<_ACEOF
2498 /* confdefs.h.  */
2499 _ACEOF
2500 cat confdefs.h >>conftest.$ac_ext
2501 cat >>conftest.$ac_ext <<_ACEOF
2502 /* end confdefs.h.  */
2503
2504 int
2505 main ()
2506 {
2507
2508   ;
2509   return 0;
2510 }
2511 _ACEOF
2512 ac_clean_files_save=$ac_clean_files
2513 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2514 # Try to create an executable without -o first, disregard a.out.
2515 # It will help us diagnose broken compilers, and finding out an intuition
2516 # of exeext.
2517 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2518 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2519 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2520 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2521   (eval $ac_link_default) 2>&5
2522   ac_status=$?
2523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524   (exit $ac_status); }; then
2525   # Find the output, starting from the most likely.  This scheme is
2526 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2527 # resort.
2528
2529 # Be careful to initialize this variable, since it used to be cached.
2530 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2531 ac_cv_exeext=
2532 # b.out is created by i960 compilers.
2533 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2534 do
2535   test -f "$ac_file" || continue
2536   case $ac_file in
2537     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2538         ;;
2539     conftest.$ac_ext )
2540         # This is the source file.
2541         ;;
2542     [ab].out )
2543         # We found the default executable, but exeext='' is most
2544         # certainly right.
2545         break;;
2546     *.* )
2547         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2548         # FIXME: I believe we export ac_cv_exeext for Libtool,
2549         # but it would be cool to find out if it's true.  Does anybody
2550         # maintain Libtool? --akim.
2551         export ac_cv_exeext
2552         break;;
2553     * )
2554         break;;
2555   esac
2556 done
2557 else
2558   echo "$as_me: failed program was:" >&5
2559 sed 's/^/| /' conftest.$ac_ext >&5
2560
2561 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2562 See \`config.log' for more details." >&5
2563 echo "$as_me: error: C compiler cannot create executables
2564 See \`config.log' for more details." >&2;}
2565    { (exit 77); exit 77; }; }
2566 fi
2567
2568 ac_exeext=$ac_cv_exeext
2569 echo "$as_me:$LINENO: result: $ac_file" >&5
2570 echo "${ECHO_T}$ac_file" >&6
2571
2572 # Check the compiler produces executables we can run.  If not, either
2573 # the compiler is broken, or we cross compile.
2574 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2575 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2576 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2577 # If not cross compiling, check that we can run a simple program.
2578 if test "$cross_compiling" != yes; then
2579   if { ac_try='./$ac_file'
2580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581   (eval $ac_try) 2>&5
2582   ac_status=$?
2583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584   (exit $ac_status); }; }; then
2585     cross_compiling=no
2586   else
2587     if test "$cross_compiling" = maybe; then
2588         cross_compiling=yes
2589     else
2590         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2591 If you meant to cross compile, use \`--host'.
2592 See \`config.log' for more details." >&5
2593 echo "$as_me: error: cannot run C compiled programs.
2594 If you meant to cross compile, use \`--host'.
2595 See \`config.log' for more details." >&2;}
2596    { (exit 1); exit 1; }; }
2597     fi
2598   fi
2599 fi
2600 echo "$as_me:$LINENO: result: yes" >&5
2601 echo "${ECHO_T}yes" >&6
2602
2603 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2604 ac_clean_files=$ac_clean_files_save
2605 # Check the compiler produces executables we can run.  If not, either
2606 # the compiler is broken, or we cross compile.
2607 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2608 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2609 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2610 echo "${ECHO_T}$cross_compiling" >&6
2611
2612 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2613 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2615   (eval $ac_link) 2>&5
2616   ac_status=$?
2617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618   (exit $ac_status); }; then
2619   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2620 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2621 # work properly (i.e., refer to `conftest.exe'), while it won't with
2622 # `rm'.
2623 for ac_file in conftest.exe conftest conftest.*; do
2624   test -f "$ac_file" || continue
2625   case $ac_file in
2626     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2627     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2628           export ac_cv_exeext
2629           break;;
2630     * ) break;;
2631   esac
2632 done
2633 else
2634   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2635 See \`config.log' for more details." >&5
2636 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2637 See \`config.log' for more details." >&2;}
2638    { (exit 1); exit 1; }; }
2639 fi
2640
2641 rm -f conftest$ac_cv_exeext
2642 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2643 echo "${ECHO_T}$ac_cv_exeext" >&6
2644
2645 rm -f conftest.$ac_ext
2646 EXEEXT=$ac_cv_exeext
2647 ac_exeext=$EXEEXT
2648 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2649 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2650 if test "${ac_cv_objext+set}" = set; then
2651   echo $ECHO_N "(cached) $ECHO_C" >&6
2652 else
2653   cat >conftest.$ac_ext <<_ACEOF
2654 /* confdefs.h.  */
2655 _ACEOF
2656 cat confdefs.h >>conftest.$ac_ext
2657 cat >>conftest.$ac_ext <<_ACEOF
2658 /* end confdefs.h.  */
2659
2660 int
2661 main ()
2662 {
2663
2664   ;
2665   return 0;
2666 }
2667 _ACEOF
2668 rm -f conftest.o conftest.obj
2669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2670   (eval $ac_compile) 2>&5
2671   ac_status=$?
2672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673   (exit $ac_status); }; then
2674   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2675   case $ac_file in
2676     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2677     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2678        break;;
2679   esac
2680 done
2681 else
2682   echo "$as_me: failed program was:" >&5
2683 sed 's/^/| /' conftest.$ac_ext >&5
2684
2685 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2686 See \`config.log' for more details." >&5
2687 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2688 See \`config.log' for more details." >&2;}
2689    { (exit 1); exit 1; }; }
2690 fi
2691
2692 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2693 fi
2694 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2695 echo "${ECHO_T}$ac_cv_objext" >&6
2696 OBJEXT=$ac_cv_objext
2697 ac_objext=$OBJEXT
2698 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2699 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2700 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2701   echo $ECHO_N "(cached) $ECHO_C" >&6
2702 else
2703   cat >conftest.$ac_ext <<_ACEOF
2704 /* confdefs.h.  */
2705 _ACEOF
2706 cat confdefs.h >>conftest.$ac_ext
2707 cat >>conftest.$ac_ext <<_ACEOF
2708 /* end confdefs.h.  */
2709
2710 int
2711 main ()
2712 {
2713 #ifndef __GNUC__
2714        choke me
2715 #endif
2716
2717   ;
2718   return 0;
2719 }
2720 _ACEOF
2721 rm -f conftest.$ac_objext
2722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2723   (eval $ac_compile) 2>conftest.er1
2724   ac_status=$?
2725   grep -v '^ *+' conftest.er1 >conftest.err
2726   rm -f conftest.er1
2727   cat conftest.err >&5
2728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729   (exit $ac_status); } &&
2730          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2732   (eval $ac_try) 2>&5
2733   ac_status=$?
2734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735   (exit $ac_status); }; } &&
2736          { ac_try='test -s conftest.$ac_objext'
2737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738   (eval $ac_try) 2>&5
2739   ac_status=$?
2740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741   (exit $ac_status); }; }; then
2742   ac_compiler_gnu=yes
2743 else
2744   echo "$as_me: failed program was:" >&5
2745 sed 's/^/| /' conftest.$ac_ext >&5
2746
2747 ac_compiler_gnu=no
2748 fi
2749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2750 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2751
2752 fi
2753 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2754 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2755 GCC=`test $ac_compiler_gnu = yes && echo yes`
2756 ac_test_CFLAGS=${CFLAGS+set}
2757 ac_save_CFLAGS=$CFLAGS
2758 CFLAGS="-g"
2759 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2760 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2761 if test "${ac_cv_prog_cc_g+set}" = set; then
2762   echo $ECHO_N "(cached) $ECHO_C" >&6
2763 else
2764   cat >conftest.$ac_ext <<_ACEOF
2765 /* confdefs.h.  */
2766 _ACEOF
2767 cat confdefs.h >>conftest.$ac_ext
2768 cat >>conftest.$ac_ext <<_ACEOF
2769 /* end confdefs.h.  */
2770
2771 int
2772 main ()
2773 {
2774
2775   ;
2776   return 0;
2777 }
2778 _ACEOF
2779 rm -f conftest.$ac_objext
2780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2781   (eval $ac_compile) 2>conftest.er1
2782   ac_status=$?
2783   grep -v '^ *+' conftest.er1 >conftest.err
2784   rm -f conftest.er1
2785   cat conftest.err >&5
2786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787   (exit $ac_status); } &&
2788          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790   (eval $ac_try) 2>&5
2791   ac_status=$?
2792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793   (exit $ac_status); }; } &&
2794          { ac_try='test -s conftest.$ac_objext'
2795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796   (eval $ac_try) 2>&5
2797   ac_status=$?
2798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799   (exit $ac_status); }; }; then
2800   ac_cv_prog_cc_g=yes
2801 else
2802   echo "$as_me: failed program was:" >&5
2803 sed 's/^/| /' conftest.$ac_ext >&5
2804
2805 ac_cv_prog_cc_g=no
2806 fi
2807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2808 fi
2809 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2810 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2811 if test "$ac_test_CFLAGS" = set; then
2812   CFLAGS=$ac_save_CFLAGS
2813 elif test $ac_cv_prog_cc_g = yes; then
2814   if test "$GCC" = yes; then
2815     CFLAGS="-g -O2"
2816   else
2817     CFLAGS="-g"
2818   fi
2819 else
2820   if test "$GCC" = yes; then
2821     CFLAGS="-O2"
2822   else
2823     CFLAGS=
2824   fi
2825 fi
2826 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2827 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2828 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2829   echo $ECHO_N "(cached) $ECHO_C" >&6
2830 else
2831   ac_cv_prog_cc_stdc=no
2832 ac_save_CC=$CC
2833 cat >conftest.$ac_ext <<_ACEOF
2834 /* confdefs.h.  */
2835 _ACEOF
2836 cat confdefs.h >>conftest.$ac_ext
2837 cat >>conftest.$ac_ext <<_ACEOF
2838 /* end confdefs.h.  */
2839 #include <stdarg.h>
2840 #include <stdio.h>
2841 #include <sys/types.h>
2842 #include <sys/stat.h>
2843 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2844 struct buf { int x; };
2845 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2846 static char *e (p, i)
2847      char **p;
2848      int i;
2849 {
2850   return p[i];
2851 }
2852 static char *f (char * (*g) (char **, int), char **p, ...)
2853 {
2854   char *s;
2855   va_list v;
2856   va_start (v,p);
2857   s = g (p, va_arg (v,int));
2858   va_end (v);
2859   return s;
2860 }
2861
2862 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2863    function prototypes and stuff, but not '\xHH' hex character constants.
2864    These don't provoke an error unfortunately, instead are silently treated
2865    as 'x'.  The following induces an error, until -std1 is added to get
2866    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2867    array size at least.  It's necessary to write '\x00'==0 to get something
2868    that's true only with -std1.  */
2869 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2870
2871 int test (int i, double x);
2872 struct s1 {int (*f) (int a);};
2873 struct s2 {int (*f) (double a);};
2874 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2875 int argc;
2876 char **argv;
2877 int
2878 main ()
2879 {
2880 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2881   ;
2882   return 0;
2883 }
2884 _ACEOF
2885 # Don't try gcc -ansi; that turns off useful extensions and
2886 # breaks some systems' header files.
2887 # AIX                   -qlanglvl=ansi
2888 # Ultrix and OSF/1      -std1
2889 # HP-UX 10.20 and later -Ae
2890 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2891 # SVR4                  -Xc -D__EXTENSIONS__
2892 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2893 do
2894   CC="$ac_save_CC $ac_arg"
2895   rm -f conftest.$ac_objext
2896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2897   (eval $ac_compile) 2>conftest.er1
2898   ac_status=$?
2899   grep -v '^ *+' conftest.er1 >conftest.err
2900   rm -f conftest.er1
2901   cat conftest.err >&5
2902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903   (exit $ac_status); } &&
2904          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2906   (eval $ac_try) 2>&5
2907   ac_status=$?
2908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909   (exit $ac_status); }; } &&
2910          { ac_try='test -s conftest.$ac_objext'
2911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2912   (eval $ac_try) 2>&5
2913   ac_status=$?
2914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915   (exit $ac_status); }; }; then
2916   ac_cv_prog_cc_stdc=$ac_arg
2917 break
2918 else
2919   echo "$as_me: failed program was:" >&5
2920 sed 's/^/| /' conftest.$ac_ext >&5
2921
2922 fi
2923 rm -f conftest.err conftest.$ac_objext
2924 done
2925 rm -f conftest.$ac_ext conftest.$ac_objext
2926 CC=$ac_save_CC
2927
2928 fi
2929
2930 case "x$ac_cv_prog_cc_stdc" in
2931   x|xno)
2932     echo "$as_me:$LINENO: result: none needed" >&5
2933 echo "${ECHO_T}none needed" >&6 ;;
2934   *)
2935     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2936 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2937     CC="$CC $ac_cv_prog_cc_stdc" ;;
2938 esac
2939
2940 # Some people use a C++ compiler to compile C.  Since we use `exit',
2941 # in C++ we need to declare it.  In case someone uses the same compiler
2942 # for both compiling C and C++ we need to have the C++ compiler decide
2943 # the declaration of exit, since it's the most demanding environment.
2944 cat >conftest.$ac_ext <<_ACEOF
2945 #ifndef __cplusplus
2946   choke me
2947 #endif
2948 _ACEOF
2949 rm -f conftest.$ac_objext
2950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2951   (eval $ac_compile) 2>conftest.er1
2952   ac_status=$?
2953   grep -v '^ *+' conftest.er1 >conftest.err
2954   rm -f conftest.er1
2955   cat conftest.err >&5
2956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957   (exit $ac_status); } &&
2958          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2960   (eval $ac_try) 2>&5
2961   ac_status=$?
2962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963   (exit $ac_status); }; } &&
2964          { ac_try='test -s conftest.$ac_objext'
2965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2966   (eval $ac_try) 2>&5
2967   ac_status=$?
2968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969   (exit $ac_status); }; }; then
2970   for ac_declaration in \
2971    '' \
2972    'extern "C" void std::exit (int) throw (); using std::exit;' \
2973    'extern "C" void std::exit (int); using std::exit;' \
2974    'extern "C" void exit (int) throw ();' \
2975    'extern "C" void exit (int);' \
2976    'void exit (int);'
2977 do
2978   cat >conftest.$ac_ext <<_ACEOF
2979 /* confdefs.h.  */
2980 _ACEOF
2981 cat confdefs.h >>conftest.$ac_ext
2982 cat >>conftest.$ac_ext <<_ACEOF
2983 /* end confdefs.h.  */
2984 $ac_declaration
2985 #include <stdlib.h>
2986 int
2987 main ()
2988 {
2989 exit (42);
2990   ;
2991   return 0;
2992 }
2993 _ACEOF
2994 rm -f conftest.$ac_objext
2995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2996   (eval $ac_compile) 2>conftest.er1
2997   ac_status=$?
2998   grep -v '^ *+' conftest.er1 >conftest.err
2999   rm -f conftest.er1
3000   cat conftest.err >&5
3001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002   (exit $ac_status); } &&
3003          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3005   (eval $ac_try) 2>&5
3006   ac_status=$?
3007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008   (exit $ac_status); }; } &&
3009          { ac_try='test -s conftest.$ac_objext'
3010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3011   (eval $ac_try) 2>&5
3012   ac_status=$?
3013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014   (exit $ac_status); }; }; then
3015   :
3016 else
3017   echo "$as_me: failed program was:" >&5
3018 sed 's/^/| /' conftest.$ac_ext >&5
3019
3020 continue
3021 fi
3022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3023   cat >conftest.$ac_ext <<_ACEOF
3024 /* confdefs.h.  */
3025 _ACEOF
3026 cat confdefs.h >>conftest.$ac_ext
3027 cat >>conftest.$ac_ext <<_ACEOF
3028 /* end confdefs.h.  */
3029 $ac_declaration
3030 int
3031 main ()
3032 {
3033 exit (42);
3034   ;
3035   return 0;
3036 }
3037 _ACEOF
3038 rm -f conftest.$ac_objext
3039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3040   (eval $ac_compile) 2>conftest.er1
3041   ac_status=$?
3042   grep -v '^ *+' conftest.er1 >conftest.err
3043   rm -f conftest.er1
3044   cat conftest.err >&5
3045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046   (exit $ac_status); } &&
3047          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3049   (eval $ac_try) 2>&5
3050   ac_status=$?
3051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052   (exit $ac_status); }; } &&
3053          { ac_try='test -s conftest.$ac_objext'
3054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3055   (eval $ac_try) 2>&5
3056   ac_status=$?
3057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058   (exit $ac_status); }; }; then
3059   break
3060 else
3061   echo "$as_me: failed program was:" >&5
3062 sed 's/^/| /' conftest.$ac_ext >&5
3063
3064 fi
3065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3066 done
3067 rm -f conftest*
3068 if test -n "$ac_declaration"; then
3069   echo '#ifdef __cplusplus' >>confdefs.h
3070   echo $ac_declaration      >>confdefs.h
3071   echo '#endif'             >>confdefs.h
3072 fi
3073
3074 else
3075   echo "$as_me: failed program was:" >&5
3076 sed 's/^/| /' conftest.$ac_ext >&5
3077
3078 fi
3079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3080 ac_ext=c
3081 ac_cpp='$CPP $CPPFLAGS'
3082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3085
3086 depcc="$CC"   am_compiler_list=
3087
3088 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3089 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3090 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3091   echo $ECHO_N "(cached) $ECHO_C" >&6
3092 else
3093   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3094   # We make a subdir and do the tests there.  Otherwise we can end up
3095   # making bogus files that we don't know about and never remove.  For
3096   # instance it was reported that on HP-UX the gcc test will end up
3097   # making a dummy file named `D' -- because `-MD' means `put the output
3098   # in D'.
3099   mkdir conftest.dir
3100   # Copy depcomp to subdir because otherwise we won't find it if we're
3101   # using a relative directory.
3102   cp "$am_depcomp" conftest.dir
3103   cd conftest.dir
3104   # We will build objects and dependencies in a subdirectory because
3105   # it helps to detect inapplicable dependency modes.  For instance
3106   # both Tru64's cc and ICC support -MD to output dependencies as a
3107   # side effect of compilation, but ICC will put the dependencies in
3108   # the current directory while Tru64 will put them in the object
3109   # directory.
3110   mkdir sub
3111
3112   am_cv_CC_dependencies_compiler_type=none
3113   if test "$am_compiler_list" = ""; then
3114      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3115   fi
3116   for depmode in $am_compiler_list; do
3117     # Setup a source with many dependencies, because some compilers
3118     # like to wrap large dependency lists on column 80 (with \), and
3119     # we should not choose a depcomp mode which is confused by this.
3120     #
3121     # We need to recreate these files for each test, as the compiler may
3122     # overwrite some of them when testing with obscure command lines.
3123     # This happens at least with the AIX C compiler.
3124     : > sub/conftest.c
3125     for i in 1 2 3 4 5 6; do
3126       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3127       : > sub/conftst$i.h
3128     done
3129     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3130
3131     case $depmode in
3132     nosideeffect)
3133       # after this tag, mechanisms are not by side-effect, so they'll
3134       # only be used when explicitly requested
3135       if test "x$enable_dependency_tracking" = xyes; then
3136         continue
3137       else
3138         break
3139       fi
3140       ;;
3141     none) break ;;
3142     esac
3143     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3144     # mode.  It turns out that the SunPro C++ compiler does not properly
3145     # handle `-M -o', and we need to detect this.
3146     if depmode=$depmode \
3147        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3148        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3149        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3150          >/dev/null 2>conftest.err &&
3151        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3152        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3153        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3154       # icc doesn't choke on unknown options, it will just issue warnings
3155       # (even with -Werror).  So we grep stderr for any message
3156       # that says an option was ignored.
3157       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3158         am_cv_CC_dependencies_compiler_type=$depmode
3159         break
3160       fi
3161     fi
3162   done
3163
3164   cd ..
3165   rm -rf conftest.dir
3166 else
3167   am_cv_CC_dependencies_compiler_type=none
3168 fi
3169
3170 fi
3171 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3172 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3173 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3174
3175
3176
3177 if
3178   test "x$enable_dependency_tracking" != xno \
3179   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3180   am__fastdepCC_TRUE=
3181   am__fastdepCC_FALSE='#'
3182 else
3183   am__fastdepCC_TRUE='#'
3184   am__fastdepCC_FALSE=
3185 fi
3186
3187
3188 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3189 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3190 if test "${lt_cv_path_SED+set}" = set; then
3191   echo $ECHO_N "(cached) $ECHO_C" >&6
3192 else
3193   # Loop through the user's path and test for sed and gsed.
3194 # Then use that list of sed's as ones to test for truncation.
3195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3196 for as_dir in $PATH
3197 do
3198   IFS=$as_save_IFS
3199   test -z "$as_dir" && as_dir=.
3200   for lt_ac_prog in sed gsed; do
3201     for ac_exec_ext in '' $ac_executable_extensions; do
3202       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3203         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3204       fi
3205     done
3206   done
3207 done
3208 lt_ac_max=0
3209 lt_ac_count=0
3210 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3211 # along with /bin/sed that truncates output.
3212 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3213   test ! -f $lt_ac_sed && break
3214   cat /dev/null > conftest.in
3215   lt_ac_count=0
3216   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3217   # Check for GNU sed and select it if it is found.
3218   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3219     lt_cv_path_SED=$lt_ac_sed
3220     break
3221   fi
3222   while true; do
3223     cat conftest.in conftest.in >conftest.tmp
3224     mv conftest.tmp conftest.in
3225     cp conftest.in conftest.nl
3226     echo >>conftest.nl
3227     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3228     cmp -s conftest.out conftest.nl || break
3229     # 10000 chars as input seems more than enough
3230     test $lt_ac_count -gt 10 && break
3231     lt_ac_count=`expr $lt_ac_count + 1`
3232     if test $lt_ac_count -gt $lt_ac_max; then
3233       lt_ac_max=$lt_ac_count
3234       lt_cv_path_SED=$lt_ac_sed
3235     fi
3236   done
3237 done
3238 SED=$lt_cv_path_SED
3239
3240 fi
3241
3242 echo "$as_me:$LINENO: result: $SED" >&5
3243 echo "${ECHO_T}$SED" >&6
3244
3245 echo "$as_me:$LINENO: checking for egrep" >&5
3246 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3247 if test "${ac_cv_prog_egrep+set}" = set; then
3248   echo $ECHO_N "(cached) $ECHO_C" >&6
3249 else
3250   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3251     then ac_cv_prog_egrep='grep -E'
3252     else ac_cv_prog_egrep='egrep'
3253     fi
3254 fi
3255 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3256 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3257  EGREP=$ac_cv_prog_egrep
3258
3259
3260
3261 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3262 if test "${with_gnu_ld+set}" = set; then
3263   withval="$with_gnu_ld"
3264   test "$withval" = no || with_gnu_ld=yes
3265 else
3266   with_gnu_ld=no
3267 fi;
3268 ac_prog=ld
3269 if test "$GCC" = yes; then
3270   # Check if gcc -print-prog-name=ld gives a path.
3271   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3272 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3273   case $host in
3274   *-*-mingw*)
3275     # gcc leaves a trailing carriage return which upsets mingw
3276     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3277   *)
3278     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3279   esac
3280   case $ac_prog in
3281     # Accept absolute paths.
3282     [\\/]* | ?:[\\/]*)
3283       re_direlt='/[^/][^/]*/\.\./'
3284       # Canonicalize the pathname of ld
3285       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3286       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3287         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3288       done
3289       test -z "$LD" && LD="$ac_prog"
3290       ;;
3291   "")
3292     # If it fails, then pretend we aren't using GCC.
3293     ac_prog=ld
3294     ;;
3295   *)
3296     # If it is relative, then search for the first ld in PATH.
3297     with_gnu_ld=unknown
3298     ;;
3299   esac
3300 elif test "$with_gnu_ld" = yes; then
3301   echo "$as_me:$LINENO: checking for GNU ld" >&5
3302 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3303 else
3304   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3305 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3306 fi
3307 if test "${lt_cv_path_LD+set}" = set; then
3308   echo $ECHO_N "(cached) $ECHO_C" >&6
3309 else
3310   if test -z "$LD"; then
3311   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3312   for ac_dir in $PATH; do
3313     IFS="$lt_save_ifs"
3314     test -z "$ac_dir" && ac_dir=.
3315     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3316       lt_cv_path_LD="$ac_dir/$ac_prog"
3317       # Check to see if the program is GNU ld.  I'd rather use --version,
3318       # but apparently some GNU ld's only accept -v.
3319       # Break only if it was the GNU/non-GNU ld that we prefer.
3320       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3321       *GNU* | *'with BFD'*)
3322         test "$with_gnu_ld" != no && break
3323         ;;
3324       *)
3325         test "$with_gnu_ld" != yes && break
3326         ;;
3327       esac
3328     fi
3329   done
3330   IFS="$lt_save_ifs"
3331 else
3332   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3333 fi
3334 fi
3335
3336 LD="$lt_cv_path_LD"
3337 if test -n "$LD"; then
3338   echo "$as_me:$LINENO: result: $LD" >&5
3339 echo "${ECHO_T}$LD" >&6
3340 else
3341   echo "$as_me:$LINENO: result: no" >&5
3342 echo "${ECHO_T}no" >&6
3343 fi
3344 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3345 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3346    { (exit 1); exit 1; }; }
3347 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3348 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3349 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3350   echo $ECHO_N "(cached) $ECHO_C" >&6
3351 else
3352   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3353 case `$LD -v 2>&1 </dev/null` in
3354 *GNU* | *'with BFD'*)
3355   lt_cv_prog_gnu_ld=yes
3356   ;;
3357 *)
3358   lt_cv_prog_gnu_ld=no
3359   ;;
3360 esac
3361 fi
3362 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3363 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3364 with_gnu_ld=$lt_cv_prog_gnu_ld
3365
3366
3367 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3368 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3369 if test "${lt_cv_ld_reload_flag+set}" = set; then
3370   echo $ECHO_N "(cached) $ECHO_C" >&6
3371 else
3372   lt_cv_ld_reload_flag='-r'
3373 fi
3374 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3375 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3376 reload_flag=$lt_cv_ld_reload_flag
3377 case $reload_flag in
3378 "" | " "*) ;;
3379 *) reload_flag=" $reload_flag" ;;
3380 esac
3381 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3382
3383 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3384 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3385 if test "${lt_cv_path_NM+set}" = set; then
3386   echo $ECHO_N "(cached) $ECHO_C" >&6
3387 else
3388   if test -n "$NM"; then
3389   # Let the user override the test.
3390   lt_cv_path_NM="$NM"
3391 else
3392   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3393   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3394     IFS="$lt_save_ifs"
3395     test -z "$ac_dir" && ac_dir=.
3396     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3397     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3398       # Check to see if the nm accepts a BSD-compat flag.
3399       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3400       #   nm: unknown option "B" ignored
3401       # Tru64's nm complains that /dev/null is an invalid object file
3402       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3403       */dev/null* | *'Invalid file or object type'*)
3404         lt_cv_path_NM="$tmp_nm -B"
3405         break
3406         ;;
3407       *)
3408         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3409         */dev/null*)
3410           lt_cv_path_NM="$tmp_nm -p"
3411           break
3412           ;;
3413         *)
3414           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3415           continue # so that we can try to find one that supports BSD flags
3416           ;;
3417         esac
3418       esac
3419     fi
3420   done
3421   IFS="$lt_save_ifs"
3422   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3423 fi
3424 fi
3425 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3426 echo "${ECHO_T}$lt_cv_path_NM" >&6
3427 NM="$lt_cv_path_NM"
3428
3429 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3430 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3431 LN_S=$as_ln_s
3432 if test "$LN_S" = "ln -s"; then
3433   echo "$as_me:$LINENO: result: yes" >&5
3434 echo "${ECHO_T}yes" >&6
3435 else
3436   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3437 echo "${ECHO_T}no, using $LN_S" >&6
3438 fi
3439
3440 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3441 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3442 if test "${lt_cv_deplibs_check_method+set}" = set; then
3443   echo $ECHO_N "(cached) $ECHO_C" >&6
3444 else
3445   lt_cv_file_magic_cmd='$MAGIC_CMD'
3446 lt_cv_file_magic_test_file=
3447 lt_cv_deplibs_check_method='unknown'
3448 # Need to set the preceding variable on all platforms that support
3449 # interlibrary dependencies.
3450 # 'none' -- dependencies not supported.
3451 # `unknown' -- same as none, but documents that we really don't know.
3452 # 'pass_all' -- all dependencies passed with no checks.
3453 # 'test_compile' -- check by making test program.
3454 # 'file_magic [[regex]]' -- check by looking for files in library path
3455 # which responds to the $file_magic_cmd with a given extended regex.
3456 # If you have `file' or equivalent on your system and you're not sure
3457 # whether `pass_all' will *always* work, you probably want this one.
3458
3459 case $host_os in
3460 aix4* | aix5*)
3461   lt_cv_deplibs_check_method=pass_all
3462   ;;
3463
3464 beos*)
3465   lt_cv_deplibs_check_method=pass_all
3466   ;;
3467
3468 bsdi4*)
3469   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3470   lt_cv_file_magic_cmd='/usr/bin/file -L'
3471   lt_cv_file_magic_test_file=/shlib/libc.so
3472   ;;
3473
3474 cygwin*)
3475   # func_win32_libid is a shell function defined in ltmain.sh
3476   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3477   lt_cv_file_magic_cmd='func_win32_libid'
3478   ;;
3479
3480 mingw* | pw32*)
3481   # Base MSYS/MinGW do not provide the 'file' command needed by
3482   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3483   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3484   lt_cv_file_magic_cmd='$OBJDUMP -f'
3485   ;;
3486
3487 darwin* | rhapsody*)
3488   lt_cv_deplibs_check_method=pass_all
3489   ;;
3490
3491 freebsd* | kfreebsd*-gnu)
3492   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3493     case $host_cpu in
3494     i*86 )
3495       # Not sure whether the presence of OpenBSD here was a mistake.
3496       # Let's accept both of them until this is cleared up.
3497       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3498       lt_cv_file_magic_cmd=/usr/bin/file
3499       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3500       ;;
3501     esac
3502   else
3503     lt_cv_deplibs_check_method=pass_all
3504   fi
3505   ;;
3506
3507 gnu*)
3508   lt_cv_deplibs_check_method=pass_all
3509   ;;
3510
3511 hpux10.20* | hpux11*)
3512   lt_cv_file_magic_cmd=/usr/bin/file
3513   case "$host_cpu" in
3514   ia64*)
3515     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3516     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3517     ;;
3518   hppa*64*)
3519     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]'
3520     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3521     ;;
3522   *)
3523     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3524     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3525     ;;
3526   esac
3527   ;;
3528
3529 irix5* | irix6* | nonstopux*)
3530   case $LD in
3531   *-32|*"-32 ") libmagic=32-bit;;
3532   *-n32|*"-n32 ") libmagic=N32;;
3533   *-64|*"-64 ") libmagic=64-bit;;
3534   *) libmagic=never-match;;
3535   esac
3536   lt_cv_deplibs_check_method=pass_all
3537   ;;
3538
3539 # This must be Linux ELF.
3540 linux*)
3541   lt_cv_deplibs_check_method=pass_all
3542   ;;
3543
3544 netbsd* | knetbsd*-gnu)
3545   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3546     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3547   else
3548     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3549   fi
3550   ;;
3551
3552 newos6*)
3553   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3554   lt_cv_file_magic_cmd=/usr/bin/file
3555   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3556   ;;
3557
3558 nto-qnx*)
3559   lt_cv_deplibs_check_method=unknown
3560   ;;
3561
3562 openbsd*)
3563   lt_cv_file_magic_cmd=/usr/bin/file
3564   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3565   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3566     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3567   else
3568     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3569   fi
3570   ;;
3571
3572 osf3* | osf4* | osf5*)
3573   lt_cv_deplibs_check_method=pass_all
3574   ;;
3575
3576 sco3.2v5*)
3577   lt_cv_deplibs_check_method=pass_all
3578   ;;
3579
3580 solaris*)
3581   lt_cv_deplibs_check_method=pass_all
3582   ;;
3583
3584 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3585   case $host_vendor in
3586   motorola)
3587     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]'
3588     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3589     ;;
3590   ncr)
3591     lt_cv_deplibs_check_method=pass_all
3592     ;;
3593   sequent)
3594     lt_cv_file_magic_cmd='/bin/file'
3595     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3596     ;;
3597   sni)
3598     lt_cv_file_magic_cmd='/bin/file'
3599     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3600     lt_cv_file_magic_test_file=/lib/libc.so
3601     ;;
3602   siemens)
3603     lt_cv_deplibs_check_method=pass_all
3604     ;;
3605   esac
3606   ;;
3607
3608 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3609   lt_cv_deplibs_check_method=pass_all
3610   ;;
3611 esac
3612
3613 fi
3614 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3615 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3616 file_magic_cmd=$lt_cv_file_magic_cmd
3617 deplibs_check_method=$lt_cv_deplibs_check_method
3618 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3619
3620
3621
3622
3623 # If no C compiler was specified, use CC.
3624 LTCC=${LTCC-"$CC"}
3625
3626 # Allow CC to be a program name with arguments.
3627 compiler=$CC
3628
3629
3630 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3631 if test "${enable_libtool_lock+set}" = set; then
3632   enableval="$enable_libtool_lock"
3633
3634 fi;
3635 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3636
3637 # Some flags need to be propagated to the compiler or linker for good
3638 # libtool support.
3639 case $host in
3640 ia64-*-hpux*)
3641   # Find out which ABI we are using.
3642   echo 'int i;' > conftest.$ac_ext
3643   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3644   (eval $ac_compile) 2>&5
3645   ac_status=$?
3646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647   (exit $ac_status); }; then
3648     case `/usr/bin/file conftest.$ac_objext` in
3649     *ELF-32*)
3650       HPUX_IA64_MODE="32"
3651       ;;
3652     *ELF-64*)
3653       HPUX_IA64_MODE="64"
3654       ;;
3655     esac
3656   fi
3657   rm -rf conftest*
3658   ;;
3659 *-*-irix6*)
3660   # Find out which ABI we are using.
3661   echo '#line 3661 "configure"' > conftest.$ac_ext
3662   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3663   (eval $ac_compile) 2>&5
3664   ac_status=$?
3665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666   (exit $ac_status); }; then
3667    if test "$lt_cv_prog_gnu_ld" = yes; then
3668     case `/usr/bin/file conftest.$ac_objext` in
3669     *32-bit*)
3670       LD="${LD-ld} -melf32bsmip"
3671       ;;
3672     *N32*)
3673       LD="${LD-ld} -melf32bmipn32"
3674       ;;
3675     *64-bit*)
3676       LD="${LD-ld} -melf64bmip"
3677       ;;
3678     esac
3679    else
3680     case `/usr/bin/file conftest.$ac_objext` in
3681     *32-bit*)
3682       LD="${LD-ld} -32"
3683       ;;
3684     *N32*)
3685       LD="${LD-ld} -n32"
3686       ;;
3687     *64-bit*)
3688       LD="${LD-ld} -64"
3689       ;;
3690     esac
3691    fi
3692   fi
3693   rm -rf conftest*
3694   ;;
3695
3696 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3697   # Find out which ABI we are using.
3698   echo 'int i;' > conftest.$ac_ext
3699   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3700   (eval $ac_compile) 2>&5
3701   ac_status=$?
3702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703   (exit $ac_status); }; then
3704     case "`/usr/bin/file conftest.o`" in
3705     *32-bit*)
3706       case $host in
3707         x86_64-*linux*)
3708           LD="${LD-ld} -m elf_i386"
3709           ;;
3710         ppc64-*linux*|powerpc64-*linux*)
3711           LD="${LD-ld} -m elf32ppclinux"
3712           ;;
3713         s390x-*linux*)
3714           LD="${LD-ld} -m elf_s390"
3715           ;;
3716         sparc64-*linux*)
3717           LD="${LD-ld} -m elf32_sparc"
3718           ;;
3719       esac
3720       ;;
3721     *64-bit*)
3722       case $host in
3723         x86_64-*linux*)
3724           LD="${LD-ld} -m elf_x86_64"
3725           ;;
3726         ppc*-*linux*|powerpc*-*linux*)
3727           LD="${LD-ld} -m elf64ppc"
3728           ;;
3729         s390*-*linux*)
3730           LD="${LD-ld} -m elf64_s390"
3731           ;;
3732         sparc*-*linux*)
3733           LD="${LD-ld} -m elf64_sparc"
3734           ;;
3735       esac
3736       ;;
3737     esac
3738   fi
3739   rm -rf conftest*
3740   ;;
3741
3742 *-*-sco3.2v5*)
3743   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3744   SAVE_CFLAGS="$CFLAGS"
3745   CFLAGS="$CFLAGS -belf"
3746   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3747 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3748 if test "${lt_cv_cc_needs_belf+set}" = set; then
3749   echo $ECHO_N "(cached) $ECHO_C" >&6
3750 else
3751   ac_ext=c
3752 ac_cpp='$CPP $CPPFLAGS'
3753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3756
3757      cat >conftest.$ac_ext <<_ACEOF
3758 /* confdefs.h.  */
3759 _ACEOF
3760 cat confdefs.h >>conftest.$ac_ext
3761 cat >>conftest.$ac_ext <<_ACEOF
3762 /* end confdefs.h.  */
3763
3764 int
3765 main ()
3766 {
3767
3768   ;
3769   return 0;
3770 }
3771 _ACEOF
3772 rm -f conftest.$ac_objext conftest$ac_exeext
3773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3774   (eval $ac_link) 2>conftest.er1
3775   ac_status=$?
3776   grep -v '^ *+' conftest.er1 >conftest.err
3777   rm -f conftest.er1
3778   cat conftest.err >&5
3779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780   (exit $ac_status); } &&
3781          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3783   (eval $ac_try) 2>&5
3784   ac_status=$?
3785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786   (exit $ac_status); }; } &&
3787          { ac_try='test -s conftest$ac_exeext'
3788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3789   (eval $ac_try) 2>&5
3790   ac_status=$?
3791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792   (exit $ac_status); }; }; then
3793   lt_cv_cc_needs_belf=yes
3794 else
3795   echo "$as_me: failed program was:" >&5
3796 sed 's/^/| /' conftest.$ac_ext >&5
3797
3798 lt_cv_cc_needs_belf=no
3799 fi
3800 rm -f conftest.err conftest.$ac_objext \
3801       conftest$ac_exeext conftest.$ac_ext
3802      ac_ext=c
3803 ac_cpp='$CPP $CPPFLAGS'
3804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3807
3808 fi
3809 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3810 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3811   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3812     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3813     CFLAGS="$SAVE_CFLAGS"
3814   fi
3815   ;;
3816
3817 esac
3818
3819 need_locks="$enable_libtool_lock"
3820
3821
3822 ac_ext=c
3823 ac_cpp='$CPP $CPPFLAGS'
3824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3827 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3828 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3829 # On Suns, sometimes $CPP names a directory.
3830 if test -n "$CPP" && test -d "$CPP"; then
3831   CPP=
3832 fi
3833 if test -z "$CPP"; then
3834   if test "${ac_cv_prog_CPP+set}" = set; then
3835   echo $ECHO_N "(cached) $ECHO_C" >&6
3836 else
3837       # Double quotes because CPP needs to be expanded
3838     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3839     do
3840       ac_preproc_ok=false
3841 for ac_c_preproc_warn_flag in '' yes
3842 do
3843   # Use a header file that comes with gcc, so configuring glibc
3844   # with a fresh cross-compiler works.
3845   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3846   # <limits.h> exists even on freestanding compilers.
3847   # On the NeXT, cc -E runs the code through the compiler's parser,
3848   # not just through cpp. "Syntax error" is here to catch this case.
3849   cat >conftest.$ac_ext <<_ACEOF
3850 /* confdefs.h.  */
3851 _ACEOF
3852 cat confdefs.h >>conftest.$ac_ext
3853 cat >>conftest.$ac_ext <<_ACEOF
3854 /* end confdefs.h.  */
3855 #ifdef __STDC__
3856 # include <limits.h>
3857 #else
3858 # include <assert.h>
3859 #endif
3860                      Syntax error
3861 _ACEOF
3862 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3863   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3864   ac_status=$?
3865   grep -v '^ *+' conftest.er1 >conftest.err
3866   rm -f conftest.er1
3867   cat conftest.err >&5
3868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869   (exit $ac_status); } >/dev/null; then
3870   if test -s conftest.err; then
3871     ac_cpp_err=$ac_c_preproc_warn_flag
3872     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3873   else
3874     ac_cpp_err=
3875   fi
3876 else
3877   ac_cpp_err=yes
3878 fi
3879 if test -z "$ac_cpp_err"; then
3880   :
3881 else
3882   echo "$as_me: failed program was:" >&5
3883 sed 's/^/| /' conftest.$ac_ext >&5
3884
3885   # Broken: fails on valid input.
3886 continue
3887 fi
3888 rm -f conftest.err conftest.$ac_ext
3889
3890   # OK, works on sane cases.  Now check whether non-existent headers
3891   # can be detected and how.
3892   cat >conftest.$ac_ext <<_ACEOF
3893 /* confdefs.h.  */
3894 _ACEOF
3895 cat confdefs.h >>conftest.$ac_ext
3896 cat >>conftest.$ac_ext <<_ACEOF
3897 /* end confdefs.h.  */
3898 #include <ac_nonexistent.h>
3899 _ACEOF
3900 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3901   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3902   ac_status=$?
3903   grep -v '^ *+' conftest.er1 >conftest.err
3904   rm -f conftest.er1
3905   cat conftest.err >&5
3906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907   (exit $ac_status); } >/dev/null; then
3908   if test -s conftest.err; then
3909     ac_cpp_err=$ac_c_preproc_warn_flag
3910     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3911   else
3912     ac_cpp_err=
3913   fi
3914 else
3915   ac_cpp_err=yes
3916 fi
3917 if test -z "$ac_cpp_err"; then
3918   # Broken: success on invalid input.
3919 continue
3920 else
3921   echo "$as_me: failed program was:" >&5
3922 sed 's/^/| /' conftest.$ac_ext >&5
3923
3924   # Passes both tests.
3925 ac_preproc_ok=:
3926 break
3927 fi
3928 rm -f conftest.err conftest.$ac_ext
3929
3930 done
3931 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3932 rm -f conftest.err conftest.$ac_ext
3933 if $ac_preproc_ok; then
3934   break
3935 fi
3936
3937     done
3938     ac_cv_prog_CPP=$CPP
3939
3940 fi
3941   CPP=$ac_cv_prog_CPP
3942 else
3943   ac_cv_prog_CPP=$CPP
3944 fi
3945 echo "$as_me:$LINENO: result: $CPP" >&5
3946 echo "${ECHO_T}$CPP" >&6
3947 ac_preproc_ok=false
3948 for ac_c_preproc_warn_flag in '' yes
3949 do
3950   # Use a header file that comes with gcc, so configuring glibc
3951   # with a fresh cross-compiler works.
3952   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3953   # <limits.h> exists even on freestanding compilers.
3954   # On the NeXT, cc -E runs the code through the compiler's parser,
3955   # not just through cpp. "Syntax error" is here to catch this case.
3956   cat >conftest.$ac_ext <<_ACEOF
3957 /* confdefs.h.  */
3958 _ACEOF
3959 cat confdefs.h >>conftest.$ac_ext
3960 cat >>conftest.$ac_ext <<_ACEOF
3961 /* end confdefs.h.  */
3962 #ifdef __STDC__
3963 # include <limits.h>
3964 #else
3965 # include <assert.h>
3966 #endif
3967                      Syntax error
3968 _ACEOF
3969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3970   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3971   ac_status=$?
3972   grep -v '^ *+' conftest.er1 >conftest.err
3973   rm -f conftest.er1
3974   cat conftest.err >&5
3975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976   (exit $ac_status); } >/dev/null; then
3977   if test -s conftest.err; then
3978     ac_cpp_err=$ac_c_preproc_warn_flag
3979     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3980   else
3981     ac_cpp_err=
3982   fi
3983 else
3984   ac_cpp_err=yes
3985 fi
3986 if test -z "$ac_cpp_err"; then
3987   :
3988 else
3989   echo "$as_me: failed program was:" >&5
3990 sed 's/^/| /' conftest.$ac_ext >&5
3991
3992   # Broken: fails on valid input.
3993 continue
3994 fi
3995 rm -f conftest.err conftest.$ac_ext
3996
3997   # OK, works on sane cases.  Now check whether non-existent headers
3998   # can be detected and how.
3999   cat >conftest.$ac_ext <<_ACEOF
4000 /* confdefs.h.  */
4001 _ACEOF
4002 cat confdefs.h >>conftest.$ac_ext
4003 cat >>conftest.$ac_ext <<_ACEOF
4004 /* end confdefs.h.  */
4005 #include <ac_nonexistent.h>
4006 _ACEOF
4007 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4008   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4009   ac_status=$?
4010   grep -v '^ *+' conftest.er1 >conftest.err
4011   rm -f conftest.er1
4012   cat conftest.err >&5
4013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014   (exit $ac_status); } >/dev/null; then
4015   if test -s conftest.err; then
4016     ac_cpp_err=$ac_c_preproc_warn_flag
4017     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4018   else
4019     ac_cpp_err=
4020   fi
4021 else
4022   ac_cpp_err=yes
4023 fi
4024 if test -z "$ac_cpp_err"; then
4025   # Broken: success on invalid input.
4026 continue
4027 else
4028   echo "$as_me: failed program was:" >&5
4029 sed 's/^/| /' conftest.$ac_ext >&5
4030
4031   # Passes both tests.
4032 ac_preproc_ok=:
4033 break
4034 fi
4035 rm -f conftest.err conftest.$ac_ext
4036
4037 done
4038 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4039 rm -f conftest.err conftest.$ac_ext
4040 if $ac_preproc_ok; then
4041   :
4042 else
4043   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4044 See \`config.log' for more details." >&5
4045 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4046 See \`config.log' for more details." >&2;}
4047    { (exit 1); exit 1; }; }
4048 fi
4049
4050 ac_ext=c
4051 ac_cpp='$CPP $CPPFLAGS'
4052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4055
4056
4057 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4058 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4059 if test "${ac_cv_header_stdc+set}" = set; then
4060   echo $ECHO_N "(cached) $ECHO_C" >&6
4061 else
4062   cat >conftest.$ac_ext <<_ACEOF
4063 /* confdefs.h.  */
4064 _ACEOF
4065 cat confdefs.h >>conftest.$ac_ext
4066 cat >>conftest.$ac_ext <<_ACEOF
4067 /* end confdefs.h.  */
4068 #include <stdlib.h>
4069 #include <stdarg.h>
4070 #include <string.h>
4071 #include <float.h>
4072
4073 int
4074 main ()
4075 {
4076
4077   ;
4078   return 0;
4079 }
4080 _ACEOF
4081 rm -f conftest.$ac_objext
4082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4083   (eval $ac_compile) 2>conftest.er1
4084   ac_status=$?
4085   grep -v '^ *+' conftest.er1 >conftest.err
4086   rm -f conftest.er1
4087   cat conftest.err >&5
4088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089   (exit $ac_status); } &&
4090          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4092   (eval $ac_try) 2>&5
4093   ac_status=$?
4094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095   (exit $ac_status); }; } &&
4096          { ac_try='test -s conftest.$ac_objext'
4097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4098   (eval $ac_try) 2>&5
4099   ac_status=$?
4100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101   (exit $ac_status); }; }; then
4102   ac_cv_header_stdc=yes
4103 else
4104   echo "$as_me: failed program was:" >&5
4105 sed 's/^/| /' conftest.$ac_ext >&5
4106
4107 ac_cv_header_stdc=no
4108 fi
4109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4110
4111 if test $ac_cv_header_stdc = yes; then
4112   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4113   cat >conftest.$ac_ext <<_ACEOF
4114 /* confdefs.h.  */
4115 _ACEOF
4116 cat confdefs.h >>conftest.$ac_ext
4117 cat >>conftest.$ac_ext <<_ACEOF
4118 /* end confdefs.h.  */
4119 #include <string.h>
4120
4121 _ACEOF
4122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4123   $EGREP "memchr" >/dev/null 2>&1; then
4124   :
4125 else
4126   ac_cv_header_stdc=no
4127 fi
4128 rm -f conftest*
4129
4130 fi
4131
4132 if test $ac_cv_header_stdc = yes; then
4133   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4134   cat >conftest.$ac_ext <<_ACEOF
4135 /* confdefs.h.  */
4136 _ACEOF
4137 cat confdefs.h >>conftest.$ac_ext
4138 cat >>conftest.$ac_ext <<_ACEOF
4139 /* end confdefs.h.  */
4140 #include <stdlib.h>
4141
4142 _ACEOF
4143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4144   $EGREP "free" >/dev/null 2>&1; then
4145   :
4146 else
4147   ac_cv_header_stdc=no
4148 fi
4149 rm -f conftest*
4150
4151 fi
4152
4153 if test $ac_cv_header_stdc = yes; then
4154   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4155   if test "$cross_compiling" = yes; then
4156   :
4157 else
4158   cat >conftest.$ac_ext <<_ACEOF
4159 /* confdefs.h.  */
4160 _ACEOF
4161 cat confdefs.h >>conftest.$ac_ext
4162 cat >>conftest.$ac_ext <<_ACEOF
4163 /* end confdefs.h.  */
4164 #include <ctype.h>
4165 #if ((' ' & 0x0FF) == 0x020)
4166 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4167 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4168 #else
4169 # define ISLOWER(c) \
4170                    (('a' <= (c) && (c) <= 'i') \
4171                      || ('j' <= (c) && (c) <= 'r') \
4172                      || ('s' <= (c) && (c) <= 'z'))
4173 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4174 #endif
4175
4176 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4177 int
4178 main ()
4179 {
4180   int i;
4181   for (i = 0; i < 256; i++)
4182     if (XOR (islower (i), ISLOWER (i))
4183         || toupper (i) != TOUPPER (i))
4184       exit(2);
4185   exit (0);
4186 }
4187 _ACEOF
4188 rm -f conftest$ac_exeext
4189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4190   (eval $ac_link) 2>&5
4191   ac_status=$?
4192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4195   (eval $ac_try) 2>&5
4196   ac_status=$?
4197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198   (exit $ac_status); }; }; then
4199   :
4200 else
4201   echo "$as_me: program exited with status $ac_status" >&5
4202 echo "$as_me: failed program was:" >&5
4203 sed 's/^/| /' conftest.$ac_ext >&5
4204
4205 ( exit $ac_status )
4206 ac_cv_header_stdc=no
4207 fi
4208 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4209 fi
4210 fi
4211 fi
4212 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4213 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4214 if test $ac_cv_header_stdc = yes; then
4215
4216 cat >>confdefs.h <<\_ACEOF
4217 #define STDC_HEADERS 1
4218 _ACEOF
4219
4220 fi
4221
4222 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4233                   inttypes.h stdint.h unistd.h
4234 do
4235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4236 echo "$as_me:$LINENO: checking for $ac_header" >&5
4237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4239   echo $ECHO_N "(cached) $ECHO_C" >&6
4240 else
4241   cat >conftest.$ac_ext <<_ACEOF
4242 /* confdefs.h.  */
4243 _ACEOF
4244 cat confdefs.h >>conftest.$ac_ext
4245 cat >>conftest.$ac_ext <<_ACEOF
4246 /* end confdefs.h.  */
4247 $ac_includes_default
4248
4249 #include <$ac_header>
4250 _ACEOF
4251 rm -f conftest.$ac_objext
4252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4253   (eval $ac_compile) 2>conftest.er1
4254   ac_status=$?
4255   grep -v '^ *+' conftest.er1 >conftest.err
4256   rm -f conftest.er1
4257   cat conftest.err >&5
4258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259   (exit $ac_status); } &&
4260          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4262   (eval $ac_try) 2>&5
4263   ac_status=$?
4264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265   (exit $ac_status); }; } &&
4266          { ac_try='test -s conftest.$ac_objext'
4267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4268   (eval $ac_try) 2>&5
4269   ac_status=$?
4270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271   (exit $ac_status); }; }; then
4272   eval "$as_ac_Header=yes"
4273 else
4274   echo "$as_me: failed program was:" >&5
4275 sed 's/^/| /' conftest.$ac_ext >&5
4276
4277 eval "$as_ac_Header=no"
4278 fi
4279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4280 fi
4281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4282 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4283 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4284   cat >>confdefs.h <<_ACEOF
4285 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4286 _ACEOF
4287
4288 fi
4289
4290 done
4291
4292
4293
4294 for ac_header in dlfcn.h
4295 do
4296 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4298   echo "$as_me:$LINENO: checking for $ac_header" >&5
4299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4301   echo $ECHO_N "(cached) $ECHO_C" >&6
4302 fi
4303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4305 else
4306   # Is the header compilable?
4307 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4308 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4309 cat >conftest.$ac_ext <<_ACEOF
4310 /* confdefs.h.  */
4311 _ACEOF
4312 cat confdefs.h >>conftest.$ac_ext
4313 cat >>conftest.$ac_ext <<_ACEOF
4314 /* end confdefs.h.  */
4315 $ac_includes_default
4316 #include <$ac_header>
4317 _ACEOF
4318 rm -f conftest.$ac_objext
4319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4320   (eval $ac_compile) 2>conftest.er1
4321   ac_status=$?
4322   grep -v '^ *+' conftest.er1 >conftest.err
4323   rm -f conftest.er1
4324   cat conftest.err >&5
4325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326   (exit $ac_status); } &&
4327          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4329   (eval $ac_try) 2>&5
4330   ac_status=$?
4331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332   (exit $ac_status); }; } &&
4333          { ac_try='test -s conftest.$ac_objext'
4334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4335   (eval $ac_try) 2>&5
4336   ac_status=$?
4337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338   (exit $ac_status); }; }; then
4339   ac_header_compiler=yes
4340 else
4341   echo "$as_me: failed program was:" >&5
4342 sed 's/^/| /' conftest.$ac_ext >&5
4343
4344 ac_header_compiler=no
4345 fi
4346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4347 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4348 echo "${ECHO_T}$ac_header_compiler" >&6
4349
4350 # Is the header present?
4351 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4352 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4353 cat >conftest.$ac_ext <<_ACEOF
4354 /* confdefs.h.  */
4355 _ACEOF
4356 cat confdefs.h >>conftest.$ac_ext
4357 cat >>conftest.$ac_ext <<_ACEOF
4358 /* end confdefs.h.  */
4359 #include <$ac_header>
4360 _ACEOF
4361 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4362   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4363   ac_status=$?
4364   grep -v '^ *+' conftest.er1 >conftest.err
4365   rm -f conftest.er1
4366   cat conftest.err >&5
4367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368   (exit $ac_status); } >/dev/null; then
4369   if test -s conftest.err; then
4370     ac_cpp_err=$ac_c_preproc_warn_flag
4371     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4372   else
4373     ac_cpp_err=
4374   fi
4375 else
4376   ac_cpp_err=yes
4377 fi
4378 if test -z "$ac_cpp_err"; then
4379   ac_header_preproc=yes
4380 else
4381   echo "$as_me: failed program was:" >&5
4382 sed 's/^/| /' conftest.$ac_ext >&5
4383
4384   ac_header_preproc=no
4385 fi
4386 rm -f conftest.err conftest.$ac_ext
4387 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4388 echo "${ECHO_T}$ac_header_preproc" >&6
4389
4390 # So?  What about this header?
4391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4392   yes:no: )
4393     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4394 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4395     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4396 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4397     ac_header_preproc=yes
4398     ;;
4399   no:yes:* )
4400     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4401 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4402     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4403 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4404     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4405 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4406     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4407 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4408     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4409 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4410     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4411 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4412     (
4413       cat <<\_ASBOX
4414 ## ----------------------------------------- ##
4415 ## Report this to martin.quinson@ens-lyon.fr ##
4416 ## ----------------------------------------- ##
4417 _ASBOX
4418     ) |
4419       sed "s/^/$as_me: WARNING:     /" >&2
4420     ;;
4421 esac
4422 echo "$as_me:$LINENO: checking for $ac_header" >&5
4423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4425   echo $ECHO_N "(cached) $ECHO_C" >&6
4426 else
4427   eval "$as_ac_Header=\$ac_header_preproc"
4428 fi
4429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4431
4432 fi
4433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4434   cat >>confdefs.h <<_ACEOF
4435 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4436 _ACEOF
4437
4438 fi
4439
4440 done
4441
4442 ac_ext=cc
4443 ac_cpp='$CXXCPP $CPPFLAGS'
4444 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4445 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4446 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4447 if test -n "$ac_tool_prefix"; then
4448   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4449   do
4450     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4451 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4452 echo "$as_me:$LINENO: checking for $ac_word" >&5
4453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4454 if test "${ac_cv_prog_CXX+set}" = set; then
4455   echo $ECHO_N "(cached) $ECHO_C" >&6
4456 else
4457   if test -n "$CXX"; then
4458   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4459 else
4460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461 for as_dir in $PATH
4462 do
4463   IFS=$as_save_IFS
4464   test -z "$as_dir" && as_dir=.
4465   for ac_exec_ext in '' $ac_executable_extensions; do
4466   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4467     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4468     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4469     break 2
4470   fi
4471 done
4472 done
4473
4474 fi
4475 fi
4476 CXX=$ac_cv_prog_CXX
4477 if test -n "$CXX"; then
4478   echo "$as_me:$LINENO: result: $CXX" >&5
4479 echo "${ECHO_T}$CXX" >&6
4480 else
4481   echo "$as_me:$LINENO: result: no" >&5
4482 echo "${ECHO_T}no" >&6
4483 fi
4484
4485     test -n "$CXX" && break
4486   done
4487 fi
4488 if test -z "$CXX"; then
4489   ac_ct_CXX=$CXX
4490   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4491 do
4492   # Extract the first word of "$ac_prog", so it can be a program name with args.
4493 set dummy $ac_prog; ac_word=$2
4494 echo "$as_me:$LINENO: checking for $ac_word" >&5
4495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4496 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4497   echo $ECHO_N "(cached) $ECHO_C" >&6
4498 else
4499   if test -n "$ac_ct_CXX"; then
4500   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4501 else
4502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4503 for as_dir in $PATH
4504 do
4505   IFS=$as_save_IFS
4506   test -z "$as_dir" && as_dir=.
4507   for ac_exec_ext in '' $ac_executable_extensions; do
4508   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4509     ac_cv_prog_ac_ct_CXX="$ac_prog"
4510     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4511     break 2
4512   fi
4513 done
4514 done
4515
4516 fi
4517 fi
4518 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4519 if test -n "$ac_ct_CXX"; then
4520   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4521 echo "${ECHO_T}$ac_ct_CXX" >&6
4522 else
4523   echo "$as_me:$LINENO: result: no" >&5
4524 echo "${ECHO_T}no" >&6
4525 fi
4526
4527   test -n "$ac_ct_CXX" && break
4528 done
4529 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4530
4531   CXX=$ac_ct_CXX
4532 fi
4533
4534
4535 # Provide some information about the compiler.
4536 echo "$as_me:$LINENO:" \
4537      "checking for C++ compiler version" >&5
4538 ac_compiler=`set X $ac_compile; echo $2`
4539 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4540   (eval $ac_compiler --version </dev/null >&5) 2>&5
4541   ac_status=$?
4542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543   (exit $ac_status); }
4544 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4545   (eval $ac_compiler -v </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
4555 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4556 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4557 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4558   echo $ECHO_N "(cached) $ECHO_C" >&6
4559 else
4560   cat >conftest.$ac_ext <<_ACEOF
4561 /* confdefs.h.  */
4562 _ACEOF
4563 cat confdefs.h >>conftest.$ac_ext
4564 cat >>conftest.$ac_ext <<_ACEOF
4565 /* end confdefs.h.  */
4566
4567 int
4568 main ()
4569 {
4570 #ifndef __GNUC__
4571        choke me
4572 #endif
4573
4574   ;
4575   return 0;
4576 }
4577 _ACEOF
4578 rm -f conftest.$ac_objext
4579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4580   (eval $ac_compile) 2>conftest.er1
4581   ac_status=$?
4582   grep -v '^ *+' conftest.er1 >conftest.err
4583   rm -f conftest.er1
4584   cat conftest.err >&5
4585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586   (exit $ac_status); } &&
4587          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4589   (eval $ac_try) 2>&5
4590   ac_status=$?
4591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592   (exit $ac_status); }; } &&
4593          { ac_try='test -s conftest.$ac_objext'
4594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4595   (eval $ac_try) 2>&5
4596   ac_status=$?
4597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598   (exit $ac_status); }; }; then
4599   ac_compiler_gnu=yes
4600 else
4601   echo "$as_me: failed program was:" >&5
4602 sed 's/^/| /' conftest.$ac_ext >&5
4603
4604 ac_compiler_gnu=no
4605 fi
4606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4607 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4608
4609 fi
4610 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4611 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4612 GXX=`test $ac_compiler_gnu = yes && echo yes`
4613 ac_test_CXXFLAGS=${CXXFLAGS+set}
4614 ac_save_CXXFLAGS=$CXXFLAGS
4615 CXXFLAGS="-g"
4616 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4617 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4618 if test "${ac_cv_prog_cxx_g+set}" = set; then
4619   echo $ECHO_N "(cached) $ECHO_C" >&6
4620 else
4621   cat >conftest.$ac_ext <<_ACEOF
4622 /* confdefs.h.  */
4623 _ACEOF
4624 cat confdefs.h >>conftest.$ac_ext
4625 cat >>conftest.$ac_ext <<_ACEOF
4626 /* end confdefs.h.  */
4627
4628 int
4629 main ()
4630 {
4631
4632   ;
4633   return 0;
4634 }
4635 _ACEOF
4636 rm -f conftest.$ac_objext
4637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4638   (eval $ac_compile) 2>conftest.er1
4639   ac_status=$?
4640   grep -v '^ *+' conftest.er1 >conftest.err
4641   rm -f conftest.er1
4642   cat conftest.err >&5
4643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644   (exit $ac_status); } &&
4645          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4647   (eval $ac_try) 2>&5
4648   ac_status=$?
4649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650   (exit $ac_status); }; } &&
4651          { ac_try='test -s conftest.$ac_objext'
4652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4653   (eval $ac_try) 2>&5
4654   ac_status=$?
4655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656   (exit $ac_status); }; }; then
4657   ac_cv_prog_cxx_g=yes
4658 else
4659   echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.$ac_ext >&5
4661
4662 ac_cv_prog_cxx_g=no
4663 fi
4664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4665 fi
4666 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4667 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4668 if test "$ac_test_CXXFLAGS" = set; then
4669   CXXFLAGS=$ac_save_CXXFLAGS
4670 elif test $ac_cv_prog_cxx_g = yes; then
4671   if test "$GXX" = yes; then
4672     CXXFLAGS="-g -O2"
4673   else
4674     CXXFLAGS="-g"
4675   fi
4676 else
4677   if test "$GXX" = yes; then
4678     CXXFLAGS="-O2"
4679   else
4680     CXXFLAGS=
4681   fi
4682 fi
4683 for ac_declaration in \
4684    '' \
4685    'extern "C" void std::exit (int) throw (); using std::exit;' \
4686    'extern "C" void std::exit (int); using std::exit;' \
4687    'extern "C" void exit (int) throw ();' \
4688    'extern "C" void exit (int);' \
4689    'void exit (int);'
4690 do
4691   cat >conftest.$ac_ext <<_ACEOF
4692 /* confdefs.h.  */
4693 _ACEOF
4694 cat confdefs.h >>conftest.$ac_ext
4695 cat >>conftest.$ac_ext <<_ACEOF
4696 /* end confdefs.h.  */
4697 $ac_declaration
4698 #include <stdlib.h>
4699 int
4700 main ()
4701 {
4702 exit (42);
4703   ;
4704   return 0;
4705 }
4706 _ACEOF
4707 rm -f conftest.$ac_objext
4708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4709   (eval $ac_compile) 2>conftest.er1
4710   ac_status=$?
4711   grep -v '^ *+' conftest.er1 >conftest.err
4712   rm -f conftest.er1
4713   cat conftest.err >&5
4714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715   (exit $ac_status); } &&
4716          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4718   (eval $ac_try) 2>&5
4719   ac_status=$?
4720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721   (exit $ac_status); }; } &&
4722          { ac_try='test -s conftest.$ac_objext'
4723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4724   (eval $ac_try) 2>&5
4725   ac_status=$?
4726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727   (exit $ac_status); }; }; then
4728   :
4729 else
4730   echo "$as_me: failed program was:" >&5
4731 sed 's/^/| /' conftest.$ac_ext >&5
4732
4733 continue
4734 fi
4735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4736   cat >conftest.$ac_ext <<_ACEOF
4737 /* confdefs.h.  */
4738 _ACEOF
4739 cat confdefs.h >>conftest.$ac_ext
4740 cat >>conftest.$ac_ext <<_ACEOF
4741 /* end confdefs.h.  */
4742 $ac_declaration
4743 int
4744 main ()
4745 {
4746 exit (42);
4747   ;
4748   return 0;
4749 }
4750 _ACEOF
4751 rm -f conftest.$ac_objext
4752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4753   (eval $ac_compile) 2>conftest.er1
4754   ac_status=$?
4755   grep -v '^ *+' conftest.er1 >conftest.err
4756   rm -f conftest.er1
4757   cat conftest.err >&5
4758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759   (exit $ac_status); } &&
4760          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4762   (eval $ac_try) 2>&5
4763   ac_status=$?
4764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765   (exit $ac_status); }; } &&
4766          { ac_try='test -s conftest.$ac_objext'
4767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4768   (eval $ac_try) 2>&5
4769   ac_status=$?
4770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771   (exit $ac_status); }; }; then
4772   break
4773 else
4774   echo "$as_me: failed program was:" >&5
4775 sed 's/^/| /' conftest.$ac_ext >&5
4776
4777 fi
4778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4779 done
4780 rm -f conftest*
4781 if test -n "$ac_declaration"; then
4782   echo '#ifdef __cplusplus' >>confdefs.h
4783   echo $ac_declaration      >>confdefs.h
4784   echo '#endif'             >>confdefs.h
4785 fi
4786
4787 ac_ext=cc
4788 ac_cpp='$CXXCPP $CPPFLAGS'
4789 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4790 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4791 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4792
4793 depcc="$CXX"  am_compiler_list=
4794
4795 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4796 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4797 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4798   echo $ECHO_N "(cached) $ECHO_C" >&6
4799 else
4800   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4801   # We make a subdir and do the tests there.  Otherwise we can end up
4802   # making bogus files that we don't know about and never remove.  For
4803   # instance it was reported that on HP-UX the gcc test will end up
4804   # making a dummy file named `D' -- because `-MD' means `put the output
4805   # in D'.
4806   mkdir conftest.dir
4807   # Copy depcomp to subdir because otherwise we won't find it if we're
4808   # using a relative directory.
4809   cp "$am_depcomp" conftest.dir
4810   cd conftest.dir
4811   # We will build objects and dependencies in a subdirectory because
4812   # it helps to detect inapplicable dependency modes.  For instance
4813   # both Tru64's cc and ICC support -MD to output dependencies as a
4814   # side effect of compilation, but ICC will put the dependencies in
4815   # the current directory while Tru64 will put them in the object
4816   # directory.
4817   mkdir sub
4818
4819   am_cv_CXX_dependencies_compiler_type=none
4820   if test "$am_compiler_list" = ""; then
4821      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4822   fi
4823   for depmode in $am_compiler_list; do
4824     # Setup a source with many dependencies, because some compilers
4825     # like to wrap large dependency lists on column 80 (with \), and
4826     # we should not choose a depcomp mode which is confused by this.
4827     #
4828     # We need to recreate these files for each test, as the compiler may
4829     # overwrite some of them when testing with obscure command lines.
4830     # This happens at least with the AIX C compiler.
4831     : > sub/conftest.c
4832     for i in 1 2 3 4 5 6; do
4833       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4834       : > sub/conftst$i.h
4835     done
4836     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4837
4838     case $depmode in
4839     nosideeffect)
4840       # after this tag, mechanisms are not by side-effect, so they'll
4841       # only be used when explicitly requested
4842       if test "x$enable_dependency_tracking" = xyes; then
4843         continue
4844       else
4845         break
4846       fi
4847       ;;
4848     none) break ;;
4849     esac
4850     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4851     # mode.  It turns out that the SunPro C++ compiler does not properly
4852     # handle `-M -o', and we need to detect this.
4853     if depmode=$depmode \
4854        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4855        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4856        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4857          >/dev/null 2>conftest.err &&
4858        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4859        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4860        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4861       # icc doesn't choke on unknown options, it will just issue warnings
4862       # (even with -Werror).  So we grep stderr for any message
4863       # that says an option was ignored.
4864       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4865         am_cv_CXX_dependencies_compiler_type=$depmode
4866         break
4867       fi
4868     fi
4869   done
4870
4871   cd ..
4872   rm -rf conftest.dir
4873 else
4874   am_cv_CXX_dependencies_compiler_type=none
4875 fi
4876
4877 fi
4878 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4879 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4880 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4881
4882
4883
4884 if
4885   test "x$enable_dependency_tracking" != xno \
4886   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4887   am__fastdepCXX_TRUE=
4888   am__fastdepCXX_FALSE='#'
4889 else
4890   am__fastdepCXX_TRUE='#'
4891   am__fastdepCXX_FALSE=
4892 fi
4893
4894
4895 ac_ext=cc
4896 ac_cpp='$CXXCPP $CPPFLAGS'
4897 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4898 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4899 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4900 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4901 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4902 if test -z "$CXXCPP"; then
4903   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4904   echo $ECHO_N "(cached) $ECHO_C" >&6
4905 else
4906       # Double quotes because CXXCPP needs to be expanded
4907     for CXXCPP in "$CXX -E" "/lib/cpp"
4908     do
4909       ac_preproc_ok=false
4910 for ac_cxx_preproc_warn_flag in '' yes
4911 do
4912   # Use a header file that comes with gcc, so configuring glibc
4913   # with a fresh cross-compiler works.
4914   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4915   # <limits.h> exists even on freestanding compilers.
4916   # On the NeXT, cc -E runs the code through the compiler's parser,
4917   # not just through cpp. "Syntax error" is here to catch this case.
4918   cat >conftest.$ac_ext <<_ACEOF
4919 /* confdefs.h.  */
4920 _ACEOF
4921 cat confdefs.h >>conftest.$ac_ext
4922 cat >>conftest.$ac_ext <<_ACEOF
4923 /* end confdefs.h.  */
4924 #ifdef __STDC__
4925 # include <limits.h>
4926 #else
4927 # include <assert.h>
4928 #endif
4929                      Syntax error
4930 _ACEOF
4931 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4932   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4933   ac_status=$?
4934   grep -v '^ *+' conftest.er1 >conftest.err
4935   rm -f conftest.er1
4936   cat conftest.err >&5
4937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938   (exit $ac_status); } >/dev/null; then
4939   if test -s conftest.err; then
4940     ac_cpp_err=$ac_cxx_preproc_warn_flag
4941     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4942   else
4943     ac_cpp_err=
4944   fi
4945 else
4946   ac_cpp_err=yes
4947 fi
4948 if test -z "$ac_cpp_err"; then
4949   :
4950 else
4951   echo "$as_me: failed program was:" >&5
4952 sed 's/^/| /' conftest.$ac_ext >&5
4953
4954   # Broken: fails on valid input.
4955 continue
4956 fi
4957 rm -f conftest.err conftest.$ac_ext
4958
4959   # OK, works on sane cases.  Now check whether non-existent headers
4960   # can be detected and how.
4961   cat >conftest.$ac_ext <<_ACEOF
4962 /* confdefs.h.  */
4963 _ACEOF
4964 cat confdefs.h >>conftest.$ac_ext
4965 cat >>conftest.$ac_ext <<_ACEOF
4966 /* end confdefs.h.  */
4967 #include <ac_nonexistent.h>
4968 _ACEOF
4969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4970   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4971   ac_status=$?
4972   grep -v '^ *+' conftest.er1 >conftest.err
4973   rm -f conftest.er1
4974   cat conftest.err >&5
4975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976   (exit $ac_status); } >/dev/null; then
4977   if test -s conftest.err; then
4978     ac_cpp_err=$ac_cxx_preproc_warn_flag
4979     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4980   else
4981     ac_cpp_err=
4982   fi
4983 else
4984   ac_cpp_err=yes
4985 fi
4986 if test -z "$ac_cpp_err"; then
4987   # Broken: success on invalid input.
4988 continue
4989 else
4990   echo "$as_me: failed program was:" >&5
4991 sed 's/^/| /' conftest.$ac_ext >&5
4992
4993   # Passes both tests.
4994 ac_preproc_ok=:
4995 break
4996 fi
4997 rm -f conftest.err conftest.$ac_ext
4998
4999 done
5000 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5001 rm -f conftest.err conftest.$ac_ext
5002 if $ac_preproc_ok; then
5003   break
5004 fi
5005
5006     done
5007     ac_cv_prog_CXXCPP=$CXXCPP
5008
5009 fi
5010   CXXCPP=$ac_cv_prog_CXXCPP
5011 else
5012   ac_cv_prog_CXXCPP=$CXXCPP
5013 fi
5014 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5015 echo "${ECHO_T}$CXXCPP" >&6
5016 ac_preproc_ok=false
5017 for ac_cxx_preproc_warn_flag in '' yes
5018 do
5019   # Use a header file that comes with gcc, so configuring glibc
5020   # with a fresh cross-compiler works.
5021   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5022   # <limits.h> exists even on freestanding compilers.
5023   # On the NeXT, cc -E runs the code through the compiler's parser,
5024   # not just through cpp. "Syntax error" is here to catch this case.
5025   cat >conftest.$ac_ext <<_ACEOF
5026 /* confdefs.h.  */
5027 _ACEOF
5028 cat confdefs.h >>conftest.$ac_ext
5029 cat >>conftest.$ac_ext <<_ACEOF
5030 /* end confdefs.h.  */
5031 #ifdef __STDC__
5032 # include <limits.h>
5033 #else
5034 # include <assert.h>
5035 #endif
5036                      Syntax error
5037 _ACEOF
5038 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5039   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5040   ac_status=$?
5041   grep -v '^ *+' conftest.er1 >conftest.err
5042   rm -f conftest.er1
5043   cat conftest.err >&5
5044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045   (exit $ac_status); } >/dev/null; then
5046   if test -s conftest.err; then
5047     ac_cpp_err=$ac_cxx_preproc_warn_flag
5048     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5049   else
5050     ac_cpp_err=
5051   fi
5052 else
5053   ac_cpp_err=yes
5054 fi
5055 if test -z "$ac_cpp_err"; then
5056   :
5057 else
5058   echo "$as_me: failed program was:" >&5
5059 sed 's/^/| /' conftest.$ac_ext >&5
5060
5061   # Broken: fails on valid input.
5062 continue
5063 fi
5064 rm -f conftest.err conftest.$ac_ext
5065
5066   # OK, works on sane cases.  Now check whether non-existent headers
5067   # can be detected and how.
5068   cat >conftest.$ac_ext <<_ACEOF
5069 /* confdefs.h.  */
5070 _ACEOF
5071 cat confdefs.h >>conftest.$ac_ext
5072 cat >>conftest.$ac_ext <<_ACEOF
5073 /* end confdefs.h.  */
5074 #include <ac_nonexistent.h>
5075 _ACEOF
5076 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5077   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5078   ac_status=$?
5079   grep -v '^ *+' conftest.er1 >conftest.err
5080   rm -f conftest.er1
5081   cat conftest.err >&5
5082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083   (exit $ac_status); } >/dev/null; then
5084   if test -s conftest.err; then
5085     ac_cpp_err=$ac_cxx_preproc_warn_flag
5086     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5087   else
5088     ac_cpp_err=
5089   fi
5090 else
5091   ac_cpp_err=yes
5092 fi
5093 if test -z "$ac_cpp_err"; then
5094   # Broken: success on invalid input.
5095 continue
5096 else
5097   echo "$as_me: failed program was:" >&5
5098 sed 's/^/| /' conftest.$ac_ext >&5
5099
5100   # Passes both tests.
5101 ac_preproc_ok=:
5102 break
5103 fi
5104 rm -f conftest.err conftest.$ac_ext
5105
5106 done
5107 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5108 rm -f conftest.err conftest.$ac_ext
5109 if $ac_preproc_ok; then
5110   :
5111 else
5112   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5113 See \`config.log' for more details." >&5
5114 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5115 See \`config.log' for more details." >&2;}
5116    { (exit 1); exit 1; }; }
5117 fi
5118
5119 ac_ext=cc
5120 ac_cpp='$CXXCPP $CPPFLAGS'
5121 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5122 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5123 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5124
5125
5126 ac_ext=f
5127 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5128 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5129 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5130 if test -n "$ac_tool_prefix"; then
5131   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5132   do
5133     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5134 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5135 echo "$as_me:$LINENO: checking for $ac_word" >&5
5136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5137 if test "${ac_cv_prog_F77+set}" = set; then
5138   echo $ECHO_N "(cached) $ECHO_C" >&6
5139 else
5140   if test -n "$F77"; then
5141   ac_cv_prog_F77="$F77" # Let the user override the test.
5142 else
5143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144 for as_dir in $PATH
5145 do
5146   IFS=$as_save_IFS
5147   test -z "$as_dir" && as_dir=.
5148   for ac_exec_ext in '' $ac_executable_extensions; do
5149   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5150     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5151     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5152     break 2
5153   fi
5154 done
5155 done
5156
5157 fi
5158 fi
5159 F77=$ac_cv_prog_F77
5160 if test -n "$F77"; then
5161   echo "$as_me:$LINENO: result: $F77" >&5
5162 echo "${ECHO_T}$F77" >&6
5163 else
5164   echo "$as_me:$LINENO: result: no" >&5
5165 echo "${ECHO_T}no" >&6
5166 fi
5167
5168     test -n "$F77" && break
5169   done
5170 fi
5171 if test -z "$F77"; then
5172   ac_ct_F77=$F77
5173   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5174 do
5175   # Extract the first word of "$ac_prog", so it can be a program name with args.
5176 set dummy $ac_prog; ac_word=$2
5177 echo "$as_me:$LINENO: checking for $ac_word" >&5
5178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5179 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5180   echo $ECHO_N "(cached) $ECHO_C" >&6
5181 else
5182   if test -n "$ac_ct_F77"; then
5183   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5184 else
5185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186 for as_dir in $PATH
5187 do
5188   IFS=$as_save_IFS
5189   test -z "$as_dir" && as_dir=.
5190   for ac_exec_ext in '' $ac_executable_extensions; do
5191   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5192     ac_cv_prog_ac_ct_F77="$ac_prog"
5193     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5194     break 2
5195   fi
5196 done
5197 done
5198
5199 fi
5200 fi
5201 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5202 if test -n "$ac_ct_F77"; then
5203   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5204 echo "${ECHO_T}$ac_ct_F77" >&6
5205 else
5206   echo "$as_me:$LINENO: result: no" >&5
5207 echo "${ECHO_T}no" >&6
5208 fi
5209
5210   test -n "$ac_ct_F77" && break
5211 done
5212
5213   F77=$ac_ct_F77
5214 fi
5215
5216
5217 # Provide some information about the compiler.
5218 echo "$as_me:5218:" \
5219      "checking for Fortran 77 compiler version" >&5
5220 ac_compiler=`set X $ac_compile; echo $2`
5221 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5222   (eval $ac_compiler --version </dev/null >&5) 2>&5
5223   ac_status=$?
5224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225   (exit $ac_status); }
5226 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5227   (eval $ac_compiler -v </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 rm -f a.out
5237
5238 # If we don't use `.F' as extension, the preprocessor is not run on the
5239 # input file.  (Note that this only needs to work for GNU compilers.)
5240 ac_save_ext=$ac_ext
5241 ac_ext=F
5242 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5243 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5244 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5245   echo $ECHO_N "(cached) $ECHO_C" >&6
5246 else
5247   cat >conftest.$ac_ext <<_ACEOF
5248       program main
5249 #ifndef __GNUC__
5250        choke me
5251 #endif
5252
5253       end
5254 _ACEOF
5255 rm -f conftest.$ac_objext
5256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5257   (eval $ac_compile) 2>conftest.er1
5258   ac_status=$?
5259   grep -v '^ *+' conftest.er1 >conftest.err
5260   rm -f conftest.er1
5261   cat conftest.err >&5
5262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263   (exit $ac_status); } &&
5264          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5266   (eval $ac_try) 2>&5
5267   ac_status=$?
5268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269   (exit $ac_status); }; } &&
5270          { ac_try='test -s conftest.$ac_objext'
5271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5272   (eval $ac_try) 2>&5
5273   ac_status=$?
5274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275   (exit $ac_status); }; }; then
5276   ac_compiler_gnu=yes
5277 else
5278   echo "$as_me: failed program was:" >&5
5279 sed 's/^/| /' conftest.$ac_ext >&5
5280
5281 ac_compiler_gnu=no
5282 fi
5283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5284 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5285
5286 fi
5287 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5288 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5289 ac_ext=$ac_save_ext
5290 ac_test_FFLAGS=${FFLAGS+set}
5291 ac_save_FFLAGS=$FFLAGS
5292 FFLAGS=
5293 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5294 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5295 if test "${ac_cv_prog_f77_g+set}" = set; then
5296   echo $ECHO_N "(cached) $ECHO_C" >&6
5297 else
5298   FFLAGS=-g
5299 cat >conftest.$ac_ext <<_ACEOF
5300       program main
5301
5302       end
5303 _ACEOF
5304 rm -f conftest.$ac_objext
5305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5306   (eval $ac_compile) 2>conftest.er1
5307   ac_status=$?
5308   grep -v '^ *+' conftest.er1 >conftest.err
5309   rm -f conftest.er1
5310   cat conftest.err >&5
5311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312   (exit $ac_status); } &&
5313          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5315   (eval $ac_try) 2>&5
5316   ac_status=$?
5317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318   (exit $ac_status); }; } &&
5319          { ac_try='test -s conftest.$ac_objext'
5320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5321   (eval $ac_try) 2>&5
5322   ac_status=$?
5323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324   (exit $ac_status); }; }; then
5325   ac_cv_prog_f77_g=yes
5326 else
5327   echo "$as_me: failed program was:" >&5
5328 sed 's/^/| /' conftest.$ac_ext >&5
5329
5330 ac_cv_prog_f77_g=no
5331 fi
5332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5333
5334 fi
5335 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5336 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5337 if test "$ac_test_FFLAGS" = set; then
5338   FFLAGS=$ac_save_FFLAGS
5339 elif test $ac_cv_prog_f77_g = yes; then
5340   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5341     FFLAGS="-g -O2"
5342   else
5343     FFLAGS="-g"
5344   fi
5345 else
5346   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5347     FFLAGS="-O2"
5348   else
5349     FFLAGS=
5350   fi
5351 fi
5352
5353 G77=`test $ac_compiler_gnu = yes && echo yes`
5354 ac_ext=c
5355 ac_cpp='$CPP $CPPFLAGS'
5356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5359
5360
5361
5362 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5363
5364 # find the maximum length of command line arguments
5365 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5366 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5367 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5368   echo $ECHO_N "(cached) $ECHO_C" >&6
5369 else
5370     i=0
5371   teststring="ABCD"
5372
5373   case $build_os in
5374   msdosdjgpp*)
5375     # On DJGPP, this test can blow up pretty badly due to problems in libc
5376     # (any single argument exceeding 2000 bytes causes a buffer overrun
5377     # during glob expansion).  Even if it were fixed, the result of this
5378     # check would be larger than it should be.
5379     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5380     ;;
5381
5382   gnu*)
5383     # Under GNU Hurd, this test is not required because there is
5384     # no limit to the length of command line arguments.
5385     # Libtool will interpret -1 as no limit whatsoever
5386     lt_cv_sys_max_cmd_len=-1;
5387     ;;
5388
5389   cygwin* | mingw*)
5390     # On Win9x/ME, this test blows up -- it succeeds, but takes
5391     # about 5 minutes as the teststring grows exponentially.
5392     # Worse, since 9x/ME are not pre-emptively multitasking,
5393     # you end up with a "frozen" computer, even though with patience
5394     # the test eventually succeeds (with a max line length of 256k).
5395     # Instead, let's just punt: use the minimum linelength reported by
5396     # all of the supported platforms: 8192 (on NT/2K/XP).
5397     lt_cv_sys_max_cmd_len=8192;
5398     ;;
5399
5400   amigaos*)
5401     # On AmigaOS with pdksh, this test takes hours, literally.
5402     # So we just punt and use a minimum line length of 8192.
5403     lt_cv_sys_max_cmd_len=8192;
5404     ;;
5405
5406  *)
5407     # If test is not a shell built-in, we'll probably end up computing a
5408     # maximum length that is only half of the actual maximum length, but
5409     # we can't tell.
5410     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5411                = "XX$teststring") >/dev/null 2>&1 &&
5412             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5413             lt_cv_sys_max_cmd_len=$new_result &&
5414             test $i != 17 # 1/2 MB should be enough
5415     do
5416       i=`expr $i + 1`
5417       teststring=$teststring$teststring
5418     done
5419     teststring=
5420     # Add a significant safety factor because C++ compilers can tack on massive
5421     # amounts of additional arguments before passing them to the linker.
5422     # It appears as though 1/2 is a usable value.
5423     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5424     ;;
5425   esac
5426
5427 fi
5428
5429 if test -n $lt_cv_sys_max_cmd_len ; then
5430   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5431 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5432 else
5433   echo "$as_me:$LINENO: result: none" >&5
5434 echo "${ECHO_T}none" >&6
5435 fi
5436
5437
5438
5439
5440 # Check for command to grab the raw symbol name followed by C symbol from nm.
5441 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5442 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5443 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5444   echo $ECHO_N "(cached) $ECHO_C" >&6
5445 else
5446
5447 # These are sane defaults that work on at least a few old systems.
5448 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5449
5450 # Character class describing NM global symbol codes.
5451 symcode='[BCDEGRST]'
5452
5453 # Regexp to match symbols that can be accessed directly from C.
5454 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5455
5456 # Transform the above into a raw symbol and a C symbol.
5457 symxfrm='\1 \2\3 \3'
5458
5459 # Transform an extracted symbol line into a proper C declaration
5460 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5461
5462 # Transform an extracted symbol line into symbol name and symbol address
5463 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'"
5464
5465 # Define system-specific variables.
5466 case $host_os in
5467 aix*)
5468   symcode='[BCDT]'
5469   ;;
5470 cygwin* | mingw* | pw32*)
5471   symcode='[ABCDGISTW]'
5472   ;;
5473 hpux*) # Its linker distinguishes data from code symbols
5474   if test "$host_cpu" = ia64; then
5475     symcode='[ABCDEGRST]'
5476   fi
5477   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5478   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'"
5479   ;;
5480 irix* | nonstopux*)
5481   symcode='[BCDEGRST]'
5482   ;;
5483 osf*)
5484   symcode='[BCDEGQRST]'
5485   ;;
5486 solaris* | sysv5*)
5487   symcode='[BDRT]'
5488   ;;
5489 sysv4)
5490   symcode='[DFNSTU]'
5491   ;;
5492 esac
5493
5494 # Handle CRLF in mingw tool chain
5495 opt_cr=
5496 case $build_os in
5497 mingw*)
5498   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5499   ;;
5500 esac
5501
5502 # If we're using GNU nm, then use its standard symbol codes.
5503 case `$NM -V 2>&1` in
5504 *GNU* | *'with BFD'*)
5505   symcode='[ABCDGIRSTW]' ;;
5506 esac
5507
5508 # Try without a prefix undercore, then with it.
5509 for ac_symprfx in "" "_"; do
5510
5511   # Write the raw and C identifiers.
5512   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5513
5514   # Check to see that the pipe works correctly.
5515   pipe_works=no
5516
5517   rm -f conftest*
5518   cat > conftest.$ac_ext <<EOF
5519 #ifdef __cplusplus
5520 extern "C" {
5521 #endif
5522 char nm_test_var;
5523 void nm_test_func(){}
5524 #ifdef __cplusplus
5525 }
5526 #endif
5527 int main(){nm_test_var='a';nm_test_func();return(0);}
5528 EOF
5529
5530   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5531   (eval $ac_compile) 2>&5
5532   ac_status=$?
5533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534   (exit $ac_status); }; then
5535     # Now try to grab the symbols.
5536     nlist=conftest.nm
5537     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5538   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5539   ac_status=$?
5540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541   (exit $ac_status); } && test -s "$nlist"; then
5542       # Try sorting and uniquifying the output.
5543       if sort "$nlist" | uniq > "$nlist"T; then
5544         mv -f "$nlist"T "$nlist"
5545       else
5546         rm -f "$nlist"T
5547       fi
5548
5549       # Make sure that we snagged all the symbols we need.
5550       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5551         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5552           cat <<EOF > conftest.$ac_ext
5553 #ifdef __cplusplus
5554 extern "C" {
5555 #endif
5556
5557 EOF
5558           # Now generate the symbol file.
5559           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5560
5561           cat <<EOF >> conftest.$ac_ext
5562 #if defined (__STDC__) && __STDC__
5563 # define lt_ptr_t void *
5564 #else
5565 # define lt_ptr_t char *
5566 # define const
5567 #endif
5568
5569 /* The mapping between symbol names and symbols. */
5570 const struct {
5571   const char *name;
5572   lt_ptr_t address;
5573 }
5574 lt_preloaded_symbols[] =
5575 {
5576 EOF
5577           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5578           cat <<\EOF >> conftest.$ac_ext
5579   {0, (lt_ptr_t) 0}
5580 };
5581
5582 #ifdef __cplusplus
5583 }
5584 #endif
5585 EOF
5586           # Now try linking the two files.
5587           mv conftest.$ac_objext conftstm.$ac_objext
5588           lt_save_LIBS="$LIBS"
5589           lt_save_CFLAGS="$CFLAGS"
5590           LIBS="conftstm.$ac_objext"
5591           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5592           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5593   (eval $ac_link) 2>&5
5594   ac_status=$?
5595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5597             pipe_works=yes
5598           fi
5599           LIBS="$lt_save_LIBS"
5600           CFLAGS="$lt_save_CFLAGS"
5601         else
5602           echo "cannot find nm_test_func in $nlist" >&5
5603         fi
5604       else
5605         echo "cannot find nm_test_var in $nlist" >&5
5606       fi
5607     else
5608       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5609     fi
5610   else
5611     echo "$progname: failed program was:" >&5
5612     cat conftest.$ac_ext >&5
5613   fi
5614   rm -f conftest* conftst*
5615
5616   # Do not use the global_symbol_pipe unless it works.
5617   if test "$pipe_works" = yes; then
5618     break
5619   else
5620     lt_cv_sys_global_symbol_pipe=
5621   fi
5622 done
5623
5624 fi
5625
5626 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5627   lt_cv_sys_global_symbol_to_cdecl=
5628 fi
5629 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5630   echo "$as_me:$LINENO: result: failed" >&5
5631 echo "${ECHO_T}failed" >&6
5632 else
5633   echo "$as_me:$LINENO: result: ok" >&5
5634 echo "${ECHO_T}ok" >&6
5635 fi
5636
5637 echo "$as_me:$LINENO: checking for objdir" >&5
5638 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5639 if test "${lt_cv_objdir+set}" = set; then
5640   echo $ECHO_N "(cached) $ECHO_C" >&6
5641 else
5642   rm -f .libs 2>/dev/null
5643 mkdir .libs 2>/dev/null
5644 if test -d .libs; then
5645   lt_cv_objdir=.libs
5646 else
5647   # MS-DOS does not allow filenames that begin with a dot.
5648   lt_cv_objdir=_libs
5649 fi
5650 rmdir .libs 2>/dev/null
5651 fi
5652 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5653 echo "${ECHO_T}$lt_cv_objdir" >&6
5654 objdir=$lt_cv_objdir
5655
5656
5657
5658
5659
5660 case $host_os in
5661 aix3*)
5662   # AIX sometimes has problems with the GCC collect2 program.  For some
5663   # reason, if we set the COLLECT_NAMES environment variable, the problems
5664   # vanish in a puff of smoke.
5665   if test "X${COLLECT_NAMES+set}" != Xset; then
5666     COLLECT_NAMES=
5667     export COLLECT_NAMES
5668   fi
5669   ;;
5670 esac
5671
5672 # Sed substitution that helps us do robust quoting.  It backslashifies
5673 # metacharacters that are still active within double-quoted strings.
5674 Xsed='sed -e s/^X//'
5675 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5676
5677 # Same as above, but do not quote variable references.
5678 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5679
5680 # Sed substitution to delay expansion of an escaped shell variable in a
5681 # double_quote_subst'ed string.
5682 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5683
5684 # Sed substitution to avoid accidental globbing in evaled expressions
5685 no_glob_subst='s/\*/\\\*/g'
5686
5687 # Constants:
5688 rm="rm -f"
5689
5690 # Global variables:
5691 default_ofile=libtool
5692 can_build_shared=yes
5693
5694 # All known linkers require a `.a' archive for static linking (except M$VC,
5695 # which needs '.lib').
5696 libext=a
5697 ltmain="$ac_aux_dir/ltmain.sh"
5698 ofile="$default_ofile"
5699 with_gnu_ld="$lt_cv_prog_gnu_ld"
5700
5701 if test -n "$ac_tool_prefix"; then
5702   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5703 set dummy ${ac_tool_prefix}ar; ac_word=$2
5704 echo "$as_me:$LINENO: checking for $ac_word" >&5
5705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5706 if test "${ac_cv_prog_AR+set}" = set; then
5707   echo $ECHO_N "(cached) $ECHO_C" >&6
5708 else
5709   if test -n "$AR"; then
5710   ac_cv_prog_AR="$AR" # Let the user override the test.
5711 else
5712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5713 for as_dir in $PATH
5714 do
5715   IFS=$as_save_IFS
5716   test -z "$as_dir" && as_dir=.
5717   for ac_exec_ext in '' $ac_executable_extensions; do
5718   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5719     ac_cv_prog_AR="${ac_tool_prefix}ar"
5720     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5721     break 2
5722   fi
5723 done
5724 done
5725
5726 fi
5727 fi
5728 AR=$ac_cv_prog_AR
5729 if test -n "$AR"; then
5730   echo "$as_me:$LINENO: result: $AR" >&5
5731 echo "${ECHO_T}$AR" >&6
5732 else
5733   echo "$as_me:$LINENO: result: no" >&5
5734 echo "${ECHO_T}no" >&6
5735 fi
5736
5737 fi
5738 if test -z "$ac_cv_prog_AR"; then
5739   ac_ct_AR=$AR
5740   # Extract the first word of "ar", so it can be a program name with args.
5741 set dummy ar; ac_word=$2
5742 echo "$as_me:$LINENO: checking for $ac_word" >&5
5743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5744 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5745   echo $ECHO_N "(cached) $ECHO_C" >&6
5746 else
5747   if test -n "$ac_ct_AR"; then
5748   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5749 else
5750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5751 for as_dir in $PATH
5752 do
5753   IFS=$as_save_IFS
5754   test -z "$as_dir" && as_dir=.
5755   for ac_exec_ext in '' $ac_executable_extensions; do
5756   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5757     ac_cv_prog_ac_ct_AR="ar"
5758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5759     break 2
5760   fi
5761 done
5762 done
5763
5764   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5765 fi
5766 fi
5767 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5768 if test -n "$ac_ct_AR"; then
5769   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5770 echo "${ECHO_T}$ac_ct_AR" >&6
5771 else
5772   echo "$as_me:$LINENO: result: no" >&5
5773 echo "${ECHO_T}no" >&6
5774 fi
5775
5776   AR=$ac_ct_AR
5777 else
5778   AR="$ac_cv_prog_AR"
5779 fi
5780
5781 if test -n "$ac_tool_prefix"; then
5782   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5783 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5784 echo "$as_me:$LINENO: checking for $ac_word" >&5
5785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5786 if test "${ac_cv_prog_RANLIB+set}" = set; then
5787   echo $ECHO_N "(cached) $ECHO_C" >&6
5788 else
5789   if test -n "$RANLIB"; then
5790   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5791 else
5792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5793 for as_dir in $PATH
5794 do
5795   IFS=$as_save_IFS
5796   test -z "$as_dir" && as_dir=.
5797   for ac_exec_ext in '' $ac_executable_extensions; do
5798   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5799     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5800     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5801     break 2
5802   fi
5803 done
5804 done
5805
5806 fi
5807 fi
5808 RANLIB=$ac_cv_prog_RANLIB
5809 if test -n "$RANLIB"; then
5810   echo "$as_me:$LINENO: result: $RANLIB" >&5
5811 echo "${ECHO_T}$RANLIB" >&6
5812 else
5813   echo "$as_me:$LINENO: result: no" >&5
5814 echo "${ECHO_T}no" >&6
5815 fi
5816
5817 fi
5818 if test -z "$ac_cv_prog_RANLIB"; then
5819   ac_ct_RANLIB=$RANLIB
5820   # Extract the first word of "ranlib", so it can be a program name with args.
5821 set dummy ranlib; ac_word=$2
5822 echo "$as_me:$LINENO: checking for $ac_word" >&5
5823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5824 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5825   echo $ECHO_N "(cached) $ECHO_C" >&6
5826 else
5827   if test -n "$ac_ct_RANLIB"; then
5828   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5829 else
5830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5831 for as_dir in $PATH
5832 do
5833   IFS=$as_save_IFS
5834   test -z "$as_dir" && as_dir=.
5835   for ac_exec_ext in '' $ac_executable_extensions; do
5836   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5837     ac_cv_prog_ac_ct_RANLIB="ranlib"
5838     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5839     break 2
5840   fi
5841 done
5842 done
5843
5844   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5845 fi
5846 fi
5847 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5848 if test -n "$ac_ct_RANLIB"; then
5849   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5850 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5851 else
5852   echo "$as_me:$LINENO: result: no" >&5
5853 echo "${ECHO_T}no" >&6
5854 fi
5855
5856   RANLIB=$ac_ct_RANLIB
5857 else
5858   RANLIB="$ac_cv_prog_RANLIB"
5859 fi
5860
5861 if test -n "$ac_tool_prefix"; then
5862   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5863 set dummy ${ac_tool_prefix}strip; ac_word=$2
5864 echo "$as_me:$LINENO: checking for $ac_word" >&5
5865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5866 if test "${ac_cv_prog_STRIP+set}" = set; then
5867   echo $ECHO_N "(cached) $ECHO_C" >&6
5868 else
5869   if test -n "$STRIP"; then
5870   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5871 else
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873 for as_dir in $PATH
5874 do
5875   IFS=$as_save_IFS
5876   test -z "$as_dir" && as_dir=.
5877   for ac_exec_ext in '' $ac_executable_extensions; do
5878   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5879     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5881     break 2
5882   fi
5883 done
5884 done
5885
5886 fi
5887 fi
5888 STRIP=$ac_cv_prog_STRIP
5889 if test -n "$STRIP"; then
5890   echo "$as_me:$LINENO: result: $STRIP" >&5
5891 echo "${ECHO_T}$STRIP" >&6
5892 else
5893   echo "$as_me:$LINENO: result: no" >&5
5894 echo "${ECHO_T}no" >&6
5895 fi
5896
5897 fi
5898 if test -z "$ac_cv_prog_STRIP"; then
5899   ac_ct_STRIP=$STRIP
5900   # Extract the first word of "strip", so it can be a program name with args.
5901 set dummy strip; ac_word=$2
5902 echo "$as_me:$LINENO: checking for $ac_word" >&5
5903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5904 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5905   echo $ECHO_N "(cached) $ECHO_C" >&6
5906 else
5907   if test -n "$ac_ct_STRIP"; then
5908   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5909 else
5910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911 for as_dir in $PATH
5912 do
5913   IFS=$as_save_IFS
5914   test -z "$as_dir" && as_dir=.
5915   for ac_exec_ext in '' $ac_executable_extensions; do
5916   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5917     ac_cv_prog_ac_ct_STRIP="strip"
5918     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5919     break 2
5920   fi
5921 done
5922 done
5923
5924   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5925 fi
5926 fi
5927 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5928 if test -n "$ac_ct_STRIP"; then
5929   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5930 echo "${ECHO_T}$ac_ct_STRIP" >&6
5931 else
5932   echo "$as_me:$LINENO: result: no" >&5
5933 echo "${ECHO_T}no" >&6
5934 fi
5935
5936   STRIP=$ac_ct_STRIP
5937 else
5938   STRIP="$ac_cv_prog_STRIP"
5939 fi
5940
5941
5942 old_CC="$CC"
5943 old_CFLAGS="$CFLAGS"
5944
5945 # Set sane defaults for various variables
5946 test -z "$AR" && AR=ar
5947 test -z "$AR_FLAGS" && AR_FLAGS=cru
5948 test -z "$AS" && AS=as
5949 test -z "$CC" && CC=cc
5950 test -z "$LTCC" && LTCC=$CC
5951 test -z "$DLLTOOL" && DLLTOOL=dlltool
5952 test -z "$LD" && LD=ld
5953 test -z "$LN_S" && LN_S="ln -s"
5954 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5955 test -z "$NM" && NM=nm
5956 test -z "$SED" && SED=sed
5957 test -z "$OBJDUMP" && OBJDUMP=objdump
5958 test -z "$RANLIB" && RANLIB=:
5959 test -z "$STRIP" && STRIP=:
5960 test -z "$ac_objext" && ac_objext=o
5961
5962 # Determine commands to create old-style static archives.
5963 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5964 old_postinstall_cmds='chmod 644 $oldlib'
5965 old_postuninstall_cmds=
5966
5967 if test -n "$RANLIB"; then
5968   case $host_os in
5969   openbsd*)
5970     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5971     ;;
5972   *)
5973     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5974     ;;
5975   esac
5976   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5977 fi
5978
5979 # Only perform the check for file, if the check method requires it
5980 case $deplibs_check_method in
5981 file_magic*)
5982   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5983     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5984 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5985 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5986   echo $ECHO_N "(cached) $ECHO_C" >&6
5987 else
5988   case $MAGIC_CMD in
5989 [\\/*] |  ?:[\\/]*)
5990   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5991   ;;
5992 *)
5993   lt_save_MAGIC_CMD="$MAGIC_CMD"
5994   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5995   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5996   for ac_dir in $ac_dummy; do
5997     IFS="$lt_save_ifs"
5998     test -z "$ac_dir" && ac_dir=.
5999     if test -f $ac_dir/${ac_tool_prefix}file; then
6000       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6001       if test -n "$file_magic_test_file"; then
6002         case $deplibs_check_method in
6003         "file_magic "*)
6004           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6005           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6006           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6007             $EGREP "$file_magic_regex" > /dev/null; then
6008             :
6009           else
6010             cat <<EOF 1>&2
6011
6012 *** Warning: the command libtool uses to detect shared libraries,
6013 *** $file_magic_cmd, produces output that libtool cannot recognize.
6014 *** The result is that libtool may fail to recognize shared libraries
6015 *** as such.  This will affect the creation of libtool libraries that
6016 *** depend on shared libraries, but programs linked with such libtool
6017 *** libraries will work regardless of this problem.  Nevertheless, you
6018 *** may want to report the problem to your system manager and/or to
6019 *** bug-libtool@gnu.org
6020
6021 EOF
6022           fi ;;
6023         esac
6024       fi
6025       break
6026     fi
6027   done
6028   IFS="$lt_save_ifs"
6029   MAGIC_CMD="$lt_save_MAGIC_CMD"
6030   ;;
6031 esac
6032 fi
6033
6034 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6035 if test -n "$MAGIC_CMD"; then
6036   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6037 echo "${ECHO_T}$MAGIC_CMD" >&6
6038 else
6039   echo "$as_me:$LINENO: result: no" >&5
6040 echo "${ECHO_T}no" >&6
6041 fi
6042
6043 if test -z "$lt_cv_path_MAGIC_CMD"; then
6044   if test -n "$ac_tool_prefix"; then
6045     echo "$as_me:$LINENO: checking for file" >&5
6046 echo $ECHO_N "checking for file... $ECHO_C" >&6
6047 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6048   echo $ECHO_N "(cached) $ECHO_C" >&6
6049 else
6050   case $MAGIC_CMD in
6051 [\\/*] |  ?:[\\/]*)
6052   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6053   ;;
6054 *)
6055   lt_save_MAGIC_CMD="$MAGIC_CMD"
6056   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6057   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6058   for ac_dir in $ac_dummy; do
6059     IFS="$lt_save_ifs"
6060     test -z "$ac_dir" && ac_dir=.
6061     if test -f $ac_dir/file; then
6062       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6063       if test -n "$file_magic_test_file"; then
6064         case $deplibs_check_method in
6065         "file_magic "*)
6066           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6067           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6068           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6069             $EGREP "$file_magic_regex" > /dev/null; then
6070             :
6071           else
6072             cat <<EOF 1>&2
6073
6074 *** Warning: the command libtool uses to detect shared libraries,
6075 *** $file_magic_cmd, produces output that libtool cannot recognize.
6076 *** The result is that libtool may fail to recognize shared libraries
6077 *** as such.  This will affect the creation of libtool libraries that
6078 *** depend on shared libraries, but programs linked with such libtool
6079 *** libraries will work regardless of this problem.  Nevertheless, you
6080 *** may want to report the problem to your system manager and/or to
6081 *** bug-libtool@gnu.org
6082
6083 EOF
6084           fi ;;
6085         esac
6086       fi
6087       break
6088     fi
6089   done
6090   IFS="$lt_save_ifs"
6091   MAGIC_CMD="$lt_save_MAGIC_CMD"
6092   ;;
6093 esac
6094 fi
6095
6096 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6097 if test -n "$MAGIC_CMD"; then
6098   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6099 echo "${ECHO_T}$MAGIC_CMD" >&6
6100 else
6101   echo "$as_me:$LINENO: result: no" >&5
6102 echo "${ECHO_T}no" >&6
6103 fi
6104
6105   else
6106     MAGIC_CMD=:
6107   fi
6108 fi
6109
6110   fi
6111   ;;
6112 esac
6113
6114 enable_dlopen=no
6115 enable_win32_dll=no
6116
6117 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6118 if test "${enable_libtool_lock+set}" = set; then
6119   enableval="$enable_libtool_lock"
6120
6121 fi;
6122 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6123
6124
6125 # Check whether --with-pic or --without-pic was given.
6126 if test "${with_pic+set}" = set; then
6127   withval="$with_pic"
6128   pic_mode="$withval"
6129 else
6130   pic_mode=default
6131 fi;
6132 test -z "$pic_mode" && pic_mode=default
6133
6134 # Use C for the default configuration in the libtool script
6135 tagname=
6136 lt_save_CC="$CC"
6137 ac_ext=c
6138 ac_cpp='$CPP $CPPFLAGS'
6139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6142
6143
6144 # Source file extension for C test sources.
6145 ac_ext=c
6146
6147 # Object file extension for compiled C test sources.
6148 objext=o
6149 objext=$objext
6150
6151 # Code to be used in simple compile tests
6152 lt_simple_compile_test_code="int some_variable = 0;\n"
6153
6154 # Code to be used in simple link tests
6155 lt_simple_link_test_code='int main(){return(0);}\n'
6156
6157
6158 # If no C compiler was specified, use CC.
6159 LTCC=${LTCC-"$CC"}
6160
6161 # Allow CC to be a program name with arguments.
6162 compiler=$CC
6163
6164
6165 #
6166 # Check for any special shared library compilation flags.
6167 #
6168 lt_prog_cc_shlib=
6169 if test "$GCC" = no; then
6170   case $host_os in
6171   sco3.2v5*)
6172     lt_prog_cc_shlib='-belf'
6173     ;;
6174   esac
6175 fi
6176 if test -n "$lt_prog_cc_shlib"; then
6177   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6178 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6179   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6180   else
6181     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6182 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6183     lt_cv_prog_cc_can_build_shared=no
6184   fi
6185 fi
6186
6187
6188 #
6189 # Check to make sure the static flag actually works.
6190 #
6191 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6192 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6193 if test "${lt_prog_compiler_static_works+set}" = set; then
6194   echo $ECHO_N "(cached) $ECHO_C" >&6
6195 else
6196   lt_prog_compiler_static_works=no
6197    save_LDFLAGS="$LDFLAGS"
6198    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6199    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6200    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6201      # The compiler can only warn and ignore the option if not recognized
6202      # So say no if there are warnings
6203      if test -s conftest.err; then
6204        # Append any errors to the config.log.
6205        cat conftest.err 1>&5
6206      else
6207        lt_prog_compiler_static_works=yes
6208      fi
6209    fi
6210    $rm conftest*
6211    LDFLAGS="$save_LDFLAGS"
6212
6213 fi
6214 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6215 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6216
6217 if test x"$lt_prog_compiler_static_works" = xyes; then
6218     :
6219 else
6220     lt_prog_compiler_static=
6221 fi
6222
6223
6224
6225
6226 lt_prog_compiler_no_builtin_flag=
6227
6228 if test "$GCC" = yes; then
6229   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6230
6231
6232 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6233 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6234 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6235   echo $ECHO_N "(cached) $ECHO_C" >&6
6236 else
6237   lt_cv_prog_compiler_rtti_exceptions=no
6238   ac_outfile=conftest.$ac_objext
6239    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6240    lt_compiler_flag="-fno-rtti -fno-exceptions"
6241    # Insert the option either (1) after the last *FLAGS variable, or
6242    # (2) before a word containing "conftest.", or (3) at the end.
6243    # Note that $ac_compile itself does not contain backslashes and begins
6244    # with a dollar sign (not a hyphen), so the echo should work correctly.
6245    # The option is referenced via a variable to avoid confusing sed.
6246    lt_compile=`echo "$ac_compile" | $SED \
6247    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6248    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6249    -e 's:$: $lt_compiler_flag:'`
6250    (eval echo "\"\$as_me:6250: $lt_compile\"" >&5)
6251    (eval "$lt_compile" 2>conftest.err)
6252    ac_status=$?
6253    cat conftest.err >&5
6254    echo "$as_me:6254: \$? = $ac_status" >&5
6255    if (exit $ac_status) && test -s "$ac_outfile"; then
6256      # The compiler can only warn and ignore the option if not recognized
6257      # So say no if there are warnings
6258      if test ! -s conftest.err; then
6259        lt_cv_prog_compiler_rtti_exceptions=yes
6260      fi
6261    fi
6262    $rm conftest*
6263
6264 fi
6265 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6266 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6267
6268 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6269     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6270 else
6271     :
6272 fi
6273
6274 fi
6275
6276 lt_prog_compiler_wl=
6277 lt_prog_compiler_pic=
6278 lt_prog_compiler_static=
6279
6280 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6281 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6282
6283   if test "$GCC" = yes; then
6284     lt_prog_compiler_wl='-Wl,'
6285     lt_prog_compiler_static='-static'
6286
6287     case $host_os in
6288       aix*)
6289       # All AIX code is PIC.
6290       if test "$host_cpu" = ia64; then
6291         # AIX 5 now supports IA64 processor
6292         lt_prog_compiler_static='-Bstatic'
6293       fi
6294       ;;
6295
6296     amigaos*)
6297       # FIXME: we need at least 68020 code to build shared libraries, but
6298       # adding the `-m68020' flag to GCC prevents building anything better,
6299       # like `-m68040'.
6300       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6301       ;;
6302
6303     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6304       # PIC is the default for these OSes.
6305       ;;
6306
6307     mingw* | pw32* | os2*)
6308       # This hack is so that the source file can tell whether it is being
6309       # built for inclusion in a dll (and should export symbols for example).
6310       lt_prog_compiler_pic='-DDLL_EXPORT'
6311       ;;
6312
6313     darwin* | rhapsody*)
6314       # PIC is the default on this platform
6315       # Common symbols not allowed in MH_DYLIB files
6316       lt_prog_compiler_pic='-fno-common'
6317       ;;
6318
6319     msdosdjgpp*)
6320       # Just because we use GCC doesn't mean we suddenly get shared libraries
6321       # on systems that don't support them.
6322       lt_prog_compiler_can_build_shared=no
6323       enable_shared=no
6324       ;;
6325
6326     sysv4*MP*)
6327       if test -d /usr/nec; then
6328         lt_prog_compiler_pic=-Kconform_pic
6329       fi
6330       ;;
6331
6332     hpux*)
6333       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6334       # not for PA HP-UX.
6335       case "$host_cpu" in
6336       hppa*64*|ia64*)
6337         # +Z the default
6338         ;;
6339       *)
6340         lt_prog_compiler_pic='-fPIC'
6341         ;;
6342       esac
6343       ;;
6344
6345     *)
6346       lt_prog_compiler_pic='-fPIC'
6347       ;;
6348     esac
6349   else
6350     # PORTME Check for flag to pass linker flags through the system compiler.
6351     case $host_os in
6352     aix*)
6353       lt_prog_compiler_wl='-Wl,'
6354       if test "$host_cpu" = ia64; then
6355         # AIX 5 now supports IA64 processor
6356         lt_prog_compiler_static='-Bstatic'
6357       else
6358         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6359       fi
6360       ;;
6361
6362     mingw* | pw32* | os2*)
6363       # This hack is so that the source file can tell whether it is being
6364       # built for inclusion in a dll (and should export symbols for example).
6365       lt_prog_compiler_pic='-DDLL_EXPORT'
6366       ;;
6367
6368     hpux9* | hpux10* | hpux11*)
6369       lt_prog_compiler_wl='-Wl,'
6370       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6371       # not for PA HP-UX.
6372       case "$host_cpu" in
6373       hppa*64*|ia64*)
6374         # +Z the default
6375         ;;
6376       *)
6377         lt_prog_compiler_pic='+Z'
6378         ;;
6379       esac
6380       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6381       lt_prog_compiler_static='${wl}-a ${wl}archive'
6382       ;;
6383
6384     irix5* | irix6* | nonstopux*)
6385       lt_prog_compiler_wl='-Wl,'
6386       # PIC (with -KPIC) is the default.
6387       lt_prog_compiler_static='-non_shared'
6388       ;;
6389
6390     newsos6)
6391       lt_prog_compiler_pic='-KPIC'
6392       lt_prog_compiler_static='-Bstatic'
6393       ;;
6394
6395     linux*)
6396       case $CC in
6397       icc* | ecc*)
6398         lt_prog_compiler_wl='-Wl,'
6399         lt_prog_compiler_pic='-KPIC'
6400         lt_prog_compiler_static='-static'
6401         ;;
6402       ccc*)
6403         lt_prog_compiler_wl='-Wl,'
6404         # All Alpha code is PIC.
6405         lt_prog_compiler_static='-non_shared'
6406         ;;
6407       esac
6408       ;;
6409
6410     osf3* | osf4* | osf5*)
6411       lt_prog_compiler_wl='-Wl,'
6412       # All OSF/1 code is PIC.
6413       lt_prog_compiler_static='-non_shared'
6414       ;;
6415
6416     sco3.2v5*)
6417       lt_prog_compiler_pic='-Kpic'
6418       lt_prog_compiler_static='-dn'
6419       ;;
6420
6421     solaris*)
6422       lt_prog_compiler_wl='-Wl,'
6423       lt_prog_compiler_pic='-KPIC'
6424       lt_prog_compiler_static='-Bstatic'
6425       ;;
6426
6427     sunos4*)
6428       lt_prog_compiler_wl='-Qoption ld '
6429       lt_prog_compiler_pic='-PIC'
6430       lt_prog_compiler_static='-Bstatic'
6431       ;;
6432
6433     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6434       lt_prog_compiler_wl='-Wl,'
6435       lt_prog_compiler_pic='-KPIC'
6436       lt_prog_compiler_static='-Bstatic'
6437       ;;
6438
6439     sysv4*MP*)
6440       if test -d /usr/nec ;then
6441         lt_prog_compiler_pic='-Kconform_pic'
6442         lt_prog_compiler_static='-Bstatic'
6443       fi
6444       ;;
6445
6446     uts4*)
6447       lt_prog_compiler_pic='-pic'
6448       lt_prog_compiler_static='-Bstatic'
6449       ;;
6450
6451     *)
6452       lt_prog_compiler_can_build_shared=no
6453       ;;
6454     esac
6455   fi
6456
6457 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6458 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6459
6460 #
6461 # Check to make sure the PIC flag actually works.
6462 #
6463 if test -n "$lt_prog_compiler_pic"; then
6464
6465 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6466 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6467 if test "${lt_prog_compiler_pic_works+set}" = set; then
6468   echo $ECHO_N "(cached) $ECHO_C" >&6
6469 else
6470   lt_prog_compiler_pic_works=no
6471   ac_outfile=conftest.$ac_objext
6472    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6473    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6474    # Insert the option either (1) after the last *FLAGS variable, or
6475    # (2) before a word containing "conftest.", or (3) at the end.
6476    # Note that $ac_compile itself does not contain backslashes and begins
6477    # with a dollar sign (not a hyphen), so the echo should work correctly.
6478    # The option is referenced via a variable to avoid confusing sed.
6479    lt_compile=`echo "$ac_compile" | $SED \
6480    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6481    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6482    -e 's:$: $lt_compiler_flag:'`
6483    (eval echo "\"\$as_me:6483: $lt_compile\"" >&5)
6484    (eval "$lt_compile" 2>conftest.err)
6485    ac_status=$?
6486    cat conftest.err >&5
6487    echo "$as_me:6487: \$? = $ac_status" >&5
6488    if (exit $ac_status) && test -s "$ac_outfile"; then
6489      # The compiler can only warn and ignore the option if not recognized
6490      # So say no if there are warnings
6491      if test ! -s conftest.err; then
6492        lt_prog_compiler_pic_works=yes
6493      fi
6494    fi
6495    $rm conftest*
6496
6497 fi
6498 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6499 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6500
6501 if test x"$lt_prog_compiler_pic_works" = xyes; then
6502     case $lt_prog_compiler_pic in
6503      "" | " "*) ;;
6504      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6505      esac
6506 else
6507     lt_prog_compiler_pic=
6508      lt_prog_compiler_can_build_shared=no
6509 fi
6510
6511 fi
6512 case "$host_os" in
6513   # For platforms which do not support PIC, -DPIC is meaningless:
6514   *djgpp*)
6515     lt_prog_compiler_pic=
6516     ;;
6517   *)
6518     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6519     ;;
6520 esac
6521
6522 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6523 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6524 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6525   echo $ECHO_N "(cached) $ECHO_C" >&6
6526 else
6527   lt_cv_prog_compiler_c_o=no
6528    $rm -r conftest 2>/dev/null
6529    mkdir conftest
6530    cd conftest
6531    mkdir out
6532    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6533
6534    lt_compiler_flag="-o out/conftest2.$ac_objext"
6535    # Insert the option either (1) after the last *FLAGS variable, or
6536    # (2) before a word containing "conftest.", or (3) at the end.
6537    # Note that $ac_compile itself does not contain backslashes and begins
6538    # with a dollar sign (not a hyphen), so the echo should work correctly.
6539    lt_compile=`echo "$ac_compile" | $SED \
6540    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6541    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6542    -e 's:$: $lt_compiler_flag:'`
6543    (eval echo "\"\$as_me:6543: $lt_compile\"" >&5)
6544    (eval "$lt_compile" 2>out/conftest.err)
6545    ac_status=$?
6546    cat out/conftest.err >&5
6547    echo "$as_me:6547: \$? = $ac_status" >&5
6548    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6549    then
6550      # The compiler can only warn and ignore the option if not recognized
6551      # So say no if there are warnings
6552      if test ! -s out/conftest.err; then
6553        lt_cv_prog_compiler_c_o=yes
6554      fi
6555    fi
6556    chmod u+w .
6557    $rm conftest*
6558    # SGI C++ compiler will create directory out/ii_files/ for
6559    # template instantiation
6560    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6561    $rm out/* && rmdir out
6562    cd ..
6563    rmdir conftest
6564    $rm conftest*
6565
6566 fi
6567 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6568 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6569
6570
6571 hard_links="nottested"
6572 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6573   # do not overwrite the value of need_locks provided by the user
6574   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6575 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6576   hard_links=yes
6577   $rm conftest*
6578   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6579   touch conftest.a
6580   ln conftest.a conftest.b 2>&5 || hard_links=no
6581   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6582   echo "$as_me:$LINENO: result: $hard_links" >&5
6583 echo "${ECHO_T}$hard_links" >&6
6584   if test "$hard_links" = no; then
6585     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6586 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6587     need_locks=warn
6588   fi
6589 else
6590   need_locks=no
6591 fi
6592
6593 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6594 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6595
6596   runpath_var=
6597   allow_undefined_flag=
6598   enable_shared_with_static_runtimes=no
6599   archive_cmds=
6600   archive_expsym_cmds=
6601   old_archive_From_new_cmds=
6602   old_archive_from_expsyms_cmds=
6603   export_dynamic_flag_spec=
6604   whole_archive_flag_spec=
6605   thread_safe_flag_spec=
6606   hardcode_libdir_flag_spec=
6607   hardcode_libdir_flag_spec_ld=
6608   hardcode_libdir_separator=
6609   hardcode_direct=no
6610   hardcode_minus_L=no
6611   hardcode_shlibpath_var=unsupported
6612   link_all_deplibs=unknown
6613   hardcode_automatic=no
6614   module_cmds=
6615   module_expsym_cmds=
6616   always_export_symbols=no
6617   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6618   # include_expsyms should be a list of space-separated symbols to be *always*
6619   # included in the symbol list
6620   include_expsyms=
6621   # exclude_expsyms can be an extended regexp of symbols to exclude
6622   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6623   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6624   # as well as any symbol that contains `d'.
6625   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6626   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6627   # platforms (ab)use it in PIC code, but their linkers get confused if
6628   # the symbol is explicitly referenced.  Since portable code cannot
6629   # rely on this symbol name, it's probably fine to never include it in
6630   # preloaded symbol tables.
6631   extract_expsyms_cmds=
6632
6633   case $host_os in
6634   cygwin* | mingw* | pw32*)
6635     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6636     # When not using gcc, we currently assume that we are using
6637     # Microsoft Visual C++.
6638     if test "$GCC" != yes; then
6639       with_gnu_ld=no
6640     fi
6641     ;;
6642   openbsd*)
6643     with_gnu_ld=no
6644     ;;
6645   esac
6646
6647   ld_shlibs=yes
6648   if test "$with_gnu_ld" = yes; then
6649     # If archive_cmds runs LD, not CC, wlarc should be empty
6650     wlarc='${wl}'
6651
6652     # See if GNU ld supports shared libraries.
6653     case $host_os in
6654     aix3* | aix4* | aix5*)
6655       # On AIX/PPC, the GNU linker is very broken
6656       if test "$host_cpu" != ia64; then
6657         ld_shlibs=no
6658         cat <<EOF 1>&2
6659
6660 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6661 *** to be unable to reliably create shared libraries on AIX.
6662 *** Therefore, libtool is disabling shared libraries support.  If you
6663 *** really care for shared libraries, you may want to modify your PATH
6664 *** so that a non-GNU linker is found, and then restart.
6665
6666 EOF
6667       fi
6668       ;;
6669
6670     amigaos*)
6671       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)'
6672       hardcode_libdir_flag_spec='-L$libdir'
6673       hardcode_minus_L=yes
6674
6675       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6676       # that the semantics of dynamic libraries on AmigaOS, at least up
6677       # to version 4, is to share data among multiple programs linked
6678       # with the same dynamic library.  Since this doesn't match the
6679       # behavior of shared libraries on other platforms, we can't use
6680       # them.
6681       ld_shlibs=no
6682       ;;
6683
6684     beos*)
6685       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6686         allow_undefined_flag=unsupported
6687         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6688         # support --undefined.  This deserves some investigation.  FIXME
6689         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6690       else
6691         ld_shlibs=no
6692       fi
6693       ;;
6694
6695     cygwin* | mingw* | pw32*)
6696       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6697       # as there is no search path for DLLs.
6698       hardcode_libdir_flag_spec='-L$libdir'
6699       allow_undefined_flag=unsupported
6700       always_export_symbols=no
6701       enable_shared_with_static_runtimes=yes
6702       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6703
6704       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6705         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6706         # If the export-symbols file already is a .def file (1st line
6707         # is EXPORTS), use it as is; otherwise, prepend...
6708         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6709           cp $export_symbols $output_objdir/$soname.def;
6710         else
6711           echo EXPORTS > $output_objdir/$soname.def;
6712           cat $export_symbols >> $output_objdir/$soname.def;
6713         fi~
6714         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6715       else
6716         ld_shlibs=no
6717       fi
6718       ;;
6719
6720     netbsd* | knetbsd*-gnu)
6721       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6722         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6723         wlarc=
6724       else
6725         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6726         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6727       fi
6728       ;;
6729
6730     solaris* | sysv5*)
6731       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6732         ld_shlibs=no
6733         cat <<EOF 1>&2
6734
6735 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6736 *** create shared libraries on Solaris systems.  Therefore, libtool
6737 *** is disabling shared libraries support.  We urge you to upgrade GNU
6738 *** binutils to release 2.9.1 or newer.  Another option is to modify
6739 *** your PATH or compiler configuration so that the native linker is
6740 *** used, and then restart.
6741
6742 EOF
6743       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6744         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6745         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6746       else
6747         ld_shlibs=no
6748       fi
6749       ;;
6750
6751     sunos4*)
6752       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6753       wlarc=
6754       hardcode_direct=yes
6755       hardcode_shlibpath_var=no
6756       ;;
6757
6758   linux*)
6759     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6760         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6761         archive_cmds="$tmp_archive_cmds"
6762       supports_anon_versioning=no
6763       case `$LD -v 2>/dev/null` in
6764         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6765         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6766         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6767         *\ 2.11.*) ;; # other 2.11 versions
6768         *) supports_anon_versioning=yes ;;
6769       esac
6770       if test $supports_anon_versioning = yes; then
6771         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6772 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6773 $echo "local: *; };" >> $output_objdir/$libname.ver~
6774         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6775       else
6776         archive_expsym_cmds="$tmp_archive_cmds"
6777       fi
6778       link_all_deplibs=no
6779     else
6780       ld_shlibs=no
6781     fi
6782     ;;
6783
6784     *)
6785       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6786         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6787         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6788       else
6789         ld_shlibs=no
6790       fi
6791       ;;
6792     esac
6793
6794     if test "$ld_shlibs" = yes; then
6795       runpath_var=LD_RUN_PATH
6796       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6797       export_dynamic_flag_spec='${wl}--export-dynamic'
6798       # ancient GNU ld didn't support --whole-archive et. al.
6799       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6800         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6801       else
6802         whole_archive_flag_spec=
6803       fi
6804     fi
6805   else
6806     # PORTME fill in a description of your system's linker (not GNU ld)
6807     case $host_os in
6808     aix3*)
6809       allow_undefined_flag=unsupported
6810       always_export_symbols=yes
6811       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'
6812       # Note: this linker hardcodes the directories in LIBPATH if there
6813       # are no directories specified by -L.
6814       hardcode_minus_L=yes
6815       if test "$GCC" = yes && test -z "$link_static_flag"; then
6816         # Neither direct hardcoding nor static linking is supported with a
6817         # broken collect2.
6818         hardcode_direct=unsupported
6819       fi
6820       ;;
6821
6822     aix4* | aix5*)
6823       if test "$host_cpu" = ia64; then
6824         # On IA64, the linker does run time linking by default, so we don't
6825         # have to do anything special.
6826         aix_use_runtimelinking=no
6827         exp_sym_flag='-Bexport'
6828         no_entry_flag=""
6829       else
6830         # If we're using GNU nm, then we don't want the "-C" option.
6831         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6832         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6833           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'
6834         else
6835           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'
6836         fi
6837         aix_use_runtimelinking=no
6838
6839         # Test if we are trying to use run time linking or normal
6840         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6841         # need to do runtime linking.
6842         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6843           for ld_flag in $LDFLAGS; do
6844           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6845             aix_use_runtimelinking=yes
6846             break
6847           fi
6848           done
6849         esac
6850
6851         exp_sym_flag='-bexport'
6852         no_entry_flag='-bnoentry'
6853       fi
6854
6855       # When large executables or shared objects are built, AIX ld can
6856       # have problems creating the table of contents.  If linking a library
6857       # or program results in "error TOC overflow" add -mminimal-toc to
6858       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6859       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6860
6861       archive_cmds=''
6862       hardcode_direct=yes
6863       hardcode_libdir_separator=':'
6864       link_all_deplibs=yes
6865
6866       if test "$GCC" = yes; then
6867         case $host_os in aix4.012|aix4.012.*)
6868         # We only want to do this on AIX 4.2 and lower, the check
6869         # below for broken collect2 doesn't work under 4.3+
6870           collect2name=`${CC} -print-prog-name=collect2`
6871           if test -f "$collect2name" && \
6872            strings "$collect2name" | grep resolve_lib_name >/dev/null
6873           then
6874           # We have reworked collect2
6875           hardcode_direct=yes
6876           else
6877           # We have old collect2
6878           hardcode_direct=unsupported
6879           # It fails to find uninstalled libraries when the uninstalled
6880           # path is not listed in the libpath.  Setting hardcode_minus_L
6881           # to unsupported forces relinking
6882           hardcode_minus_L=yes
6883           hardcode_libdir_flag_spec='-L$libdir'
6884           hardcode_libdir_separator=
6885           fi
6886         esac
6887         shared_flag='-shared'
6888       else
6889         # not using gcc
6890         if test "$host_cpu" = ia64; then
6891         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6892         # chokes on -Wl,-G. The following line is correct:
6893           shared_flag='-G'
6894         else
6895         if test "$aix_use_runtimelinking" = yes; then
6896             shared_flag='${wl}-G'
6897           else
6898             shared_flag='${wl}-bM:SRE'
6899         fi
6900         fi
6901       fi
6902
6903       # It seems that -bexpall does not export symbols beginning with
6904       # underscore (_), so it is better to generate a list of symbols to export.
6905       always_export_symbols=yes
6906       if test "$aix_use_runtimelinking" = yes; then
6907         # Warning - without using the other runtime loading flags (-brtl),
6908         # -berok will link without error, but may produce a broken library.
6909         allow_undefined_flag='-berok'
6910        # Determine the default libpath from the value encoded in an empty executable.
6911        cat >conftest.$ac_ext <<_ACEOF
6912 /* confdefs.h.  */
6913 _ACEOF
6914 cat confdefs.h >>conftest.$ac_ext
6915 cat >>conftest.$ac_ext <<_ACEOF
6916 /* end confdefs.h.  */
6917
6918 int
6919 main ()
6920 {
6921
6922   ;
6923   return 0;
6924 }
6925 _ACEOF
6926 rm -f conftest.$ac_objext conftest$ac_exeext
6927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6928   (eval $ac_link) 2>conftest.er1
6929   ac_status=$?
6930   grep -v '^ *+' conftest.er1 >conftest.err
6931   rm -f conftest.er1
6932   cat conftest.err >&5
6933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934   (exit $ac_status); } &&
6935          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6937   (eval $ac_try) 2>&5
6938   ac_status=$?
6939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940   (exit $ac_status); }; } &&
6941          { ac_try='test -s conftest$ac_exeext'
6942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6943   (eval $ac_try) 2>&5
6944   ac_status=$?
6945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946   (exit $ac_status); }; }; then
6947
6948 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6949 }'`
6950 # Check for a 64-bit object if we didn't find anything.
6951 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; }
6952 }'`; fi
6953 else
6954   echo "$as_me: failed program was:" >&5
6955 sed 's/^/| /' conftest.$ac_ext >&5
6956
6957 fi
6958 rm -f conftest.err conftest.$ac_objext \
6959       conftest$ac_exeext conftest.$ac_ext
6960 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6961
6962        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6963         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"
6964        else
6965         if test "$host_cpu" = ia64; then
6966           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6967           allow_undefined_flag="-z nodefs"
6968           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"
6969         else
6970          # Determine the default libpath from the value encoded in an empty executable.
6971          cat >conftest.$ac_ext <<_ACEOF
6972 /* confdefs.h.  */
6973 _ACEOF
6974 cat confdefs.h >>conftest.$ac_ext
6975 cat >>conftest.$ac_ext <<_ACEOF
6976 /* end confdefs.h.  */
6977
6978 int
6979 main ()
6980 {
6981
6982   ;
6983   return 0;
6984 }
6985 _ACEOF
6986 rm -f conftest.$ac_objext conftest$ac_exeext
6987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6988   (eval $ac_link) 2>conftest.er1
6989   ac_status=$?
6990   grep -v '^ *+' conftest.er1 >conftest.err
6991   rm -f conftest.er1
6992   cat conftest.err >&5
6993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994   (exit $ac_status); } &&
6995          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6997   (eval $ac_try) 2>&5
6998   ac_status=$?
6999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000   (exit $ac_status); }; } &&
7001          { ac_try='test -s conftest$ac_exeext'
7002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7003   (eval $ac_try) 2>&5
7004   ac_status=$?
7005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006   (exit $ac_status); }; }; then
7007
7008 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7009 }'`
7010 # Check for a 64-bit object if we didn't find anything.
7011 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; }
7012 }'`; fi
7013 else
7014   echo "$as_me: failed program was:" >&5
7015 sed 's/^/| /' conftest.$ac_ext >&5
7016
7017 fi
7018 rm -f conftest.err conftest.$ac_objext \
7019       conftest$ac_exeext conftest.$ac_ext
7020 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7021
7022          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7023           # Warning - without using the other run time loading flags,
7024           # -berok will link without error, but may produce a broken library.
7025           no_undefined_flag=' ${wl}-bernotok'
7026           allow_undefined_flag=' ${wl}-berok'
7027           # -bexpall does not export symbols beginning with underscore (_)
7028           always_export_symbols=yes
7029           # Exported symbols can be pulled into shared objects from archives
7030           whole_archive_flag_spec=' '
7031           archive_cmds_need_lc=yes
7032           # This is similar to how AIX traditionally builds it's shared libraries.
7033           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'
7034         fi
7035       fi
7036       ;;
7037
7038     amigaos*)
7039       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)'
7040       hardcode_libdir_flag_spec='-L$libdir'
7041       hardcode_minus_L=yes
7042       # see comment about different semantics on the GNU ld section
7043       ld_shlibs=no
7044       ;;
7045
7046     bsdi4*)
7047       export_dynamic_flag_spec=-rdynamic
7048       ;;
7049
7050     cygwin* | mingw* | pw32*)
7051       # When not using gcc, we currently assume that we are using
7052       # Microsoft Visual C++.
7053       # hardcode_libdir_flag_spec is actually meaningless, as there is
7054       # no search path for DLLs.
7055       hardcode_libdir_flag_spec=' '
7056       allow_undefined_flag=unsupported
7057       # Tell ltmain to make .lib files, not .a files.
7058       libext=lib
7059       # Tell ltmain to make .dll files, not .so files.
7060       shrext_cmds=".dll"
7061       # FIXME: Setting linknames here is a bad hack.
7062       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7063       # The linker will automatically build a .lib file if we build a DLL.
7064       old_archive_From_new_cmds='true'
7065       # FIXME: Should let the user specify the lib program.
7066       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7067       fix_srcfile_path='`cygpath -w "$srcfile"`'
7068       enable_shared_with_static_runtimes=yes
7069       ;;
7070
7071     darwin* | rhapsody*)
7072     if test "$GXX" = yes ; then
7073       archive_cmds_need_lc=no
7074       case "$host_os" in
7075       rhapsody* | darwin1.[012])
7076         allow_undefined_flag='-undefined suppress'
7077         ;;
7078       *) # Darwin 1.3 on
7079       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7080         allow_undefined_flag='-flat_namespace -undefined suppress'
7081       else
7082         case ${MACOSX_DEPLOYMENT_TARGET} in
7083           10.[012])
7084             allow_undefined_flag='-flat_namespace -undefined suppress'
7085             ;;
7086           10.*)
7087             allow_undefined_flag='-undefined dynamic_lookup'
7088             ;;
7089         esac
7090       fi
7091         ;;
7092       esac
7093         lt_int_apple_cc_single_mod=no
7094         output_verbose_link_cmd='echo'
7095         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7096           lt_int_apple_cc_single_mod=yes
7097         fi
7098         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7099           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7100         else
7101         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'
7102       fi
7103       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7104       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7105         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7106           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}'
7107         else
7108           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}'
7109         fi
7110           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}'
7111       hardcode_direct=no
7112       hardcode_automatic=yes
7113       hardcode_shlibpath_var=unsupported
7114       whole_archive_flag_spec='-all_load $convenience'
7115       link_all_deplibs=yes
7116     else
7117       ld_shlibs=no
7118     fi
7119       ;;
7120
7121     dgux*)
7122       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7123       hardcode_libdir_flag_spec='-L$libdir'
7124       hardcode_shlibpath_var=no
7125       ;;
7126
7127     freebsd1*)
7128       ld_shlibs=no
7129       ;;
7130
7131     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7132     # support.  Future versions do this automatically, but an explicit c++rt0.o
7133     # does not break anything, and helps significantly (at the cost of a little
7134     # extra space).
7135     freebsd2.2*)
7136       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7137       hardcode_libdir_flag_spec='-R$libdir'
7138       hardcode_direct=yes
7139       hardcode_shlibpath_var=no
7140       ;;
7141
7142     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7143     freebsd2*)
7144       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7145       hardcode_direct=yes
7146       hardcode_minus_L=yes
7147       hardcode_shlibpath_var=no
7148       ;;
7149
7150     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7151     freebsd* | kfreebsd*-gnu)
7152       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7153       hardcode_libdir_flag_spec='-R$libdir'
7154       hardcode_direct=yes
7155       hardcode_shlibpath_var=no
7156       ;;
7157
7158     hpux9*)
7159       if test "$GCC" = yes; then
7160         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'
7161       else
7162         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'
7163       fi
7164       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7165       hardcode_libdir_separator=:
7166       hardcode_direct=yes
7167
7168       # hardcode_minus_L: Not really in the search PATH,
7169       # but as the default location of the library.
7170       hardcode_minus_L=yes
7171       export_dynamic_flag_spec='${wl}-E'
7172       ;;
7173
7174     hpux10* | hpux11*)
7175       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7176         case "$host_cpu" in
7177         hppa*64*|ia64*)
7178           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7179           ;;
7180         *)
7181           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7182           ;;
7183         esac
7184       else
7185         case "$host_cpu" in
7186         hppa*64*|ia64*)
7187           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7188           ;;
7189         *)
7190           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7191           ;;
7192         esac
7193       fi
7194       if test "$with_gnu_ld" = no; then
7195         case "$host_cpu" in
7196         hppa*64*)
7197           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7198           hardcode_libdir_flag_spec_ld='+b $libdir'
7199           hardcode_libdir_separator=:
7200           hardcode_direct=no
7201           hardcode_shlibpath_var=no
7202           ;;
7203         ia64*)
7204           hardcode_libdir_flag_spec='-L$libdir'
7205           hardcode_direct=no
7206           hardcode_shlibpath_var=no
7207
7208           # hardcode_minus_L: Not really in the search PATH,
7209           # but as the default location of the library.
7210           hardcode_minus_L=yes
7211           ;;
7212         *)
7213           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7214           hardcode_libdir_separator=:
7215           hardcode_direct=yes
7216           export_dynamic_flag_spec='${wl}-E'
7217
7218           # hardcode_minus_L: Not really in the search PATH,
7219           # but as the default location of the library.
7220           hardcode_minus_L=yes
7221           ;;
7222         esac
7223       fi
7224       ;;
7225
7226     irix5* | irix6* | nonstopux*)
7227       if test "$GCC" = yes; then
7228         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'
7229       else
7230         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'
7231         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7232       fi
7233       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7234       hardcode_libdir_separator=:
7235       link_all_deplibs=yes
7236       ;;
7237
7238     netbsd* | knetbsd*-gnu)
7239       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7240         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7241       else
7242         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7243       fi
7244       hardcode_libdir_flag_spec='-R$libdir'
7245       hardcode_direct=yes
7246       hardcode_shlibpath_var=no
7247       ;;
7248
7249     newsos6)
7250       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7251       hardcode_direct=yes
7252       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7253       hardcode_libdir_separator=:
7254       hardcode_shlibpath_var=no
7255       ;;
7256
7257     openbsd*)
7258       hardcode_direct=yes
7259       hardcode_shlibpath_var=no
7260       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7261         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7262         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7263         export_dynamic_flag_spec='${wl}-E'
7264       else
7265        case $host_os in
7266          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7267            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7268            hardcode_libdir_flag_spec='-R$libdir'
7269            ;;
7270          *)
7271            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7272            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7273            ;;
7274        esac
7275       fi
7276       ;;
7277
7278     os2*)
7279       hardcode_libdir_flag_spec='-L$libdir'
7280       hardcode_minus_L=yes
7281       allow_undefined_flag=unsupported
7282       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'
7283       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7284       ;;
7285
7286     osf3*)
7287       if test "$GCC" = yes; then
7288         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7289         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'
7290       else
7291         allow_undefined_flag=' -expect_unresolved \*'
7292         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'
7293       fi
7294       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7295       hardcode_libdir_separator=:
7296       ;;
7297
7298     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7299       if test "$GCC" = yes; then
7300         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7301         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'
7302         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7303       else
7304         allow_undefined_flag=' -expect_unresolved \*'
7305         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'
7306         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7307         $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'
7308
7309         # Both c and cxx compiler support -rpath directly
7310         hardcode_libdir_flag_spec='-rpath $libdir'
7311       fi
7312       hardcode_libdir_separator=:
7313       ;;
7314
7315     sco3.2v5*)
7316       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7317       hardcode_shlibpath_var=no
7318       export_dynamic_flag_spec='${wl}-Bexport'
7319       runpath_var=LD_RUN_PATH
7320       hardcode_runpath_var=yes
7321       ;;
7322
7323     solaris*)
7324       no_undefined_flag=' -z text'
7325       if test "$GCC" = yes; then
7326         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7327         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7328           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7329       else
7330         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7331         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7332         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7333       fi
7334       hardcode_libdir_flag_spec='-R$libdir'
7335       hardcode_shlibpath_var=no
7336       case $host_os in
7337       solaris2.[0-5] | solaris2.[0-5].*) ;;
7338       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7339         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7340       esac
7341       link_all_deplibs=yes
7342       ;;
7343
7344     sunos4*)
7345       if test "x$host_vendor" = xsequent; then
7346         # Use $CC to link under sequent, because it throws in some extra .o
7347         # files that make .init and .fini sections work.
7348         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7349       else
7350         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7351       fi
7352       hardcode_libdir_flag_spec='-L$libdir'
7353       hardcode_direct=yes
7354       hardcode_minus_L=yes
7355       hardcode_shlibpath_var=no
7356       ;;
7357
7358     sysv4)
7359       case $host_vendor in
7360         sni)
7361           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7362           hardcode_direct=yes # is this really true???
7363         ;;
7364         siemens)
7365           ## LD is ld it makes a PLAMLIB
7366           ## CC just makes a GrossModule.
7367           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7368           reload_cmds='$CC -r -o $output$reload_objs'
7369           hardcode_direct=no
7370         ;;
7371         motorola)
7372           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7373           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7374         ;;
7375       esac
7376       runpath_var='LD_RUN_PATH'
7377       hardcode_shlibpath_var=no
7378       ;;
7379
7380     sysv4.3*)
7381       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7382       hardcode_shlibpath_var=no
7383       export_dynamic_flag_spec='-Bexport'
7384       ;;
7385
7386     sysv4*MP*)
7387       if test -d /usr/nec; then
7388         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7389         hardcode_shlibpath_var=no
7390         runpath_var=LD_RUN_PATH
7391         hardcode_runpath_var=yes
7392         ld_shlibs=yes
7393       fi
7394       ;;
7395
7396     sysv4.2uw2*)
7397       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7398       hardcode_direct=yes
7399       hardcode_minus_L=no
7400       hardcode_shlibpath_var=no
7401       hardcode_runpath_var=yes
7402       runpath_var=LD_RUN_PATH
7403       ;;
7404
7405    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7406       no_undefined_flag='${wl}-z ${wl}text'
7407       if test "$GCC" = yes; then
7408         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7409       else
7410         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7411       fi
7412       runpath_var='LD_RUN_PATH'
7413       hardcode_shlibpath_var=no
7414       ;;
7415
7416     sysv5*)
7417       no_undefined_flag=' -z text'
7418       # $CC -shared without GNU ld will not create a library from C++
7419       # object files and a static libstdc++, better avoid it by now
7420       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7421       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7422                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7423       hardcode_libdir_flag_spec=
7424       hardcode_shlibpath_var=no
7425       runpath_var='LD_RUN_PATH'
7426       ;;
7427
7428     uts4*)
7429       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7430       hardcode_libdir_flag_spec='-L$libdir'
7431       hardcode_shlibpath_var=no
7432       ;;
7433
7434     *)
7435       ld_shlibs=no
7436       ;;
7437     esac
7438   fi
7439
7440 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7441 echo "${ECHO_T}$ld_shlibs" >&6
7442 test "$ld_shlibs" = no && can_build_shared=no
7443
7444 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7445 if test "$GCC" = yes; then
7446   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7447 fi
7448
7449 #
7450 # Do we need to explicitly link libc?
7451 #
7452 case "x$archive_cmds_need_lc" in
7453 x|xyes)
7454   # Assume -lc should be added
7455   archive_cmds_need_lc=yes
7456
7457   if test "$enable_shared" = yes && test "$GCC" = yes; then
7458     case $archive_cmds in
7459     *'~'*)
7460       # FIXME: we may have to deal with multi-command sequences.
7461       ;;
7462     '$CC '*)
7463       # Test whether the compiler implicitly links with -lc since on some
7464       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7465       # to ld, don't add -lc before -lgcc.
7466       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7467 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7468       $rm conftest*
7469       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7470
7471       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7472   (eval $ac_compile) 2>&5
7473   ac_status=$?
7474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475   (exit $ac_status); } 2>conftest.err; then
7476         soname=conftest
7477         lib=conftest
7478         libobjs=conftest.$ac_objext
7479         deplibs=
7480         wl=$lt_prog_compiler_wl
7481         compiler_flags=-v
7482         linker_flags=-v
7483         verstring=
7484         output_objdir=.
7485         libname=conftest
7486         lt_save_allow_undefined_flag=$allow_undefined_flag
7487         allow_undefined_flag=
7488         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7489   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7490   ac_status=$?
7491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492   (exit $ac_status); }
7493         then
7494           archive_cmds_need_lc=no
7495         else
7496           archive_cmds_need_lc=yes
7497         fi
7498         allow_undefined_flag=$lt_save_allow_undefined_flag
7499       else
7500         cat conftest.err 1>&5
7501       fi
7502       $rm conftest*
7503       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7504 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7505       ;;
7506     esac
7507   fi
7508   ;;
7509 esac
7510
7511 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7512 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7513 library_names_spec=
7514 libname_spec='lib$name'
7515 soname_spec=
7516 shrext_cmds=".so"
7517 postinstall_cmds=
7518 postuninstall_cmds=
7519 finish_cmds=
7520 finish_eval=
7521 shlibpath_var=
7522 shlibpath_overrides_runpath=unknown
7523 version_type=none
7524 dynamic_linker="$host_os ld.so"
7525 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7526 if test "$GCC" = yes; then
7527   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7528   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7529     # if the path contains ";" then we assume it to be the separator
7530     # otherwise default to the standard path separator (i.e. ":") - it is
7531     # assumed that no part of a normal pathname contains ";" but that should
7532     # okay in the real world where ";" in dirpaths is itself problematic.
7533     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7534   else
7535     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7536   fi
7537 else
7538   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7539 fi
7540 need_lib_prefix=unknown
7541 hardcode_into_libs=no
7542
7543 # when you set need_version to no, make sure it does not cause -set_version
7544 # flags to be left without arguments
7545 need_version=unknown
7546
7547 case $host_os in
7548 aix3*)
7549   version_type=linux
7550   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7551   shlibpath_var=LIBPATH
7552
7553   # AIX 3 has no versioning support, so we append a major version to the name.
7554   soname_spec='${libname}${release}${shared_ext}$major'
7555   ;;
7556
7557 aix4* | aix5*)
7558   version_type=linux
7559   need_lib_prefix=no
7560   need_version=no
7561   hardcode_into_libs=yes
7562   if test "$host_cpu" = ia64; then
7563     # AIX 5 supports IA64
7564     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7565     shlibpath_var=LD_LIBRARY_PATH
7566   else
7567     # With GCC up to 2.95.x, collect2 would create an import file
7568     # for dependence libraries.  The import file would start with
7569     # the line `#! .'.  This would cause the generated library to
7570     # depend on `.', always an invalid library.  This was fixed in
7571     # development snapshots of GCC prior to 3.0.
7572     case $host_os in
7573       aix4 | aix4.[01] | aix4.[01].*)
7574       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7575            echo ' yes '
7576            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7577         :
7578       else
7579         can_build_shared=no
7580       fi
7581       ;;
7582     esac
7583     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7584     # soname into executable. Probably we can add versioning support to
7585     # collect2, so additional links can be useful in future.
7586     if test "$aix_use_runtimelinking" = yes; then
7587       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7588       # instead of lib<name>.a to let people know that these are not
7589       # typical AIX shared libraries.
7590       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7591     else
7592       # We preserve .a as extension for shared libraries through AIX4.2
7593       # and later when we are not doing run time linking.
7594       library_names_spec='${libname}${release}.a $libname.a'
7595       soname_spec='${libname}${release}${shared_ext}$major'
7596     fi
7597     shlibpath_var=LIBPATH
7598   fi
7599   ;;
7600
7601 amigaos*)
7602   library_names_spec='$libname.ixlibrary $libname.a'
7603   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7604   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'
7605   ;;
7606
7607 beos*)
7608   library_names_spec='${libname}${shared_ext}'
7609   dynamic_linker="$host_os ld.so"
7610   shlibpath_var=LIBRARY_PATH
7611   ;;
7612
7613 bsdi4*)
7614   version_type=linux
7615   need_version=no
7616   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7617   soname_spec='${libname}${release}${shared_ext}$major'
7618   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7619   shlibpath_var=LD_LIBRARY_PATH
7620   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7621   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7622   # the default ld.so.conf also contains /usr/contrib/lib and
7623   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7624   # libtool to hard-code these into programs
7625   ;;
7626
7627 cygwin* | mingw* | pw32*)
7628   version_type=windows
7629   shrext_cmds=".dll"
7630   need_version=no
7631   need_lib_prefix=no
7632
7633   case $GCC,$host_os in
7634   yes,cygwin* | yes,mingw* | yes,pw32*)
7635     library_names_spec='$libname.dll.a'
7636     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7637     postinstall_cmds='base_file=`basename \${file}`~
7638       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7639       dldir=$destdir/`dirname \$dlpath`~
7640       test -d \$dldir || mkdir -p \$dldir~
7641       $install_prog $dir/$dlname \$dldir/$dlname'
7642     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7643       dlpath=$dir/\$dldll~
7644        $rm \$dlpath'
7645     shlibpath_overrides_runpath=yes
7646
7647     case $host_os in
7648     cygwin*)
7649       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7650       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7651       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7652       ;;
7653     mingw*)
7654       # MinGW DLLs use traditional 'lib' prefix
7655       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7656       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7657       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7658         # It is most probably a Windows format PATH printed by
7659         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7660         # path with ; separators, and with drive letters. We can handle the
7661         # drive letters (cygwin fileutils understands them), so leave them,
7662         # especially as we might pass files found there to a mingw objdump,
7663         # which wouldn't understand a cygwinified path. Ahh.
7664         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7665       else
7666         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7667       fi
7668       ;;
7669     pw32*)
7670       # pw32 DLLs use 'pw' prefix rather than 'lib'
7671       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7672       ;;
7673     esac
7674     ;;
7675
7676   *)
7677     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7678     ;;
7679   esac
7680   dynamic_linker='Win32 ld.exe'
7681   # FIXME: first we should search . and the directory the executable is in
7682   shlibpath_var=PATH
7683   ;;
7684
7685 darwin* | rhapsody*)
7686   dynamic_linker="$host_os dyld"
7687   version_type=darwin
7688   need_lib_prefix=no
7689   need_version=no
7690   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7691   soname_spec='${libname}${release}${major}$shared_ext'
7692   shlibpath_overrides_runpath=yes
7693   shlibpath_var=DYLD_LIBRARY_PATH
7694   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7695   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7696   if test "$GCC" = yes; then
7697     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"`
7698   else
7699     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7700   fi
7701   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7702   ;;
7703
7704 dgux*)
7705   version_type=linux
7706   need_lib_prefix=no
7707   need_version=no
7708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7709   soname_spec='${libname}${release}${shared_ext}$major'
7710   shlibpath_var=LD_LIBRARY_PATH
7711   ;;
7712
7713 freebsd1*)
7714   dynamic_linker=no
7715   ;;
7716
7717 kfreebsd*-gnu)
7718   version_type=linux
7719   need_lib_prefix=no
7720   need_version=no
7721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7722   soname_spec='${libname}${release}${shared_ext}$major'
7723   shlibpath_var=LD_LIBRARY_PATH
7724   shlibpath_overrides_runpath=no
7725   hardcode_into_libs=yes
7726   dynamic_linker='GNU ld.so'
7727   ;;
7728
7729 freebsd*)
7730   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7731   version_type=freebsd-$objformat
7732   case $version_type in
7733     freebsd-elf*)
7734       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7735       need_version=no
7736       need_lib_prefix=no
7737       ;;
7738     freebsd-*)
7739       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7740       need_version=yes
7741       ;;
7742   esac
7743   shlibpath_var=LD_LIBRARY_PATH
7744   case $host_os in
7745   freebsd2*)
7746     shlibpath_overrides_runpath=yes
7747     ;;
7748   freebsd3.01* | freebsdelf3.01*)
7749     shlibpath_overrides_runpath=yes
7750     hardcode_into_libs=yes
7751     ;;
7752   *) # from 3.2 on
7753     shlibpath_overrides_runpath=no
7754     hardcode_into_libs=yes
7755     ;;
7756   esac
7757   ;;
7758
7759 gnu*)
7760   version_type=linux
7761   need_lib_prefix=no
7762   need_version=no
7763   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7764   soname_spec='${libname}${release}${shared_ext}$major'
7765   shlibpath_var=LD_LIBRARY_PATH
7766   hardcode_into_libs=yes
7767   ;;
7768
7769 hpux9* | hpux10* | hpux11*)
7770   # Give a soname corresponding to the major version so that dld.sl refuses to
7771   # link against other versions.
7772   version_type=sunos
7773   need_lib_prefix=no
7774   need_version=no
7775   case "$host_cpu" in
7776   ia64*)
7777     shrext_cmds='.so'
7778     hardcode_into_libs=yes
7779     dynamic_linker="$host_os dld.so"
7780     shlibpath_var=LD_LIBRARY_PATH
7781     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7782     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7783     soname_spec='${libname}${release}${shared_ext}$major'
7784     if test "X$HPUX_IA64_MODE" = X32; then
7785       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7786     else
7787       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7788     fi
7789     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7790     ;;
7791    hppa*64*)
7792      shrext_cmds='.sl'
7793      hardcode_into_libs=yes
7794      dynamic_linker="$host_os dld.sl"
7795      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7796      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7797      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7798      soname_spec='${libname}${release}${shared_ext}$major'
7799      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7800      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7801      ;;
7802    *)
7803     shrext_cmds='.sl'
7804     dynamic_linker="$host_os dld.sl"
7805     shlibpath_var=SHLIB_PATH
7806     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7807     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7808     soname_spec='${libname}${release}${shared_ext}$major'
7809     ;;
7810   esac
7811   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7812   postinstall_cmds='chmod 555 $lib'
7813   ;;
7814
7815 irix5* | irix6* | nonstopux*)
7816   case $host_os in
7817     nonstopux*) version_type=nonstopux ;;
7818     *)
7819         if test "$lt_cv_prog_gnu_ld" = yes; then
7820                 version_type=linux
7821         else
7822                 version_type=irix
7823         fi ;;
7824   esac
7825   need_lib_prefix=no
7826   need_version=no
7827   soname_spec='${libname}${release}${shared_ext}$major'
7828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7829   case $host_os in
7830   irix5* | nonstopux*)
7831     libsuff= shlibsuff=
7832     ;;
7833   *)
7834     case $LD in # libtool.m4 will add one of these switches to LD
7835     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7836       libsuff= shlibsuff= libmagic=32-bit;;
7837     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7838       libsuff=32 shlibsuff=N32 libmagic=N32;;
7839     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7840       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7841     *) libsuff= shlibsuff= libmagic=never-match;;
7842     esac
7843     ;;
7844   esac
7845   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7846   shlibpath_overrides_runpath=no
7847   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7848   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7849   hardcode_into_libs=yes
7850   ;;
7851
7852 # No shared lib support for Linux oldld, aout, or coff.
7853 linux*oldld* | linux*aout* | linux*coff*)
7854   dynamic_linker=no
7855   ;;
7856
7857 # This must be Linux ELF.
7858 linux*)
7859   version_type=linux
7860   need_lib_prefix=no
7861   need_version=no
7862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7863   soname_spec='${libname}${release}${shared_ext}$major'
7864   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7865   shlibpath_var=LD_LIBRARY_PATH
7866   shlibpath_overrides_runpath=no
7867   # This implies no fast_install, which is unacceptable.
7868   # Some rework will be needed to allow for fast_install
7869   # before this can be enabled.
7870   hardcode_into_libs=yes
7871
7872   # Append ld.so.conf contents to the search path
7873   if test -f /etc/ld.so.conf; then
7874     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7875     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7876   fi
7877
7878   # We used to test for /lib/ld.so.1 and disable shared libraries on
7879   # powerpc, because MkLinux only supported shared libraries with the
7880   # GNU dynamic linker.  Since this was broken with cross compilers,
7881   # most powerpc-linux boxes support dynamic linking these days and
7882   # people can always --disable-shared, the test was removed, and we
7883   # assume the GNU/Linux dynamic linker is in use.
7884   dynamic_linker='GNU/Linux ld.so'
7885   ;;
7886
7887 knetbsd*-gnu)
7888   version_type=linux
7889   need_lib_prefix=no
7890   need_version=no
7891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7892   soname_spec='${libname}${release}${shared_ext}$major'
7893   shlibpath_var=LD_LIBRARY_PATH
7894   shlibpath_overrides_runpath=no
7895   hardcode_into_libs=yes
7896   dynamic_linker='GNU ld.so'
7897   ;;
7898
7899 netbsd*)
7900   version_type=sunos
7901   need_lib_prefix=no
7902   need_version=no
7903   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7904     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7905     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7906     dynamic_linker='NetBSD (a.out) ld.so'
7907   else
7908     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7909     soname_spec='${libname}${release}${shared_ext}$major'
7910     dynamic_linker='NetBSD ld.elf_so'
7911   fi
7912   shlibpath_var=LD_LIBRARY_PATH
7913   shlibpath_overrides_runpath=yes
7914   hardcode_into_libs=yes
7915   ;;
7916
7917 newsos6)
7918   version_type=linux
7919   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7920   shlibpath_var=LD_LIBRARY_PATH
7921   shlibpath_overrides_runpath=yes
7922   ;;
7923
7924 nto-qnx*)
7925   version_type=linux
7926   need_lib_prefix=no
7927   need_version=no
7928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7929   soname_spec='${libname}${release}${shared_ext}$major'
7930   shlibpath_var=LD_LIBRARY_PATH
7931   shlibpath_overrides_runpath=yes
7932   ;;
7933
7934 openbsd*)
7935   version_type=sunos
7936   need_lib_prefix=no
7937   need_version=yes
7938   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7939   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7940   shlibpath_var=LD_LIBRARY_PATH
7941   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7942     case $host_os in
7943       openbsd2.[89] | openbsd2.[89].*)
7944         shlibpath_overrides_runpath=no
7945         ;;
7946       *)
7947         shlibpath_overrides_runpath=yes
7948         ;;
7949       esac
7950   else
7951     shlibpath_overrides_runpath=yes
7952   fi
7953   ;;
7954
7955 os2*)
7956   libname_spec='$name'
7957   shrext_cmds=".dll"
7958   need_lib_prefix=no
7959   library_names_spec='$libname${shared_ext} $libname.a'
7960   dynamic_linker='OS/2 ld.exe'
7961   shlibpath_var=LIBPATH
7962   ;;
7963
7964 osf3* | osf4* | osf5*)
7965   version_type=osf
7966   need_lib_prefix=no
7967   need_version=no
7968   soname_spec='${libname}${release}${shared_ext}$major'
7969   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7970   shlibpath_var=LD_LIBRARY_PATH
7971   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7972   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7973   ;;
7974
7975 sco3.2v5*)
7976   version_type=osf
7977   soname_spec='${libname}${release}${shared_ext}$major'
7978   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7979   shlibpath_var=LD_LIBRARY_PATH
7980   ;;
7981
7982 solaris*)
7983   version_type=linux
7984   need_lib_prefix=no
7985   need_version=no
7986   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7987   soname_spec='${libname}${release}${shared_ext}$major'
7988   shlibpath_var=LD_LIBRARY_PATH
7989   shlibpath_overrides_runpath=yes
7990   hardcode_into_libs=yes
7991   # ldd complains unless libraries are executable
7992   postinstall_cmds='chmod +x $lib'
7993   ;;
7994
7995 sunos4*)
7996   version_type=sunos
7997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7998   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7999   shlibpath_var=LD_LIBRARY_PATH
8000   shlibpath_overrides_runpath=yes
8001   if test "$with_gnu_ld" = yes; then
8002     need_lib_prefix=no
8003   fi
8004   need_version=yes
8005   ;;
8006
8007 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8008   version_type=linux
8009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8010   soname_spec='${libname}${release}${shared_ext}$major'
8011   shlibpath_var=LD_LIBRARY_PATH
8012   case $host_vendor in
8013     sni)
8014       shlibpath_overrides_runpath=no
8015       need_lib_prefix=no
8016       export_dynamic_flag_spec='${wl}-Blargedynsym'
8017       runpath_var=LD_RUN_PATH
8018       ;;
8019     siemens)
8020       need_lib_prefix=no
8021       ;;
8022     motorola)
8023       need_lib_prefix=no
8024       need_version=no
8025       shlibpath_overrides_runpath=no
8026       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8027       ;;
8028   esac
8029   ;;
8030
8031 sysv4*MP*)
8032   if test -d /usr/nec ;then
8033     version_type=linux
8034     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8035     soname_spec='$libname${shared_ext}.$major'
8036     shlibpath_var=LD_LIBRARY_PATH
8037   fi
8038   ;;
8039
8040 uts4*)
8041   version_type=linux
8042   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8043   soname_spec='${libname}${release}${shared_ext}$major'
8044   shlibpath_var=LD_LIBRARY_PATH
8045   ;;
8046
8047 *)
8048   dynamic_linker=no
8049   ;;
8050 esac
8051 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8052 echo "${ECHO_T}$dynamic_linker" >&6
8053 test "$dynamic_linker" = no && can_build_shared=no
8054
8055 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8056 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8057 hardcode_action=
8058 if test -n "$hardcode_libdir_flag_spec" || \
8059    test -n "$runpath_var " || \
8060    test "X$hardcode_automatic"="Xyes" ; then
8061
8062   # We can hardcode non-existant directories.
8063   if test "$hardcode_direct" != no &&
8064      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8065      # have to relink, otherwise we might link with an installed library
8066      # when we should be linking with a yet-to-be-installed one
8067      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8068      test "$hardcode_minus_L" != no; then
8069     # Linking always hardcodes the temporary library directory.
8070     hardcode_action=relink
8071   else
8072     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8073     hardcode_action=immediate
8074   fi
8075 else
8076   # We cannot hardcode anything, or else we can only hardcode existing
8077   # directories.
8078   hardcode_action=unsupported
8079 fi
8080 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8081 echo "${ECHO_T}$hardcode_action" >&6
8082
8083 if test "$hardcode_action" = relink; then
8084   # Fast installation is not supported
8085   enable_fast_install=no
8086 elif test "$shlibpath_overrides_runpath" = yes ||
8087      test "$enable_shared" = no; then
8088   # Fast installation is not necessary
8089   enable_fast_install=needless
8090 fi
8091
8092 striplib=
8093 old_striplib=
8094 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8095 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8096 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8097   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8098   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8099   echo "$as_me:$LINENO: result: yes" >&5
8100 echo "${ECHO_T}yes" >&6
8101 else
8102 # FIXME - insert some real tests, host_os isn't really good enough
8103   case $host_os in
8104    darwin*)
8105        if test -n "$STRIP" ; then
8106          striplib="$STRIP -x"
8107          echo "$as_me:$LINENO: result: yes" >&5
8108 echo "${ECHO_T}yes" >&6
8109        else
8110   echo "$as_me:$LINENO: result: no" >&5
8111 echo "${ECHO_T}no" >&6
8112 fi
8113        ;;
8114    *)
8115   echo "$as_me:$LINENO: result: no" >&5
8116 echo "${ECHO_T}no" >&6
8117     ;;
8118   esac
8119 fi
8120
8121 if test "x$enable_dlopen" != xyes; then
8122   enable_dlopen=unknown
8123   enable_dlopen_self=unknown
8124   enable_dlopen_self_static=unknown
8125 else
8126   lt_cv_dlopen=no
8127   lt_cv_dlopen_libs=
8128
8129   case $host_os in
8130   beos*)
8131     lt_cv_dlopen="load_add_on"
8132     lt_cv_dlopen_libs=
8133     lt_cv_dlopen_self=yes
8134     ;;
8135
8136   mingw* | pw32*)
8137     lt_cv_dlopen="LoadLibrary"
8138     lt_cv_dlopen_libs=
8139    ;;
8140
8141   cygwin*)
8142     lt_cv_dlopen="dlopen"
8143     lt_cv_dlopen_libs=
8144    ;;
8145
8146   darwin*)
8147   # if libdl is installed we need to link against it
8148     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8149 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8150 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8151   echo $ECHO_N "(cached) $ECHO_C" >&6
8152 else
8153   ac_check_lib_save_LIBS=$LIBS
8154 LIBS="-ldl  $LIBS"
8155 cat >conftest.$ac_ext <<_ACEOF
8156 /* confdefs.h.  */
8157 _ACEOF
8158 cat confdefs.h >>conftest.$ac_ext
8159 cat >>conftest.$ac_ext <<_ACEOF
8160 /* end confdefs.h.  */
8161
8162 /* Override any gcc2 internal prototype to avoid an error.  */
8163 #ifdef __cplusplus
8164 extern "C"
8165 #endif
8166 /* We use char because int might match the return type of a gcc2
8167    builtin and then its argument prototype would still apply.  */
8168 char dlopen ();
8169 int
8170 main ()
8171 {
8172 dlopen ();
8173   ;
8174   return 0;
8175 }
8176 _ACEOF
8177 rm -f conftest.$ac_objext conftest$ac_exeext
8178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8179   (eval $ac_link) 2>conftest.er1
8180   ac_status=$?
8181   grep -v '^ *+' conftest.er1 >conftest.err
8182   rm -f conftest.er1
8183   cat conftest.err >&5
8184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185   (exit $ac_status); } &&
8186          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8188   (eval $ac_try) 2>&5
8189   ac_status=$?
8190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191   (exit $ac_status); }; } &&
8192          { ac_try='test -s conftest$ac_exeext'
8193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8194   (eval $ac_try) 2>&5
8195   ac_status=$?
8196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197   (exit $ac_status); }; }; then
8198   ac_cv_lib_dl_dlopen=yes
8199 else
8200   echo "$as_me: failed program was:" >&5
8201 sed 's/^/| /' conftest.$ac_ext >&5
8202
8203 ac_cv_lib_dl_dlopen=no
8204 fi
8205 rm -f conftest.err conftest.$ac_objext \
8206       conftest$ac_exeext conftest.$ac_ext
8207 LIBS=$ac_check_lib_save_LIBS
8208 fi
8209 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8210 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8211 if test $ac_cv_lib_dl_dlopen = yes; then
8212   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8213 else
8214
8215     lt_cv_dlopen="dyld"
8216     lt_cv_dlopen_libs=
8217     lt_cv_dlopen_self=yes
8218
8219 fi
8220
8221    ;;
8222
8223   *)
8224     echo "$as_me:$LINENO: checking for shl_load" >&5
8225 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8226 if test "${ac_cv_func_shl_load+set}" = set; then
8227   echo $ECHO_N "(cached) $ECHO_C" >&6
8228 else
8229   cat >conftest.$ac_ext <<_ACEOF
8230 /* confdefs.h.  */
8231 _ACEOF
8232 cat confdefs.h >>conftest.$ac_ext
8233 cat >>conftest.$ac_ext <<_ACEOF
8234 /* end confdefs.h.  */
8235 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8236    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8237 #define shl_load innocuous_shl_load
8238
8239 /* System header to define __stub macros and hopefully few prototypes,
8240     which can conflict with char shl_load (); below.
8241     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8242     <limits.h> exists even on freestanding compilers.  */
8243
8244 #ifdef __STDC__
8245 # include <limits.h>
8246 #else
8247 # include <assert.h>
8248 #endif
8249
8250 #undef shl_load
8251
8252 /* Override any gcc2 internal prototype to avoid an error.  */
8253 #ifdef __cplusplus
8254 extern "C"
8255 {
8256 #endif
8257 /* We use char because int might match the return type of a gcc2
8258    builtin and then its argument prototype would still apply.  */
8259 char shl_load ();
8260 /* The GNU C library defines this for functions which it implements
8261     to always fail with ENOSYS.  Some functions are actually named
8262     something starting with __ and the normal name is an alias.  */
8263 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8264 choke me
8265 #else
8266 char (*f) () = shl_load;
8267 #endif
8268 #ifdef __cplusplus
8269 }
8270 #endif
8271
8272 int
8273 main ()
8274 {
8275 return f != shl_load;
8276   ;
8277   return 0;
8278 }
8279 _ACEOF
8280 rm -f conftest.$ac_objext conftest$ac_exeext
8281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8282   (eval $ac_link) 2>conftest.er1
8283   ac_status=$?
8284   grep -v '^ *+' conftest.er1 >conftest.err
8285   rm -f conftest.er1
8286   cat conftest.err >&5
8287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288   (exit $ac_status); } &&
8289          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8291   (eval $ac_try) 2>&5
8292   ac_status=$?
8293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294   (exit $ac_status); }; } &&
8295          { ac_try='test -s conftest$ac_exeext'
8296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8297   (eval $ac_try) 2>&5
8298   ac_status=$?
8299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300   (exit $ac_status); }; }; then
8301   ac_cv_func_shl_load=yes
8302 else
8303   echo "$as_me: failed program was:" >&5
8304 sed 's/^/| /' conftest.$ac_ext >&5
8305
8306 ac_cv_func_shl_load=no
8307 fi
8308 rm -f conftest.err conftest.$ac_objext \
8309       conftest$ac_exeext conftest.$ac_ext
8310 fi
8311 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8312 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8313 if test $ac_cv_func_shl_load = yes; then
8314   lt_cv_dlopen="shl_load"
8315 else
8316   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8317 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8318 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8319   echo $ECHO_N "(cached) $ECHO_C" >&6
8320 else
8321   ac_check_lib_save_LIBS=$LIBS
8322 LIBS="-ldld  $LIBS"
8323 cat >conftest.$ac_ext <<_ACEOF
8324 /* confdefs.h.  */
8325 _ACEOF
8326 cat confdefs.h >>conftest.$ac_ext
8327 cat >>conftest.$ac_ext <<_ACEOF
8328 /* end confdefs.h.  */
8329
8330 /* Override any gcc2 internal prototype to avoid an error.  */
8331 #ifdef __cplusplus
8332 extern "C"
8333 #endif
8334 /* We use char because int might match the return type of a gcc2
8335    builtin and then its argument prototype would still apply.  */
8336 char shl_load ();
8337 int
8338 main ()
8339 {
8340 shl_load ();
8341   ;
8342   return 0;
8343 }
8344 _ACEOF
8345 rm -f conftest.$ac_objext conftest$ac_exeext
8346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8347   (eval $ac_link) 2>conftest.er1
8348   ac_status=$?
8349   grep -v '^ *+' conftest.er1 >conftest.err
8350   rm -f conftest.er1
8351   cat conftest.err >&5
8352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353   (exit $ac_status); } &&
8354          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8356   (eval $ac_try) 2>&5
8357   ac_status=$?
8358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359   (exit $ac_status); }; } &&
8360          { ac_try='test -s conftest$ac_exeext'
8361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8362   (eval $ac_try) 2>&5
8363   ac_status=$?
8364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365   (exit $ac_status); }; }; then
8366   ac_cv_lib_dld_shl_load=yes
8367 else
8368   echo "$as_me: failed program was:" >&5
8369 sed 's/^/| /' conftest.$ac_ext >&5
8370
8371 ac_cv_lib_dld_shl_load=no
8372 fi
8373 rm -f conftest.err conftest.$ac_objext \
8374       conftest$ac_exeext conftest.$ac_ext
8375 LIBS=$ac_check_lib_save_LIBS
8376 fi
8377 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8378 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8379 if test $ac_cv_lib_dld_shl_load = yes; then
8380   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8381 else
8382   echo "$as_me:$LINENO: checking for dlopen" >&5
8383 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8384 if test "${ac_cv_func_dlopen+set}" = set; then
8385   echo $ECHO_N "(cached) $ECHO_C" >&6
8386 else
8387   cat >conftest.$ac_ext <<_ACEOF
8388 /* confdefs.h.  */
8389 _ACEOF
8390 cat confdefs.h >>conftest.$ac_ext
8391 cat >>conftest.$ac_ext <<_ACEOF
8392 /* end confdefs.h.  */
8393 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8394    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8395 #define dlopen innocuous_dlopen
8396
8397 /* System header to define __stub macros and hopefully few prototypes,
8398     which can conflict with char dlopen (); below.
8399     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8400     <limits.h> exists even on freestanding compilers.  */
8401
8402 #ifdef __STDC__
8403 # include <limits.h>
8404 #else
8405 # include <assert.h>
8406 #endif
8407
8408 #undef dlopen
8409
8410 /* Override any gcc2 internal prototype to avoid an error.  */
8411 #ifdef __cplusplus
8412 extern "C"
8413 {
8414 #endif
8415 /* We use char because int might match the return type of a gcc2
8416    builtin and then its argument prototype would still apply.  */
8417 char dlopen ();
8418 /* The GNU C library defines this for functions which it implements
8419     to always fail with ENOSYS.  Some functions are actually named
8420     something starting with __ and the normal name is an alias.  */
8421 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8422 choke me
8423 #else
8424 char (*f) () = dlopen;
8425 #endif
8426 #ifdef __cplusplus
8427 }
8428 #endif
8429
8430 int
8431 main ()
8432 {
8433 return f != dlopen;
8434   ;
8435   return 0;
8436 }
8437 _ACEOF
8438 rm -f conftest.$ac_objext conftest$ac_exeext
8439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8440   (eval $ac_link) 2>conftest.er1
8441   ac_status=$?
8442   grep -v '^ *+' conftest.er1 >conftest.err
8443   rm -f conftest.er1
8444   cat conftest.err >&5
8445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446   (exit $ac_status); } &&
8447          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8449   (eval $ac_try) 2>&5
8450   ac_status=$?
8451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452   (exit $ac_status); }; } &&
8453          { ac_try='test -s conftest$ac_exeext'
8454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8455   (eval $ac_try) 2>&5
8456   ac_status=$?
8457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458   (exit $ac_status); }; }; then
8459   ac_cv_func_dlopen=yes
8460 else
8461   echo "$as_me: failed program was:" >&5
8462 sed 's/^/| /' conftest.$ac_ext >&5
8463
8464 ac_cv_func_dlopen=no
8465 fi
8466 rm -f conftest.err conftest.$ac_objext \
8467       conftest$ac_exeext conftest.$ac_ext
8468 fi
8469 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8470 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8471 if test $ac_cv_func_dlopen = yes; then
8472   lt_cv_dlopen="dlopen"
8473 else
8474   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8475 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8476 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8477   echo $ECHO_N "(cached) $ECHO_C" >&6
8478 else
8479   ac_check_lib_save_LIBS=$LIBS
8480 LIBS="-ldl  $LIBS"
8481 cat >conftest.$ac_ext <<_ACEOF
8482 /* confdefs.h.  */
8483 _ACEOF
8484 cat confdefs.h >>conftest.$ac_ext
8485 cat >>conftest.$ac_ext <<_ACEOF
8486 /* end confdefs.h.  */
8487
8488 /* Override any gcc2 internal prototype to avoid an error.  */
8489 #ifdef __cplusplus
8490 extern "C"
8491 #endif
8492 /* We use char because int might match the return type of a gcc2
8493    builtin and then its argument prototype would still apply.  */
8494 char dlopen ();
8495 int
8496 main ()
8497 {
8498 dlopen ();
8499   ;
8500   return 0;
8501 }
8502 _ACEOF
8503 rm -f conftest.$ac_objext conftest$ac_exeext
8504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8505   (eval $ac_link) 2>conftest.er1
8506   ac_status=$?
8507   grep -v '^ *+' conftest.er1 >conftest.err
8508   rm -f conftest.er1
8509   cat conftest.err >&5
8510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511   (exit $ac_status); } &&
8512          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8514   (eval $ac_try) 2>&5
8515   ac_status=$?
8516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517   (exit $ac_status); }; } &&
8518          { ac_try='test -s conftest$ac_exeext'
8519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8520   (eval $ac_try) 2>&5
8521   ac_status=$?
8522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523   (exit $ac_status); }; }; then
8524   ac_cv_lib_dl_dlopen=yes
8525 else
8526   echo "$as_me: failed program was:" >&5
8527 sed 's/^/| /' conftest.$ac_ext >&5
8528
8529 ac_cv_lib_dl_dlopen=no
8530 fi
8531 rm -f conftest.err conftest.$ac_objext \
8532       conftest$ac_exeext conftest.$ac_ext
8533 LIBS=$ac_check_lib_save_LIBS
8534 fi
8535 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8536 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8537 if test $ac_cv_lib_dl_dlopen = yes; then
8538   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8539 else
8540   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8541 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8542 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8543   echo $ECHO_N "(cached) $ECHO_C" >&6
8544 else
8545   ac_check_lib_save_LIBS=$LIBS
8546 LIBS="-lsvld  $LIBS"
8547 cat >conftest.$ac_ext <<_ACEOF
8548 /* confdefs.h.  */
8549 _ACEOF
8550 cat confdefs.h >>conftest.$ac_ext
8551 cat >>conftest.$ac_ext <<_ACEOF
8552 /* end confdefs.h.  */
8553
8554 /* Override any gcc2 internal prototype to avoid an error.  */
8555 #ifdef __cplusplus
8556 extern "C"
8557 #endif
8558 /* We use char because int might match the return type of a gcc2
8559    builtin and then its argument prototype would still apply.  */
8560 char dlopen ();
8561 int
8562 main ()
8563 {
8564 dlopen ();
8565   ;
8566   return 0;
8567 }
8568 _ACEOF
8569 rm -f conftest.$ac_objext conftest$ac_exeext
8570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8571   (eval $ac_link) 2>conftest.er1
8572   ac_status=$?
8573   grep -v '^ *+' conftest.er1 >conftest.err
8574   rm -f conftest.er1
8575   cat conftest.err >&5
8576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577   (exit $ac_status); } &&
8578          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8580   (eval $ac_try) 2>&5
8581   ac_status=$?
8582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583   (exit $ac_status); }; } &&
8584          { ac_try='test -s conftest$ac_exeext'
8585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8586   (eval $ac_try) 2>&5
8587   ac_status=$?
8588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589   (exit $ac_status); }; }; then
8590   ac_cv_lib_svld_dlopen=yes
8591 else
8592   echo "$as_me: failed program was:" >&5
8593 sed 's/^/| /' conftest.$ac_ext >&5
8594
8595 ac_cv_lib_svld_dlopen=no
8596 fi
8597 rm -f conftest.err conftest.$ac_objext \
8598       conftest$ac_exeext conftest.$ac_ext
8599 LIBS=$ac_check_lib_save_LIBS
8600 fi
8601 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8602 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8603 if test $ac_cv_lib_svld_dlopen = yes; then
8604   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8605 else
8606   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8607 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8608 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8609   echo $ECHO_N "(cached) $ECHO_C" >&6
8610 else
8611   ac_check_lib_save_LIBS=$LIBS
8612 LIBS="-ldld  $LIBS"
8613 cat >conftest.$ac_ext <<_ACEOF
8614 /* confdefs.h.  */
8615 _ACEOF
8616 cat confdefs.h >>conftest.$ac_ext
8617 cat >>conftest.$ac_ext <<_ACEOF
8618 /* end confdefs.h.  */
8619
8620 /* Override any gcc2 internal prototype to avoid an error.  */
8621 #ifdef __cplusplus
8622 extern "C"
8623 #endif
8624 /* We use char because int might match the return type of a gcc2
8625    builtin and then its argument prototype would still apply.  */
8626 char dld_link ();
8627 int
8628 main ()
8629 {
8630 dld_link ();
8631   ;
8632   return 0;
8633 }
8634 _ACEOF
8635 rm -f conftest.$ac_objext conftest$ac_exeext
8636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8637   (eval $ac_link) 2>conftest.er1
8638   ac_status=$?
8639   grep -v '^ *+' conftest.er1 >conftest.err
8640   rm -f conftest.er1
8641   cat conftest.err >&5
8642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643   (exit $ac_status); } &&
8644          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8646   (eval $ac_try) 2>&5
8647   ac_status=$?
8648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649   (exit $ac_status); }; } &&
8650          { ac_try='test -s conftest$ac_exeext'
8651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8652   (eval $ac_try) 2>&5
8653   ac_status=$?
8654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655   (exit $ac_status); }; }; then
8656   ac_cv_lib_dld_dld_link=yes
8657 else
8658   echo "$as_me: failed program was:" >&5
8659 sed 's/^/| /' conftest.$ac_ext >&5
8660
8661 ac_cv_lib_dld_dld_link=no
8662 fi
8663 rm -f conftest.err conftest.$ac_objext \
8664       conftest$ac_exeext conftest.$ac_ext
8665 LIBS=$ac_check_lib_save_LIBS
8666 fi
8667 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8668 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8669 if test $ac_cv_lib_dld_dld_link = yes; then
8670   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8671 fi
8672
8673
8674 fi
8675
8676
8677 fi
8678
8679
8680 fi
8681
8682
8683 fi
8684
8685
8686 fi
8687
8688     ;;
8689   esac
8690
8691   if test "x$lt_cv_dlopen" != xno; then
8692     enable_dlopen=yes
8693   else
8694     enable_dlopen=no
8695   fi
8696
8697   case $lt_cv_dlopen in
8698   dlopen)
8699     save_CPPFLAGS="$CPPFLAGS"
8700     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8701
8702     save_LDFLAGS="$LDFLAGS"
8703     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8704
8705     save_LIBS="$LIBS"
8706     LIBS="$lt_cv_dlopen_libs $LIBS"
8707
8708     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8709 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8710 if test "${lt_cv_dlopen_self+set}" = set; then
8711   echo $ECHO_N "(cached) $ECHO_C" >&6
8712 else
8713           if test "$cross_compiling" = yes; then :
8714   lt_cv_dlopen_self=cross
8715 else
8716   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8717   lt_status=$lt_dlunknown
8718   cat > conftest.$ac_ext <<EOF
8719 #line 8719 "configure"
8720 #include "confdefs.h"
8721
8722 #if HAVE_DLFCN_H
8723 #include <dlfcn.h>
8724 #endif
8725
8726 #include <stdio.h>
8727
8728 #ifdef RTLD_GLOBAL
8729 #  define LT_DLGLOBAL           RTLD_GLOBAL
8730 #else
8731 #  ifdef DL_GLOBAL
8732 #    define LT_DLGLOBAL         DL_GLOBAL
8733 #  else
8734 #    define LT_DLGLOBAL         0
8735 #  endif
8736 #endif
8737
8738 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8739    find out it does not work in some platform. */
8740 #ifndef LT_DLLAZY_OR_NOW
8741 #  ifdef RTLD_LAZY
8742 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8743 #  else
8744 #    ifdef DL_LAZY
8745 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8746 #    else
8747 #      ifdef RTLD_NOW
8748 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8749 #      else
8750 #        ifdef DL_NOW
8751 #          define LT_DLLAZY_OR_NOW      DL_NOW
8752 #        else
8753 #          define LT_DLLAZY_OR_NOW      0
8754 #        endif
8755 #      endif
8756 #    endif
8757 #  endif
8758 #endif
8759
8760 #ifdef __cplusplus
8761 extern "C" void exit (int);
8762 #endif
8763
8764 void fnord() { int i=42;}
8765 int main ()
8766 {
8767   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8768   int status = $lt_dlunknown;
8769
8770   if (self)
8771     {
8772       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8773       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8774       /* dlclose (self); */
8775     }
8776
8777     exit (status);
8778 }
8779 EOF
8780   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8781   (eval $ac_link) 2>&5
8782   ac_status=$?
8783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8785     (./conftest; exit; ) 2>/dev/null
8786     lt_status=$?
8787     case x$lt_status in
8788       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8789       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8790       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8791     esac
8792   else :
8793     # compilation failed
8794     lt_cv_dlopen_self=no
8795   fi
8796 fi
8797 rm -fr conftest*
8798
8799
8800 fi
8801 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8802 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8803
8804     if test "x$lt_cv_dlopen_self" = xyes; then
8805       LDFLAGS="$LDFLAGS $link_static_flag"
8806       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8807 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8808 if test "${lt_cv_dlopen_self_static+set}" = set; then
8809   echo $ECHO_N "(cached) $ECHO_C" >&6
8810 else
8811           if test "$cross_compiling" = yes; then :
8812   lt_cv_dlopen_self_static=cross
8813 else
8814   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8815   lt_status=$lt_dlunknown
8816   cat > conftest.$ac_ext <<EOF
8817 #line 8817 "configure"
8818 #include "confdefs.h"
8819
8820 #if HAVE_DLFCN_H
8821 #include <dlfcn.h>
8822 #endif
8823
8824 #include <stdio.h>
8825
8826 #ifdef RTLD_GLOBAL
8827 #  define LT_DLGLOBAL           RTLD_GLOBAL
8828 #else
8829 #  ifdef DL_GLOBAL
8830 #    define LT_DLGLOBAL         DL_GLOBAL
8831 #  else
8832 #    define LT_DLGLOBAL         0
8833 #  endif
8834 #endif
8835
8836 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8837    find out it does not work in some platform. */
8838 #ifndef LT_DLLAZY_OR_NOW
8839 #  ifdef RTLD_LAZY
8840 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8841 #  else
8842 #    ifdef DL_LAZY
8843 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8844 #    else
8845 #      ifdef RTLD_NOW
8846 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8847 #      else
8848 #        ifdef DL_NOW
8849 #          define LT_DLLAZY_OR_NOW      DL_NOW
8850 #        else
8851 #          define LT_DLLAZY_OR_NOW      0
8852 #        endif
8853 #      endif
8854 #    endif
8855 #  endif
8856 #endif
8857
8858 #ifdef __cplusplus
8859 extern "C" void exit (int);
8860 #endif
8861
8862 void fnord() { int i=42;}
8863 int main ()
8864 {
8865   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8866   int status = $lt_dlunknown;
8867
8868   if (self)
8869     {
8870       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8871       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8872       /* dlclose (self); */
8873     }
8874
8875     exit (status);
8876 }
8877 EOF
8878   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8879   (eval $ac_link) 2>&5
8880   ac_status=$?
8881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8883     (./conftest; exit; ) 2>/dev/null
8884     lt_status=$?
8885     case x$lt_status in
8886       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8887       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8888       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8889     esac
8890   else :
8891     # compilation failed
8892     lt_cv_dlopen_self_static=no
8893   fi
8894 fi
8895 rm -fr conftest*
8896
8897
8898 fi
8899 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8900 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8901     fi
8902
8903     CPPFLAGS="$save_CPPFLAGS"
8904     LDFLAGS="$save_LDFLAGS"
8905     LIBS="$save_LIBS"
8906     ;;
8907   esac
8908
8909   case $lt_cv_dlopen_self in
8910   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8911   *) enable_dlopen_self=unknown ;;
8912   esac
8913
8914   case $lt_cv_dlopen_self_static in
8915   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8916   *) enable_dlopen_self_static=unknown ;;
8917   esac
8918 fi
8919
8920
8921 # Report which librarie types wil actually be built
8922 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8923 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8924 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8925 echo "${ECHO_T}$can_build_shared" >&6
8926
8927 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8928 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8929 test "$can_build_shared" = "no" && enable_shared=no
8930
8931 # On AIX, shared libraries and static libraries use the same namespace, and
8932 # are all built from PIC.
8933 case "$host_os" in
8934 aix3*)
8935   test "$enable_shared" = yes && enable_static=no
8936   if test -n "$RANLIB"; then
8937     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8938     postinstall_cmds='$RANLIB $lib'
8939   fi
8940   ;;
8941
8942 aix4* | aix5*)
8943   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8944     test "$enable_shared" = yes && enable_static=no
8945   fi
8946   ;;
8947   darwin* | rhapsody*)
8948   if test "$GCC" = yes; then
8949     archive_cmds_need_lc=no
8950     case "$host_os" in
8951     rhapsody* | darwin1.[012])
8952       allow_undefined_flag='-undefined suppress'
8953       ;;
8954     *) # Darwin 1.3 on
8955       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8956         allow_undefined_flag='-flat_namespace -undefined suppress'
8957       else
8958         case ${MACOSX_DEPLOYMENT_TARGET} in
8959           10.[012])
8960             allow_undefined_flag='-flat_namespace -undefined suppress'
8961             ;;
8962           10.*)
8963             allow_undefined_flag='-undefined dynamic_lookup'
8964             ;;
8965         esac
8966       fi
8967       ;;
8968     esac
8969     output_verbose_link_cmd='echo'
8970     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8971     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8972     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8973     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}'
8974     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}'
8975     hardcode_direct=no
8976     hardcode_automatic=yes
8977     hardcode_shlibpath_var=unsupported
8978     whole_archive_flag_spec='-all_load $convenience'
8979     link_all_deplibs=yes
8980   else
8981     ld_shlibs=no
8982   fi
8983     ;;
8984 esac
8985 echo "$as_me:$LINENO: result: $enable_shared" >&5
8986 echo "${ECHO_T}$enable_shared" >&6
8987
8988 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8989 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8990 # Make sure either enable_shared or enable_static is yes.
8991 test "$enable_shared" = yes || enable_static=yes
8992 echo "$as_me:$LINENO: result: $enable_static" >&5
8993 echo "${ECHO_T}$enable_static" >&6
8994
8995 # The else clause should only fire when bootstrapping the
8996 # libtool distribution, otherwise you forgot to ship ltmain.sh
8997 # with your package, and you will get complaints that there are
8998 # no rules to generate ltmain.sh.
8999 if test -f "$ltmain"; then
9000   # See if we are running on zsh, and set the options which allow our commands through
9001   # without removal of \ escapes.
9002   if test -n "${ZSH_VERSION+set}" ; then
9003     setopt NO_GLOB_SUBST
9004   fi
9005   # Now quote all the things that may contain metacharacters while being
9006   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9007   # variables and quote the copies for generation of the libtool script.
9008   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9009     SED SHELL STRIP \
9010     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9011     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9012     deplibs_check_method reload_flag reload_cmds need_locks \
9013     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9014     lt_cv_sys_global_symbol_to_c_name_address \
9015     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9016     old_postinstall_cmds old_postuninstall_cmds \
9017     compiler \
9018     CC \
9019     LD \
9020     lt_prog_compiler_wl \
9021     lt_prog_compiler_pic \
9022     lt_prog_compiler_static \
9023     lt_prog_compiler_no_builtin_flag \
9024     export_dynamic_flag_spec \
9025     thread_safe_flag_spec \
9026     whole_archive_flag_spec \
9027     enable_shared_with_static_runtimes \
9028     old_archive_cmds \
9029     old_archive_from_new_cmds \
9030     predep_objects \
9031     postdep_objects \
9032     predeps \
9033     postdeps \
9034     compiler_lib_search_path \
9035     archive_cmds \
9036     archive_expsym_cmds \
9037     postinstall_cmds \
9038     postuninstall_cmds \
9039     old_archive_from_expsyms_cmds \
9040     allow_undefined_flag \
9041     no_undefined_flag \
9042     export_symbols_cmds \
9043     hardcode_libdir_flag_spec \
9044     hardcode_libdir_flag_spec_ld \
9045     hardcode_libdir_separator \
9046     hardcode_automatic \
9047     module_cmds \
9048     module_expsym_cmds \
9049     lt_cv_prog_compiler_c_o \
9050     exclude_expsyms \
9051     include_expsyms; do
9052
9053     case $var in
9054     old_archive_cmds | \
9055     old_archive_from_new_cmds | \
9056     archive_cmds | \
9057     archive_expsym_cmds | \
9058     module_cmds | \
9059     module_expsym_cmds | \
9060     old_archive_from_expsyms_cmds | \
9061     export_symbols_cmds | \
9062     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9063     postinstall_cmds | postuninstall_cmds | \
9064     old_postinstall_cmds | old_postuninstall_cmds | \
9065     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9066       # Double-quote double-evaled strings.
9067       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9068       ;;
9069     *)
9070       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9071       ;;
9072     esac
9073   done
9074
9075   case $lt_echo in
9076   *'\$0 --fallback-echo"')
9077     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9078     ;;
9079   esac
9080
9081 cfgfile="${ofile}T"
9082   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9083   $rm -f "$cfgfile"
9084   { echo "$as_me:$LINENO: creating $ofile" >&5
9085 echo "$as_me: creating $ofile" >&6;}
9086
9087   cat <<__EOF__ >> "$cfgfile"
9088 #! $SHELL
9089
9090 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9091 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9092 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9093 #
9094 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9095 # Free Software Foundation, Inc.
9096 #
9097 # This file is part of GNU Libtool:
9098 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9099 #
9100 # This program is free software; you can redistribute it and/or modify
9101 # it under the terms of the GNU General Public License as published by
9102 # the Free Software Foundation; either version 2 of the License, or
9103 # (at your option) any later version.
9104 #
9105 # This program is distributed in the hope that it will be useful, but
9106 # WITHOUT ANY WARRANTY; without even the implied warranty of
9107 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9108 # General Public License for more details.
9109 #
9110 # You should have received a copy of the GNU General Public License
9111 # along with this program; if not, write to the Free Software
9112 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9113 #
9114 # As a special exception to the GNU General Public License, if you
9115 # distribute this file as part of a program that contains a
9116 # configuration script generated by Autoconf, you may include it under
9117 # the same distribution terms that you use for the rest of that program.
9118
9119 # A sed program that does not truncate output.
9120 SED=$lt_SED
9121
9122 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9123 Xsed="$SED -e s/^X//"
9124
9125 # The HP-UX ksh and POSIX shell print the target directory to stdout
9126 # if CDPATH is set.
9127 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9128
9129 # The names of the tagged configurations supported by this script.
9130 available_tags=
9131
9132 # ### BEGIN LIBTOOL CONFIG
9133
9134 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9135
9136 # Shell to use when invoking shell scripts.
9137 SHELL=$lt_SHELL
9138
9139 # Whether or not to build shared libraries.
9140 build_libtool_libs=$enable_shared
9141
9142 # Whether or not to build static libraries.
9143 build_old_libs=$enable_static
9144
9145 # Whether or not to add -lc for building shared libraries.
9146 build_libtool_need_lc=$archive_cmds_need_lc
9147
9148 # Whether or not to disallow shared libs when runtime libs are static
9149 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9150
9151 # Whether or not to optimize for fast installation.
9152 fast_install=$enable_fast_install
9153
9154 # The host system.
9155 host_alias=$host_alias
9156 host=$host
9157
9158 # An echo program that does not interpret backslashes.
9159 echo=$lt_echo
9160
9161 # The archiver.
9162 AR=$lt_AR
9163 AR_FLAGS=$lt_AR_FLAGS
9164
9165 # A C compiler.
9166 LTCC=$lt_LTCC
9167
9168 # A language-specific compiler.
9169 CC=$lt_compiler
9170
9171 # Is the compiler the GNU C compiler?
9172 with_gcc=$GCC
9173
9174 # An ERE matcher.
9175 EGREP=$lt_EGREP
9176
9177 # The linker used to build libraries.
9178 LD=$lt_LD
9179
9180 # Whether we need hard or soft links.
9181 LN_S=$lt_LN_S
9182
9183 # A BSD-compatible nm program.
9184 NM=$lt_NM
9185
9186 # A symbol stripping program
9187 STRIP=$lt_STRIP
9188
9189 # Used to examine libraries when file_magic_cmd begins "file"
9190 MAGIC_CMD=$MAGIC_CMD
9191
9192 # Used on cygwin: DLL creation program.
9193 DLLTOOL="$DLLTOOL"
9194
9195 # Used on cygwin: object dumper.
9196 OBJDUMP="$OBJDUMP"
9197
9198 # Used on cygwin: assembler.
9199 AS="$AS"
9200
9201 # The name of the directory that contains temporary libtool files.
9202 objdir=$objdir
9203
9204 # How to create reloadable object files.
9205 reload_flag=$lt_reload_flag
9206 reload_cmds=$lt_reload_cmds
9207
9208 # How to pass a linker flag through the compiler.
9209 wl=$lt_lt_prog_compiler_wl
9210
9211 # Object file suffix (normally "o").
9212 objext="$ac_objext"
9213
9214 # Old archive suffix (normally "a").
9215 libext="$libext"
9216
9217 # Shared library suffix (normally ".so").
9218 shrext_cmds='$shrext_cmds'
9219
9220 # Executable file suffix (normally "").
9221 exeext="$exeext"
9222
9223 # Additional compiler flags for building library objects.
9224 pic_flag=$lt_lt_prog_compiler_pic
9225 pic_mode=$pic_mode
9226
9227 # What is the maximum length of a command?
9228 max_cmd_len=$lt_cv_sys_max_cmd_len
9229
9230 # Does compiler simultaneously support -c and -o options?
9231 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9232
9233 # Must we lock files when doing compilation ?
9234 need_locks=$lt_need_locks
9235
9236 # Do we need the lib prefix for modules?
9237 need_lib_prefix=$need_lib_prefix
9238
9239 # Do we need a version for libraries?
9240 need_version=$need_version
9241
9242 # Whether dlopen is supported.
9243 dlopen_support=$enable_dlopen
9244
9245 # Whether dlopen of programs is supported.
9246 dlopen_self=$enable_dlopen_self
9247
9248 # Whether dlopen of statically linked programs is supported.
9249 dlopen_self_static=$enable_dlopen_self_static
9250
9251 # Compiler flag to prevent dynamic linking.
9252 link_static_flag=$lt_lt_prog_compiler_static
9253
9254 # Compiler flag to turn off builtin functions.
9255 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9256
9257 # Compiler flag to allow reflexive dlopens.
9258 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9259
9260 # Compiler flag to generate shared objects directly from archives.
9261 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9262
9263 # Compiler flag to generate thread-safe objects.
9264 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9265
9266 # Library versioning type.
9267 version_type=$version_type
9268
9269 # Format of library name prefix.
9270 libname_spec=$lt_libname_spec
9271
9272 # List of archive names.  First name is the real one, the rest are links.
9273 # The last name is the one that the linker finds with -lNAME.
9274 library_names_spec=$lt_library_names_spec
9275
9276 # The coded name of the library, if different from the real name.
9277 soname_spec=$lt_soname_spec
9278
9279 # Commands used to build and install an old-style archive.
9280 RANLIB=$lt_RANLIB
9281 old_archive_cmds=$lt_old_archive_cmds
9282 old_postinstall_cmds=$lt_old_postinstall_cmds
9283 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9284
9285 # Create an old-style archive from a shared archive.
9286 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9287
9288 # Create a temporary old-style archive to link instead of a shared archive.
9289 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9290
9291 # Commands used to build and install a shared archive.
9292 archive_cmds=$lt_archive_cmds
9293 archive_expsym_cmds=$lt_archive_expsym_cmds
9294 postinstall_cmds=$lt_postinstall_cmds
9295 postuninstall_cmds=$lt_postuninstall_cmds
9296
9297 # Commands used to build a loadable module (assumed same as above if empty)
9298 module_cmds=$lt_module_cmds
9299 module_expsym_cmds=$lt_module_expsym_cmds
9300
9301 # Commands to strip libraries.
9302 old_striplib=$lt_old_striplib
9303 striplib=$lt_striplib
9304
9305 # Dependencies to place before the objects being linked to create a
9306 # shared library.
9307 predep_objects=$lt_predep_objects
9308
9309 # Dependencies to place after the objects being linked to create a
9310 # shared library.
9311 postdep_objects=$lt_postdep_objects
9312
9313 # Dependencies to place before the objects being linked to create a
9314 # shared library.
9315 predeps=$lt_predeps
9316
9317 # Dependencies to place after the objects being linked to create a
9318 # shared library.
9319 postdeps=$lt_postdeps
9320
9321 # The library search path used internally by the compiler when linking
9322 # a shared library.
9323 compiler_lib_search_path=$lt_compiler_lib_search_path
9324
9325 # Method to check whether dependent libraries are shared objects.
9326 deplibs_check_method=$lt_deplibs_check_method
9327
9328 # Command to use when deplibs_check_method == file_magic.
9329 file_magic_cmd=$lt_file_magic_cmd
9330
9331 # Flag that allows shared libraries with undefined symbols to be built.
9332 allow_undefined_flag=$lt_allow_undefined_flag
9333
9334 # Flag that forces no undefined symbols.
9335 no_undefined_flag=$lt_no_undefined_flag
9336
9337 # Commands used to finish a libtool library installation in a directory.
9338 finish_cmds=$lt_finish_cmds
9339
9340 # Same as above, but a single script fragment to be evaled but not shown.
9341 finish_eval=$lt_finish_eval
9342
9343 # Take the output of nm and produce a listing of raw symbols and C names.
9344 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9345
9346 # Transform the output of nm in a proper C declaration
9347 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9348
9349 # Transform the output of nm in a C name address pair
9350 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9351
9352 # This is the shared library runtime path variable.
9353 runpath_var=$runpath_var
9354
9355 # This is the shared library path variable.
9356 shlibpath_var=$shlibpath_var
9357
9358 # Is shlibpath searched before the hard-coded library search path?
9359 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9360
9361 # How to hardcode a shared library path into an executable.
9362 hardcode_action=$hardcode_action
9363
9364 # Whether we should hardcode library paths into libraries.
9365 hardcode_into_libs=$hardcode_into_libs
9366
9367 # Flag to hardcode \$libdir into a binary during linking.
9368 # This must work even if \$libdir does not exist.
9369 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9370
9371 # If ld is used when linking, flag to hardcode \$libdir into
9372 # a binary during linking. This must work even if \$libdir does
9373 # not exist.
9374 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9375
9376 # Whether we need a single -rpath flag with a separated argument.
9377 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9378
9379 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9380 # resulting binary.
9381 hardcode_direct=$hardcode_direct
9382
9383 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9384 # resulting binary.
9385 hardcode_minus_L=$hardcode_minus_L
9386
9387 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9388 # the resulting binary.
9389 hardcode_shlibpath_var=$hardcode_shlibpath_var
9390
9391 # Set to yes if building a shared library automatically hardcodes DIR into the library
9392 # and all subsequent libraries and executables linked against it.
9393 hardcode_automatic=$hardcode_automatic
9394
9395 # Variables whose values should be saved in libtool wrapper scripts and
9396 # restored at relink time.
9397 variables_saved_for_relink="$variables_saved_for_relink"
9398
9399 # Whether libtool must link a program against all its dependency libraries.
9400 link_all_deplibs=$link_all_deplibs
9401
9402 # Compile-time system search path for libraries
9403 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9404
9405 # Run-time system search path for libraries
9406 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9407
9408 # Fix the shell variable \$srcfile for the compiler.
9409 fix_srcfile_path="$fix_srcfile_path"
9410
9411 # Set to yes if exported symbols are required.
9412 always_export_symbols=$always_export_symbols
9413
9414 # The commands to list exported symbols.
9415 export_symbols_cmds=$lt_export_symbols_cmds
9416
9417 # The commands to extract the exported symbol list from a shared archive.
9418 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9419
9420 # Symbols that should not be listed in the preloaded symbols.
9421 exclude_expsyms=$lt_exclude_expsyms
9422
9423 # Symbols that must always be exported.
9424 include_expsyms=$lt_include_expsyms
9425
9426 # ### END LIBTOOL CONFIG
9427
9428 __EOF__
9429
9430
9431   case $host_os in
9432   aix3*)
9433     cat <<\EOF >> "$cfgfile"
9434
9435 # AIX sometimes has problems with the GCC collect2 program.  For some
9436 # reason, if we set the COLLECT_NAMES environment variable, the problems
9437 # vanish in a puff of smoke.
9438 if test "X${COLLECT_NAMES+set}" != Xset; then
9439   COLLECT_NAMES=
9440   export COLLECT_NAMES
9441 fi
9442 EOF
9443     ;;
9444   esac
9445
9446   # We use sed instead of cat because bash on DJGPP gets confused if
9447   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9448   # text mode, it properly converts lines to CR/LF.  This bash problem
9449   # is reportedly fixed, but why not run on old versions too?
9450   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9451
9452   mv -f "$cfgfile" "$ofile" || \
9453     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9454   chmod +x "$ofile"
9455
9456 else
9457   # If there is no Makefile yet, we rely on a make rule to execute
9458   # `config.status --recheck' to rerun these tests and create the
9459   # libtool script then.
9460   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9461   if test -f "$ltmain_in"; then
9462     test -f Makefile && make "$ltmain"
9463   fi
9464 fi
9465
9466
9467 ac_ext=c
9468 ac_cpp='$CPP $CPPFLAGS'
9469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9472
9473 CC="$lt_save_CC"
9474
9475
9476 # Check whether --with-tags or --without-tags was given.
9477 if test "${with_tags+set}" = set; then
9478   withval="$with_tags"
9479   tagnames="$withval"
9480 fi;
9481
9482 if test -f "$ltmain" && test -n "$tagnames"; then
9483   if test ! -f "${ofile}"; then
9484     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9485 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9486   fi
9487
9488   if test -z "$LTCC"; then
9489     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9490     if test -z "$LTCC"; then
9491       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9492 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9493     else
9494       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9495 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9496     fi
9497   fi
9498
9499   # Extract list of available tagged configurations in $ofile.
9500   # Note that this assumes the entire list is on one line.
9501   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9502
9503   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9504   for tagname in $tagnames; do
9505     IFS="$lt_save_ifs"
9506     # Check whether tagname contains only valid characters
9507     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9508     "") ;;
9509     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9510 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9511    { (exit 1); exit 1; }; }
9512         ;;
9513     esac
9514
9515     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9516     then
9517       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9518 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9519    { (exit 1); exit 1; }; }
9520     fi
9521
9522     # Update the list of available tags.
9523     if test -n "$tagname"; then
9524       echo appending configuration tag \"$tagname\" to $ofile
9525
9526       case $tagname in
9527       CXX)
9528         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9529           ac_ext=cc
9530 ac_cpp='$CXXCPP $CPPFLAGS'
9531 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9532 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9533 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9534
9535
9536
9537
9538 archive_cmds_need_lc_CXX=no
9539 allow_undefined_flag_CXX=
9540 always_export_symbols_CXX=no
9541 archive_expsym_cmds_CXX=
9542 export_dynamic_flag_spec_CXX=
9543 hardcode_direct_CXX=no
9544 hardcode_libdir_flag_spec_CXX=
9545 hardcode_libdir_flag_spec_ld_CXX=
9546 hardcode_libdir_separator_CXX=
9547 hardcode_minus_L_CXX=no
9548 hardcode_automatic_CXX=no
9549 module_cmds_CXX=
9550 module_expsym_cmds_CXX=
9551 link_all_deplibs_CXX=unknown
9552 old_archive_cmds_CXX=$old_archive_cmds
9553 no_undefined_flag_CXX=
9554 whole_archive_flag_spec_CXX=
9555 enable_shared_with_static_runtimes_CXX=no
9556
9557 # Dependencies to place before and after the object being linked:
9558 predep_objects_CXX=
9559 postdep_objects_CXX=
9560 predeps_CXX=
9561 postdeps_CXX=
9562 compiler_lib_search_path_CXX=
9563
9564 # Source file extension for C++ test sources.
9565 ac_ext=cc
9566
9567 # Object file extension for compiled C++ test sources.
9568 objext=o
9569 objext_CXX=$objext
9570
9571 # Code to be used in simple compile tests
9572 lt_simple_compile_test_code="int some_variable = 0;\n"
9573
9574 # Code to be used in simple link tests
9575 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9576
9577 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9578
9579 # If no C compiler was specified, use CC.
9580 LTCC=${LTCC-"$CC"}
9581
9582 # Allow CC to be a program name with arguments.
9583 compiler=$CC
9584
9585
9586 # Allow CC to be a program name with arguments.
9587 lt_save_CC=$CC
9588 lt_save_LD=$LD
9589 lt_save_GCC=$GCC
9590 GCC=$GXX
9591 lt_save_with_gnu_ld=$with_gnu_ld
9592 lt_save_path_LD=$lt_cv_path_LD
9593 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9594   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9595 else
9596   unset lt_cv_prog_gnu_ld
9597 fi
9598 if test -n "${lt_cv_path_LDCXX+set}"; then
9599   lt_cv_path_LD=$lt_cv_path_LDCXX
9600 else
9601   unset lt_cv_path_LD
9602 fi
9603 test -z "${LDCXX+set}" || LD=$LDCXX
9604 CC=${CXX-"c++"}
9605 compiler=$CC
9606 compiler_CXX=$CC
9607 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9608
9609 # We don't want -fno-exception wen compiling C++ code, so set the
9610 # no_builtin_flag separately
9611 if test "$GXX" = yes; then
9612   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9613 else
9614   lt_prog_compiler_no_builtin_flag_CXX=
9615 fi
9616
9617 if test "$GXX" = yes; then
9618   # Set up default GNU C++ configuration
9619
9620
9621 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9622 if test "${with_gnu_ld+set}" = set; then
9623   withval="$with_gnu_ld"
9624   test "$withval" = no || with_gnu_ld=yes
9625 else
9626   with_gnu_ld=no
9627 fi;
9628 ac_prog=ld
9629 if test "$GCC" = yes; then
9630   # Check if gcc -print-prog-name=ld gives a path.
9631   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9632 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9633   case $host in
9634   *-*-mingw*)
9635     # gcc leaves a trailing carriage return which upsets mingw
9636     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9637   *)
9638     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9639   esac
9640   case $ac_prog in
9641     # Accept absolute paths.
9642     [\\/]* | ?:[\\/]*)
9643       re_direlt='/[^/][^/]*/\.\./'
9644       # Canonicalize the pathname of ld
9645       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9646       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9647         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9648       done
9649       test -z "$LD" && LD="$ac_prog"
9650       ;;
9651   "")
9652     # If it fails, then pretend we aren't using GCC.
9653     ac_prog=ld
9654     ;;
9655   *)
9656     # If it is relative, then search for the first ld in PATH.
9657     with_gnu_ld=unknown
9658     ;;
9659   esac
9660 elif test "$with_gnu_ld" = yes; then
9661   echo "$as_me:$LINENO: checking for GNU ld" >&5
9662 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9663 else
9664   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9665 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9666 fi
9667 if test "${lt_cv_path_LD+set}" = set; then
9668   echo $ECHO_N "(cached) $ECHO_C" >&6
9669 else
9670   if test -z "$LD"; then
9671   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9672   for ac_dir in $PATH; do
9673     IFS="$lt_save_ifs"
9674     test -z "$ac_dir" && ac_dir=.
9675     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9676       lt_cv_path_LD="$ac_dir/$ac_prog"
9677       # Check to see if the program is GNU ld.  I'd rather use --version,
9678       # but apparently some GNU ld's only accept -v.
9679       # Break only if it was the GNU/non-GNU ld that we prefer.
9680       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9681       *GNU* | *'with BFD'*)
9682         test "$with_gnu_ld" != no && break
9683         ;;
9684       *)
9685         test "$with_gnu_ld" != yes && break
9686         ;;
9687       esac
9688     fi
9689   done
9690   IFS="$lt_save_ifs"
9691 else
9692   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9693 fi
9694 fi
9695
9696 LD="$lt_cv_path_LD"
9697 if test -n "$LD"; then
9698   echo "$as_me:$LINENO: result: $LD" >&5
9699 echo "${ECHO_T}$LD" >&6
9700 else
9701   echo "$as_me:$LINENO: result: no" >&5
9702 echo "${ECHO_T}no" >&6
9703 fi
9704 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9705 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9706    { (exit 1); exit 1; }; }
9707 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9708 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9709 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9710   echo $ECHO_N "(cached) $ECHO_C" >&6
9711 else
9712   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9713 case `$LD -v 2>&1 </dev/null` in
9714 *GNU* | *'with BFD'*)
9715   lt_cv_prog_gnu_ld=yes
9716   ;;
9717 *)
9718   lt_cv_prog_gnu_ld=no
9719   ;;
9720 esac
9721 fi
9722 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9723 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9724 with_gnu_ld=$lt_cv_prog_gnu_ld
9725
9726
9727
9728   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9729   # archiving commands below assume that GNU ld is being used.
9730   if test "$with_gnu_ld" = yes; then
9731     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9732     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'
9733
9734     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9735     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9736
9737     # If archive_cmds runs LD, not CC, wlarc should be empty
9738     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9739     #     investigate it a little bit more. (MM)
9740     wlarc='${wl}'
9741
9742     # ancient GNU ld didn't support --whole-archive et. al.
9743     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9744         grep 'no-whole-archive' > /dev/null; then
9745       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9746     else
9747       whole_archive_flag_spec_CXX=
9748     fi
9749   else
9750     with_gnu_ld=no
9751     wlarc=
9752
9753     # A generic and very simple default shared library creation
9754     # command for GNU C++ for the case where it uses the native
9755     # linker, instead of GNU ld.  If possible, this setting should
9756     # overridden to take advantage of the native linker features on
9757     # the platform it is being used on.
9758     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9759   fi
9760
9761   # Commands to make compiler produce verbose output that lists
9762   # what "hidden" libraries, object files and flags are used when
9763   # linking a shared library.
9764   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9765
9766 else
9767   GXX=no
9768   with_gnu_ld=no
9769   wlarc=
9770 fi
9771
9772 # PORTME: fill in a description of your system's C++ link characteristics
9773 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9774 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9775 ld_shlibs_CXX=yes
9776 case $host_os in
9777   aix3*)
9778     # FIXME: insert proper C++ library support
9779     ld_shlibs_CXX=no
9780     ;;
9781   aix4* | aix5*)
9782     if test "$host_cpu" = ia64; then
9783       # On IA64, the linker does run time linking by default, so we don't
9784       # have to do anything special.
9785       aix_use_runtimelinking=no
9786       exp_sym_flag='-Bexport'
9787       no_entry_flag=""
9788     else
9789       aix_use_runtimelinking=no
9790
9791       # Test if we are trying to use run time linking or normal
9792       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9793       # need to do runtime linking.
9794       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9795         for ld_flag in $LDFLAGS; do
9796           case $ld_flag in
9797           *-brtl*)
9798             aix_use_runtimelinking=yes
9799             break
9800             ;;
9801           esac
9802         done
9803       esac
9804
9805       exp_sym_flag='-bexport'
9806       no_entry_flag='-bnoentry'
9807     fi
9808
9809     # When large executables or shared objects are built, AIX ld can
9810     # have problems creating the table of contents.  If linking a library
9811     # or program results in "error TOC overflow" add -mminimal-toc to
9812     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9813     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9814
9815     archive_cmds_CXX=''
9816     hardcode_direct_CXX=yes
9817     hardcode_libdir_separator_CXX=':'
9818     link_all_deplibs_CXX=yes
9819
9820     if test "$GXX" = yes; then
9821       case $host_os in aix4.012|aix4.012.*)
9822       # We only want to do this on AIX 4.2 and lower, the check
9823       # below for broken collect2 doesn't work under 4.3+
9824         collect2name=`${CC} -print-prog-name=collect2`
9825         if test -f "$collect2name" && \
9826            strings "$collect2name" | grep resolve_lib_name >/dev/null
9827         then
9828           # We have reworked collect2
9829           hardcode_direct_CXX=yes
9830         else
9831           # We have old collect2
9832           hardcode_direct_CXX=unsupported
9833           # It fails to find uninstalled libraries when the uninstalled
9834           # path is not listed in the libpath.  Setting hardcode_minus_L
9835           # to unsupported forces relinking
9836           hardcode_minus_L_CXX=yes
9837           hardcode_libdir_flag_spec_CXX='-L$libdir'
9838           hardcode_libdir_separator_CXX=
9839         fi
9840       esac
9841       shared_flag='-shared'
9842     else
9843       # not using gcc
9844       if test "$host_cpu" = ia64; then
9845         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9846         # chokes on -Wl,-G. The following line is correct:
9847         shared_flag='-G'
9848       else
9849         if test "$aix_use_runtimelinking" = yes; then
9850           shared_flag='${wl}-G'
9851         else
9852           shared_flag='${wl}-bM:SRE'
9853         fi
9854       fi
9855     fi
9856
9857     # It seems that -bexpall does not export symbols beginning with
9858     # underscore (_), so it is better to generate a list of symbols to export.
9859     always_export_symbols_CXX=yes
9860     if test "$aix_use_runtimelinking" = yes; then
9861       # Warning - without using the other runtime loading flags (-brtl),
9862       # -berok will link without error, but may produce a broken library.
9863       allow_undefined_flag_CXX='-berok'
9864       # Determine the default libpath from the value encoded in an empty executable.
9865       cat >conftest.$ac_ext <<_ACEOF
9866 /* confdefs.h.  */
9867 _ACEOF
9868 cat confdefs.h >>conftest.$ac_ext
9869 cat >>conftest.$ac_ext <<_ACEOF
9870 /* end confdefs.h.  */
9871
9872 int
9873 main ()
9874 {
9875
9876   ;
9877   return 0;
9878 }
9879 _ACEOF
9880 rm -f conftest.$ac_objext conftest$ac_exeext
9881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9882   (eval $ac_link) 2>conftest.er1
9883   ac_status=$?
9884   grep -v '^ *+' conftest.er1 >conftest.err
9885   rm -f conftest.er1
9886   cat conftest.err >&5
9887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888   (exit $ac_status); } &&
9889          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
9890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9891   (eval $ac_try) 2>&5
9892   ac_status=$?
9893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894   (exit $ac_status); }; } &&
9895          { ac_try='test -s conftest$ac_exeext'
9896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9897   (eval $ac_try) 2>&5
9898   ac_status=$?
9899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900   (exit $ac_status); }; }; then
9901
9902 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9903 }'`
9904 # Check for a 64-bit object if we didn't find anything.
9905 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; }
9906 }'`; fi
9907 else
9908   echo "$as_me: failed program was:" >&5
9909 sed 's/^/| /' conftest.$ac_ext >&5
9910
9911 fi
9912 rm -f conftest.err conftest.$ac_objext \
9913       conftest$ac_exeext conftest.$ac_ext
9914 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9915
9916       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9917
9918       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"
9919      else
9920       if test "$host_cpu" = ia64; then
9921         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9922         allow_undefined_flag_CXX="-z nodefs"
9923         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"
9924       else
9925         # Determine the default libpath from the value encoded in an empty executable.
9926         cat >conftest.$ac_ext <<_ACEOF
9927 /* confdefs.h.  */
9928 _ACEOF
9929 cat confdefs.h >>conftest.$ac_ext
9930 cat >>conftest.$ac_ext <<_ACEOF
9931 /* end confdefs.h.  */
9932
9933 int
9934 main ()
9935 {
9936
9937   ;
9938   return 0;
9939 }
9940 _ACEOF
9941 rm -f conftest.$ac_objext conftest$ac_exeext
9942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9943   (eval $ac_link) 2>conftest.er1
9944   ac_status=$?
9945   grep -v '^ *+' conftest.er1 >conftest.err
9946   rm -f conftest.er1
9947   cat conftest.err >&5
9948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949   (exit $ac_status); } &&
9950          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
9951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9952   (eval $ac_try) 2>&5
9953   ac_status=$?
9954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955   (exit $ac_status); }; } &&
9956          { ac_try='test -s conftest$ac_exeext'
9957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9958   (eval $ac_try) 2>&5
9959   ac_status=$?
9960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961   (exit $ac_status); }; }; then
9962
9963 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9964 }'`
9965 # Check for a 64-bit object if we didn't find anything.
9966 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; }
9967 }'`; fi
9968 else
9969   echo "$as_me: failed program was:" >&5
9970 sed 's/^/| /' conftest.$ac_ext >&5
9971
9972 fi
9973 rm -f conftest.err conftest.$ac_objext \
9974       conftest$ac_exeext conftest.$ac_ext
9975 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9976
9977         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9978         # Warning - without using the other run time loading flags,
9979         # -berok will link without error, but may produce a broken library.
9980         no_undefined_flag_CXX=' ${wl}-bernotok'
9981         allow_undefined_flag_CXX=' ${wl}-berok'
9982         # -bexpall does not export symbols beginning with underscore (_)
9983         always_export_symbols_CXX=yes
9984         # Exported symbols can be pulled into shared objects from archives
9985         whole_archive_flag_spec_CXX=' '
9986         archive_cmds_need_lc_CXX=yes
9987         # This is similar to how AIX traditionally builds it's shared libraries.
9988         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'
9989       fi
9990     fi
9991     ;;
9992   chorus*)
9993     case $cc_basename in
9994       *)
9995         # FIXME: insert proper C++ library support
9996         ld_shlibs_CXX=no
9997         ;;
9998     esac
9999     ;;
10000
10001   cygwin* | mingw* | pw32*)
10002     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10003     # as there is no search path for DLLs.
10004     hardcode_libdir_flag_spec_CXX='-L$libdir'
10005     allow_undefined_flag_CXX=unsupported
10006     always_export_symbols_CXX=no
10007     enable_shared_with_static_runtimes_CXX=yes
10008
10009     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10010       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'
10011       # If the export-symbols file already is a .def file (1st line
10012       # is EXPORTS), use it as is; otherwise, prepend...
10013       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10014         cp $export_symbols $output_objdir/$soname.def;
10015       else
10016         echo EXPORTS > $output_objdir/$soname.def;
10017         cat $export_symbols >> $output_objdir/$soname.def;
10018       fi~
10019       $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'
10020     else
10021       ld_shlibs_CXX=no
10022     fi
10023   ;;
10024
10025   darwin* | rhapsody*)
10026   if test "$GXX" = yes; then
10027     archive_cmds_need_lc_CXX=no
10028     case "$host_os" in
10029     rhapsody* | darwin1.[012])
10030       allow_undefined_flag_CXX='-undefined suppress'
10031       ;;
10032     *) # Darwin 1.3 on
10033       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10034         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10035       else
10036         case ${MACOSX_DEPLOYMENT_TARGET} in
10037           10.[012])
10038             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10039             ;;
10040           10.*)
10041             allow_undefined_flag_CXX='-undefined dynamic_lookup'
10042             ;;
10043         esac
10044       fi
10045       ;;
10046     esac
10047     lt_int_apple_cc_single_mod=no
10048     output_verbose_link_cmd='echo'
10049     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10050       lt_int_apple_cc_single_mod=yes
10051     fi
10052     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10053       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10054     else
10055       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'
10056     fi
10057     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10058
10059     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10060     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10061       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}'
10062     else
10063       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}'
10064     fi
10065     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}'
10066     hardcode_direct_CXX=no
10067     hardcode_automatic_CXX=yes
10068     hardcode_shlibpath_var_CXX=unsupported
10069     whole_archive_flag_spec_CXX='-all_load $convenience'
10070     link_all_deplibs_CXX=yes
10071   else
10072     ld_shlibs_CXX=no
10073   fi
10074     ;;
10075
10076   dgux*)
10077     case $cc_basename in
10078       ec++)
10079         # FIXME: insert proper C++ library support
10080         ld_shlibs_CXX=no
10081         ;;
10082       ghcx)
10083         # Green Hills C++ Compiler
10084         # FIXME: insert proper C++ library support
10085         ld_shlibs_CXX=no
10086         ;;
10087       *)
10088         # FIXME: insert proper C++ library support
10089         ld_shlibs_CXX=no
10090         ;;
10091     esac
10092     ;;
10093   freebsd12*)
10094     # C++ shared libraries reported to be fairly broken before switch to ELF
10095     ld_shlibs_CXX=no
10096     ;;
10097   freebsd-elf*)
10098     archive_cmds_need_lc_CXX=no
10099     ;;
10100   freebsd* | kfreebsd*-gnu)
10101     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10102     # conventions
10103     ld_shlibs_CXX=yes
10104     ;;
10105   gnu*)
10106     ;;
10107   hpux9*)
10108     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10109     hardcode_libdir_separator_CXX=:
10110     export_dynamic_flag_spec_CXX='${wl}-E'
10111     hardcode_direct_CXX=yes
10112     hardcode_minus_L_CXX=yes # Not in the search PATH,
10113                                 # but as the default
10114                                 # location of the library.
10115
10116     case $cc_basename in
10117     CC)
10118       # FIXME: insert proper C++ library support
10119       ld_shlibs_CXX=no
10120       ;;
10121     aCC)
10122       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'
10123       # Commands to make compiler produce verbose output that lists
10124       # what "hidden" libraries, object files and flags are used when
10125       # linking a shared library.
10126       #
10127       # There doesn't appear to be a way to prevent this compiler from
10128       # explicitly linking system object files so we need to strip them
10129       # from the output so that they don't get included in the library
10130       # dependencies.
10131       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'
10132       ;;
10133     *)
10134       if test "$GXX" = yes; then
10135         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'
10136       else
10137         # FIXME: insert proper C++ library support
10138         ld_shlibs_CXX=no
10139       fi
10140       ;;
10141     esac
10142     ;;
10143   hpux10*|hpux11*)
10144     if test $with_gnu_ld = no; then
10145       case "$host_cpu" in
10146       hppa*64*)
10147         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10148         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10149         hardcode_libdir_separator_CXX=:
10150         ;;
10151       ia64*)
10152         hardcode_libdir_flag_spec_CXX='-L$libdir'
10153         ;;
10154       *)
10155         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10156         hardcode_libdir_separator_CXX=:
10157         export_dynamic_flag_spec_CXX='${wl}-E'
10158         ;;
10159       esac
10160     fi
10161     case "$host_cpu" in
10162     hppa*64*)
10163       hardcode_direct_CXX=no
10164       hardcode_shlibpath_var_CXX=no
10165       ;;
10166     ia64*)
10167       hardcode_direct_CXX=no
10168       hardcode_shlibpath_var_CXX=no
10169       hardcode_minus_L_CXX=yes # Not in the search PATH,
10170                                               # but as the default
10171                                               # location of the library.
10172       ;;
10173     *)
10174       hardcode_direct_CXX=yes
10175       hardcode_minus_L_CXX=yes # Not in the search PATH,
10176                                               # but as the default
10177                                               # location of the library.
10178       ;;
10179     esac
10180
10181     case $cc_basename in
10182       CC)
10183         # FIXME: insert proper C++ library support
10184         ld_shlibs_CXX=no
10185         ;;
10186       aCC)
10187         case "$host_cpu" in
10188         hppa*64*|ia64*)
10189           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10190           ;;
10191         *)
10192           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10193           ;;
10194         esac
10195         # Commands to make compiler produce verbose output that lists
10196         # what "hidden" libraries, object files and flags are used when
10197         # linking a shared library.
10198         #
10199         # There doesn't appear to be a way to prevent this compiler from
10200         # explicitly linking system object files so we need to strip them
10201         # from the output so that they don't get included in the library
10202         # dependencies.
10203         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'
10204         ;;
10205       *)
10206         if test "$GXX" = yes; then
10207           if test $with_gnu_ld = no; then
10208             case "$host_cpu" in
10209             ia64*|hppa*64*)
10210               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10211               ;;
10212             *)
10213               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'
10214               ;;
10215             esac
10216           fi
10217         else
10218           # FIXME: insert proper C++ library support
10219           ld_shlibs_CXX=no
10220         fi
10221         ;;
10222     esac
10223     ;;
10224   irix5* | irix6*)
10225     case $cc_basename in
10226       CC)
10227         # SGI C++
10228         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'
10229
10230         # Archives containing C++ object files must be created using
10231         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10232         # necessary to make sure instantiated templates are included
10233         # in the archive.
10234         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10235         ;;
10236       *)
10237         if test "$GXX" = yes; then
10238           if test "$with_gnu_ld" = no; then
10239             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'
10240           else
10241             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'
10242           fi
10243         fi
10244         link_all_deplibs_CXX=yes
10245         ;;
10246     esac
10247     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10248     hardcode_libdir_separator_CXX=:
10249     ;;
10250   linux*)
10251     case $cc_basename in
10252       KCC)
10253         # Kuck and Associates, Inc. (KAI) C++ Compiler
10254
10255         # KCC will only create a shared library if the output file
10256         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10257         # to its proper name (with version) after linking.
10258         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'
10259         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'
10260         # Commands to make compiler produce verbose output that lists
10261         # what "hidden" libraries, object files and flags are used when
10262         # linking a shared library.
10263         #
10264         # There doesn't appear to be a way to prevent this compiler from
10265         # explicitly linking system object files so we need to strip them
10266         # from the output so that they don't get included in the library
10267         # dependencies.
10268         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'
10269
10270         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10271         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10272
10273         # Archives containing C++ object files must be created using
10274         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10275         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10276         ;;
10277       icpc)
10278         # Intel C++
10279         with_gnu_ld=yes
10280         archive_cmds_need_lc_CXX=no
10281         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10282         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'
10283         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10284         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10285         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10286         ;;
10287       cxx)
10288         # Compaq C++
10289         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10290         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'
10291
10292         runpath_var=LD_RUN_PATH
10293         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10294         hardcode_libdir_separator_CXX=:
10295
10296         # Commands to make compiler produce verbose output that lists
10297         # what "hidden" libraries, object files and flags are used when
10298         # linking a shared library.
10299         #
10300         # There doesn't appear to be a way to prevent this compiler from
10301         # explicitly linking system object files so we need to strip them
10302         # from the output so that they don't get included in the library
10303         # dependencies.
10304         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'
10305         ;;
10306     esac
10307     ;;
10308   lynxos*)
10309     # FIXME: insert proper C++ library support
10310     ld_shlibs_CXX=no
10311     ;;
10312   m88k*)
10313     # FIXME: insert proper C++ library support
10314     ld_shlibs_CXX=no
10315     ;;
10316   mvs*)
10317     case $cc_basename in
10318       cxx)
10319         # FIXME: insert proper C++ library support
10320         ld_shlibs_CXX=no
10321         ;;
10322       *)
10323         # FIXME: insert proper C++ library support
10324         ld_shlibs_CXX=no
10325         ;;
10326     esac
10327     ;;
10328   netbsd* | knetbsd*-gnu)
10329     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10330       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10331       wlarc=
10332       hardcode_libdir_flag_spec_CXX='-R$libdir'
10333       hardcode_direct_CXX=yes
10334       hardcode_shlibpath_var_CXX=no
10335     fi
10336     # Workaround some broken pre-1.5 toolchains
10337     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10338     ;;
10339   osf3*)
10340     case $cc_basename in
10341       KCC)
10342         # Kuck and Associates, Inc. (KAI) C++ Compiler
10343
10344         # KCC will only create a shared library if the output file
10345         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10346         # to its proper name (with version) after linking.
10347         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'
10348
10349         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10350         hardcode_libdir_separator_CXX=:
10351
10352         # Archives containing C++ object files must be created using
10353         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10354         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10355
10356         ;;
10357       RCC)
10358         # Rational C++ 2.4.1
10359         # FIXME: insert proper C++ library support
10360         ld_shlibs_CXX=no
10361         ;;
10362       cxx)
10363         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10364         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'
10365
10366         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10367         hardcode_libdir_separator_CXX=:
10368
10369         # Commands to make compiler produce verbose output that lists
10370         # what "hidden" libraries, object files and flags are used when
10371         # linking a shared library.
10372         #
10373         # There doesn't appear to be a way to prevent this compiler from
10374         # explicitly linking system object files so we need to strip them
10375         # from the output so that they don't get included in the library
10376         # dependencies.
10377         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'
10378         ;;
10379       *)
10380         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10381           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10382           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'
10383
10384           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10385           hardcode_libdir_separator_CXX=:
10386
10387           # Commands to make compiler produce verbose output that lists
10388           # what "hidden" libraries, object files and flags are used when
10389           # linking a shared library.
10390           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10391
10392         else
10393           # FIXME: insert proper C++ library support
10394           ld_shlibs_CXX=no
10395         fi
10396         ;;
10397     esac
10398     ;;
10399   osf4* | osf5*)
10400     case $cc_basename in
10401       KCC)
10402         # Kuck and Associates, Inc. (KAI) C++ Compiler
10403
10404         # KCC will only create a shared library if the output file
10405         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10406         # to its proper name (with version) after linking.
10407         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'
10408
10409         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10410         hardcode_libdir_separator_CXX=:
10411
10412         # Archives containing C++ object files must be created using
10413         # the KAI C++ compiler.
10414         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10415         ;;
10416       RCC)
10417         # Rational C++ 2.4.1
10418         # FIXME: insert proper C++ library support
10419         ld_shlibs_CXX=no
10420         ;;
10421       cxx)
10422         allow_undefined_flag_CXX=' -expect_unresolved \*'
10423         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'
10424         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10425           echo "-hidden">> $lib.exp~
10426           $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~
10427           $rm $lib.exp'
10428
10429         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10430         hardcode_libdir_separator_CXX=:
10431
10432         # Commands to make compiler produce verbose output that lists
10433         # what "hidden" libraries, object files and flags are used when
10434         # linking a shared library.
10435         #
10436         # There doesn't appear to be a way to prevent this compiler from
10437         # explicitly linking system object files so we need to strip them
10438         # from the output so that they don't get included in the library
10439         # dependencies.
10440         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'
10441         ;;
10442       *)
10443         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10444           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10445          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'
10446
10447           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10448           hardcode_libdir_separator_CXX=:
10449
10450           # Commands to make compiler produce verbose output that lists
10451           # what "hidden" libraries, object files and flags are used when
10452           # linking a shared library.
10453           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10454
10455         else
10456           # FIXME: insert proper C++ library support
10457           ld_shlibs_CXX=no
10458         fi
10459         ;;
10460     esac
10461     ;;
10462   psos*)
10463     # FIXME: insert proper C++ library support
10464     ld_shlibs_CXX=no
10465     ;;
10466   sco*)
10467     archive_cmds_need_lc_CXX=no
10468     case $cc_basename in
10469       CC)
10470         # FIXME: insert proper C++ library support
10471         ld_shlibs_CXX=no
10472         ;;
10473       *)
10474         # FIXME: insert proper C++ library support
10475         ld_shlibs_CXX=no
10476         ;;
10477     esac
10478     ;;
10479   sunos4*)
10480     case $cc_basename in
10481       CC)
10482         # Sun C++ 4.x
10483         # FIXME: insert proper C++ library support
10484         ld_shlibs_CXX=no
10485         ;;
10486       lcc)
10487         # Lucid
10488         # FIXME: insert proper C++ library support
10489         ld_shlibs_CXX=no
10490         ;;
10491       *)
10492         # FIXME: insert proper C++ library support
10493         ld_shlibs_CXX=no
10494         ;;
10495     esac
10496     ;;
10497   solaris*)
10498     case $cc_basename in
10499       CC)
10500         # Sun C++ 4.2, 5.x and Centerline C++
10501         no_undefined_flag_CXX=' -zdefs'
10502         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10503         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10504         $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'
10505
10506         hardcode_libdir_flag_spec_CXX='-R$libdir'
10507         hardcode_shlibpath_var_CXX=no
10508         case $host_os in
10509           solaris2.0-5 | solaris2.0-5.*) ;;
10510           *)
10511             # The C++ compiler is used as linker so we must use $wl
10512             # flag to pass the commands to the underlying system
10513             # linker.
10514             # Supported since Solaris 2.6 (maybe 2.5.1?)
10515             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10516             ;;
10517         esac
10518         link_all_deplibs_CXX=yes
10519
10520         # Commands to make compiler produce verbose output that lists
10521         # what "hidden" libraries, object files and flags are used when
10522         # linking a shared library.
10523         #
10524         # There doesn't appear to be a way to prevent this compiler from
10525         # explicitly linking system object files so we need to strip them
10526         # from the output so that they don't get included in the library
10527         # dependencies.
10528         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'
10529
10530         # Archives containing C++ object files must be created using
10531         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10532         # necessary to make sure instantiated templates are included
10533         # in the archive.
10534         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10535         ;;
10536       gcx)
10537         # Green Hills C++ Compiler
10538         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10539
10540         # The C++ compiler must be used to create the archive.
10541         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10542         ;;
10543       *)
10544         # GNU C++ compiler with Solaris linker
10545         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10546           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10547           if $CC --version | grep -v '^2\.7' > /dev/null; then
10548             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10549             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10550                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10551
10552             # Commands to make compiler produce verbose output that lists
10553             # what "hidden" libraries, object files and flags are used when
10554             # linking a shared library.
10555             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10556           else
10557             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10558             # platform.
10559             archive_cmds_CXX='$CC -G -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 -G -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 -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10567           fi
10568
10569           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10570         fi
10571         ;;
10572     esac
10573     ;;
10574   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10575     archive_cmds_need_lc_CXX=no
10576     ;;
10577   tandem*)
10578     case $cc_basename in
10579       NCC)
10580         # NonStop-UX NCC 3.20
10581         # FIXME: insert proper C++ library support
10582         ld_shlibs_CXX=no
10583         ;;
10584       *)
10585         # FIXME: insert proper C++ library support
10586         ld_shlibs_CXX=no
10587         ;;
10588     esac
10589     ;;
10590   vxworks*)
10591     # FIXME: insert proper C++ library support
10592     ld_shlibs_CXX=no
10593     ;;
10594   *)
10595     # FIXME: insert proper C++ library support
10596     ld_shlibs_CXX=no
10597     ;;
10598 esac
10599 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10600 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10601 test "$ld_shlibs_CXX" = no && can_build_shared=no
10602
10603 GCC_CXX="$GXX"
10604 LD_CXX="$LD"
10605
10606
10607 cat > conftest.$ac_ext <<EOF
10608 class Foo
10609 {
10610 public:
10611   Foo (void) { a = 0; }
10612 private:
10613   int a;
10614 };
10615 EOF
10616
10617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10618   (eval $ac_compile) 2>&5
10619   ac_status=$?
10620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621   (exit $ac_status); }; then
10622   # Parse the compiler output and extract the necessary
10623   # objects, libraries and library flags.
10624
10625   # Sentinel used to keep track of whether or not we are before
10626   # the conftest object file.
10627   pre_test_object_deps_done=no
10628
10629   # The `*' in the case matches for architectures that use `case' in
10630   # $output_verbose_cmd can trigger glob expansion during the loop
10631   # eval without this substitution.
10632   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10633
10634   for p in `eval $output_verbose_link_cmd`; do
10635     case $p in
10636
10637     -L* | -R* | -l*)
10638        # Some compilers place space between "-{L,R}" and the path.
10639        # Remove the space.
10640        if test $p = "-L" \
10641           || test $p = "-R"; then
10642          prev=$p
10643          continue
10644        else
10645          prev=
10646        fi
10647
10648        if test "$pre_test_object_deps_done" = no; then
10649          case $p in
10650          -L* | -R*)
10651            # Internal compiler library paths should come after those
10652            # provided the user.  The postdeps already come after the
10653            # user supplied libs so there is no need to process them.
10654            if test -z "$compiler_lib_search_path_CXX"; then
10655              compiler_lib_search_path_CXX="${prev}${p}"
10656            else
10657              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10658            fi
10659            ;;
10660          # The "-l" case would never come before the object being
10661          # linked, so don't bother handling this case.
10662          esac
10663        else
10664          if test -z "$postdeps_CXX"; then
10665            postdeps_CXX="${prev}${p}"
10666          else
10667            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10668          fi
10669        fi
10670        ;;
10671
10672     *.$objext)
10673        # This assumes that the test object file only shows up
10674        # once in the compiler output.
10675        if test "$p" = "conftest.$objext"; then
10676          pre_test_object_deps_done=yes
10677          continue
10678        fi
10679
10680        if test "$pre_test_object_deps_done" = no; then
10681          if test -z "$predep_objects_CXX"; then
10682            predep_objects_CXX="$p"
10683          else
10684            predep_objects_CXX="$predep_objects_CXX $p"
10685          fi
10686        else
10687          if test -z "$postdep_objects_CXX"; then
10688            postdep_objects_CXX="$p"
10689          else
10690            postdep_objects_CXX="$postdep_objects_CXX $p"
10691          fi
10692        fi
10693        ;;
10694
10695     *) ;; # Ignore the rest.
10696
10697     esac
10698   done
10699
10700   # Clean up.
10701   rm -f a.out a.exe
10702 else
10703   echo "libtool.m4: error: problem compiling CXX test program"
10704 fi
10705
10706 $rm -f confest.$objext
10707
10708 case " $postdeps_CXX " in
10709 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10710 esac
10711
10712 lt_prog_compiler_wl_CXX=
10713 lt_prog_compiler_pic_CXX=
10714 lt_prog_compiler_static_CXX=
10715
10716 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10717 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10718
10719   # C++ specific cases for pic, static, wl, etc.
10720   if test "$GXX" = yes; then
10721     lt_prog_compiler_wl_CXX='-Wl,'
10722     lt_prog_compiler_static_CXX='-static'
10723
10724     case $host_os in
10725     aix*)
10726       # All AIX code is PIC.
10727       if test "$host_cpu" = ia64; then
10728         # AIX 5 now supports IA64 processor
10729         lt_prog_compiler_static_CXX='-Bstatic'
10730       fi
10731       ;;
10732     amigaos*)
10733       # FIXME: we need at least 68020 code to build shared libraries, but
10734       # adding the `-m68020' flag to GCC prevents building anything better,
10735       # like `-m68040'.
10736       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10737       ;;
10738     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10739       # PIC is the default for these OSes.
10740       ;;
10741     mingw* | os2* | pw32*)
10742       # This hack is so that the source file can tell whether it is being
10743       # built for inclusion in a dll (and should export symbols for example).
10744       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10745       ;;
10746     darwin* | rhapsody*)
10747       # PIC is the default on this platform
10748       # Common symbols not allowed in MH_DYLIB files
10749       lt_prog_compiler_pic_CXX='-fno-common'
10750       ;;
10751     *djgpp*)
10752       # DJGPP does not support shared libraries at all
10753       lt_prog_compiler_pic_CXX=
10754       ;;
10755     sysv4*MP*)
10756       if test -d /usr/nec; then
10757         lt_prog_compiler_pic_CXX=-Kconform_pic
10758       fi
10759       ;;
10760     hpux*)
10761       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10762       # not for PA HP-UX.
10763       case "$host_cpu" in
10764       hppa*64*|ia64*)
10765         ;;
10766       *)
10767         lt_prog_compiler_pic_CXX='-fPIC'
10768         ;;
10769       esac
10770       ;;
10771     *)
10772       lt_prog_compiler_pic_CXX='-fPIC'
10773       ;;
10774     esac
10775   else
10776     case $host_os in
10777       aix4* | aix5*)
10778         # All AIX code is PIC.
10779         if test "$host_cpu" = ia64; then
10780           # AIX 5 now supports IA64 processor
10781           lt_prog_compiler_static_CXX='-Bstatic'
10782         else
10783           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10784         fi
10785         ;;
10786       chorus*)
10787         case $cc_basename in
10788         cxch68)
10789           # Green Hills C++ Compiler
10790           # _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"
10791           ;;
10792         esac
10793         ;;
10794       dgux*)
10795         case $cc_basename in
10796           ec++)
10797             lt_prog_compiler_pic_CXX='-KPIC'
10798             ;;
10799           ghcx)
10800             # Green Hills C++ Compiler
10801             lt_prog_compiler_pic_CXX='-pic'
10802             ;;
10803           *)
10804             ;;
10805         esac
10806         ;;
10807       freebsd* | kfreebsd*-gnu)
10808         # FreeBSD uses GNU C++
10809         ;;
10810       hpux9* | hpux10* | hpux11*)
10811         case $cc_basename in
10812           CC)
10813             lt_prog_compiler_wl_CXX='-Wl,'
10814             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10815             if test "$host_cpu" != ia64; then
10816               lt_prog_compiler_pic_CXX='+Z'
10817             fi
10818             ;;
10819           aCC)
10820             lt_prog_compiler_wl_CXX='-Wl,'
10821             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10822             case "$host_cpu" in
10823             hppa*64*|ia64*)
10824               # +Z the default
10825               ;;
10826             *)
10827               lt_prog_compiler_pic_CXX='+Z'
10828               ;;
10829             esac
10830             ;;
10831           *)
10832             ;;
10833         esac
10834         ;;
10835       irix5* | irix6* | nonstopux*)
10836         case $cc_basename in
10837           CC)
10838             lt_prog_compiler_wl_CXX='-Wl,'
10839             lt_prog_compiler_static_CXX='-non_shared'
10840             # CC pic flag -KPIC is the default.
10841             ;;
10842           *)
10843             ;;
10844         esac
10845         ;;
10846       linux*)
10847         case $cc_basename in
10848           KCC)
10849             # KAI C++ Compiler
10850             lt_prog_compiler_wl_CXX='--backend -Wl,'
10851             lt_prog_compiler_pic_CXX='-fPIC'
10852             ;;
10853           icpc)
10854             # Intel C++
10855             lt_prog_compiler_wl_CXX='-Wl,'
10856             lt_prog_compiler_pic_CXX='-KPIC'
10857             lt_prog_compiler_static_CXX='-static'
10858             ;;
10859           cxx)
10860             # Compaq C++
10861             # Make sure the PIC flag is empty.  It appears that all Alpha
10862             # Linux and Compaq Tru64 Unix objects are PIC.
10863             lt_prog_compiler_pic_CXX=
10864             lt_prog_compiler_static_CXX='-non_shared'
10865             ;;
10866           *)
10867             ;;
10868         esac
10869         ;;
10870       lynxos*)
10871         ;;
10872       m88k*)
10873         ;;
10874       mvs*)
10875         case $cc_basename in
10876           cxx)
10877             lt_prog_compiler_pic_CXX='-W c,exportall'
10878             ;;
10879           *)
10880             ;;
10881         esac
10882         ;;
10883       netbsd* | knetbsd*-gnu)
10884         ;;
10885       osf3* | osf4* | osf5*)
10886         case $cc_basename in
10887           KCC)
10888             lt_prog_compiler_wl_CXX='--backend -Wl,'
10889             ;;
10890           RCC)
10891             # Rational C++ 2.4.1
10892             lt_prog_compiler_pic_CXX='-pic'
10893             ;;
10894           cxx)
10895             # Digital/Compaq C++
10896             lt_prog_compiler_wl_CXX='-Wl,'
10897             # Make sure the PIC flag is empty.  It appears that all Alpha
10898             # Linux and Compaq Tru64 Unix objects are PIC.
10899             lt_prog_compiler_pic_CXX=
10900             lt_prog_compiler_static_CXX='-non_shared'
10901             ;;
10902           *)
10903             ;;
10904         esac
10905         ;;
10906       psos*)
10907         ;;
10908       sco*)
10909         case $cc_basename in
10910           CC)
10911             lt_prog_compiler_pic_CXX='-fPIC'
10912             ;;
10913           *)
10914             ;;
10915         esac
10916         ;;
10917       solaris*)
10918         case $cc_basename in
10919           CC)
10920             # Sun C++ 4.2, 5.x and Centerline C++
10921             lt_prog_compiler_pic_CXX='-KPIC'
10922             lt_prog_compiler_static_CXX='-Bstatic'
10923             lt_prog_compiler_wl_CXX='-Qoption ld '
10924             ;;
10925           gcx)
10926             # Green Hills C++ Compiler
10927             lt_prog_compiler_pic_CXX='-PIC'
10928             ;;
10929           *)
10930             ;;
10931         esac
10932         ;;
10933       sunos4*)
10934         case $cc_basename in
10935           CC)
10936             # Sun C++ 4.x
10937             lt_prog_compiler_pic_CXX='-pic'
10938             lt_prog_compiler_static_CXX='-Bstatic'
10939             ;;
10940           lcc)
10941             # Lucid
10942             lt_prog_compiler_pic_CXX='-pic'
10943             ;;
10944           *)
10945             ;;
10946         esac
10947         ;;
10948       tandem*)
10949         case $cc_basename in
10950           NCC)
10951             # NonStop-UX NCC 3.20
10952             lt_prog_compiler_pic_CXX='-KPIC'
10953             ;;
10954           *)
10955             ;;
10956         esac
10957         ;;
10958       unixware*)
10959         ;;
10960       vxworks*)
10961         ;;
10962       *)
10963         lt_prog_compiler_can_build_shared_CXX=no
10964         ;;
10965     esac
10966   fi
10967
10968 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10969 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10970
10971 #
10972 # Check to make sure the PIC flag actually works.
10973 #
10974 if test -n "$lt_prog_compiler_pic_CXX"; then
10975
10976 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10977 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10978 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10979   echo $ECHO_N "(cached) $ECHO_C" >&6
10980 else
10981   lt_prog_compiler_pic_works_CXX=no
10982   ac_outfile=conftest.$ac_objext
10983    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10984    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10985    # Insert the option either (1) after the last *FLAGS variable, or
10986    # (2) before a word containing "conftest.", or (3) at the end.
10987    # Note that $ac_compile itself does not contain backslashes and begins
10988    # with a dollar sign (not a hyphen), so the echo should work correctly.
10989    # The option is referenced via a variable to avoid confusing sed.
10990    lt_compile=`echo "$ac_compile" | $SED \
10991    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10992    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10993    -e 's:$: $lt_compiler_flag:'`
10994    (eval echo "\"\$as_me:10994: $lt_compile\"" >&5)
10995    (eval "$lt_compile" 2>conftest.err)
10996    ac_status=$?
10997    cat conftest.err >&5
10998    echo "$as_me:10998: \$? = $ac_status" >&5
10999    if (exit $ac_status) && test -s "$ac_outfile"; then
11000      # The compiler can only warn and ignore the option if not recognized
11001      # So say no if there are warnings
11002      if test ! -s conftest.err; then
11003        lt_prog_compiler_pic_works_CXX=yes
11004      fi
11005    fi
11006    $rm conftest*
11007
11008 fi
11009 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11010 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11011
11012 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11013     case $lt_prog_compiler_pic_CXX in
11014      "" | " "*) ;;
11015      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11016      esac
11017 else
11018     lt_prog_compiler_pic_CXX=
11019      lt_prog_compiler_can_build_shared_CXX=no
11020 fi
11021
11022 fi
11023 case "$host_os" in
11024   # For platforms which do not support PIC, -DPIC is meaningless:
11025   *djgpp*)
11026     lt_prog_compiler_pic_CXX=
11027     ;;
11028   *)
11029     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11030     ;;
11031 esac
11032
11033 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11034 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11035 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11036   echo $ECHO_N "(cached) $ECHO_C" >&6
11037 else
11038   lt_cv_prog_compiler_c_o_CXX=no
11039    $rm -r conftest 2>/dev/null
11040    mkdir conftest
11041    cd conftest
11042    mkdir out
11043    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11044
11045    lt_compiler_flag="-o out/conftest2.$ac_objext"
11046    # Insert the option either (1) after the last *FLAGS variable, or
11047    # (2) before a word containing "conftest.", or (3) at the end.
11048    # Note that $ac_compile itself does not contain backslashes and begins
11049    # with a dollar sign (not a hyphen), so the echo should work correctly.
11050    lt_compile=`echo "$ac_compile" | $SED \
11051    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11052    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11053    -e 's:$: $lt_compiler_flag:'`
11054    (eval echo "\"\$as_me:11054: $lt_compile\"" >&5)
11055    (eval "$lt_compile" 2>out/conftest.err)
11056    ac_status=$?
11057    cat out/conftest.err >&5
11058    echo "$as_me:11058: \$? = $ac_status" >&5
11059    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11060    then
11061      # The compiler can only warn and ignore the option if not recognized
11062      # So say no if there are warnings
11063      if test ! -s out/conftest.err; then
11064        lt_cv_prog_compiler_c_o_CXX=yes
11065      fi
11066    fi
11067    chmod u+w .
11068    $rm conftest*
11069    # SGI C++ compiler will create directory out/ii_files/ for
11070    # template instantiation
11071    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11072    $rm out/* && rmdir out
11073    cd ..
11074    rmdir conftest
11075    $rm conftest*
11076
11077 fi
11078 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11079 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11080
11081
11082 hard_links="nottested"
11083 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11084   # do not overwrite the value of need_locks provided by the user
11085   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11086 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11087   hard_links=yes
11088   $rm conftest*
11089   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11090   touch conftest.a
11091   ln conftest.a conftest.b 2>&5 || hard_links=no
11092   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11093   echo "$as_me:$LINENO: result: $hard_links" >&5
11094 echo "${ECHO_T}$hard_links" >&6
11095   if test "$hard_links" = no; then
11096     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11097 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11098     need_locks=warn
11099   fi
11100 else
11101   need_locks=no
11102 fi
11103
11104 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11105 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11106
11107   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11108   case $host_os in
11109   aix4* | aix5*)
11110     # If we're using GNU nm, then we don't want the "-C" option.
11111     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11112     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11113       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'
11114     else
11115       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'
11116     fi
11117     ;;
11118   pw32*)
11119     export_symbols_cmds_CXX="$ltdll_cmds"
11120   ;;
11121   cygwin* | mingw*)
11122     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11123   ;;
11124   linux*)
11125     link_all_deplibs_CXX=no
11126   ;;
11127   *)
11128     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11129   ;;
11130   esac
11131
11132 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11133 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11134 test "$ld_shlibs_CXX" = no && can_build_shared=no
11135
11136 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11137 if test "$GCC" = yes; then
11138   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11139 fi
11140
11141 #
11142 # Do we need to explicitly link libc?
11143 #
11144 case "x$archive_cmds_need_lc_CXX" in
11145 x|xyes)
11146   # Assume -lc should be added
11147   archive_cmds_need_lc_CXX=yes
11148
11149   if test "$enable_shared" = yes && test "$GCC" = yes; then
11150     case $archive_cmds_CXX in
11151     *'~'*)
11152       # FIXME: we may have to deal with multi-command sequences.
11153       ;;
11154     '$CC '*)
11155       # Test whether the compiler implicitly links with -lc since on some
11156       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11157       # to ld, don't add -lc before -lgcc.
11158       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11159 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11160       $rm conftest*
11161       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11162
11163       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11164   (eval $ac_compile) 2>&5
11165   ac_status=$?
11166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167   (exit $ac_status); } 2>conftest.err; then
11168         soname=conftest
11169         lib=conftest
11170         libobjs=conftest.$ac_objext
11171         deplibs=
11172         wl=$lt_prog_compiler_wl_CXX
11173         compiler_flags=-v
11174         linker_flags=-v
11175         verstring=
11176         output_objdir=.
11177         libname=conftest
11178         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11179         allow_undefined_flag_CXX=
11180         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11181   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11182   ac_status=$?
11183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184   (exit $ac_status); }
11185         then
11186           archive_cmds_need_lc_CXX=no
11187         else
11188           archive_cmds_need_lc_CXX=yes
11189         fi
11190         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11191       else
11192         cat conftest.err 1>&5
11193       fi
11194       $rm conftest*
11195       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11196 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11197       ;;
11198     esac
11199   fi
11200   ;;
11201 esac
11202
11203 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11204 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11205 library_names_spec=
11206 libname_spec='lib$name'
11207 soname_spec=
11208 shrext_cmds=".so"
11209 postinstall_cmds=
11210 postuninstall_cmds=
11211 finish_cmds=
11212 finish_eval=
11213 shlibpath_var=
11214 shlibpath_overrides_runpath=unknown
11215 version_type=none
11216 dynamic_linker="$host_os ld.so"
11217 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11218 if test "$GCC" = yes; then
11219   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11220   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11221     # if the path contains ";" then we assume it to be the separator
11222     # otherwise default to the standard path separator (i.e. ":") - it is
11223     # assumed that no part of a normal pathname contains ";" but that should
11224     # okay in the real world where ";" in dirpaths is itself problematic.
11225     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11226   else
11227     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11228   fi
11229 else
11230   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11231 fi
11232 need_lib_prefix=unknown
11233 hardcode_into_libs=no
11234
11235 # when you set need_version to no, make sure it does not cause -set_version
11236 # flags to be left without arguments
11237 need_version=unknown
11238
11239 case $host_os in
11240 aix3*)
11241   version_type=linux
11242   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11243   shlibpath_var=LIBPATH
11244
11245   # AIX 3 has no versioning support, so we append a major version to the name.
11246   soname_spec='${libname}${release}${shared_ext}$major'
11247   ;;
11248
11249 aix4* | aix5*)
11250   version_type=linux
11251   need_lib_prefix=no
11252   need_version=no
11253   hardcode_into_libs=yes
11254   if test "$host_cpu" = ia64; then
11255     # AIX 5 supports IA64
11256     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11257     shlibpath_var=LD_LIBRARY_PATH
11258   else
11259     # With GCC up to 2.95.x, collect2 would create an import file
11260     # for dependence libraries.  The import file would start with
11261     # the line `#! .'.  This would cause the generated library to
11262     # depend on `.', always an invalid library.  This was fixed in
11263     # development snapshots of GCC prior to 3.0.
11264     case $host_os in
11265       aix4 | aix4.[01] | aix4.[01].*)
11266       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11267            echo ' yes '
11268            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11269         :
11270       else
11271         can_build_shared=no
11272       fi
11273       ;;
11274     esac
11275     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11276     # soname into executable. Probably we can add versioning support to
11277     # collect2, so additional links can be useful in future.
11278     if test "$aix_use_runtimelinking" = yes; then
11279       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11280       # instead of lib<name>.a to let people know that these are not
11281       # typical AIX shared libraries.
11282       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11283     else
11284       # We preserve .a as extension for shared libraries through AIX4.2
11285       # and later when we are not doing run time linking.
11286       library_names_spec='${libname}${release}.a $libname.a'
11287       soname_spec='${libname}${release}${shared_ext}$major'
11288     fi
11289     shlibpath_var=LIBPATH
11290   fi
11291   ;;
11292
11293 amigaos*)
11294   library_names_spec='$libname.ixlibrary $libname.a'
11295   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11296   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'
11297   ;;
11298
11299 beos*)
11300   library_names_spec='${libname}${shared_ext}'
11301   dynamic_linker="$host_os ld.so"
11302   shlibpath_var=LIBRARY_PATH
11303   ;;
11304
11305 bsdi4*)
11306   version_type=linux
11307   need_version=no
11308   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11309   soname_spec='${libname}${release}${shared_ext}$major'
11310   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11311   shlibpath_var=LD_LIBRARY_PATH
11312   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11313   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11314   # the default ld.so.conf also contains /usr/contrib/lib and
11315   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11316   # libtool to hard-code these into programs
11317   ;;
11318
11319 cygwin* | mingw* | pw32*)
11320   version_type=windows
11321   shrext_cmds=".dll"
11322   need_version=no
11323   need_lib_prefix=no
11324
11325   case $GCC,$host_os in
11326   yes,cygwin* | yes,mingw* | yes,pw32*)
11327     library_names_spec='$libname.dll.a'
11328     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11329     postinstall_cmds='base_file=`basename \${file}`~
11330       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11331       dldir=$destdir/`dirname \$dlpath`~
11332       test -d \$dldir || mkdir -p \$dldir~
11333       $install_prog $dir/$dlname \$dldir/$dlname'
11334     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11335       dlpath=$dir/\$dldll~
11336        $rm \$dlpath'
11337     shlibpath_overrides_runpath=yes
11338
11339     case $host_os in
11340     cygwin*)
11341       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11342       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11343       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11344       ;;
11345     mingw*)
11346       # MinGW DLLs use traditional 'lib' prefix
11347       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11348       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11349       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11350         # It is most probably a Windows format PATH printed by
11351         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11352         # path with ; separators, and with drive letters. We can handle the
11353         # drive letters (cygwin fileutils understands them), so leave them,
11354         # especially as we might pass files found there to a mingw objdump,
11355         # which wouldn't understand a cygwinified path. Ahh.
11356         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11357       else
11358         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11359       fi
11360       ;;
11361     pw32*)
11362       # pw32 DLLs use 'pw' prefix rather than 'lib'
11363       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11364       ;;
11365     esac
11366     ;;
11367
11368   *)
11369     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11370     ;;
11371   esac
11372   dynamic_linker='Win32 ld.exe'
11373   # FIXME: first we should search . and the directory the executable is in
11374   shlibpath_var=PATH
11375   ;;
11376
11377 darwin* | rhapsody*)
11378   dynamic_linker="$host_os dyld"
11379   version_type=darwin
11380   need_lib_prefix=no
11381   need_version=no
11382   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11383   soname_spec='${libname}${release}${major}$shared_ext'
11384   shlibpath_overrides_runpath=yes
11385   shlibpath_var=DYLD_LIBRARY_PATH
11386   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11387   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11388   if test "$GCC" = yes; then
11389     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"`
11390   else
11391     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11392   fi
11393   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11394   ;;
11395
11396 dgux*)
11397   version_type=linux
11398   need_lib_prefix=no
11399   need_version=no
11400   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11401   soname_spec='${libname}${release}${shared_ext}$major'
11402   shlibpath_var=LD_LIBRARY_PATH
11403   ;;
11404
11405 freebsd1*)
11406   dynamic_linker=no
11407   ;;
11408
11409 kfreebsd*-gnu)
11410   version_type=linux
11411   need_lib_prefix=no
11412   need_version=no
11413   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11414   soname_spec='${libname}${release}${shared_ext}$major'
11415   shlibpath_var=LD_LIBRARY_PATH
11416   shlibpath_overrides_runpath=no
11417   hardcode_into_libs=yes
11418   dynamic_linker='GNU ld.so'
11419   ;;
11420
11421 freebsd*)
11422   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11423   version_type=freebsd-$objformat
11424   case $version_type in
11425     freebsd-elf*)
11426       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11427       need_version=no
11428       need_lib_prefix=no
11429       ;;
11430     freebsd-*)
11431       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11432       need_version=yes
11433       ;;
11434   esac
11435   shlibpath_var=LD_LIBRARY_PATH
11436   case $host_os in
11437   freebsd2*)
11438     shlibpath_overrides_runpath=yes
11439     ;;
11440   freebsd3.01* | freebsdelf3.01*)
11441     shlibpath_overrides_runpath=yes
11442     hardcode_into_libs=yes
11443     ;;
11444   *) # from 3.2 on
11445     shlibpath_overrides_runpath=no
11446     hardcode_into_libs=yes
11447     ;;
11448   esac
11449   ;;
11450
11451 gnu*)
11452   version_type=linux
11453   need_lib_prefix=no
11454   need_version=no
11455   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11456   soname_spec='${libname}${release}${shared_ext}$major'
11457   shlibpath_var=LD_LIBRARY_PATH
11458   hardcode_into_libs=yes
11459   ;;
11460
11461 hpux9* | hpux10* | hpux11*)
11462   # Give a soname corresponding to the major version so that dld.sl refuses to
11463   # link against other versions.
11464   version_type=sunos
11465   need_lib_prefix=no
11466   need_version=no
11467   case "$host_cpu" in
11468   ia64*)
11469     shrext_cmds='.so'
11470     hardcode_into_libs=yes
11471     dynamic_linker="$host_os dld.so"
11472     shlibpath_var=LD_LIBRARY_PATH
11473     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11474     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11475     soname_spec='${libname}${release}${shared_ext}$major'
11476     if test "X$HPUX_IA64_MODE" = X32; then
11477       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11478     else
11479       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11480     fi
11481     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11482     ;;
11483    hppa*64*)
11484      shrext_cmds='.sl'
11485      hardcode_into_libs=yes
11486      dynamic_linker="$host_os dld.sl"
11487      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_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      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11492      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11493      ;;
11494    *)
11495     shrext_cmds='.sl'
11496     dynamic_linker="$host_os dld.sl"
11497     shlibpath_var=SHLIB_PATH
11498     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11499     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11500     soname_spec='${libname}${release}${shared_ext}$major'
11501     ;;
11502   esac
11503   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11504   postinstall_cmds='chmod 555 $lib'
11505   ;;
11506
11507 irix5* | irix6* | nonstopux*)
11508   case $host_os in
11509     nonstopux*) version_type=nonstopux ;;
11510     *)
11511         if test "$lt_cv_prog_gnu_ld" = yes; then
11512                 version_type=linux
11513         else
11514                 version_type=irix
11515         fi ;;
11516   esac
11517   need_lib_prefix=no
11518   need_version=no
11519   soname_spec='${libname}${release}${shared_ext}$major'
11520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11521   case $host_os in
11522   irix5* | nonstopux*)
11523     libsuff= shlibsuff=
11524     ;;
11525   *)
11526     case $LD in # libtool.m4 will add one of these switches to LD
11527     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11528       libsuff= shlibsuff= libmagic=32-bit;;
11529     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11530       libsuff=32 shlibsuff=N32 libmagic=N32;;
11531     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11532       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11533     *) libsuff= shlibsuff= libmagic=never-match;;
11534     esac
11535     ;;
11536   esac
11537   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11538   shlibpath_overrides_runpath=no
11539   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11540   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11541   hardcode_into_libs=yes
11542   ;;
11543
11544 # No shared lib support for Linux oldld, aout, or coff.
11545 linux*oldld* | linux*aout* | linux*coff*)
11546   dynamic_linker=no
11547   ;;
11548
11549 # This must be Linux ELF.
11550 linux*)
11551   version_type=linux
11552   need_lib_prefix=no
11553   need_version=no
11554   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11555   soname_spec='${libname}${release}${shared_ext}$major'
11556   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11557   shlibpath_var=LD_LIBRARY_PATH
11558   shlibpath_overrides_runpath=no
11559   # This implies no fast_install, which is unacceptable.
11560   # Some rework will be needed to allow for fast_install
11561   # before this can be enabled.
11562   hardcode_into_libs=yes
11563
11564   # Append ld.so.conf contents to the search path
11565   if test -f /etc/ld.so.conf; then
11566     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11567     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11568   fi
11569
11570   # We used to test for /lib/ld.so.1 and disable shared libraries on
11571   # powerpc, because MkLinux only supported shared libraries with the
11572   # GNU dynamic linker.  Since this was broken with cross compilers,
11573   # most powerpc-linux boxes support dynamic linking these days and
11574   # people can always --disable-shared, the test was removed, and we
11575   # assume the GNU/Linux dynamic linker is in use.
11576   dynamic_linker='GNU/Linux ld.so'
11577   ;;
11578
11579 knetbsd*-gnu)
11580   version_type=linux
11581   need_lib_prefix=no
11582   need_version=no
11583   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11584   soname_spec='${libname}${release}${shared_ext}$major'
11585   shlibpath_var=LD_LIBRARY_PATH
11586   shlibpath_overrides_runpath=no
11587   hardcode_into_libs=yes
11588   dynamic_linker='GNU ld.so'
11589   ;;
11590
11591 netbsd*)
11592   version_type=sunos
11593   need_lib_prefix=no
11594   need_version=no
11595   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11596     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11597     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11598     dynamic_linker='NetBSD (a.out) ld.so'
11599   else
11600     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11601     soname_spec='${libname}${release}${shared_ext}$major'
11602     dynamic_linker='NetBSD ld.elf_so'
11603   fi
11604   shlibpath_var=LD_LIBRARY_PATH
11605   shlibpath_overrides_runpath=yes
11606   hardcode_into_libs=yes
11607   ;;
11608
11609 newsos6)
11610   version_type=linux
11611   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11612   shlibpath_var=LD_LIBRARY_PATH
11613   shlibpath_overrides_runpath=yes
11614   ;;
11615
11616 nto-qnx*)
11617   version_type=linux
11618   need_lib_prefix=no
11619   need_version=no
11620   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11621   soname_spec='${libname}${release}${shared_ext}$major'
11622   shlibpath_var=LD_LIBRARY_PATH
11623   shlibpath_overrides_runpath=yes
11624   ;;
11625
11626 openbsd*)
11627   version_type=sunos
11628   need_lib_prefix=no
11629   need_version=yes
11630   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11631   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11632   shlibpath_var=LD_LIBRARY_PATH
11633   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11634     case $host_os in
11635       openbsd2.[89] | openbsd2.[89].*)
11636         shlibpath_overrides_runpath=no
11637         ;;
11638       *)
11639         shlibpath_overrides_runpath=yes
11640         ;;
11641       esac
11642   else
11643     shlibpath_overrides_runpath=yes
11644   fi
11645   ;;
11646
11647 os2*)
11648   libname_spec='$name'
11649   shrext_cmds=".dll"
11650   need_lib_prefix=no
11651   library_names_spec='$libname${shared_ext} $libname.a'
11652   dynamic_linker='OS/2 ld.exe'
11653   shlibpath_var=LIBPATH
11654   ;;
11655
11656 osf3* | osf4* | osf5*)
11657   version_type=osf
11658   need_lib_prefix=no
11659   need_version=no
11660   soname_spec='${libname}${release}${shared_ext}$major'
11661   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11662   shlibpath_var=LD_LIBRARY_PATH
11663   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11664   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11665   ;;
11666
11667 sco3.2v5*)
11668   version_type=osf
11669   soname_spec='${libname}${release}${shared_ext}$major'
11670   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11671   shlibpath_var=LD_LIBRARY_PATH
11672   ;;
11673
11674 solaris*)
11675   version_type=linux
11676   need_lib_prefix=no
11677   need_version=no
11678   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11679   soname_spec='${libname}${release}${shared_ext}$major'
11680   shlibpath_var=LD_LIBRARY_PATH
11681   shlibpath_overrides_runpath=yes
11682   hardcode_into_libs=yes
11683   # ldd complains unless libraries are executable
11684   postinstall_cmds='chmod +x $lib'
11685   ;;
11686
11687 sunos4*)
11688   version_type=sunos
11689   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11690   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11691   shlibpath_var=LD_LIBRARY_PATH
11692   shlibpath_overrides_runpath=yes
11693   if test "$with_gnu_ld" = yes; then
11694     need_lib_prefix=no
11695   fi
11696   need_version=yes
11697   ;;
11698
11699 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11700   version_type=linux
11701   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11702   soname_spec='${libname}${release}${shared_ext}$major'
11703   shlibpath_var=LD_LIBRARY_PATH
11704   case $host_vendor in
11705     sni)
11706       shlibpath_overrides_runpath=no
11707       need_lib_prefix=no
11708       export_dynamic_flag_spec='${wl}-Blargedynsym'
11709       runpath_var=LD_RUN_PATH
11710       ;;
11711     siemens)
11712       need_lib_prefix=no
11713       ;;
11714     motorola)
11715       need_lib_prefix=no
11716       need_version=no
11717       shlibpath_overrides_runpath=no
11718       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11719       ;;
11720   esac
11721   ;;
11722
11723 sysv4*MP*)
11724   if test -d /usr/nec ;then
11725     version_type=linux
11726     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11727     soname_spec='$libname${shared_ext}.$major'
11728     shlibpath_var=LD_LIBRARY_PATH
11729   fi
11730   ;;
11731
11732 uts4*)
11733   version_type=linux
11734   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11735   soname_spec='${libname}${release}${shared_ext}$major'
11736   shlibpath_var=LD_LIBRARY_PATH
11737   ;;
11738
11739 *)
11740   dynamic_linker=no
11741   ;;
11742 esac
11743 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11744 echo "${ECHO_T}$dynamic_linker" >&6
11745 test "$dynamic_linker" = no && can_build_shared=no
11746
11747 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11748 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11749 hardcode_action_CXX=
11750 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11751    test -n "$runpath_var CXX" || \
11752    test "X$hardcode_automatic_CXX"="Xyes" ; then
11753
11754   # We can hardcode non-existant directories.
11755   if test "$hardcode_direct_CXX" != no &&
11756      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11757      # have to relink, otherwise we might link with an installed library
11758      # when we should be linking with a yet-to-be-installed one
11759      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11760      test "$hardcode_minus_L_CXX" != no; then
11761     # Linking always hardcodes the temporary library directory.
11762     hardcode_action_CXX=relink
11763   else
11764     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11765     hardcode_action_CXX=immediate
11766   fi
11767 else
11768   # We cannot hardcode anything, or else we can only hardcode existing
11769   # directories.
11770   hardcode_action_CXX=unsupported
11771 fi
11772 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11773 echo "${ECHO_T}$hardcode_action_CXX" >&6
11774
11775 if test "$hardcode_action_CXX" = relink; then
11776   # Fast installation is not supported
11777   enable_fast_install=no
11778 elif test "$shlibpath_overrides_runpath" = yes ||
11779      test "$enable_shared" = no; then
11780   # Fast installation is not necessary
11781   enable_fast_install=needless
11782 fi
11783
11784 striplib=
11785 old_striplib=
11786 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11787 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11788 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11789   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11790   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11791   echo "$as_me:$LINENO: result: yes" >&5
11792 echo "${ECHO_T}yes" >&6
11793 else
11794 # FIXME - insert some real tests, host_os isn't really good enough
11795   case $host_os in
11796    darwin*)
11797        if test -n "$STRIP" ; then
11798          striplib="$STRIP -x"
11799          echo "$as_me:$LINENO: result: yes" >&5
11800 echo "${ECHO_T}yes" >&6
11801        else
11802   echo "$as_me:$LINENO: result: no" >&5
11803 echo "${ECHO_T}no" >&6
11804 fi
11805        ;;
11806    *)
11807   echo "$as_me:$LINENO: result: no" >&5
11808 echo "${ECHO_T}no" >&6
11809     ;;
11810   esac
11811 fi
11812
11813 if test "x$enable_dlopen" != xyes; then
11814   enable_dlopen=unknown
11815   enable_dlopen_self=unknown
11816   enable_dlopen_self_static=unknown
11817 else
11818   lt_cv_dlopen=no
11819   lt_cv_dlopen_libs=
11820
11821   case $host_os in
11822   beos*)
11823     lt_cv_dlopen="load_add_on"
11824     lt_cv_dlopen_libs=
11825     lt_cv_dlopen_self=yes
11826     ;;
11827
11828   mingw* | pw32*)
11829     lt_cv_dlopen="LoadLibrary"
11830     lt_cv_dlopen_libs=
11831    ;;
11832
11833   cygwin*)
11834     lt_cv_dlopen="dlopen"
11835     lt_cv_dlopen_libs=
11836    ;;
11837
11838   darwin*)
11839   # if libdl is installed we need to link against it
11840     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11841 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11842 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11843   echo $ECHO_N "(cached) $ECHO_C" >&6
11844 else
11845   ac_check_lib_save_LIBS=$LIBS
11846 LIBS="-ldl  $LIBS"
11847 cat >conftest.$ac_ext <<_ACEOF
11848 /* confdefs.h.  */
11849 _ACEOF
11850 cat confdefs.h >>conftest.$ac_ext
11851 cat >>conftest.$ac_ext <<_ACEOF
11852 /* end confdefs.h.  */
11853
11854 /* Override any gcc2 internal prototype to avoid an error.  */
11855 #ifdef __cplusplus
11856 extern "C"
11857 #endif
11858 /* We use char because int might match the return type of a gcc2
11859    builtin and then its argument prototype would still apply.  */
11860 char dlopen ();
11861 int
11862 main ()
11863 {
11864 dlopen ();
11865   ;
11866   return 0;
11867 }
11868 _ACEOF
11869 rm -f conftest.$ac_objext conftest$ac_exeext
11870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11871   (eval $ac_link) 2>conftest.er1
11872   ac_status=$?
11873   grep -v '^ *+' conftest.er1 >conftest.err
11874   rm -f conftest.er1
11875   cat conftest.err >&5
11876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877   (exit $ac_status); } &&
11878          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11880   (eval $ac_try) 2>&5
11881   ac_status=$?
11882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883   (exit $ac_status); }; } &&
11884          { ac_try='test -s conftest$ac_exeext'
11885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11886   (eval $ac_try) 2>&5
11887   ac_status=$?
11888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889   (exit $ac_status); }; }; then
11890   ac_cv_lib_dl_dlopen=yes
11891 else
11892   echo "$as_me: failed program was:" >&5
11893 sed 's/^/| /' conftest.$ac_ext >&5
11894
11895 ac_cv_lib_dl_dlopen=no
11896 fi
11897 rm -f conftest.err conftest.$ac_objext \
11898       conftest$ac_exeext conftest.$ac_ext
11899 LIBS=$ac_check_lib_save_LIBS
11900 fi
11901 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11902 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11903 if test $ac_cv_lib_dl_dlopen = yes; then
11904   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11905 else
11906
11907     lt_cv_dlopen="dyld"
11908     lt_cv_dlopen_libs=
11909     lt_cv_dlopen_self=yes
11910
11911 fi
11912
11913    ;;
11914
11915   *)
11916     echo "$as_me:$LINENO: checking for shl_load" >&5
11917 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11918 if test "${ac_cv_func_shl_load+set}" = set; then
11919   echo $ECHO_N "(cached) $ECHO_C" >&6
11920 else
11921   cat >conftest.$ac_ext <<_ACEOF
11922 /* confdefs.h.  */
11923 _ACEOF
11924 cat confdefs.h >>conftest.$ac_ext
11925 cat >>conftest.$ac_ext <<_ACEOF
11926 /* end confdefs.h.  */
11927 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11928    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11929 #define shl_load innocuous_shl_load
11930
11931 /* System header to define __stub macros and hopefully few prototypes,
11932     which can conflict with char shl_load (); below.
11933     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11934     <limits.h> exists even on freestanding compilers.  */
11935
11936 #ifdef __STDC__
11937 # include <limits.h>
11938 #else
11939 # include <assert.h>
11940 #endif
11941
11942 #undef shl_load
11943
11944 /* Override any gcc2 internal prototype to avoid an error.  */
11945 #ifdef __cplusplus
11946 extern "C"
11947 {
11948 #endif
11949 /* We use char because int might match the return type of a gcc2
11950    builtin and then its argument prototype would still apply.  */
11951 char shl_load ();
11952 /* The GNU C library defines this for functions which it implements
11953     to always fail with ENOSYS.  Some functions are actually named
11954     something starting with __ and the normal name is an alias.  */
11955 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11956 choke me
11957 #else
11958 char (*f) () = shl_load;
11959 #endif
11960 #ifdef __cplusplus
11961 }
11962 #endif
11963
11964 int
11965 main ()
11966 {
11967 return f != shl_load;
11968   ;
11969   return 0;
11970 }
11971 _ACEOF
11972 rm -f conftest.$ac_objext conftest$ac_exeext
11973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11974   (eval $ac_link) 2>conftest.er1
11975   ac_status=$?
11976   grep -v '^ *+' conftest.er1 >conftest.err
11977   rm -f conftest.er1
11978   cat conftest.err >&5
11979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980   (exit $ac_status); } &&
11981          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11983   (eval $ac_try) 2>&5
11984   ac_status=$?
11985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986   (exit $ac_status); }; } &&
11987          { ac_try='test -s conftest$ac_exeext'
11988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11989   (eval $ac_try) 2>&5
11990   ac_status=$?
11991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992   (exit $ac_status); }; }; then
11993   ac_cv_func_shl_load=yes
11994 else
11995   echo "$as_me: failed program was:" >&5
11996 sed 's/^/| /' conftest.$ac_ext >&5
11997
11998 ac_cv_func_shl_load=no
11999 fi
12000 rm -f conftest.err conftest.$ac_objext \
12001       conftest$ac_exeext conftest.$ac_ext
12002 fi
12003 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12004 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12005 if test $ac_cv_func_shl_load = yes; then
12006   lt_cv_dlopen="shl_load"
12007 else
12008   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12009 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12010 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12011   echo $ECHO_N "(cached) $ECHO_C" >&6
12012 else
12013   ac_check_lib_save_LIBS=$LIBS
12014 LIBS="-ldld  $LIBS"
12015 cat >conftest.$ac_ext <<_ACEOF
12016 /* confdefs.h.  */
12017 _ACEOF
12018 cat confdefs.h >>conftest.$ac_ext
12019 cat >>conftest.$ac_ext <<_ACEOF
12020 /* end confdefs.h.  */
12021
12022 /* Override any gcc2 internal prototype to avoid an error.  */
12023 #ifdef __cplusplus
12024 extern "C"
12025 #endif
12026 /* We use char because int might match the return type of a gcc2
12027    builtin and then its argument prototype would still apply.  */
12028 char shl_load ();
12029 int
12030 main ()
12031 {
12032 shl_load ();
12033   ;
12034   return 0;
12035 }
12036 _ACEOF
12037 rm -f conftest.$ac_objext conftest$ac_exeext
12038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12039   (eval $ac_link) 2>conftest.er1
12040   ac_status=$?
12041   grep -v '^ *+' conftest.er1 >conftest.err
12042   rm -f conftest.er1
12043   cat conftest.err >&5
12044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045   (exit $ac_status); } &&
12046          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12048   (eval $ac_try) 2>&5
12049   ac_status=$?
12050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051   (exit $ac_status); }; } &&
12052          { ac_try='test -s conftest$ac_exeext'
12053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12054   (eval $ac_try) 2>&5
12055   ac_status=$?
12056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057   (exit $ac_status); }; }; then
12058   ac_cv_lib_dld_shl_load=yes
12059 else
12060   echo "$as_me: failed program was:" >&5
12061 sed 's/^/| /' conftest.$ac_ext >&5
12062
12063 ac_cv_lib_dld_shl_load=no
12064 fi
12065 rm -f conftest.err conftest.$ac_objext \
12066       conftest$ac_exeext conftest.$ac_ext
12067 LIBS=$ac_check_lib_save_LIBS
12068 fi
12069 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12070 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12071 if test $ac_cv_lib_dld_shl_load = yes; then
12072   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12073 else
12074   echo "$as_me:$LINENO: checking for dlopen" >&5
12075 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12076 if test "${ac_cv_func_dlopen+set}" = set; then
12077   echo $ECHO_N "(cached) $ECHO_C" >&6
12078 else
12079   cat >conftest.$ac_ext <<_ACEOF
12080 /* confdefs.h.  */
12081 _ACEOF
12082 cat confdefs.h >>conftest.$ac_ext
12083 cat >>conftest.$ac_ext <<_ACEOF
12084 /* end confdefs.h.  */
12085 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12086    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12087 #define dlopen innocuous_dlopen
12088
12089 /* System header to define __stub macros and hopefully few prototypes,
12090     which can conflict with char dlopen (); below.
12091     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12092     <limits.h> exists even on freestanding compilers.  */
12093
12094 #ifdef __STDC__
12095 # include <limits.h>
12096 #else
12097 # include <assert.h>
12098 #endif
12099
12100 #undef dlopen
12101
12102 /* Override any gcc2 internal prototype to avoid an error.  */
12103 #ifdef __cplusplus
12104 extern "C"
12105 {
12106 #endif
12107 /* We use char because int might match the return type of a gcc2
12108    builtin and then its argument prototype would still apply.  */
12109 char dlopen ();
12110 /* The GNU C library defines this for functions which it implements
12111     to always fail with ENOSYS.  Some functions are actually named
12112     something starting with __ and the normal name is an alias.  */
12113 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12114 choke me
12115 #else
12116 char (*f) () = dlopen;
12117 #endif
12118 #ifdef __cplusplus
12119 }
12120 #endif
12121
12122 int
12123 main ()
12124 {
12125 return f != dlopen;
12126   ;
12127   return 0;
12128 }
12129 _ACEOF
12130 rm -f conftest.$ac_objext conftest$ac_exeext
12131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12132   (eval $ac_link) 2>conftest.er1
12133   ac_status=$?
12134   grep -v '^ *+' conftest.er1 >conftest.err
12135   rm -f conftest.er1
12136   cat conftest.err >&5
12137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138   (exit $ac_status); } &&
12139          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12141   (eval $ac_try) 2>&5
12142   ac_status=$?
12143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144   (exit $ac_status); }; } &&
12145          { ac_try='test -s conftest$ac_exeext'
12146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12147   (eval $ac_try) 2>&5
12148   ac_status=$?
12149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150   (exit $ac_status); }; }; then
12151   ac_cv_func_dlopen=yes
12152 else
12153   echo "$as_me: failed program was:" >&5
12154 sed 's/^/| /' conftest.$ac_ext >&5
12155
12156 ac_cv_func_dlopen=no
12157 fi
12158 rm -f conftest.err conftest.$ac_objext \
12159       conftest$ac_exeext conftest.$ac_ext
12160 fi
12161 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12162 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12163 if test $ac_cv_func_dlopen = yes; then
12164   lt_cv_dlopen="dlopen"
12165 else
12166   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12167 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12168 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12169   echo $ECHO_N "(cached) $ECHO_C" >&6
12170 else
12171   ac_check_lib_save_LIBS=$LIBS
12172 LIBS="-ldl  $LIBS"
12173 cat >conftest.$ac_ext <<_ACEOF
12174 /* confdefs.h.  */
12175 _ACEOF
12176 cat confdefs.h >>conftest.$ac_ext
12177 cat >>conftest.$ac_ext <<_ACEOF
12178 /* end confdefs.h.  */
12179
12180 /* Override any gcc2 internal prototype to avoid an error.  */
12181 #ifdef __cplusplus
12182 extern "C"
12183 #endif
12184 /* We use char because int might match the return type of a gcc2
12185    builtin and then its argument prototype would still apply.  */
12186 char dlopen ();
12187 int
12188 main ()
12189 {
12190 dlopen ();
12191   ;
12192   return 0;
12193 }
12194 _ACEOF
12195 rm -f conftest.$ac_objext conftest$ac_exeext
12196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12197   (eval $ac_link) 2>conftest.er1
12198   ac_status=$?
12199   grep -v '^ *+' conftest.er1 >conftest.err
12200   rm -f conftest.er1
12201   cat conftest.err >&5
12202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203   (exit $ac_status); } &&
12204          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12206   (eval $ac_try) 2>&5
12207   ac_status=$?
12208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209   (exit $ac_status); }; } &&
12210          { ac_try='test -s conftest$ac_exeext'
12211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12212   (eval $ac_try) 2>&5
12213   ac_status=$?
12214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215   (exit $ac_status); }; }; then
12216   ac_cv_lib_dl_dlopen=yes
12217 else
12218   echo "$as_me: failed program was:" >&5
12219 sed 's/^/| /' conftest.$ac_ext >&5
12220
12221 ac_cv_lib_dl_dlopen=no
12222 fi
12223 rm -f conftest.err conftest.$ac_objext \
12224       conftest$ac_exeext conftest.$ac_ext
12225 LIBS=$ac_check_lib_save_LIBS
12226 fi
12227 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12228 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12229 if test $ac_cv_lib_dl_dlopen = yes; then
12230   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12231 else
12232   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12233 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12234 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12235   echo $ECHO_N "(cached) $ECHO_C" >&6
12236 else
12237   ac_check_lib_save_LIBS=$LIBS
12238 LIBS="-lsvld  $LIBS"
12239 cat >conftest.$ac_ext <<_ACEOF
12240 /* confdefs.h.  */
12241 _ACEOF
12242 cat confdefs.h >>conftest.$ac_ext
12243 cat >>conftest.$ac_ext <<_ACEOF
12244 /* end confdefs.h.  */
12245
12246 /* Override any gcc2 internal prototype to avoid an error.  */
12247 #ifdef __cplusplus
12248 extern "C"
12249 #endif
12250 /* We use char because int might match the return type of a gcc2
12251    builtin and then its argument prototype would still apply.  */
12252 char dlopen ();
12253 int
12254 main ()
12255 {
12256 dlopen ();
12257   ;
12258   return 0;
12259 }
12260 _ACEOF
12261 rm -f conftest.$ac_objext conftest$ac_exeext
12262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12263   (eval $ac_link) 2>conftest.er1
12264   ac_status=$?
12265   grep -v '^ *+' conftest.er1 >conftest.err
12266   rm -f conftest.er1
12267   cat conftest.err >&5
12268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269   (exit $ac_status); } &&
12270          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12272   (eval $ac_try) 2>&5
12273   ac_status=$?
12274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275   (exit $ac_status); }; } &&
12276          { ac_try='test -s conftest$ac_exeext'
12277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12278   (eval $ac_try) 2>&5
12279   ac_status=$?
12280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281   (exit $ac_status); }; }; then
12282   ac_cv_lib_svld_dlopen=yes
12283 else
12284   echo "$as_me: failed program was:" >&5
12285 sed 's/^/| /' conftest.$ac_ext >&5
12286
12287 ac_cv_lib_svld_dlopen=no
12288 fi
12289 rm -f conftest.err conftest.$ac_objext \
12290       conftest$ac_exeext conftest.$ac_ext
12291 LIBS=$ac_check_lib_save_LIBS
12292 fi
12293 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12294 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12295 if test $ac_cv_lib_svld_dlopen = yes; then
12296   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12297 else
12298   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12299 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12300 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12301   echo $ECHO_N "(cached) $ECHO_C" >&6
12302 else
12303   ac_check_lib_save_LIBS=$LIBS
12304 LIBS="-ldld  $LIBS"
12305 cat >conftest.$ac_ext <<_ACEOF
12306 /* confdefs.h.  */
12307 _ACEOF
12308 cat confdefs.h >>conftest.$ac_ext
12309 cat >>conftest.$ac_ext <<_ACEOF
12310 /* end confdefs.h.  */
12311
12312 /* Override any gcc2 internal prototype to avoid an error.  */
12313 #ifdef __cplusplus
12314 extern "C"
12315 #endif
12316 /* We use char because int might match the return type of a gcc2
12317    builtin and then its argument prototype would still apply.  */
12318 char dld_link ();
12319 int
12320 main ()
12321 {
12322 dld_link ();
12323   ;
12324   return 0;
12325 }
12326 _ACEOF
12327 rm -f conftest.$ac_objext conftest$ac_exeext
12328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12329   (eval $ac_link) 2>conftest.er1
12330   ac_status=$?
12331   grep -v '^ *+' conftest.er1 >conftest.err
12332   rm -f conftest.er1
12333   cat conftest.err >&5
12334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335   (exit $ac_status); } &&
12336          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12338   (eval $ac_try) 2>&5
12339   ac_status=$?
12340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341   (exit $ac_status); }; } &&
12342          { ac_try='test -s conftest$ac_exeext'
12343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12344   (eval $ac_try) 2>&5
12345   ac_status=$?
12346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347   (exit $ac_status); }; }; then
12348   ac_cv_lib_dld_dld_link=yes
12349 else
12350   echo "$as_me: failed program was:" >&5
12351 sed 's/^/| /' conftest.$ac_ext >&5
12352
12353 ac_cv_lib_dld_dld_link=no
12354 fi
12355 rm -f conftest.err conftest.$ac_objext \
12356       conftest$ac_exeext conftest.$ac_ext
12357 LIBS=$ac_check_lib_save_LIBS
12358 fi
12359 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12360 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12361 if test $ac_cv_lib_dld_dld_link = yes; then
12362   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12363 fi
12364
12365
12366 fi
12367
12368
12369 fi
12370
12371
12372 fi
12373
12374
12375 fi
12376
12377
12378 fi
12379
12380     ;;
12381   esac
12382
12383   if test "x$lt_cv_dlopen" != xno; then
12384     enable_dlopen=yes
12385   else
12386     enable_dlopen=no
12387   fi
12388
12389   case $lt_cv_dlopen in
12390   dlopen)
12391     save_CPPFLAGS="$CPPFLAGS"
12392     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12393
12394     save_LDFLAGS="$LDFLAGS"
12395     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12396
12397     save_LIBS="$LIBS"
12398     LIBS="$lt_cv_dlopen_libs $LIBS"
12399
12400     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12401 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12402 if test "${lt_cv_dlopen_self+set}" = set; then
12403   echo $ECHO_N "(cached) $ECHO_C" >&6
12404 else
12405           if test "$cross_compiling" = yes; then :
12406   lt_cv_dlopen_self=cross
12407 else
12408   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12409   lt_status=$lt_dlunknown
12410   cat > conftest.$ac_ext <<EOF
12411 #line 12411 "configure"
12412 #include "confdefs.h"
12413
12414 #if HAVE_DLFCN_H
12415 #include <dlfcn.h>
12416 #endif
12417
12418 #include <stdio.h>
12419
12420 #ifdef RTLD_GLOBAL
12421 #  define LT_DLGLOBAL           RTLD_GLOBAL
12422 #else
12423 #  ifdef DL_GLOBAL
12424 #    define LT_DLGLOBAL         DL_GLOBAL
12425 #  else
12426 #    define LT_DLGLOBAL         0
12427 #  endif
12428 #endif
12429
12430 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12431    find out it does not work in some platform. */
12432 #ifndef LT_DLLAZY_OR_NOW
12433 #  ifdef RTLD_LAZY
12434 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12435 #  else
12436 #    ifdef DL_LAZY
12437 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12438 #    else
12439 #      ifdef RTLD_NOW
12440 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12441 #      else
12442 #        ifdef DL_NOW
12443 #          define LT_DLLAZY_OR_NOW      DL_NOW
12444 #        else
12445 #          define LT_DLLAZY_OR_NOW      0
12446 #        endif
12447 #      endif
12448 #    endif
12449 #  endif
12450 #endif
12451
12452 #ifdef __cplusplus
12453 extern "C" void exit (int);
12454 #endif
12455
12456 void fnord() { int i=42;}
12457 int main ()
12458 {
12459   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12460   int status = $lt_dlunknown;
12461
12462   if (self)
12463     {
12464       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12465       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12466       /* dlclose (self); */
12467     }
12468
12469     exit (status);
12470 }
12471 EOF
12472   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12473   (eval $ac_link) 2>&5
12474   ac_status=$?
12475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12477     (./conftest; exit; ) 2>/dev/null
12478     lt_status=$?
12479     case x$lt_status in
12480       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12481       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12482       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12483     esac
12484   else :
12485     # compilation failed
12486     lt_cv_dlopen_self=no
12487   fi
12488 fi
12489 rm -fr conftest*
12490
12491
12492 fi
12493 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12494 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12495
12496     if test "x$lt_cv_dlopen_self" = xyes; then
12497       LDFLAGS="$LDFLAGS $link_static_flag"
12498       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12499 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12500 if test "${lt_cv_dlopen_self_static+set}" = set; then
12501   echo $ECHO_N "(cached) $ECHO_C" >&6
12502 else
12503           if test "$cross_compiling" = yes; then :
12504   lt_cv_dlopen_self_static=cross
12505 else
12506   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12507   lt_status=$lt_dlunknown
12508   cat > conftest.$ac_ext <<EOF
12509 #line 12509 "configure"
12510 #include "confdefs.h"
12511
12512 #if HAVE_DLFCN_H
12513 #include <dlfcn.h>
12514 #endif
12515
12516 #include <stdio.h>
12517
12518 #ifdef RTLD_GLOBAL
12519 #  define LT_DLGLOBAL           RTLD_GLOBAL
12520 #else
12521 #  ifdef DL_GLOBAL
12522 #    define LT_DLGLOBAL         DL_GLOBAL
12523 #  else
12524 #    define LT_DLGLOBAL         0
12525 #  endif
12526 #endif
12527
12528 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12529    find out it does not work in some platform. */
12530 #ifndef LT_DLLAZY_OR_NOW
12531 #  ifdef RTLD_LAZY
12532 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12533 #  else
12534 #    ifdef DL_LAZY
12535 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12536 #    else
12537 #      ifdef RTLD_NOW
12538 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12539 #      else
12540 #        ifdef DL_NOW
12541 #          define LT_DLLAZY_OR_NOW      DL_NOW
12542 #        else
12543 #          define LT_DLLAZY_OR_NOW      0
12544 #        endif
12545 #      endif
12546 #    endif
12547 #  endif
12548 #endif
12549
12550 #ifdef __cplusplus
12551 extern "C" void exit (int);
12552 #endif
12553
12554 void fnord() { int i=42;}
12555 int main ()
12556 {
12557   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12558   int status = $lt_dlunknown;
12559
12560   if (self)
12561     {
12562       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12563       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12564       /* dlclose (self); */
12565     }
12566
12567     exit (status);
12568 }
12569 EOF
12570   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12571   (eval $ac_link) 2>&5
12572   ac_status=$?
12573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12575     (./conftest; exit; ) 2>/dev/null
12576     lt_status=$?
12577     case x$lt_status in
12578       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12579       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12580       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12581     esac
12582   else :
12583     # compilation failed
12584     lt_cv_dlopen_self_static=no
12585   fi
12586 fi
12587 rm -fr conftest*
12588
12589
12590 fi
12591 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12592 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12593     fi
12594
12595     CPPFLAGS="$save_CPPFLAGS"
12596     LDFLAGS="$save_LDFLAGS"
12597     LIBS="$save_LIBS"
12598     ;;
12599   esac
12600
12601   case $lt_cv_dlopen_self in
12602   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12603   *) enable_dlopen_self=unknown ;;
12604   esac
12605
12606   case $lt_cv_dlopen_self_static in
12607   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12608   *) enable_dlopen_self_static=unknown ;;
12609   esac
12610 fi
12611
12612
12613 # The else clause should only fire when bootstrapping the
12614 # libtool distribution, otherwise you forgot to ship ltmain.sh
12615 # with your package, and you will get complaints that there are
12616 # no rules to generate ltmain.sh.
12617 if test -f "$ltmain"; then
12618   # See if we are running on zsh, and set the options which allow our commands through
12619   # without removal of \ escapes.
12620   if test -n "${ZSH_VERSION+set}" ; then
12621     setopt NO_GLOB_SUBST
12622   fi
12623   # Now quote all the things that may contain metacharacters while being
12624   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12625   # variables and quote the copies for generation of the libtool script.
12626   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12627     SED SHELL STRIP \
12628     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12629     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12630     deplibs_check_method reload_flag reload_cmds need_locks \
12631     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12632     lt_cv_sys_global_symbol_to_c_name_address \
12633     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12634     old_postinstall_cmds old_postuninstall_cmds \
12635     compiler_CXX \
12636     CC_CXX \
12637     LD_CXX \
12638     lt_prog_compiler_wl_CXX \
12639     lt_prog_compiler_pic_CXX \
12640     lt_prog_compiler_static_CXX \
12641     lt_prog_compiler_no_builtin_flag_CXX \
12642     export_dynamic_flag_spec_CXX \
12643     thread_safe_flag_spec_CXX \
12644     whole_archive_flag_spec_CXX \
12645     enable_shared_with_static_runtimes_CXX \
12646     old_archive_cmds_CXX \
12647     old_archive_from_new_cmds_CXX \
12648     predep_objects_CXX \
12649     postdep_objects_CXX \
12650     predeps_CXX \
12651     postdeps_CXX \
12652     compiler_lib_search_path_CXX \
12653     archive_cmds_CXX \
12654     archive_expsym_cmds_CXX \
12655     postinstall_cmds_CXX \
12656     postuninstall_cmds_CXX \
12657     old_archive_from_expsyms_cmds_CXX \
12658     allow_undefined_flag_CXX \
12659     no_undefined_flag_CXX \
12660     export_symbols_cmds_CXX \
12661     hardcode_libdir_flag_spec_CXX \
12662     hardcode_libdir_flag_spec_ld_CXX \
12663     hardcode_libdir_separator_CXX \
12664     hardcode_automatic_CXX \
12665     module_cmds_CXX \
12666     module_expsym_cmds_CXX \
12667     lt_cv_prog_compiler_c_o_CXX \
12668     exclude_expsyms_CXX \
12669     include_expsyms_CXX; do
12670
12671     case $var in
12672     old_archive_cmds_CXX | \
12673     old_archive_from_new_cmds_CXX | \
12674     archive_cmds_CXX | \
12675     archive_expsym_cmds_CXX | \
12676     module_cmds_CXX | \
12677     module_expsym_cmds_CXX | \
12678     old_archive_from_expsyms_cmds_CXX | \
12679     export_symbols_cmds_CXX | \
12680     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12681     postinstall_cmds | postuninstall_cmds | \
12682     old_postinstall_cmds | old_postuninstall_cmds | \
12683     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12684       # Double-quote double-evaled strings.
12685       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12686       ;;
12687     *)
12688       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12689       ;;
12690     esac
12691   done
12692
12693   case $lt_echo in
12694   *'\$0 --fallback-echo"')
12695     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12696     ;;
12697   esac
12698
12699 cfgfile="$ofile"
12700
12701   cat <<__EOF__ >> "$cfgfile"
12702 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12703
12704 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12705
12706 # Shell to use when invoking shell scripts.
12707 SHELL=$lt_SHELL
12708
12709 # Whether or not to build shared libraries.
12710 build_libtool_libs=$enable_shared
12711
12712 # Whether or not to build static libraries.
12713 build_old_libs=$enable_static
12714
12715 # Whether or not to add -lc for building shared libraries.
12716 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12717
12718 # Whether or not to disallow shared libs when runtime libs are static
12719 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12720
12721 # Whether or not to optimize for fast installation.
12722 fast_install=$enable_fast_install
12723
12724 # The host system.
12725 host_alias=$host_alias
12726 host=$host
12727
12728 # An echo program that does not interpret backslashes.
12729 echo=$lt_echo
12730
12731 # The archiver.
12732 AR=$lt_AR
12733 AR_FLAGS=$lt_AR_FLAGS
12734
12735 # A C compiler.
12736 LTCC=$lt_LTCC
12737
12738 # A language-specific compiler.
12739 CC=$lt_compiler_CXX
12740
12741 # Is the compiler the GNU C compiler?
12742 with_gcc=$GCC_CXX
12743
12744 # An ERE matcher.
12745 EGREP=$lt_EGREP
12746
12747 # The linker used to build libraries.
12748 LD=$lt_LD_CXX
12749
12750 # Whether we need hard or soft links.
12751 LN_S=$lt_LN_S
12752
12753 # A BSD-compatible nm program.
12754 NM=$lt_NM
12755
12756 # A symbol stripping program
12757 STRIP=$lt_STRIP
12758
12759 # Used to examine libraries when file_magic_cmd begins "file"
12760 MAGIC_CMD=$MAGIC_CMD
12761
12762 # Used on cygwin: DLL creation program.
12763 DLLTOOL="$DLLTOOL"
12764
12765 # Used on cygwin: object dumper.
12766 OBJDUMP="$OBJDUMP"
12767
12768 # Used on cygwin: assembler.
12769 AS="$AS"
12770
12771 # The name of the directory that contains temporary libtool files.
12772 objdir=$objdir
12773
12774 # How to create reloadable object files.
12775 reload_flag=$lt_reload_flag
12776 reload_cmds=$lt_reload_cmds
12777
12778 # How to pass a linker flag through the compiler.
12779 wl=$lt_lt_prog_compiler_wl_CXX
12780
12781 # Object file suffix (normally "o").
12782 objext="$ac_objext"
12783
12784 # Old archive suffix (normally "a").
12785 libext="$libext"
12786
12787 # Shared library suffix (normally ".so").
12788 shrext_cmds='$shrext_cmds'
12789
12790 # Executable file suffix (normally "").
12791 exeext="$exeext"
12792
12793 # Additional compiler flags for building library objects.
12794 pic_flag=$lt_lt_prog_compiler_pic_CXX
12795 pic_mode=$pic_mode
12796
12797 # What is the maximum length of a command?
12798 max_cmd_len=$lt_cv_sys_max_cmd_len
12799
12800 # Does compiler simultaneously support -c and -o options?
12801 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12802
12803 # Must we lock files when doing compilation ?
12804 need_locks=$lt_need_locks
12805
12806 # Do we need the lib prefix for modules?
12807 need_lib_prefix=$need_lib_prefix
12808
12809 # Do we need a version for libraries?
12810 need_version=$need_version
12811
12812 # Whether dlopen is supported.
12813 dlopen_support=$enable_dlopen
12814
12815 # Whether dlopen of programs is supported.
12816 dlopen_self=$enable_dlopen_self
12817
12818 # Whether dlopen of statically linked programs is supported.
12819 dlopen_self_static=$enable_dlopen_self_static
12820
12821 # Compiler flag to prevent dynamic linking.
12822 link_static_flag=$lt_lt_prog_compiler_static_CXX
12823
12824 # Compiler flag to turn off builtin functions.
12825 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12826
12827 # Compiler flag to allow reflexive dlopens.
12828 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12829
12830 # Compiler flag to generate shared objects directly from archives.
12831 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12832
12833 # Compiler flag to generate thread-safe objects.
12834 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12835
12836 # Library versioning type.
12837 version_type=$version_type
12838
12839 # Format of library name prefix.
12840 libname_spec=$lt_libname_spec
12841
12842 # List of archive names.  First name is the real one, the rest are links.
12843 # The last name is the one that the linker finds with -lNAME.
12844 library_names_spec=$lt_library_names_spec
12845
12846 # The coded name of the library, if different from the real name.
12847 soname_spec=$lt_soname_spec
12848
12849 # Commands used to build and install an old-style archive.
12850 RANLIB=$lt_RANLIB
12851 old_archive_cmds=$lt_old_archive_cmds_CXX
12852 old_postinstall_cmds=$lt_old_postinstall_cmds
12853 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12854
12855 # Create an old-style archive from a shared archive.
12856 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12857
12858 # Create a temporary old-style archive to link instead of a shared archive.
12859 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12860
12861 # Commands used to build and install a shared archive.
12862 archive_cmds=$lt_archive_cmds_CXX
12863 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12864 postinstall_cmds=$lt_postinstall_cmds
12865 postuninstall_cmds=$lt_postuninstall_cmds
12866
12867 # Commands used to build a loadable module (assumed same as above if empty)
12868 module_cmds=$lt_module_cmds_CXX
12869 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12870
12871 # Commands to strip libraries.
12872 old_striplib=$lt_old_striplib
12873 striplib=$lt_striplib
12874
12875 # Dependencies to place before the objects being linked to create a
12876 # shared library.
12877 predep_objects=$lt_predep_objects_CXX
12878
12879 # Dependencies to place after the objects being linked to create a
12880 # shared library.
12881 postdep_objects=$lt_postdep_objects_CXX
12882
12883 # Dependencies to place before the objects being linked to create a
12884 # shared library.
12885 predeps=$lt_predeps_CXX
12886
12887 # Dependencies to place after the objects being linked to create a
12888 # shared library.
12889 postdeps=$lt_postdeps_CXX
12890
12891 # The library search path used internally by the compiler when linking
12892 # a shared library.
12893 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12894
12895 # Method to check whether dependent libraries are shared objects.
12896 deplibs_check_method=$lt_deplibs_check_method
12897
12898 # Command to use when deplibs_check_method == file_magic.
12899 file_magic_cmd=$lt_file_magic_cmd
12900
12901 # Flag that allows shared libraries with undefined symbols to be built.
12902 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12903
12904 # Flag that forces no undefined symbols.
12905 no_undefined_flag=$lt_no_undefined_flag_CXX
12906
12907 # Commands used to finish a libtool library installation in a directory.
12908 finish_cmds=$lt_finish_cmds
12909
12910 # Same as above, but a single script fragment to be evaled but not shown.
12911 finish_eval=$lt_finish_eval
12912
12913 # Take the output of nm and produce a listing of raw symbols and C names.
12914 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12915
12916 # Transform the output of nm in a proper C declaration
12917 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12918
12919 # Transform the output of nm in a C name address pair
12920 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12921
12922 # This is the shared library runtime path variable.
12923 runpath_var=$runpath_var
12924
12925 # This is the shared library path variable.
12926 shlibpath_var=$shlibpath_var
12927
12928 # Is shlibpath searched before the hard-coded library search path?
12929 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12930
12931 # How to hardcode a shared library path into an executable.
12932 hardcode_action=$hardcode_action_CXX
12933
12934 # Whether we should hardcode library paths into libraries.
12935 hardcode_into_libs=$hardcode_into_libs
12936
12937 # Flag to hardcode \$libdir into a binary during linking.
12938 # This must work even if \$libdir does not exist.
12939 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12940
12941 # If ld is used when linking, flag to hardcode \$libdir into
12942 # a binary during linking. This must work even if \$libdir does
12943 # not exist.
12944 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12945
12946 # Whether we need a single -rpath flag with a separated argument.
12947 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12948
12949 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12950 # resulting binary.
12951 hardcode_direct=$hardcode_direct_CXX
12952
12953 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12954 # resulting binary.
12955 hardcode_minus_L=$hardcode_minus_L_CXX
12956
12957 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12958 # the resulting binary.
12959 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12960
12961 # Set to yes if building a shared library automatically hardcodes DIR into the library
12962 # and all subsequent libraries and executables linked against it.
12963 hardcode_automatic=$hardcode_automatic_CXX
12964
12965 # Variables whose values should be saved in libtool wrapper scripts and
12966 # restored at relink time.
12967 variables_saved_for_relink="$variables_saved_for_relink"
12968
12969 # Whether libtool must link a program against all its dependency libraries.
12970 link_all_deplibs=$link_all_deplibs_CXX
12971
12972 # Compile-time system search path for libraries
12973 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12974
12975 # Run-time system search path for libraries
12976 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12977
12978 # Fix the shell variable \$srcfile for the compiler.
12979 fix_srcfile_path="$fix_srcfile_path_CXX"
12980
12981 # Set to yes if exported symbols are required.
12982 always_export_symbols=$always_export_symbols_CXX
12983
12984 # The commands to list exported symbols.
12985 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12986
12987 # The commands to extract the exported symbol list from a shared archive.
12988 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12989
12990 # Symbols that should not be listed in the preloaded symbols.
12991 exclude_expsyms=$lt_exclude_expsyms_CXX
12992
12993 # Symbols that must always be exported.
12994 include_expsyms=$lt_include_expsyms_CXX
12995
12996 # ### END LIBTOOL TAG CONFIG: $tagname
12997
12998 __EOF__
12999
13000
13001 else
13002   # If there is no Makefile yet, we rely on a make rule to execute
13003   # `config.status --recheck' to rerun these tests and create the
13004   # libtool script then.
13005   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13006   if test -f "$ltmain_in"; then
13007     test -f Makefile && make "$ltmain"
13008   fi
13009 fi
13010
13011
13012 ac_ext=c
13013 ac_cpp='$CPP $CPPFLAGS'
13014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13017
13018 CC=$lt_save_CC
13019 LDCXX=$LD
13020 LD=$lt_save_LD
13021 GCC=$lt_save_GCC
13022 with_gnu_ldcxx=$with_gnu_ld
13023 with_gnu_ld=$lt_save_with_gnu_ld
13024 lt_cv_path_LDCXX=$lt_cv_path_LD
13025 lt_cv_path_LD=$lt_save_path_LD
13026 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13027 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13028
13029         else
13030           tagname=""
13031         fi
13032         ;;
13033
13034       F77)
13035         if test -n "$F77" && test "X$F77" != "Xno"; then
13036
13037 ac_ext=f
13038 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13039 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13040 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13041
13042
13043 archive_cmds_need_lc_F77=no
13044 allow_undefined_flag_F77=
13045 always_export_symbols_F77=no
13046 archive_expsym_cmds_F77=
13047 export_dynamic_flag_spec_F77=
13048 hardcode_direct_F77=no
13049 hardcode_libdir_flag_spec_F77=
13050 hardcode_libdir_flag_spec_ld_F77=
13051 hardcode_libdir_separator_F77=
13052 hardcode_minus_L_F77=no
13053 hardcode_automatic_F77=no
13054 module_cmds_F77=
13055 module_expsym_cmds_F77=
13056 link_all_deplibs_F77=unknown
13057 old_archive_cmds_F77=$old_archive_cmds
13058 no_undefined_flag_F77=
13059 whole_archive_flag_spec_F77=
13060 enable_shared_with_static_runtimes_F77=no
13061
13062 # Source file extension for f77 test sources.
13063 ac_ext=f
13064
13065 # Object file extension for compiled f77 test sources.
13066 objext=o
13067 objext_F77=$objext
13068
13069 # Code to be used in simple compile tests
13070 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13071
13072 # Code to be used in simple link tests
13073 lt_simple_link_test_code="      program t\n      end\n"
13074
13075 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13076
13077 # If no C compiler was specified, use CC.
13078 LTCC=${LTCC-"$CC"}
13079
13080 # Allow CC to be a program name with arguments.
13081 compiler=$CC
13082
13083
13084 # Allow CC to be a program name with arguments.
13085 lt_save_CC="$CC"
13086 CC=${F77-"f77"}
13087 compiler=$CC
13088 compiler_F77=$CC
13089 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13090
13091 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13092 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13093 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13094 echo "${ECHO_T}$can_build_shared" >&6
13095
13096 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13097 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13098 test "$can_build_shared" = "no" && enable_shared=no
13099
13100 # On AIX, shared libraries and static libraries use the same namespace, and
13101 # are all built from PIC.
13102 case "$host_os" in
13103 aix3*)
13104   test "$enable_shared" = yes && enable_static=no
13105   if test -n "$RANLIB"; then
13106     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13107     postinstall_cmds='$RANLIB $lib'
13108   fi
13109   ;;
13110 aix4* | aix5*)
13111   test "$enable_shared" = yes && enable_static=no
13112   ;;
13113 esac
13114 echo "$as_me:$LINENO: result: $enable_shared" >&5
13115 echo "${ECHO_T}$enable_shared" >&6
13116
13117 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13118 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13119 # Make sure either enable_shared or enable_static is yes.
13120 test "$enable_shared" = yes || enable_static=yes
13121 echo "$as_me:$LINENO: result: $enable_static" >&5
13122 echo "${ECHO_T}$enable_static" >&6
13123
13124 test "$ld_shlibs_F77" = no && can_build_shared=no
13125
13126 GCC_F77="$G77"
13127 LD_F77="$LD"
13128
13129 lt_prog_compiler_wl_F77=
13130 lt_prog_compiler_pic_F77=
13131 lt_prog_compiler_static_F77=
13132
13133 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13134 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13135
13136   if test "$GCC" = yes; then
13137     lt_prog_compiler_wl_F77='-Wl,'
13138     lt_prog_compiler_static_F77='-static'
13139
13140     case $host_os in
13141       aix*)
13142       # All AIX code is PIC.
13143       if test "$host_cpu" = ia64; then
13144         # AIX 5 now supports IA64 processor
13145         lt_prog_compiler_static_F77='-Bstatic'
13146       fi
13147       ;;
13148
13149     amigaos*)
13150       # FIXME: we need at least 68020 code to build shared libraries, but
13151       # adding the `-m68020' flag to GCC prevents building anything better,
13152       # like `-m68040'.
13153       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13154       ;;
13155
13156     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13157       # PIC is the default for these OSes.
13158       ;;
13159
13160     mingw* | pw32* | os2*)
13161       # This hack is so that the source file can tell whether it is being
13162       # built for inclusion in a dll (and should export symbols for example).
13163       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13164       ;;
13165
13166     darwin* | rhapsody*)
13167       # PIC is the default on this platform
13168       # Common symbols not allowed in MH_DYLIB files
13169       lt_prog_compiler_pic_F77='-fno-common'
13170       ;;
13171
13172     msdosdjgpp*)
13173       # Just because we use GCC doesn't mean we suddenly get shared libraries
13174       # on systems that don't support them.
13175       lt_prog_compiler_can_build_shared_F77=no
13176       enable_shared=no
13177       ;;
13178
13179     sysv4*MP*)
13180       if test -d /usr/nec; then
13181         lt_prog_compiler_pic_F77=-Kconform_pic
13182       fi
13183       ;;
13184
13185     hpux*)
13186       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13187       # not for PA HP-UX.
13188       case "$host_cpu" in
13189       hppa*64*|ia64*)
13190         # +Z the default
13191         ;;
13192       *)
13193         lt_prog_compiler_pic_F77='-fPIC'
13194         ;;
13195       esac
13196       ;;
13197
13198     *)
13199       lt_prog_compiler_pic_F77='-fPIC'
13200       ;;
13201     esac
13202   else
13203     # PORTME Check for flag to pass linker flags through the system compiler.
13204     case $host_os in
13205     aix*)
13206       lt_prog_compiler_wl_F77='-Wl,'
13207       if test "$host_cpu" = ia64; then
13208         # AIX 5 now supports IA64 processor
13209         lt_prog_compiler_static_F77='-Bstatic'
13210       else
13211         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13212       fi
13213       ;;
13214
13215     mingw* | pw32* | os2*)
13216       # This hack is so that the source file can tell whether it is being
13217       # built for inclusion in a dll (and should export symbols for example).
13218       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13219       ;;
13220
13221     hpux9* | hpux10* | hpux11*)
13222       lt_prog_compiler_wl_F77='-Wl,'
13223       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13224       # not for PA HP-UX.
13225       case "$host_cpu" in
13226       hppa*64*|ia64*)
13227         # +Z the default
13228         ;;
13229       *)
13230         lt_prog_compiler_pic_F77='+Z'
13231         ;;
13232       esac
13233       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13234       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13235       ;;
13236
13237     irix5* | irix6* | nonstopux*)
13238       lt_prog_compiler_wl_F77='-Wl,'
13239       # PIC (with -KPIC) is the default.
13240       lt_prog_compiler_static_F77='-non_shared'
13241       ;;
13242
13243     newsos6)
13244       lt_prog_compiler_pic_F77='-KPIC'
13245       lt_prog_compiler_static_F77='-Bstatic'
13246       ;;
13247
13248     linux*)
13249       case $CC in
13250       icc* | ecc*)
13251         lt_prog_compiler_wl_F77='-Wl,'
13252         lt_prog_compiler_pic_F77='-KPIC'
13253         lt_prog_compiler_static_F77='-static'
13254         ;;
13255       ccc*)
13256         lt_prog_compiler_wl_F77='-Wl,'
13257         # All Alpha code is PIC.
13258         lt_prog_compiler_static_F77='-non_shared'
13259         ;;
13260       esac
13261       ;;
13262
13263     osf3* | osf4* | osf5*)
13264       lt_prog_compiler_wl_F77='-Wl,'
13265       # All OSF/1 code is PIC.
13266       lt_prog_compiler_static_F77='-non_shared'
13267       ;;
13268
13269     sco3.2v5*)
13270       lt_prog_compiler_pic_F77='-Kpic'
13271       lt_prog_compiler_static_F77='-dn'
13272       ;;
13273
13274     solaris*)
13275       lt_prog_compiler_wl_F77='-Wl,'
13276       lt_prog_compiler_pic_F77='-KPIC'
13277       lt_prog_compiler_static_F77='-Bstatic'
13278       ;;
13279
13280     sunos4*)
13281       lt_prog_compiler_wl_F77='-Qoption ld '
13282       lt_prog_compiler_pic_F77='-PIC'
13283       lt_prog_compiler_static_F77='-Bstatic'
13284       ;;
13285
13286     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13287       lt_prog_compiler_wl_F77='-Wl,'
13288       lt_prog_compiler_pic_F77='-KPIC'
13289       lt_prog_compiler_static_F77='-Bstatic'
13290       ;;
13291
13292     sysv4*MP*)
13293       if test -d /usr/nec ;then
13294         lt_prog_compiler_pic_F77='-Kconform_pic'
13295         lt_prog_compiler_static_F77='-Bstatic'
13296       fi
13297       ;;
13298
13299     uts4*)
13300       lt_prog_compiler_pic_F77='-pic'
13301       lt_prog_compiler_static_F77='-Bstatic'
13302       ;;
13303
13304     *)
13305       lt_prog_compiler_can_build_shared_F77=no
13306       ;;
13307     esac
13308   fi
13309
13310 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13311 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13312
13313 #
13314 # Check to make sure the PIC flag actually works.
13315 #
13316 if test -n "$lt_prog_compiler_pic_F77"; then
13317
13318 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13319 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13320 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13321   echo $ECHO_N "(cached) $ECHO_C" >&6
13322 else
13323   lt_prog_compiler_pic_works_F77=no
13324   ac_outfile=conftest.$ac_objext
13325    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13326    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13327    # Insert the option either (1) after the last *FLAGS variable, or
13328    # (2) before a word containing "conftest.", or (3) at the end.
13329    # Note that $ac_compile itself does not contain backslashes and begins
13330    # with a dollar sign (not a hyphen), so the echo should work correctly.
13331    # The option is referenced via a variable to avoid confusing sed.
13332    lt_compile=`echo "$ac_compile" | $SED \
13333    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13334    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13335    -e 's:$: $lt_compiler_flag:'`
13336    (eval echo "\"\$as_me:13336: $lt_compile\"" >&5)
13337    (eval "$lt_compile" 2>conftest.err)
13338    ac_status=$?
13339    cat conftest.err >&5
13340    echo "$as_me:13340: \$? = $ac_status" >&5
13341    if (exit $ac_status) && test -s "$ac_outfile"; then
13342      # The compiler can only warn and ignore the option if not recognized
13343      # So say no if there are warnings
13344      if test ! -s conftest.err; then
13345        lt_prog_compiler_pic_works_F77=yes
13346      fi
13347    fi
13348    $rm conftest*
13349
13350 fi
13351 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13352 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13353
13354 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13355     case $lt_prog_compiler_pic_F77 in
13356      "" | " "*) ;;
13357      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13358      esac
13359 else
13360     lt_prog_compiler_pic_F77=
13361      lt_prog_compiler_can_build_shared_F77=no
13362 fi
13363
13364 fi
13365 case "$host_os" in
13366   # For platforms which do not support PIC, -DPIC is meaningless:
13367   *djgpp*)
13368     lt_prog_compiler_pic_F77=
13369     ;;
13370   *)
13371     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13372     ;;
13373 esac
13374
13375 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13376 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13377 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13378   echo $ECHO_N "(cached) $ECHO_C" >&6
13379 else
13380   lt_cv_prog_compiler_c_o_F77=no
13381    $rm -r conftest 2>/dev/null
13382    mkdir conftest
13383    cd conftest
13384    mkdir out
13385    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13386
13387    lt_compiler_flag="-o out/conftest2.$ac_objext"
13388    # Insert the option either (1) after the last *FLAGS variable, or
13389    # (2) before a word containing "conftest.", or (3) at the end.
13390    # Note that $ac_compile itself does not contain backslashes and begins
13391    # with a dollar sign (not a hyphen), so the echo should work correctly.
13392    lt_compile=`echo "$ac_compile" | $SED \
13393    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13394    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13395    -e 's:$: $lt_compiler_flag:'`
13396    (eval echo "\"\$as_me:13396: $lt_compile\"" >&5)
13397    (eval "$lt_compile" 2>out/conftest.err)
13398    ac_status=$?
13399    cat out/conftest.err >&5
13400    echo "$as_me:13400: \$? = $ac_status" >&5
13401    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13402    then
13403      # The compiler can only warn and ignore the option if not recognized
13404      # So say no if there are warnings
13405      if test ! -s out/conftest.err; then
13406        lt_cv_prog_compiler_c_o_F77=yes
13407      fi
13408    fi
13409    chmod u+w .
13410    $rm conftest*
13411    # SGI C++ compiler will create directory out/ii_files/ for
13412    # template instantiation
13413    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13414    $rm out/* && rmdir out
13415    cd ..
13416    rmdir conftest
13417    $rm conftest*
13418
13419 fi
13420 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13421 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13422
13423
13424 hard_links="nottested"
13425 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13426   # do not overwrite the value of need_locks provided by the user
13427   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13428 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13429   hard_links=yes
13430   $rm conftest*
13431   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13432   touch conftest.a
13433   ln conftest.a conftest.b 2>&5 || hard_links=no
13434   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13435   echo "$as_me:$LINENO: result: $hard_links" >&5
13436 echo "${ECHO_T}$hard_links" >&6
13437   if test "$hard_links" = no; then
13438     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13439 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13440     need_locks=warn
13441   fi
13442 else
13443   need_locks=no
13444 fi
13445
13446 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13447 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13448
13449   runpath_var=
13450   allow_undefined_flag_F77=
13451   enable_shared_with_static_runtimes_F77=no
13452   archive_cmds_F77=
13453   archive_expsym_cmds_F77=
13454   old_archive_From_new_cmds_F77=
13455   old_archive_from_expsyms_cmds_F77=
13456   export_dynamic_flag_spec_F77=
13457   whole_archive_flag_spec_F77=
13458   thread_safe_flag_spec_F77=
13459   hardcode_libdir_flag_spec_F77=
13460   hardcode_libdir_flag_spec_ld_F77=
13461   hardcode_libdir_separator_F77=
13462   hardcode_direct_F77=no
13463   hardcode_minus_L_F77=no
13464   hardcode_shlibpath_var_F77=unsupported
13465   link_all_deplibs_F77=unknown
13466   hardcode_automatic_F77=no
13467   module_cmds_F77=
13468   module_expsym_cmds_F77=
13469   always_export_symbols_F77=no
13470   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13471   # include_expsyms should be a list of space-separated symbols to be *always*
13472   # included in the symbol list
13473   include_expsyms_F77=
13474   # exclude_expsyms can be an extended regexp of symbols to exclude
13475   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13476   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13477   # as well as any symbol that contains `d'.
13478   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13479   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13480   # platforms (ab)use it in PIC code, but their linkers get confused if
13481   # the symbol is explicitly referenced.  Since portable code cannot
13482   # rely on this symbol name, it's probably fine to never include it in
13483   # preloaded symbol tables.
13484   extract_expsyms_cmds=
13485
13486   case $host_os in
13487   cygwin* | mingw* | pw32*)
13488     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13489     # When not using gcc, we currently assume that we are using
13490     # Microsoft Visual C++.
13491     if test "$GCC" != yes; then
13492       with_gnu_ld=no
13493     fi
13494     ;;
13495   openbsd*)
13496     with_gnu_ld=no
13497     ;;
13498   esac
13499
13500   ld_shlibs_F77=yes
13501   if test "$with_gnu_ld" = yes; then
13502     # If archive_cmds runs LD, not CC, wlarc should be empty
13503     wlarc='${wl}'
13504
13505     # See if GNU ld supports shared libraries.
13506     case $host_os in
13507     aix3* | aix4* | aix5*)
13508       # On AIX/PPC, the GNU linker is very broken
13509       if test "$host_cpu" != ia64; then
13510         ld_shlibs_F77=no
13511         cat <<EOF 1>&2
13512
13513 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13514 *** to be unable to reliably create shared libraries on AIX.
13515 *** Therefore, libtool is disabling shared libraries support.  If you
13516 *** really care for shared libraries, you may want to modify your PATH
13517 *** so that a non-GNU linker is found, and then restart.
13518
13519 EOF
13520       fi
13521       ;;
13522
13523     amigaos*)
13524       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)'
13525       hardcode_libdir_flag_spec_F77='-L$libdir'
13526       hardcode_minus_L_F77=yes
13527
13528       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13529       # that the semantics of dynamic libraries on AmigaOS, at least up
13530       # to version 4, is to share data among multiple programs linked
13531       # with the same dynamic library.  Since this doesn't match the
13532       # behavior of shared libraries on other platforms, we can't use
13533       # them.
13534       ld_shlibs_F77=no
13535       ;;
13536
13537     beos*)
13538       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13539         allow_undefined_flag_F77=unsupported
13540         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13541         # support --undefined.  This deserves some investigation.  FIXME
13542         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13543       else
13544         ld_shlibs_F77=no
13545       fi
13546       ;;
13547
13548     cygwin* | mingw* | pw32*)
13549       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13550       # as there is no search path for DLLs.
13551       hardcode_libdir_flag_spec_F77='-L$libdir'
13552       allow_undefined_flag_F77=unsupported
13553       always_export_symbols_F77=no
13554       enable_shared_with_static_runtimes_F77=yes
13555       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13556
13557       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13558         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13559         # If the export-symbols file already is a .def file (1st line
13560         # is EXPORTS), use it as is; otherwise, prepend...
13561         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13562           cp $export_symbols $output_objdir/$soname.def;
13563         else
13564           echo EXPORTS > $output_objdir/$soname.def;
13565           cat $export_symbols >> $output_objdir/$soname.def;
13566         fi~
13567         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13568       else
13569         ld_shlibs=no
13570       fi
13571       ;;
13572
13573     netbsd* | knetbsd*-gnu)
13574       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13575         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13576         wlarc=
13577       else
13578         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13579         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13580       fi
13581       ;;
13582
13583     solaris* | sysv5*)
13584       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13585         ld_shlibs_F77=no
13586         cat <<EOF 1>&2
13587
13588 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13589 *** create shared libraries on Solaris systems.  Therefore, libtool
13590 *** is disabling shared libraries support.  We urge you to upgrade GNU
13591 *** binutils to release 2.9.1 or newer.  Another option is to modify
13592 *** your PATH or compiler configuration so that the native linker is
13593 *** used, and then restart.
13594
13595 EOF
13596       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13597         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13598         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13599       else
13600         ld_shlibs_F77=no
13601       fi
13602       ;;
13603
13604     sunos4*)
13605       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13606       wlarc=
13607       hardcode_direct_F77=yes
13608       hardcode_shlibpath_var_F77=no
13609       ;;
13610
13611   linux*)
13612     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13613         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13614         archive_cmds_F77="$tmp_archive_cmds"
13615       supports_anon_versioning=no
13616       case `$LD -v 2>/dev/null` in
13617         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13618         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13619         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13620         *\ 2.11.*) ;; # other 2.11 versions
13621         *) supports_anon_versioning=yes ;;
13622       esac
13623       if test $supports_anon_versioning = yes; then
13624         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13625 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13626 $echo "local: *; };" >> $output_objdir/$libname.ver~
13627         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13628       else
13629         archive_expsym_cmds_F77="$tmp_archive_cmds"
13630       fi
13631       link_all_deplibs_F77=no
13632     else
13633       ld_shlibs_F77=no
13634     fi
13635     ;;
13636
13637     *)
13638       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13639         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13640         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13641       else
13642         ld_shlibs_F77=no
13643       fi
13644       ;;
13645     esac
13646
13647     if test "$ld_shlibs_F77" = yes; then
13648       runpath_var=LD_RUN_PATH
13649       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13650       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13651       # ancient GNU ld didn't support --whole-archive et. al.
13652       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13653         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13654       else
13655         whole_archive_flag_spec_F77=
13656       fi
13657     fi
13658   else
13659     # PORTME fill in a description of your system's linker (not GNU ld)
13660     case $host_os in
13661     aix3*)
13662       allow_undefined_flag_F77=unsupported
13663       always_export_symbols_F77=yes
13664       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'
13665       # Note: this linker hardcodes the directories in LIBPATH if there
13666       # are no directories specified by -L.
13667       hardcode_minus_L_F77=yes
13668       if test "$GCC" = yes && test -z "$link_static_flag"; then
13669         # Neither direct hardcoding nor static linking is supported with a
13670         # broken collect2.
13671         hardcode_direct_F77=unsupported
13672       fi
13673       ;;
13674
13675     aix4* | aix5*)
13676       if test "$host_cpu" = ia64; then
13677         # On IA64, the linker does run time linking by default, so we don't
13678         # have to do anything special.
13679         aix_use_runtimelinking=no
13680         exp_sym_flag='-Bexport'
13681         no_entry_flag=""
13682       else
13683         # If we're using GNU nm, then we don't want the "-C" option.
13684         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13685         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13686           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'
13687         else
13688           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'
13689         fi
13690         aix_use_runtimelinking=no
13691
13692         # Test if we are trying to use run time linking or normal
13693         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13694         # need to do runtime linking.
13695         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13696           for ld_flag in $LDFLAGS; do
13697           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13698             aix_use_runtimelinking=yes
13699             break
13700           fi
13701           done
13702         esac
13703
13704         exp_sym_flag='-bexport'
13705         no_entry_flag='-bnoentry'
13706       fi
13707
13708       # When large executables or shared objects are built, AIX ld can
13709       # have problems creating the table of contents.  If linking a library
13710       # or program results in "error TOC overflow" add -mminimal-toc to
13711       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13712       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13713
13714       archive_cmds_F77=''
13715       hardcode_direct_F77=yes
13716       hardcode_libdir_separator_F77=':'
13717       link_all_deplibs_F77=yes
13718
13719       if test "$GCC" = yes; then
13720         case $host_os in aix4.012|aix4.012.*)
13721         # We only want to do this on AIX 4.2 and lower, the check
13722         # below for broken collect2 doesn't work under 4.3+
13723           collect2name=`${CC} -print-prog-name=collect2`
13724           if test -f "$collect2name" && \
13725            strings "$collect2name" | grep resolve_lib_name >/dev/null
13726           then
13727           # We have reworked collect2
13728           hardcode_direct_F77=yes
13729           else
13730           # We have old collect2
13731           hardcode_direct_F77=unsupported
13732           # It fails to find uninstalled libraries when the uninstalled
13733           # path is not listed in the libpath.  Setting hardcode_minus_L
13734           # to unsupported forces relinking
13735           hardcode_minus_L_F77=yes
13736           hardcode_libdir_flag_spec_F77='-L$libdir'
13737           hardcode_libdir_separator_F77=
13738           fi
13739         esac
13740         shared_flag='-shared'
13741       else
13742         # not using gcc
13743         if test "$host_cpu" = ia64; then
13744         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13745         # chokes on -Wl,-G. The following line is correct:
13746           shared_flag='-G'
13747         else
13748         if test "$aix_use_runtimelinking" = yes; then
13749             shared_flag='${wl}-G'
13750           else
13751             shared_flag='${wl}-bM:SRE'
13752         fi
13753         fi
13754       fi
13755
13756       # It seems that -bexpall does not export symbols beginning with
13757       # underscore (_), so it is better to generate a list of symbols to export.
13758       always_export_symbols_F77=yes
13759       if test "$aix_use_runtimelinking" = yes; then
13760         # Warning - without using the other runtime loading flags (-brtl),
13761         # -berok will link without error, but may produce a broken library.
13762         allow_undefined_flag_F77='-berok'
13763        # Determine the default libpath from the value encoded in an empty executable.
13764        cat >conftest.$ac_ext <<_ACEOF
13765       program main
13766
13767       end
13768 _ACEOF
13769 rm -f conftest.$ac_objext conftest$ac_exeext
13770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13771   (eval $ac_link) 2>conftest.er1
13772   ac_status=$?
13773   grep -v '^ *+' conftest.er1 >conftest.err
13774   rm -f conftest.er1
13775   cat conftest.err >&5
13776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777   (exit $ac_status); } &&
13778          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
13779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13780   (eval $ac_try) 2>&5
13781   ac_status=$?
13782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783   (exit $ac_status); }; } &&
13784          { ac_try='test -s conftest$ac_exeext'
13785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13786   (eval $ac_try) 2>&5
13787   ac_status=$?
13788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789   (exit $ac_status); }; }; then
13790
13791 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13792 }'`
13793 # Check for a 64-bit object if we didn't find anything.
13794 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; }
13795 }'`; fi
13796 else
13797   echo "$as_me: failed program was:" >&5
13798 sed 's/^/| /' conftest.$ac_ext >&5
13799
13800 fi
13801 rm -f conftest.err conftest.$ac_objext \
13802       conftest$ac_exeext conftest.$ac_ext
13803 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13804
13805        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13806         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"
13807        else
13808         if test "$host_cpu" = ia64; then
13809           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13810           allow_undefined_flag_F77="-z nodefs"
13811           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"
13812         else
13813          # Determine the default libpath from the value encoded in an empty executable.
13814          cat >conftest.$ac_ext <<_ACEOF
13815       program main
13816
13817       end
13818 _ACEOF
13819 rm -f conftest.$ac_objext conftest$ac_exeext
13820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13821   (eval $ac_link) 2>conftest.er1
13822   ac_status=$?
13823   grep -v '^ *+' conftest.er1 >conftest.err
13824   rm -f conftest.er1
13825   cat conftest.err >&5
13826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827   (exit $ac_status); } &&
13828          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
13829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13830   (eval $ac_try) 2>&5
13831   ac_status=$?
13832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833   (exit $ac_status); }; } &&
13834          { ac_try='test -s conftest$ac_exeext'
13835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13836   (eval $ac_try) 2>&5
13837   ac_status=$?
13838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839   (exit $ac_status); }; }; then
13840
13841 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13842 }'`
13843 # Check for a 64-bit object if we didn't find anything.
13844 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; }
13845 }'`; fi
13846 else
13847   echo "$as_me: failed program was:" >&5
13848 sed 's/^/| /' conftest.$ac_ext >&5
13849
13850 fi
13851 rm -f conftest.err conftest.$ac_objext \
13852       conftest$ac_exeext conftest.$ac_ext
13853 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13854
13855          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13856           # Warning - without using the other run time loading flags,
13857           # -berok will link without error, but may produce a broken library.
13858           no_undefined_flag_F77=' ${wl}-bernotok'
13859           allow_undefined_flag_F77=' ${wl}-berok'
13860           # -bexpall does not export symbols beginning with underscore (_)
13861           always_export_symbols_F77=yes
13862           # Exported symbols can be pulled into shared objects from archives
13863           whole_archive_flag_spec_F77=' '
13864           archive_cmds_need_lc_F77=yes
13865           # This is similar to how AIX traditionally builds it's shared libraries.
13866           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'
13867         fi
13868       fi
13869       ;;
13870
13871     amigaos*)
13872       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)'
13873       hardcode_libdir_flag_spec_F77='-L$libdir'
13874       hardcode_minus_L_F77=yes
13875       # see comment about different semantics on the GNU ld section
13876       ld_shlibs_F77=no
13877       ;;
13878
13879     bsdi4*)
13880       export_dynamic_flag_spec_F77=-rdynamic
13881       ;;
13882
13883     cygwin* | mingw* | pw32*)
13884       # When not using gcc, we currently assume that we are using
13885       # Microsoft Visual C++.
13886       # hardcode_libdir_flag_spec is actually meaningless, as there is
13887       # no search path for DLLs.
13888       hardcode_libdir_flag_spec_F77=' '
13889       allow_undefined_flag_F77=unsupported
13890       # Tell ltmain to make .lib files, not .a files.
13891       libext=lib
13892       # Tell ltmain to make .dll files, not .so files.
13893       shrext_cmds=".dll"
13894       # FIXME: Setting linknames here is a bad hack.
13895       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13896       # The linker will automatically build a .lib file if we build a DLL.
13897       old_archive_From_new_cmds_F77='true'
13898       # FIXME: Should let the user specify the lib program.
13899       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13900       fix_srcfile_path='`cygpath -w "$srcfile"`'
13901       enable_shared_with_static_runtimes_F77=yes
13902       ;;
13903
13904     darwin* | rhapsody*)
13905     if test "$GXX" = yes ; then
13906       archive_cmds_need_lc_F77=no
13907       case "$host_os" in
13908       rhapsody* | darwin1.[012])
13909         allow_undefined_flag_F77='-undefined suppress'
13910         ;;
13911       *) # Darwin 1.3 on
13912       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13913         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13914       else
13915         case ${MACOSX_DEPLOYMENT_TARGET} in
13916           10.[012])
13917             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13918             ;;
13919           10.*)
13920             allow_undefined_flag_F77='-undefined dynamic_lookup'
13921             ;;
13922         esac
13923       fi
13924         ;;
13925       esac
13926         lt_int_apple_cc_single_mod=no
13927         output_verbose_link_cmd='echo'
13928         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13929           lt_int_apple_cc_single_mod=yes
13930         fi
13931         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13932           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13933         else
13934         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'
13935       fi
13936       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13937       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13938         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13939           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}'
13940         else
13941           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}'
13942         fi
13943           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}'
13944       hardcode_direct_F77=no
13945       hardcode_automatic_F77=yes
13946       hardcode_shlibpath_var_F77=unsupported
13947       whole_archive_flag_spec_F77='-all_load $convenience'
13948       link_all_deplibs_F77=yes
13949     else
13950       ld_shlibs_F77=no
13951     fi
13952       ;;
13953
13954     dgux*)
13955       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13956       hardcode_libdir_flag_spec_F77='-L$libdir'
13957       hardcode_shlibpath_var_F77=no
13958       ;;
13959
13960     freebsd1*)
13961       ld_shlibs_F77=no
13962       ;;
13963
13964     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13965     # support.  Future versions do this automatically, but an explicit c++rt0.o
13966     # does not break anything, and helps significantly (at the cost of a little
13967     # extra space).
13968     freebsd2.2*)
13969       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13970       hardcode_libdir_flag_spec_F77='-R$libdir'
13971       hardcode_direct_F77=yes
13972       hardcode_shlibpath_var_F77=no
13973       ;;
13974
13975     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13976     freebsd2*)
13977       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13978       hardcode_direct_F77=yes
13979       hardcode_minus_L_F77=yes
13980       hardcode_shlibpath_var_F77=no
13981       ;;
13982
13983     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13984     freebsd* | kfreebsd*-gnu)
13985       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13986       hardcode_libdir_flag_spec_F77='-R$libdir'
13987       hardcode_direct_F77=yes
13988       hardcode_shlibpath_var_F77=no
13989       ;;
13990
13991     hpux9*)
13992       if test "$GCC" = yes; then
13993         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'
13994       else
13995         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'
13996       fi
13997       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13998       hardcode_libdir_separator_F77=:
13999       hardcode_direct_F77=yes
14000
14001       # hardcode_minus_L: Not really in the search PATH,
14002       # but as the default location of the library.
14003       hardcode_minus_L_F77=yes
14004       export_dynamic_flag_spec_F77='${wl}-E'
14005       ;;
14006
14007     hpux10* | hpux11*)
14008       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14009         case "$host_cpu" in
14010         hppa*64*|ia64*)
14011           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14012           ;;
14013         *)
14014           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14015           ;;
14016         esac
14017       else
14018         case "$host_cpu" in
14019         hppa*64*|ia64*)
14020           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14021           ;;
14022         *)
14023           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14024           ;;
14025         esac
14026       fi
14027       if test "$with_gnu_ld" = no; then
14028         case "$host_cpu" in
14029         hppa*64*)
14030           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14031           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14032           hardcode_libdir_separator_F77=:
14033           hardcode_direct_F77=no
14034           hardcode_shlibpath_var_F77=no
14035           ;;
14036         ia64*)
14037           hardcode_libdir_flag_spec_F77='-L$libdir'
14038           hardcode_direct_F77=no
14039           hardcode_shlibpath_var_F77=no
14040
14041           # hardcode_minus_L: Not really in the search PATH,
14042           # but as the default location of the library.
14043           hardcode_minus_L_F77=yes
14044           ;;
14045         *)
14046           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14047           hardcode_libdir_separator_F77=:
14048           hardcode_direct_F77=yes
14049           export_dynamic_flag_spec_F77='${wl}-E'
14050
14051           # hardcode_minus_L: Not really in the search PATH,
14052           # but as the default location of the library.
14053           hardcode_minus_L_F77=yes
14054           ;;
14055         esac
14056       fi
14057       ;;
14058
14059     irix5* | irix6* | nonstopux*)
14060       if test "$GCC" = yes; then
14061         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'
14062       else
14063         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'
14064         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14065       fi
14066       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14067       hardcode_libdir_separator_F77=:
14068       link_all_deplibs_F77=yes
14069       ;;
14070
14071     netbsd* | knetbsd*-gnu)
14072       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14073         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14074       else
14075         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14076       fi
14077       hardcode_libdir_flag_spec_F77='-R$libdir'
14078       hardcode_direct_F77=yes
14079       hardcode_shlibpath_var_F77=no
14080       ;;
14081
14082     newsos6)
14083       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14084       hardcode_direct_F77=yes
14085       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14086       hardcode_libdir_separator_F77=:
14087       hardcode_shlibpath_var_F77=no
14088       ;;
14089
14090     openbsd*)
14091       hardcode_direct_F77=yes
14092       hardcode_shlibpath_var_F77=no
14093       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14094         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14095         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14096         export_dynamic_flag_spec_F77='${wl}-E'
14097       else
14098        case $host_os in
14099          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14100            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14101            hardcode_libdir_flag_spec_F77='-R$libdir'
14102            ;;
14103          *)
14104            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14105            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14106            ;;
14107        esac
14108       fi
14109       ;;
14110
14111     os2*)
14112       hardcode_libdir_flag_spec_F77='-L$libdir'
14113       hardcode_minus_L_F77=yes
14114       allow_undefined_flag_F77=unsupported
14115       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'
14116       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14117       ;;
14118
14119     osf3*)
14120       if test "$GCC" = yes; then
14121         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14122         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'
14123       else
14124         allow_undefined_flag_F77=' -expect_unresolved \*'
14125         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'
14126       fi
14127       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14128       hardcode_libdir_separator_F77=:
14129       ;;
14130
14131     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14132       if test "$GCC" = yes; then
14133         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14134         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'
14135         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14136       else
14137         allow_undefined_flag_F77=' -expect_unresolved \*'
14138         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'
14139         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~
14140         $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'
14141
14142         # Both c and cxx compiler support -rpath directly
14143         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14144       fi
14145       hardcode_libdir_separator_F77=:
14146       ;;
14147
14148     sco3.2v5*)
14149       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14150       hardcode_shlibpath_var_F77=no
14151       export_dynamic_flag_spec_F77='${wl}-Bexport'
14152       runpath_var=LD_RUN_PATH
14153       hardcode_runpath_var=yes
14154       ;;
14155
14156     solaris*)
14157       no_undefined_flag_F77=' -z text'
14158       if test "$GCC" = yes; then
14159         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14160         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14161           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14162       else
14163         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14164         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14165         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14166       fi
14167       hardcode_libdir_flag_spec_F77='-R$libdir'
14168       hardcode_shlibpath_var_F77=no
14169       case $host_os in
14170       solaris2.[0-5] | solaris2.[0-5].*) ;;
14171       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14172         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14173       esac
14174       link_all_deplibs_F77=yes
14175       ;;
14176
14177     sunos4*)
14178       if test "x$host_vendor" = xsequent; then
14179         # Use $CC to link under sequent, because it throws in some extra .o
14180         # files that make .init and .fini sections work.
14181         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14182       else
14183         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14184       fi
14185       hardcode_libdir_flag_spec_F77='-L$libdir'
14186       hardcode_direct_F77=yes
14187       hardcode_minus_L_F77=yes
14188       hardcode_shlibpath_var_F77=no
14189       ;;
14190
14191     sysv4)
14192       case $host_vendor in
14193         sni)
14194           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14195           hardcode_direct_F77=yes # is this really true???
14196         ;;
14197         siemens)
14198           ## LD is ld it makes a PLAMLIB
14199           ## CC just makes a GrossModule.
14200           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14201           reload_cmds_F77='$CC -r -o $output$reload_objs'
14202           hardcode_direct_F77=no
14203         ;;
14204         motorola)
14205           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14206           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14207         ;;
14208       esac
14209       runpath_var='LD_RUN_PATH'
14210       hardcode_shlibpath_var_F77=no
14211       ;;
14212
14213     sysv4.3*)
14214       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14215       hardcode_shlibpath_var_F77=no
14216       export_dynamic_flag_spec_F77='-Bexport'
14217       ;;
14218
14219     sysv4*MP*)
14220       if test -d /usr/nec; then
14221         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14222         hardcode_shlibpath_var_F77=no
14223         runpath_var=LD_RUN_PATH
14224         hardcode_runpath_var=yes
14225         ld_shlibs_F77=yes
14226       fi
14227       ;;
14228
14229     sysv4.2uw2*)
14230       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14231       hardcode_direct_F77=yes
14232       hardcode_minus_L_F77=no
14233       hardcode_shlibpath_var_F77=no
14234       hardcode_runpath_var=yes
14235       runpath_var=LD_RUN_PATH
14236       ;;
14237
14238    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14239       no_undefined_flag_F77='${wl}-z ${wl}text'
14240       if test "$GCC" = yes; then
14241         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14242       else
14243         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14244       fi
14245       runpath_var='LD_RUN_PATH'
14246       hardcode_shlibpath_var_F77=no
14247       ;;
14248
14249     sysv5*)
14250       no_undefined_flag_F77=' -z text'
14251       # $CC -shared without GNU ld will not create a library from C++
14252       # object files and a static libstdc++, better avoid it by now
14253       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14254       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14255                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14256       hardcode_libdir_flag_spec_F77=
14257       hardcode_shlibpath_var_F77=no
14258       runpath_var='LD_RUN_PATH'
14259       ;;
14260
14261     uts4*)
14262       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14263       hardcode_libdir_flag_spec_F77='-L$libdir'
14264       hardcode_shlibpath_var_F77=no
14265       ;;
14266
14267     *)
14268       ld_shlibs_F77=no
14269       ;;
14270     esac
14271   fi
14272
14273 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14274 echo "${ECHO_T}$ld_shlibs_F77" >&6
14275 test "$ld_shlibs_F77" = no && can_build_shared=no
14276
14277 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14278 if test "$GCC" = yes; then
14279   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14280 fi
14281
14282 #
14283 # Do we need to explicitly link libc?
14284 #
14285 case "x$archive_cmds_need_lc_F77" in
14286 x|xyes)
14287   # Assume -lc should be added
14288   archive_cmds_need_lc_F77=yes
14289
14290   if test "$enable_shared" = yes && test "$GCC" = yes; then
14291     case $archive_cmds_F77 in
14292     *'~'*)
14293       # FIXME: we may have to deal with multi-command sequences.
14294       ;;
14295     '$CC '*)
14296       # Test whether the compiler implicitly links with -lc since on some
14297       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14298       # to ld, don't add -lc before -lgcc.
14299       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14300 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14301       $rm conftest*
14302       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14303
14304       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14305   (eval $ac_compile) 2>&5
14306   ac_status=$?
14307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308   (exit $ac_status); } 2>conftest.err; then
14309         soname=conftest
14310         lib=conftest
14311         libobjs=conftest.$ac_objext
14312         deplibs=
14313         wl=$lt_prog_compiler_wl_F77
14314         compiler_flags=-v
14315         linker_flags=-v
14316         verstring=
14317         output_objdir=.
14318         libname=conftest
14319         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14320         allow_undefined_flag_F77=
14321         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14322   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14323   ac_status=$?
14324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325   (exit $ac_status); }
14326         then
14327           archive_cmds_need_lc_F77=no
14328         else
14329           archive_cmds_need_lc_F77=yes
14330         fi
14331         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14332       else
14333         cat conftest.err 1>&5
14334       fi
14335       $rm conftest*
14336       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14337 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14338       ;;
14339     esac
14340   fi
14341   ;;
14342 esac
14343
14344 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14345 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14346 library_names_spec=
14347 libname_spec='lib$name'
14348 soname_spec=
14349 shrext_cmds=".so"
14350 postinstall_cmds=
14351 postuninstall_cmds=
14352 finish_cmds=
14353 finish_eval=
14354 shlibpath_var=
14355 shlibpath_overrides_runpath=unknown
14356 version_type=none
14357 dynamic_linker="$host_os ld.so"
14358 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14359 if test "$GCC" = yes; then
14360   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14361   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14362     # if the path contains ";" then we assume it to be the separator
14363     # otherwise default to the standard path separator (i.e. ":") - it is
14364     # assumed that no part of a normal pathname contains ";" but that should
14365     # okay in the real world where ";" in dirpaths is itself problematic.
14366     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14367   else
14368     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14369   fi
14370 else
14371   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14372 fi
14373 need_lib_prefix=unknown
14374 hardcode_into_libs=no
14375
14376 # when you set need_version to no, make sure it does not cause -set_version
14377 # flags to be left without arguments
14378 need_version=unknown
14379
14380 case $host_os in
14381 aix3*)
14382   version_type=linux
14383   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14384   shlibpath_var=LIBPATH
14385
14386   # AIX 3 has no versioning support, so we append a major version to the name.
14387   soname_spec='${libname}${release}${shared_ext}$major'
14388   ;;
14389
14390 aix4* | aix5*)
14391   version_type=linux
14392   need_lib_prefix=no
14393   need_version=no
14394   hardcode_into_libs=yes
14395   if test "$host_cpu" = ia64; then
14396     # AIX 5 supports IA64
14397     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14398     shlibpath_var=LD_LIBRARY_PATH
14399   else
14400     # With GCC up to 2.95.x, collect2 would create an import file
14401     # for dependence libraries.  The import file would start with
14402     # the line `#! .'.  This would cause the generated library to
14403     # depend on `.', always an invalid library.  This was fixed in
14404     # development snapshots of GCC prior to 3.0.
14405     case $host_os in
14406       aix4 | aix4.[01] | aix4.[01].*)
14407       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14408            echo ' yes '
14409            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14410         :
14411       else
14412         can_build_shared=no
14413       fi
14414       ;;
14415     esac
14416     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14417     # soname into executable. Probably we can add versioning support to
14418     # collect2, so additional links can be useful in future.
14419     if test "$aix_use_runtimelinking" = yes; then
14420       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14421       # instead of lib<name>.a to let people know that these are not
14422       # typical AIX shared libraries.
14423       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14424     else
14425       # We preserve .a as extension for shared libraries through AIX4.2
14426       # and later when we are not doing run time linking.
14427       library_names_spec='${libname}${release}.a $libname.a'
14428       soname_spec='${libname}${release}${shared_ext}$major'
14429     fi
14430     shlibpath_var=LIBPATH
14431   fi
14432   ;;
14433
14434 amigaos*)
14435   library_names_spec='$libname.ixlibrary $libname.a'
14436   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14437   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'
14438   ;;
14439
14440 beos*)
14441   library_names_spec='${libname}${shared_ext}'
14442   dynamic_linker="$host_os ld.so"
14443   shlibpath_var=LIBRARY_PATH
14444   ;;
14445
14446 bsdi4*)
14447   version_type=linux
14448   need_version=no
14449   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14450   soname_spec='${libname}${release}${shared_ext}$major'
14451   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14452   shlibpath_var=LD_LIBRARY_PATH
14453   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14454   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14455   # the default ld.so.conf also contains /usr/contrib/lib and
14456   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14457   # libtool to hard-code these into programs
14458   ;;
14459
14460 cygwin* | mingw* | pw32*)
14461   version_type=windows
14462   shrext_cmds=".dll"
14463   need_version=no
14464   need_lib_prefix=no
14465
14466   case $GCC,$host_os in
14467   yes,cygwin* | yes,mingw* | yes,pw32*)
14468     library_names_spec='$libname.dll.a'
14469     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14470     postinstall_cmds='base_file=`basename \${file}`~
14471       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14472       dldir=$destdir/`dirname \$dlpath`~
14473       test -d \$dldir || mkdir -p \$dldir~
14474       $install_prog $dir/$dlname \$dldir/$dlname'
14475     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14476       dlpath=$dir/\$dldll~
14477        $rm \$dlpath'
14478     shlibpath_overrides_runpath=yes
14479
14480     case $host_os in
14481     cygwin*)
14482       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14483       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14484       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14485       ;;
14486     mingw*)
14487       # MinGW DLLs use traditional 'lib' prefix
14488       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14489       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14490       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14491         # It is most probably a Windows format PATH printed by
14492         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14493         # path with ; separators, and with drive letters. We can handle the
14494         # drive letters (cygwin fileutils understands them), so leave them,
14495         # especially as we might pass files found there to a mingw objdump,
14496         # which wouldn't understand a cygwinified path. Ahh.
14497         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14498       else
14499         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14500       fi
14501       ;;
14502     pw32*)
14503       # pw32 DLLs use 'pw' prefix rather than 'lib'
14504       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14505       ;;
14506     esac
14507     ;;
14508
14509   *)
14510     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14511     ;;
14512   esac
14513   dynamic_linker='Win32 ld.exe'
14514   # FIXME: first we should search . and the directory the executable is in
14515   shlibpath_var=PATH
14516   ;;
14517
14518 darwin* | rhapsody*)
14519   dynamic_linker="$host_os dyld"
14520   version_type=darwin
14521   need_lib_prefix=no
14522   need_version=no
14523   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14524   soname_spec='${libname}${release}${major}$shared_ext'
14525   shlibpath_overrides_runpath=yes
14526   shlibpath_var=DYLD_LIBRARY_PATH
14527   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14528   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14529   if test "$GCC" = yes; then
14530     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"`
14531   else
14532     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14533   fi
14534   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14535   ;;
14536
14537 dgux*)
14538   version_type=linux
14539   need_lib_prefix=no
14540   need_version=no
14541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14542   soname_spec='${libname}${release}${shared_ext}$major'
14543   shlibpath_var=LD_LIBRARY_PATH
14544   ;;
14545
14546 freebsd1*)
14547   dynamic_linker=no
14548   ;;
14549
14550 kfreebsd*-gnu)
14551   version_type=linux
14552   need_lib_prefix=no
14553   need_version=no
14554   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14555   soname_spec='${libname}${release}${shared_ext}$major'
14556   shlibpath_var=LD_LIBRARY_PATH
14557   shlibpath_overrides_runpath=no
14558   hardcode_into_libs=yes
14559   dynamic_linker='GNU ld.so'
14560   ;;
14561
14562 freebsd*)
14563   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14564   version_type=freebsd-$objformat
14565   case $version_type in
14566     freebsd-elf*)
14567       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14568       need_version=no
14569       need_lib_prefix=no
14570       ;;
14571     freebsd-*)
14572       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14573       need_version=yes
14574       ;;
14575   esac
14576   shlibpath_var=LD_LIBRARY_PATH
14577   case $host_os in
14578   freebsd2*)
14579     shlibpath_overrides_runpath=yes
14580     ;;
14581   freebsd3.01* | freebsdelf3.01*)
14582     shlibpath_overrides_runpath=yes
14583     hardcode_into_libs=yes
14584     ;;
14585   *) # from 3.2 on
14586     shlibpath_overrides_runpath=no
14587     hardcode_into_libs=yes
14588     ;;
14589   esac
14590   ;;
14591
14592 gnu*)
14593   version_type=linux
14594   need_lib_prefix=no
14595   need_version=no
14596   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14597   soname_spec='${libname}${release}${shared_ext}$major'
14598   shlibpath_var=LD_LIBRARY_PATH
14599   hardcode_into_libs=yes
14600   ;;
14601
14602 hpux9* | hpux10* | hpux11*)
14603   # Give a soname corresponding to the major version so that dld.sl refuses to
14604   # link against other versions.
14605   version_type=sunos
14606   need_lib_prefix=no
14607   need_version=no
14608   case "$host_cpu" in
14609   ia64*)
14610     shrext_cmds='.so'
14611     hardcode_into_libs=yes
14612     dynamic_linker="$host_os dld.so"
14613     shlibpath_var=LD_LIBRARY_PATH
14614     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14615     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14616     soname_spec='${libname}${release}${shared_ext}$major'
14617     if test "X$HPUX_IA64_MODE" = X32; then
14618       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14619     else
14620       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14621     fi
14622     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14623     ;;
14624    hppa*64*)
14625      shrext_cmds='.sl'
14626      hardcode_into_libs=yes
14627      dynamic_linker="$host_os dld.sl"
14628      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14629      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14630      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14631      soname_spec='${libname}${release}${shared_ext}$major'
14632      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14633      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14634      ;;
14635    *)
14636     shrext_cmds='.sl'
14637     dynamic_linker="$host_os dld.sl"
14638     shlibpath_var=SHLIB_PATH
14639     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14640     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14641     soname_spec='${libname}${release}${shared_ext}$major'
14642     ;;
14643   esac
14644   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14645   postinstall_cmds='chmod 555 $lib'
14646   ;;
14647
14648 irix5* | irix6* | nonstopux*)
14649   case $host_os in
14650     nonstopux*) version_type=nonstopux ;;
14651     *)
14652         if test "$lt_cv_prog_gnu_ld" = yes; then
14653                 version_type=linux
14654         else
14655                 version_type=irix
14656         fi ;;
14657   esac
14658   need_lib_prefix=no
14659   need_version=no
14660   soname_spec='${libname}${release}${shared_ext}$major'
14661   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14662   case $host_os in
14663   irix5* | nonstopux*)
14664     libsuff= shlibsuff=
14665     ;;
14666   *)
14667     case $LD in # libtool.m4 will add one of these switches to LD
14668     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14669       libsuff= shlibsuff= libmagic=32-bit;;
14670     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14671       libsuff=32 shlibsuff=N32 libmagic=N32;;
14672     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14673       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14674     *) libsuff= shlibsuff= libmagic=never-match;;
14675     esac
14676     ;;
14677   esac
14678   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14679   shlibpath_overrides_runpath=no
14680   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14681   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14682   hardcode_into_libs=yes
14683   ;;
14684
14685 # No shared lib support for Linux oldld, aout, or coff.
14686 linux*oldld* | linux*aout* | linux*coff*)
14687   dynamic_linker=no
14688   ;;
14689
14690 # This must be Linux ELF.
14691 linux*)
14692   version_type=linux
14693   need_lib_prefix=no
14694   need_version=no
14695   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14696   soname_spec='${libname}${release}${shared_ext}$major'
14697   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14698   shlibpath_var=LD_LIBRARY_PATH
14699   shlibpath_overrides_runpath=no
14700   # This implies no fast_install, which is unacceptable.
14701   # Some rework will be needed to allow for fast_install
14702   # before this can be enabled.
14703   hardcode_into_libs=yes
14704
14705   # Append ld.so.conf contents to the search path
14706   if test -f /etc/ld.so.conf; then
14707     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14708     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14709   fi
14710
14711   # We used to test for /lib/ld.so.1 and disable shared libraries on
14712   # powerpc, because MkLinux only supported shared libraries with the
14713   # GNU dynamic linker.  Since this was broken with cross compilers,
14714   # most powerpc-linux boxes support dynamic linking these days and
14715   # people can always --disable-shared, the test was removed, and we
14716   # assume the GNU/Linux dynamic linker is in use.
14717   dynamic_linker='GNU/Linux ld.so'
14718   ;;
14719
14720 knetbsd*-gnu)
14721   version_type=linux
14722   need_lib_prefix=no
14723   need_version=no
14724   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14725   soname_spec='${libname}${release}${shared_ext}$major'
14726   shlibpath_var=LD_LIBRARY_PATH
14727   shlibpath_overrides_runpath=no
14728   hardcode_into_libs=yes
14729   dynamic_linker='GNU ld.so'
14730   ;;
14731
14732 netbsd*)
14733   version_type=sunos
14734   need_lib_prefix=no
14735   need_version=no
14736   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14737     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14738     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14739     dynamic_linker='NetBSD (a.out) ld.so'
14740   else
14741     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14742     soname_spec='${libname}${release}${shared_ext}$major'
14743     dynamic_linker='NetBSD ld.elf_so'
14744   fi
14745   shlibpath_var=LD_LIBRARY_PATH
14746   shlibpath_overrides_runpath=yes
14747   hardcode_into_libs=yes
14748   ;;
14749
14750 newsos6)
14751   version_type=linux
14752   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14753   shlibpath_var=LD_LIBRARY_PATH
14754   shlibpath_overrides_runpath=yes
14755   ;;
14756
14757 nto-qnx*)
14758   version_type=linux
14759   need_lib_prefix=no
14760   need_version=no
14761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14762   soname_spec='${libname}${release}${shared_ext}$major'
14763   shlibpath_var=LD_LIBRARY_PATH
14764   shlibpath_overrides_runpath=yes
14765   ;;
14766
14767 openbsd*)
14768   version_type=sunos
14769   need_lib_prefix=no
14770   need_version=yes
14771   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14772   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14773   shlibpath_var=LD_LIBRARY_PATH
14774   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14775     case $host_os in
14776       openbsd2.[89] | openbsd2.[89].*)
14777         shlibpath_overrides_runpath=no
14778         ;;
14779       *)
14780         shlibpath_overrides_runpath=yes
14781         ;;
14782       esac
14783   else
14784     shlibpath_overrides_runpath=yes
14785   fi
14786   ;;
14787
14788 os2*)
14789   libname_spec='$name'
14790   shrext_cmds=".dll"
14791   need_lib_prefix=no
14792   library_names_spec='$libname${shared_ext} $libname.a'
14793   dynamic_linker='OS/2 ld.exe'
14794   shlibpath_var=LIBPATH
14795   ;;
14796
14797 osf3* | osf4* | osf5*)
14798   version_type=osf
14799   need_lib_prefix=no
14800   need_version=no
14801   soname_spec='${libname}${release}${shared_ext}$major'
14802   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14803   shlibpath_var=LD_LIBRARY_PATH
14804   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14805   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14806   ;;
14807
14808 sco3.2v5*)
14809   version_type=osf
14810   soname_spec='${libname}${release}${shared_ext}$major'
14811   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14812   shlibpath_var=LD_LIBRARY_PATH
14813   ;;
14814
14815 solaris*)
14816   version_type=linux
14817   need_lib_prefix=no
14818   need_version=no
14819   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14820   soname_spec='${libname}${release}${shared_ext}$major'
14821   shlibpath_var=LD_LIBRARY_PATH
14822   shlibpath_overrides_runpath=yes
14823   hardcode_into_libs=yes
14824   # ldd complains unless libraries are executable
14825   postinstall_cmds='chmod +x $lib'
14826   ;;
14827
14828 sunos4*)
14829   version_type=sunos
14830   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14831   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14832   shlibpath_var=LD_LIBRARY_PATH
14833   shlibpath_overrides_runpath=yes
14834   if test "$with_gnu_ld" = yes; then
14835     need_lib_prefix=no
14836   fi
14837   need_version=yes
14838   ;;
14839
14840 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14841   version_type=linux
14842   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14843   soname_spec='${libname}${release}${shared_ext}$major'
14844   shlibpath_var=LD_LIBRARY_PATH
14845   case $host_vendor in
14846     sni)
14847       shlibpath_overrides_runpath=no
14848       need_lib_prefix=no
14849       export_dynamic_flag_spec='${wl}-Blargedynsym'
14850       runpath_var=LD_RUN_PATH
14851       ;;
14852     siemens)
14853       need_lib_prefix=no
14854       ;;
14855     motorola)
14856       need_lib_prefix=no
14857       need_version=no
14858       shlibpath_overrides_runpath=no
14859       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14860       ;;
14861   esac
14862   ;;
14863
14864 sysv4*MP*)
14865   if test -d /usr/nec ;then
14866     version_type=linux
14867     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14868     soname_spec='$libname${shared_ext}.$major'
14869     shlibpath_var=LD_LIBRARY_PATH
14870   fi
14871   ;;
14872
14873 uts4*)
14874   version_type=linux
14875   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14876   soname_spec='${libname}${release}${shared_ext}$major'
14877   shlibpath_var=LD_LIBRARY_PATH
14878   ;;
14879
14880 *)
14881   dynamic_linker=no
14882   ;;
14883 esac
14884 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14885 echo "${ECHO_T}$dynamic_linker" >&6
14886 test "$dynamic_linker" = no && can_build_shared=no
14887
14888 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14889 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14890 hardcode_action_F77=
14891 if test -n "$hardcode_libdir_flag_spec_F77" || \
14892    test -n "$runpath_var F77" || \
14893    test "X$hardcode_automatic_F77"="Xyes" ; then
14894
14895   # We can hardcode non-existant directories.
14896   if test "$hardcode_direct_F77" != no &&
14897      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14898      # have to relink, otherwise we might link with an installed library
14899      # when we should be linking with a yet-to-be-installed one
14900      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14901      test "$hardcode_minus_L_F77" != no; then
14902     # Linking always hardcodes the temporary library directory.
14903     hardcode_action_F77=relink
14904   else
14905     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14906     hardcode_action_F77=immediate
14907   fi
14908 else
14909   # We cannot hardcode anything, or else we can only hardcode existing
14910   # directories.
14911   hardcode_action_F77=unsupported
14912 fi
14913 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14914 echo "${ECHO_T}$hardcode_action_F77" >&6
14915
14916 if test "$hardcode_action_F77" = relink; then
14917   # Fast installation is not supported
14918   enable_fast_install=no
14919 elif test "$shlibpath_overrides_runpath" = yes ||
14920      test "$enable_shared" = no; then
14921   # Fast installation is not necessary
14922   enable_fast_install=needless
14923 fi
14924
14925 striplib=
14926 old_striplib=
14927 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14928 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14929 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14930   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14931   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14932   echo "$as_me:$LINENO: result: yes" >&5
14933 echo "${ECHO_T}yes" >&6
14934 else
14935 # FIXME - insert some real tests, host_os isn't really good enough
14936   case $host_os in
14937    darwin*)
14938        if test -n "$STRIP" ; then
14939          striplib="$STRIP -x"
14940          echo "$as_me:$LINENO: result: yes" >&5
14941 echo "${ECHO_T}yes" >&6
14942        else
14943   echo "$as_me:$LINENO: result: no" >&5
14944 echo "${ECHO_T}no" >&6
14945 fi
14946        ;;
14947    *)
14948   echo "$as_me:$LINENO: result: no" >&5
14949 echo "${ECHO_T}no" >&6
14950     ;;
14951   esac
14952 fi
14953
14954
14955
14956 # The else clause should only fire when bootstrapping the
14957 # libtool distribution, otherwise you forgot to ship ltmain.sh
14958 # with your package, and you will get complaints that there are
14959 # no rules to generate ltmain.sh.
14960 if test -f "$ltmain"; then
14961   # See if we are running on zsh, and set the options which allow our commands through
14962   # without removal of \ escapes.
14963   if test -n "${ZSH_VERSION+set}" ; then
14964     setopt NO_GLOB_SUBST
14965   fi
14966   # Now quote all the things that may contain metacharacters while being
14967   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14968   # variables and quote the copies for generation of the libtool script.
14969   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14970     SED SHELL STRIP \
14971     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14972     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14973     deplibs_check_method reload_flag reload_cmds need_locks \
14974     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14975     lt_cv_sys_global_symbol_to_c_name_address \
14976     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14977     old_postinstall_cmds old_postuninstall_cmds \
14978     compiler_F77 \
14979     CC_F77 \
14980     LD_F77 \
14981     lt_prog_compiler_wl_F77 \
14982     lt_prog_compiler_pic_F77 \
14983     lt_prog_compiler_static_F77 \
14984     lt_prog_compiler_no_builtin_flag_F77 \
14985     export_dynamic_flag_spec_F77 \
14986     thread_safe_flag_spec_F77 \
14987     whole_archive_flag_spec_F77 \
14988     enable_shared_with_static_runtimes_F77 \
14989     old_archive_cmds_F77 \
14990     old_archive_from_new_cmds_F77 \
14991     predep_objects_F77 \
14992     postdep_objects_F77 \
14993     predeps_F77 \
14994     postdeps_F77 \
14995     compiler_lib_search_path_F77 \
14996     archive_cmds_F77 \
14997     archive_expsym_cmds_F77 \
14998     postinstall_cmds_F77 \
14999     postuninstall_cmds_F77 \
15000     old_archive_from_expsyms_cmds_F77 \
15001     allow_undefined_flag_F77 \
15002     no_undefined_flag_F77 \
15003     export_symbols_cmds_F77 \
15004     hardcode_libdir_flag_spec_F77 \
15005     hardcode_libdir_flag_spec_ld_F77 \
15006     hardcode_libdir_separator_F77 \
15007     hardcode_automatic_F77 \
15008     module_cmds_F77 \
15009     module_expsym_cmds_F77 \
15010     lt_cv_prog_compiler_c_o_F77 \
15011     exclude_expsyms_F77 \
15012     include_expsyms_F77; do
15013
15014     case $var in
15015     old_archive_cmds_F77 | \
15016     old_archive_from_new_cmds_F77 | \
15017     archive_cmds_F77 | \
15018     archive_expsym_cmds_F77 | \
15019     module_cmds_F77 | \
15020     module_expsym_cmds_F77 | \
15021     old_archive_from_expsyms_cmds_F77 | \
15022     export_symbols_cmds_F77 | \
15023     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15024     postinstall_cmds | postuninstall_cmds | \
15025     old_postinstall_cmds | old_postuninstall_cmds | \
15026     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15027       # Double-quote double-evaled strings.
15028       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15029       ;;
15030     *)
15031       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15032       ;;
15033     esac
15034   done
15035
15036   case $lt_echo in
15037   *'\$0 --fallback-echo"')
15038     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15039     ;;
15040   esac
15041
15042 cfgfile="$ofile"
15043
15044   cat <<__EOF__ >> "$cfgfile"
15045 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15046
15047 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15048
15049 # Shell to use when invoking shell scripts.
15050 SHELL=$lt_SHELL
15051
15052 # Whether or not to build shared libraries.
15053 build_libtool_libs=$enable_shared
15054
15055 # Whether or not to build static libraries.
15056 build_old_libs=$enable_static
15057
15058 # Whether or not to add -lc for building shared libraries.
15059 build_libtool_need_lc=$archive_cmds_need_lc_F77
15060
15061 # Whether or not to disallow shared libs when runtime libs are static
15062 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15063
15064 # Whether or not to optimize for fast installation.
15065 fast_install=$enable_fast_install
15066
15067 # The host system.
15068 host_alias=$host_alias
15069 host=$host
15070
15071 # An echo program that does not interpret backslashes.
15072 echo=$lt_echo
15073
15074 # The archiver.
15075 AR=$lt_AR
15076 AR_FLAGS=$lt_AR_FLAGS
15077
15078 # A C compiler.
15079 LTCC=$lt_LTCC
15080
15081 # A language-specific compiler.
15082 CC=$lt_compiler_F77
15083
15084 # Is the compiler the GNU C compiler?
15085 with_gcc=$GCC_F77
15086
15087 # An ERE matcher.
15088 EGREP=$lt_EGREP
15089
15090 # The linker used to build libraries.
15091 LD=$lt_LD_F77
15092
15093 # Whether we need hard or soft links.
15094 LN_S=$lt_LN_S
15095
15096 # A BSD-compatible nm program.
15097 NM=$lt_NM
15098
15099 # A symbol stripping program
15100 STRIP=$lt_STRIP
15101
15102 # Used to examine libraries when file_magic_cmd begins "file"
15103 MAGIC_CMD=$MAGIC_CMD
15104
15105 # Used on cygwin: DLL creation program.
15106 DLLTOOL="$DLLTOOL"
15107
15108 # Used on cygwin: object dumper.
15109 OBJDUMP="$OBJDUMP"
15110
15111 # Used on cygwin: assembler.
15112 AS="$AS"
15113
15114 # The name of the directory that contains temporary libtool files.
15115 objdir=$objdir
15116
15117 # How to create reloadable object files.
15118 reload_flag=$lt_reload_flag
15119 reload_cmds=$lt_reload_cmds
15120
15121 # How to pass a linker flag through the compiler.
15122 wl=$lt_lt_prog_compiler_wl_F77
15123
15124 # Object file suffix (normally "o").
15125 objext="$ac_objext"
15126
15127 # Old archive suffix (normally "a").
15128 libext="$libext"
15129
15130 # Shared library suffix (normally ".so").
15131 shrext_cmds='$shrext_cmds'
15132
15133 # Executable file suffix (normally "").
15134 exeext="$exeext"
15135
15136 # Additional compiler flags for building library objects.
15137 pic_flag=$lt_lt_prog_compiler_pic_F77
15138 pic_mode=$pic_mode
15139
15140 # What is the maximum length of a command?
15141 max_cmd_len=$lt_cv_sys_max_cmd_len
15142
15143 # Does compiler simultaneously support -c and -o options?
15144 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15145
15146 # Must we lock files when doing compilation ?
15147 need_locks=$lt_need_locks
15148
15149 # Do we need the lib prefix for modules?
15150 need_lib_prefix=$need_lib_prefix
15151
15152 # Do we need a version for libraries?
15153 need_version=$need_version
15154
15155 # Whether dlopen is supported.
15156 dlopen_support=$enable_dlopen
15157
15158 # Whether dlopen of programs is supported.
15159 dlopen_self=$enable_dlopen_self
15160
15161 # Whether dlopen of statically linked programs is supported.
15162 dlopen_self_static=$enable_dlopen_self_static
15163
15164 # Compiler flag to prevent dynamic linking.
15165 link_static_flag=$lt_lt_prog_compiler_static_F77
15166
15167 # Compiler flag to turn off builtin functions.
15168 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15169
15170 # Compiler flag to allow reflexive dlopens.
15171 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15172
15173 # Compiler flag to generate shared objects directly from archives.
15174 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15175
15176 # Compiler flag to generate thread-safe objects.
15177 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15178
15179 # Library versioning type.
15180 version_type=$version_type
15181
15182 # Format of library name prefix.
15183 libname_spec=$lt_libname_spec
15184
15185 # List of archive names.  First name is the real one, the rest are links.
15186 # The last name is the one that the linker finds with -lNAME.
15187 library_names_spec=$lt_library_names_spec
15188
15189 # The coded name of the library, if different from the real name.
15190 soname_spec=$lt_soname_spec
15191
15192 # Commands used to build and install an old-style archive.
15193 RANLIB=$lt_RANLIB
15194 old_archive_cmds=$lt_old_archive_cmds_F77
15195 old_postinstall_cmds=$lt_old_postinstall_cmds
15196 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15197
15198 # Create an old-style archive from a shared archive.
15199 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15200
15201 # Create a temporary old-style archive to link instead of a shared archive.
15202 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15203
15204 # Commands used to build and install a shared archive.
15205 archive_cmds=$lt_archive_cmds_F77
15206 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15207 postinstall_cmds=$lt_postinstall_cmds
15208 postuninstall_cmds=$lt_postuninstall_cmds
15209
15210 # Commands used to build a loadable module (assumed same as above if empty)
15211 module_cmds=$lt_module_cmds_F77
15212 module_expsym_cmds=$lt_module_expsym_cmds_F77
15213
15214 # Commands to strip libraries.
15215 old_striplib=$lt_old_striplib
15216 striplib=$lt_striplib
15217
15218 # Dependencies to place before the objects being linked to create a
15219 # shared library.
15220 predep_objects=$lt_predep_objects_F77
15221
15222 # Dependencies to place after the objects being linked to create a
15223 # shared library.
15224 postdep_objects=$lt_postdep_objects_F77
15225
15226 # Dependencies to place before the objects being linked to create a
15227 # shared library.
15228 predeps=$lt_predeps_F77
15229
15230 # Dependencies to place after the objects being linked to create a
15231 # shared library.
15232 postdeps=$lt_postdeps_F77
15233
15234 # The library search path used internally by the compiler when linking
15235 # a shared library.
15236 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15237
15238 # Method to check whether dependent libraries are shared objects.
15239 deplibs_check_method=$lt_deplibs_check_method
15240
15241 # Command to use when deplibs_check_method == file_magic.
15242 file_magic_cmd=$lt_file_magic_cmd
15243
15244 # Flag that allows shared libraries with undefined symbols to be built.
15245 allow_undefined_flag=$lt_allow_undefined_flag_F77
15246
15247 # Flag that forces no undefined symbols.
15248 no_undefined_flag=$lt_no_undefined_flag_F77
15249
15250 # Commands used to finish a libtool library installation in a directory.
15251 finish_cmds=$lt_finish_cmds
15252
15253 # Same as above, but a single script fragment to be evaled but not shown.
15254 finish_eval=$lt_finish_eval
15255
15256 # Take the output of nm and produce a listing of raw symbols and C names.
15257 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15258
15259 # Transform the output of nm in a proper C declaration
15260 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15261
15262 # Transform the output of nm in a C name address pair
15263 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15264
15265 # This is the shared library runtime path variable.
15266 runpath_var=$runpath_var
15267
15268 # This is the shared library path variable.
15269 shlibpath_var=$shlibpath_var
15270
15271 # Is shlibpath searched before the hard-coded library search path?
15272 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15273
15274 # How to hardcode a shared library path into an executable.
15275 hardcode_action=$hardcode_action_F77
15276
15277 # Whether we should hardcode library paths into libraries.
15278 hardcode_into_libs=$hardcode_into_libs
15279
15280 # Flag to hardcode \$libdir into a binary during linking.
15281 # This must work even if \$libdir does not exist.
15282 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15283
15284 # If ld is used when linking, flag to hardcode \$libdir into
15285 # a binary during linking. This must work even if \$libdir does
15286 # not exist.
15287 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15288
15289 # Whether we need a single -rpath flag with a separated argument.
15290 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15291
15292 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15293 # resulting binary.
15294 hardcode_direct=$hardcode_direct_F77
15295
15296 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15297 # resulting binary.
15298 hardcode_minus_L=$hardcode_minus_L_F77
15299
15300 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15301 # the resulting binary.
15302 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15303
15304 # Set to yes if building a shared library automatically hardcodes DIR into the library
15305 # and all subsequent libraries and executables linked against it.
15306 hardcode_automatic=$hardcode_automatic_F77
15307
15308 # Variables whose values should be saved in libtool wrapper scripts and
15309 # restored at relink time.
15310 variables_saved_for_relink="$variables_saved_for_relink"
15311
15312 # Whether libtool must link a program against all its dependency libraries.
15313 link_all_deplibs=$link_all_deplibs_F77
15314
15315 # Compile-time system search path for libraries
15316 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15317
15318 # Run-time system search path for libraries
15319 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15320
15321 # Fix the shell variable \$srcfile for the compiler.
15322 fix_srcfile_path="$fix_srcfile_path_F77"
15323
15324 # Set to yes if exported symbols are required.
15325 always_export_symbols=$always_export_symbols_F77
15326
15327 # The commands to list exported symbols.
15328 export_symbols_cmds=$lt_export_symbols_cmds_F77
15329
15330 # The commands to extract the exported symbol list from a shared archive.
15331 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15332
15333 # Symbols that should not be listed in the preloaded symbols.
15334 exclude_expsyms=$lt_exclude_expsyms_F77
15335
15336 # Symbols that must always be exported.
15337 include_expsyms=$lt_include_expsyms_F77
15338
15339 # ### END LIBTOOL TAG CONFIG: $tagname
15340
15341 __EOF__
15342
15343
15344 else
15345   # If there is no Makefile yet, we rely on a make rule to execute
15346   # `config.status --recheck' to rerun these tests and create the
15347   # libtool script then.
15348   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15349   if test -f "$ltmain_in"; then
15350     test -f Makefile && make "$ltmain"
15351   fi
15352 fi
15353
15354
15355 ac_ext=c
15356 ac_cpp='$CPP $CPPFLAGS'
15357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15360
15361 CC="$lt_save_CC"
15362
15363         else
15364           tagname=""
15365         fi
15366         ;;
15367
15368       GCJ)
15369         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15370
15371
15372
15373 # Source file extension for Java test sources.
15374 ac_ext=java
15375
15376 # Object file extension for compiled Java test sources.
15377 objext=o
15378 objext_GCJ=$objext
15379
15380 # Code to be used in simple compile tests
15381 lt_simple_compile_test_code="class foo {}\n"
15382
15383 # Code to be used in simple link tests
15384 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15385
15386 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15387
15388 # If no C compiler was specified, use CC.
15389 LTCC=${LTCC-"$CC"}
15390
15391 # Allow CC to be a program name with arguments.
15392 compiler=$CC
15393
15394
15395 # Allow CC to be a program name with arguments.
15396 lt_save_CC="$CC"
15397 CC=${GCJ-"gcj"}
15398 compiler=$CC
15399 compiler_GCJ=$CC
15400
15401 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15402 archive_cmds_need_lc_GCJ=no
15403
15404
15405 lt_prog_compiler_no_builtin_flag_GCJ=
15406
15407 if test "$GCC" = yes; then
15408   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15409
15410
15411 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15412 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15413 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15414   echo $ECHO_N "(cached) $ECHO_C" >&6
15415 else
15416   lt_cv_prog_compiler_rtti_exceptions=no
15417   ac_outfile=conftest.$ac_objext
15418    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15419    lt_compiler_flag="-fno-rtti -fno-exceptions"
15420    # Insert the option either (1) after the last *FLAGS variable, or
15421    # (2) before a word containing "conftest.", or (3) at the end.
15422    # Note that $ac_compile itself does not contain backslashes and begins
15423    # with a dollar sign (not a hyphen), so the echo should work correctly.
15424    # The option is referenced via a variable to avoid confusing sed.
15425    lt_compile=`echo "$ac_compile" | $SED \
15426    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15427    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15428    -e 's:$: $lt_compiler_flag:'`
15429    (eval echo "\"\$as_me:15429: $lt_compile\"" >&5)
15430    (eval "$lt_compile" 2>conftest.err)
15431    ac_status=$?
15432    cat conftest.err >&5
15433    echo "$as_me:15433: \$? = $ac_status" >&5
15434    if (exit $ac_status) && test -s "$ac_outfile"; then
15435      # The compiler can only warn and ignore the option if not recognized
15436      # So say no if there are warnings
15437      if test ! -s conftest.err; then
15438        lt_cv_prog_compiler_rtti_exceptions=yes
15439      fi
15440    fi
15441    $rm conftest*
15442
15443 fi
15444 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15445 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15446
15447 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15448     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15449 else
15450     :
15451 fi
15452
15453 fi
15454
15455 lt_prog_compiler_wl_GCJ=
15456 lt_prog_compiler_pic_GCJ=
15457 lt_prog_compiler_static_GCJ=
15458
15459 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15460 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15461
15462   if test "$GCC" = yes; then
15463     lt_prog_compiler_wl_GCJ='-Wl,'
15464     lt_prog_compiler_static_GCJ='-static'
15465
15466     case $host_os in
15467       aix*)
15468       # All AIX code is PIC.
15469       if test "$host_cpu" = ia64; then
15470         # AIX 5 now supports IA64 processor
15471         lt_prog_compiler_static_GCJ='-Bstatic'
15472       fi
15473       ;;
15474
15475     amigaos*)
15476       # FIXME: we need at least 68020 code to build shared libraries, but
15477       # adding the `-m68020' flag to GCC prevents building anything better,
15478       # like `-m68040'.
15479       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15480       ;;
15481
15482     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15483       # PIC is the default for these OSes.
15484       ;;
15485
15486     mingw* | pw32* | os2*)
15487       # This hack is so that the source file can tell whether it is being
15488       # built for inclusion in a dll (and should export symbols for example).
15489       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15490       ;;
15491
15492     darwin* | rhapsody*)
15493       # PIC is the default on this platform
15494       # Common symbols not allowed in MH_DYLIB files
15495       lt_prog_compiler_pic_GCJ='-fno-common'
15496       ;;
15497
15498     msdosdjgpp*)
15499       # Just because we use GCC doesn't mean we suddenly get shared libraries
15500       # on systems that don't support them.
15501       lt_prog_compiler_can_build_shared_GCJ=no
15502       enable_shared=no
15503       ;;
15504
15505     sysv4*MP*)
15506       if test -d /usr/nec; then
15507         lt_prog_compiler_pic_GCJ=-Kconform_pic
15508       fi
15509       ;;
15510
15511     hpux*)
15512       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15513       # not for PA HP-UX.
15514       case "$host_cpu" in
15515       hppa*64*|ia64*)
15516         # +Z the default
15517         ;;
15518       *)
15519         lt_prog_compiler_pic_GCJ='-fPIC'
15520         ;;
15521       esac
15522       ;;
15523
15524     *)
15525       lt_prog_compiler_pic_GCJ='-fPIC'
15526       ;;
15527     esac
15528   else
15529     # PORTME Check for flag to pass linker flags through the system compiler.
15530     case $host_os in
15531     aix*)
15532       lt_prog_compiler_wl_GCJ='-Wl,'
15533       if test "$host_cpu" = ia64; then
15534         # AIX 5 now supports IA64 processor
15535         lt_prog_compiler_static_GCJ='-Bstatic'
15536       else
15537         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15538       fi
15539       ;;
15540
15541     mingw* | pw32* | os2*)
15542       # This hack is so that the source file can tell whether it is being
15543       # built for inclusion in a dll (and should export symbols for example).
15544       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15545       ;;
15546
15547     hpux9* | hpux10* | hpux11*)
15548       lt_prog_compiler_wl_GCJ='-Wl,'
15549       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15550       # not for PA HP-UX.
15551       case "$host_cpu" in
15552       hppa*64*|ia64*)
15553         # +Z the default
15554         ;;
15555       *)
15556         lt_prog_compiler_pic_GCJ='+Z'
15557         ;;
15558       esac
15559       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15560       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15561       ;;
15562
15563     irix5* | irix6* | nonstopux*)
15564       lt_prog_compiler_wl_GCJ='-Wl,'
15565       # PIC (with -KPIC) is the default.
15566       lt_prog_compiler_static_GCJ='-non_shared'
15567       ;;
15568
15569     newsos6)
15570       lt_prog_compiler_pic_GCJ='-KPIC'
15571       lt_prog_compiler_static_GCJ='-Bstatic'
15572       ;;
15573
15574     linux*)
15575       case $CC in
15576       icc* | ecc*)
15577         lt_prog_compiler_wl_GCJ='-Wl,'
15578         lt_prog_compiler_pic_GCJ='-KPIC'
15579         lt_prog_compiler_static_GCJ='-static'
15580         ;;
15581       ccc*)
15582         lt_prog_compiler_wl_GCJ='-Wl,'
15583         # All Alpha code is PIC.
15584         lt_prog_compiler_static_GCJ='-non_shared'
15585         ;;
15586       esac
15587       ;;
15588
15589     osf3* | osf4* | osf5*)
15590       lt_prog_compiler_wl_GCJ='-Wl,'
15591       # All OSF/1 code is PIC.
15592       lt_prog_compiler_static_GCJ='-non_shared'
15593       ;;
15594
15595     sco3.2v5*)
15596       lt_prog_compiler_pic_GCJ='-Kpic'
15597       lt_prog_compiler_static_GCJ='-dn'
15598       ;;
15599
15600     solaris*)
15601       lt_prog_compiler_wl_GCJ='-Wl,'
15602       lt_prog_compiler_pic_GCJ='-KPIC'
15603       lt_prog_compiler_static_GCJ='-Bstatic'
15604       ;;
15605
15606     sunos4*)
15607       lt_prog_compiler_wl_GCJ='-Qoption ld '
15608       lt_prog_compiler_pic_GCJ='-PIC'
15609       lt_prog_compiler_static_GCJ='-Bstatic'
15610       ;;
15611
15612     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15613       lt_prog_compiler_wl_GCJ='-Wl,'
15614       lt_prog_compiler_pic_GCJ='-KPIC'
15615       lt_prog_compiler_static_GCJ='-Bstatic'
15616       ;;
15617
15618     sysv4*MP*)
15619       if test -d /usr/nec ;then
15620         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15621         lt_prog_compiler_static_GCJ='-Bstatic'
15622       fi
15623       ;;
15624
15625     uts4*)
15626       lt_prog_compiler_pic_GCJ='-pic'
15627       lt_prog_compiler_static_GCJ='-Bstatic'
15628       ;;
15629
15630     *)
15631       lt_prog_compiler_can_build_shared_GCJ=no
15632       ;;
15633     esac
15634   fi
15635
15636 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15637 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15638
15639 #
15640 # Check to make sure the PIC flag actually works.
15641 #
15642 if test -n "$lt_prog_compiler_pic_GCJ"; then
15643
15644 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15645 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15646 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15647   echo $ECHO_N "(cached) $ECHO_C" >&6
15648 else
15649   lt_prog_compiler_pic_works_GCJ=no
15650   ac_outfile=conftest.$ac_objext
15651    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15652    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15653    # Insert the option either (1) after the last *FLAGS variable, or
15654    # (2) before a word containing "conftest.", or (3) at the end.
15655    # Note that $ac_compile itself does not contain backslashes and begins
15656    # with a dollar sign (not a hyphen), so the echo should work correctly.
15657    # The option is referenced via a variable to avoid confusing sed.
15658    lt_compile=`echo "$ac_compile" | $SED \
15659    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15660    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15661    -e 's:$: $lt_compiler_flag:'`
15662    (eval echo "\"\$as_me:15662: $lt_compile\"" >&5)
15663    (eval "$lt_compile" 2>conftest.err)
15664    ac_status=$?
15665    cat conftest.err >&5
15666    echo "$as_me:15666: \$? = $ac_status" >&5
15667    if (exit $ac_status) && test -s "$ac_outfile"; then
15668      # The compiler can only warn and ignore the option if not recognized
15669      # So say no if there are warnings
15670      if test ! -s conftest.err; then
15671        lt_prog_compiler_pic_works_GCJ=yes
15672      fi
15673    fi
15674    $rm conftest*
15675
15676 fi
15677 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15678 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15679
15680 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15681     case $lt_prog_compiler_pic_GCJ in
15682      "" | " "*) ;;
15683      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15684      esac
15685 else
15686     lt_prog_compiler_pic_GCJ=
15687      lt_prog_compiler_can_build_shared_GCJ=no
15688 fi
15689
15690 fi
15691 case "$host_os" in
15692   # For platforms which do not support PIC, -DPIC is meaningless:
15693   *djgpp*)
15694     lt_prog_compiler_pic_GCJ=
15695     ;;
15696   *)
15697     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15698     ;;
15699 esac
15700
15701 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15702 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15703 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15704   echo $ECHO_N "(cached) $ECHO_C" >&6
15705 else
15706   lt_cv_prog_compiler_c_o_GCJ=no
15707    $rm -r conftest 2>/dev/null
15708    mkdir conftest
15709    cd conftest
15710    mkdir out
15711    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15712
15713    lt_compiler_flag="-o out/conftest2.$ac_objext"
15714    # Insert the option either (1) after the last *FLAGS variable, or
15715    # (2) before a word containing "conftest.", or (3) at the end.
15716    # Note that $ac_compile itself does not contain backslashes and begins
15717    # with a dollar sign (not a hyphen), so the echo should work correctly.
15718    lt_compile=`echo "$ac_compile" | $SED \
15719    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15720    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15721    -e 's:$: $lt_compiler_flag:'`
15722    (eval echo "\"\$as_me:15722: $lt_compile\"" >&5)
15723    (eval "$lt_compile" 2>out/conftest.err)
15724    ac_status=$?
15725    cat out/conftest.err >&5
15726    echo "$as_me:15726: \$? = $ac_status" >&5
15727    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15728    then
15729      # The compiler can only warn and ignore the option if not recognized
15730      # So say no if there are warnings
15731      if test ! -s out/conftest.err; then
15732        lt_cv_prog_compiler_c_o_GCJ=yes
15733      fi
15734    fi
15735    chmod u+w .
15736    $rm conftest*
15737    # SGI C++ compiler will create directory out/ii_files/ for
15738    # template instantiation
15739    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15740    $rm out/* && rmdir out
15741    cd ..
15742    rmdir conftest
15743    $rm conftest*
15744
15745 fi
15746 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15747 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15748
15749
15750 hard_links="nottested"
15751 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15752   # do not overwrite the value of need_locks provided by the user
15753   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15754 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15755   hard_links=yes
15756   $rm conftest*
15757   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15758   touch conftest.a
15759   ln conftest.a conftest.b 2>&5 || hard_links=no
15760   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15761   echo "$as_me:$LINENO: result: $hard_links" >&5
15762 echo "${ECHO_T}$hard_links" >&6
15763   if test "$hard_links" = no; then
15764     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15765 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15766     need_locks=warn
15767   fi
15768 else
15769   need_locks=no
15770 fi
15771
15772 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15773 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15774
15775   runpath_var=
15776   allow_undefined_flag_GCJ=
15777   enable_shared_with_static_runtimes_GCJ=no
15778   archive_cmds_GCJ=
15779   archive_expsym_cmds_GCJ=
15780   old_archive_From_new_cmds_GCJ=
15781   old_archive_from_expsyms_cmds_GCJ=
15782   export_dynamic_flag_spec_GCJ=
15783   whole_archive_flag_spec_GCJ=
15784   thread_safe_flag_spec_GCJ=
15785   hardcode_libdir_flag_spec_GCJ=
15786   hardcode_libdir_flag_spec_ld_GCJ=
15787   hardcode_libdir_separator_GCJ=
15788   hardcode_direct_GCJ=no
15789   hardcode_minus_L_GCJ=no
15790   hardcode_shlibpath_var_GCJ=unsupported
15791   link_all_deplibs_GCJ=unknown
15792   hardcode_automatic_GCJ=no
15793   module_cmds_GCJ=
15794   module_expsym_cmds_GCJ=
15795   always_export_symbols_GCJ=no
15796   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15797   # include_expsyms should be a list of space-separated symbols to be *always*
15798   # included in the symbol list
15799   include_expsyms_GCJ=
15800   # exclude_expsyms can be an extended regexp of symbols to exclude
15801   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15802   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15803   # as well as any symbol that contains `d'.
15804   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15805   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15806   # platforms (ab)use it in PIC code, but their linkers get confused if
15807   # the symbol is explicitly referenced.  Since portable code cannot
15808   # rely on this symbol name, it's probably fine to never include it in
15809   # preloaded symbol tables.
15810   extract_expsyms_cmds=
15811
15812   case $host_os in
15813   cygwin* | mingw* | pw32*)
15814     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15815     # When not using gcc, we currently assume that we are using
15816     # Microsoft Visual C++.
15817     if test "$GCC" != yes; then
15818       with_gnu_ld=no
15819     fi
15820     ;;
15821   openbsd*)
15822     with_gnu_ld=no
15823     ;;
15824   esac
15825
15826   ld_shlibs_GCJ=yes
15827   if test "$with_gnu_ld" = yes; then
15828     # If archive_cmds runs LD, not CC, wlarc should be empty
15829     wlarc='${wl}'
15830
15831     # See if GNU ld supports shared libraries.
15832     case $host_os in
15833     aix3* | aix4* | aix5*)
15834       # On AIX/PPC, the GNU linker is very broken
15835       if test "$host_cpu" != ia64; then
15836         ld_shlibs_GCJ=no
15837         cat <<EOF 1>&2
15838
15839 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15840 *** to be unable to reliably create shared libraries on AIX.
15841 *** Therefore, libtool is disabling shared libraries support.  If you
15842 *** really care for shared libraries, you may want to modify your PATH
15843 *** so that a non-GNU linker is found, and then restart.
15844
15845 EOF
15846       fi
15847       ;;
15848
15849     amigaos*)
15850       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)'
15851       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15852       hardcode_minus_L_GCJ=yes
15853
15854       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15855       # that the semantics of dynamic libraries on AmigaOS, at least up
15856       # to version 4, is to share data among multiple programs linked
15857       # with the same dynamic library.  Since this doesn't match the
15858       # behavior of shared libraries on other platforms, we can't use
15859       # them.
15860       ld_shlibs_GCJ=no
15861       ;;
15862
15863     beos*)
15864       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15865         allow_undefined_flag_GCJ=unsupported
15866         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15867         # support --undefined.  This deserves some investigation.  FIXME
15868         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15869       else
15870         ld_shlibs_GCJ=no
15871       fi
15872       ;;
15873
15874     cygwin* | mingw* | pw32*)
15875       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15876       # as there is no search path for DLLs.
15877       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15878       allow_undefined_flag_GCJ=unsupported
15879       always_export_symbols_GCJ=no
15880       enable_shared_with_static_runtimes_GCJ=yes
15881       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15882
15883       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15884         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15885         # If the export-symbols file already is a .def file (1st line
15886         # is EXPORTS), use it as is; otherwise, prepend...
15887         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15888           cp $export_symbols $output_objdir/$soname.def;
15889         else
15890           echo EXPORTS > $output_objdir/$soname.def;
15891           cat $export_symbols >> $output_objdir/$soname.def;
15892         fi~
15893         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15894       else
15895         ld_shlibs=no
15896       fi
15897       ;;
15898
15899     netbsd* | knetbsd*-gnu)
15900       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15901         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15902         wlarc=
15903       else
15904         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15905         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15906       fi
15907       ;;
15908
15909     solaris* | sysv5*)
15910       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15911         ld_shlibs_GCJ=no
15912         cat <<EOF 1>&2
15913
15914 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15915 *** create shared libraries on Solaris systems.  Therefore, libtool
15916 *** is disabling shared libraries support.  We urge you to upgrade GNU
15917 *** binutils to release 2.9.1 or newer.  Another option is to modify
15918 *** your PATH or compiler configuration so that the native linker is
15919 *** used, and then restart.
15920
15921 EOF
15922       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15923         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15924         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15925       else
15926         ld_shlibs_GCJ=no
15927       fi
15928       ;;
15929
15930     sunos4*)
15931       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15932       wlarc=
15933       hardcode_direct_GCJ=yes
15934       hardcode_shlibpath_var_GCJ=no
15935       ;;
15936
15937   linux*)
15938     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15939         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15940         archive_cmds_GCJ="$tmp_archive_cmds"
15941       supports_anon_versioning=no
15942       case `$LD -v 2>/dev/null` in
15943         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15944         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15945         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15946         *\ 2.11.*) ;; # other 2.11 versions
15947         *) supports_anon_versioning=yes ;;
15948       esac
15949       if test $supports_anon_versioning = yes; then
15950         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15951 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15952 $echo "local: *; };" >> $output_objdir/$libname.ver~
15953         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15954       else
15955         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15956       fi
15957       link_all_deplibs_GCJ=no
15958     else
15959       ld_shlibs_GCJ=no
15960     fi
15961     ;;
15962
15963     *)
15964       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15965         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15966         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15967       else
15968         ld_shlibs_GCJ=no
15969       fi
15970       ;;
15971     esac
15972
15973     if test "$ld_shlibs_GCJ" = yes; then
15974       runpath_var=LD_RUN_PATH
15975       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15976       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15977       # ancient GNU ld didn't support --whole-archive et. al.
15978       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15979         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15980       else
15981         whole_archive_flag_spec_GCJ=
15982       fi
15983     fi
15984   else
15985     # PORTME fill in a description of your system's linker (not GNU ld)
15986     case $host_os in
15987     aix3*)
15988       allow_undefined_flag_GCJ=unsupported
15989       always_export_symbols_GCJ=yes
15990       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'
15991       # Note: this linker hardcodes the directories in LIBPATH if there
15992       # are no directories specified by -L.
15993       hardcode_minus_L_GCJ=yes
15994       if test "$GCC" = yes && test -z "$link_static_flag"; then
15995         # Neither direct hardcoding nor static linking is supported with a
15996         # broken collect2.
15997         hardcode_direct_GCJ=unsupported
15998       fi
15999       ;;
16000
16001     aix4* | aix5*)
16002       if test "$host_cpu" = ia64; then
16003         # On IA64, the linker does run time linking by default, so we don't
16004         # have to do anything special.
16005         aix_use_runtimelinking=no
16006         exp_sym_flag='-Bexport'
16007         no_entry_flag=""
16008       else
16009         # If we're using GNU nm, then we don't want the "-C" option.
16010         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16011         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16012           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'
16013         else
16014           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'
16015         fi
16016         aix_use_runtimelinking=no
16017
16018         # Test if we are trying to use run time linking or normal
16019         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16020         # need to do runtime linking.
16021         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16022           for ld_flag in $LDFLAGS; do
16023           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16024             aix_use_runtimelinking=yes
16025             break
16026           fi
16027           done
16028         esac
16029
16030         exp_sym_flag='-bexport'
16031         no_entry_flag='-bnoentry'
16032       fi
16033
16034       # When large executables or shared objects are built, AIX ld can
16035       # have problems creating the table of contents.  If linking a library
16036       # or program results in "error TOC overflow" add -mminimal-toc to
16037       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16038       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16039
16040       archive_cmds_GCJ=''
16041       hardcode_direct_GCJ=yes
16042       hardcode_libdir_separator_GCJ=':'
16043       link_all_deplibs_GCJ=yes
16044
16045       if test "$GCC" = yes; then
16046         case $host_os in aix4.012|aix4.012.*)
16047         # We only want to do this on AIX 4.2 and lower, the check
16048         # below for broken collect2 doesn't work under 4.3+
16049           collect2name=`${CC} -print-prog-name=collect2`
16050           if test -f "$collect2name" && \
16051            strings "$collect2name" | grep resolve_lib_name >/dev/null
16052           then
16053           # We have reworked collect2
16054           hardcode_direct_GCJ=yes
16055           else
16056           # We have old collect2
16057           hardcode_direct_GCJ=unsupported
16058           # It fails to find uninstalled libraries when the uninstalled
16059           # path is not listed in the libpath.  Setting hardcode_minus_L
16060           # to unsupported forces relinking
16061           hardcode_minus_L_GCJ=yes
16062           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16063           hardcode_libdir_separator_GCJ=
16064           fi
16065         esac
16066         shared_flag='-shared'
16067       else
16068         # not using gcc
16069         if test "$host_cpu" = ia64; then
16070         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16071         # chokes on -Wl,-G. The following line is correct:
16072           shared_flag='-G'
16073         else
16074         if test "$aix_use_runtimelinking" = yes; then
16075             shared_flag='${wl}-G'
16076           else
16077             shared_flag='${wl}-bM:SRE'
16078         fi
16079         fi
16080       fi
16081
16082       # It seems that -bexpall does not export symbols beginning with
16083       # underscore (_), so it is better to generate a list of symbols to export.
16084       always_export_symbols_GCJ=yes
16085       if test "$aix_use_runtimelinking" = yes; then
16086         # Warning - without using the other runtime loading flags (-brtl),
16087         # -berok will link without error, but may produce a broken library.
16088         allow_undefined_flag_GCJ='-berok'
16089        # Determine the default libpath from the value encoded in an empty executable.
16090        cat >conftest.$ac_ext <<_ACEOF
16091 /* confdefs.h.  */
16092 _ACEOF
16093 cat confdefs.h >>conftest.$ac_ext
16094 cat >>conftest.$ac_ext <<_ACEOF
16095 /* end confdefs.h.  */
16096
16097 int
16098 main ()
16099 {
16100
16101   ;
16102   return 0;
16103 }
16104 _ACEOF
16105 rm -f conftest.$ac_objext conftest$ac_exeext
16106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16107   (eval $ac_link) 2>conftest.er1
16108   ac_status=$?
16109   grep -v '^ *+' conftest.er1 >conftest.err
16110   rm -f conftest.er1
16111   cat conftest.err >&5
16112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16113   (exit $ac_status); } &&
16114          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16116   (eval $ac_try) 2>&5
16117   ac_status=$?
16118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119   (exit $ac_status); }; } &&
16120          { ac_try='test -s conftest$ac_exeext'
16121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16122   (eval $ac_try) 2>&5
16123   ac_status=$?
16124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125   (exit $ac_status); }; }; then
16126
16127 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16128 }'`
16129 # Check for a 64-bit object if we didn't find anything.
16130 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; }
16131 }'`; fi
16132 else
16133   echo "$as_me: failed program was:" >&5
16134 sed 's/^/| /' conftest.$ac_ext >&5
16135
16136 fi
16137 rm -f conftest.err conftest.$ac_objext \
16138       conftest$ac_exeext conftest.$ac_ext
16139 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16140
16141        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16142         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"
16143        else
16144         if test "$host_cpu" = ia64; then
16145           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16146           allow_undefined_flag_GCJ="-z nodefs"
16147           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"
16148         else
16149          # Determine the default libpath from the value encoded in an empty executable.
16150          cat >conftest.$ac_ext <<_ACEOF
16151 /* confdefs.h.  */
16152 _ACEOF
16153 cat confdefs.h >>conftest.$ac_ext
16154 cat >>conftest.$ac_ext <<_ACEOF
16155 /* end confdefs.h.  */
16156
16157 int
16158 main ()
16159 {
16160
16161   ;
16162   return 0;
16163 }
16164 _ACEOF
16165 rm -f conftest.$ac_objext conftest$ac_exeext
16166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16167   (eval $ac_link) 2>conftest.er1
16168   ac_status=$?
16169   grep -v '^ *+' conftest.er1 >conftest.err
16170   rm -f conftest.er1
16171   cat conftest.err >&5
16172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16173   (exit $ac_status); } &&
16174          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16176   (eval $ac_try) 2>&5
16177   ac_status=$?
16178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179   (exit $ac_status); }; } &&
16180          { ac_try='test -s conftest$ac_exeext'
16181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16182   (eval $ac_try) 2>&5
16183   ac_status=$?
16184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185   (exit $ac_status); }; }; then
16186
16187 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16188 }'`
16189 # Check for a 64-bit object if we didn't find anything.
16190 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; }
16191 }'`; fi
16192 else
16193   echo "$as_me: failed program was:" >&5
16194 sed 's/^/| /' conftest.$ac_ext >&5
16195
16196 fi
16197 rm -f conftest.err conftest.$ac_objext \
16198       conftest$ac_exeext conftest.$ac_ext
16199 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16200
16201          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16202           # Warning - without using the other run time loading flags,
16203           # -berok will link without error, but may produce a broken library.
16204           no_undefined_flag_GCJ=' ${wl}-bernotok'
16205           allow_undefined_flag_GCJ=' ${wl}-berok'
16206           # -bexpall does not export symbols beginning with underscore (_)
16207           always_export_symbols_GCJ=yes
16208           # Exported symbols can be pulled into shared objects from archives
16209           whole_archive_flag_spec_GCJ=' '
16210           archive_cmds_need_lc_GCJ=yes
16211           # This is similar to how AIX traditionally builds it's shared libraries.
16212           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'
16213         fi
16214       fi
16215       ;;
16216
16217     amigaos*)
16218       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)'
16219       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16220       hardcode_minus_L_GCJ=yes
16221       # see comment about different semantics on the GNU ld section
16222       ld_shlibs_GCJ=no
16223       ;;
16224
16225     bsdi4*)
16226       export_dynamic_flag_spec_GCJ=-rdynamic
16227       ;;
16228
16229     cygwin* | mingw* | pw32*)
16230       # When not using gcc, we currently assume that we are using
16231       # Microsoft Visual C++.
16232       # hardcode_libdir_flag_spec is actually meaningless, as there is
16233       # no search path for DLLs.
16234       hardcode_libdir_flag_spec_GCJ=' '
16235       allow_undefined_flag_GCJ=unsupported
16236       # Tell ltmain to make .lib files, not .a files.
16237       libext=lib
16238       # Tell ltmain to make .dll files, not .so files.
16239       shrext_cmds=".dll"
16240       # FIXME: Setting linknames here is a bad hack.
16241       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16242       # The linker will automatically build a .lib file if we build a DLL.
16243       old_archive_From_new_cmds_GCJ='true'
16244       # FIXME: Should let the user specify the lib program.
16245       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16246       fix_srcfile_path='`cygpath -w "$srcfile"`'
16247       enable_shared_with_static_runtimes_GCJ=yes
16248       ;;
16249
16250     darwin* | rhapsody*)
16251     if test "$GXX" = yes ; then
16252       archive_cmds_need_lc_GCJ=no
16253       case "$host_os" in
16254       rhapsody* | darwin1.[012])
16255         allow_undefined_flag_GCJ='-undefined suppress'
16256         ;;
16257       *) # Darwin 1.3 on
16258       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16259         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16260       else
16261         case ${MACOSX_DEPLOYMENT_TARGET} in
16262           10.[012])
16263             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16264             ;;
16265           10.*)
16266             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16267             ;;
16268         esac
16269       fi
16270         ;;
16271       esac
16272         lt_int_apple_cc_single_mod=no
16273         output_verbose_link_cmd='echo'
16274         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16275           lt_int_apple_cc_single_mod=yes
16276         fi
16277         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16278           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16279         else
16280         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'
16281       fi
16282       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16283       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16284         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16285           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}'
16286         else
16287           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}'
16288         fi
16289           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}'
16290       hardcode_direct_GCJ=no
16291       hardcode_automatic_GCJ=yes
16292       hardcode_shlibpath_var_GCJ=unsupported
16293       whole_archive_flag_spec_GCJ='-all_load $convenience'
16294       link_all_deplibs_GCJ=yes
16295     else
16296       ld_shlibs_GCJ=no
16297     fi
16298       ;;
16299
16300     dgux*)
16301       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16302       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16303       hardcode_shlibpath_var_GCJ=no
16304       ;;
16305
16306     freebsd1*)
16307       ld_shlibs_GCJ=no
16308       ;;
16309
16310     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16311     # support.  Future versions do this automatically, but an explicit c++rt0.o
16312     # does not break anything, and helps significantly (at the cost of a little
16313     # extra space).
16314     freebsd2.2*)
16315       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16316       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16317       hardcode_direct_GCJ=yes
16318       hardcode_shlibpath_var_GCJ=no
16319       ;;
16320
16321     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16322     freebsd2*)
16323       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16324       hardcode_direct_GCJ=yes
16325       hardcode_minus_L_GCJ=yes
16326       hardcode_shlibpath_var_GCJ=no
16327       ;;
16328
16329     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16330     freebsd* | kfreebsd*-gnu)
16331       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16332       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16333       hardcode_direct_GCJ=yes
16334       hardcode_shlibpath_var_GCJ=no
16335       ;;
16336
16337     hpux9*)
16338       if test "$GCC" = yes; then
16339         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'
16340       else
16341         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'
16342       fi
16343       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16344       hardcode_libdir_separator_GCJ=:
16345       hardcode_direct_GCJ=yes
16346
16347       # hardcode_minus_L: Not really in the search PATH,
16348       # but as the default location of the library.
16349       hardcode_minus_L_GCJ=yes
16350       export_dynamic_flag_spec_GCJ='${wl}-E'
16351       ;;
16352
16353     hpux10* | hpux11*)
16354       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16355         case "$host_cpu" in
16356         hppa*64*|ia64*)
16357           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16358           ;;
16359         *)
16360           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16361           ;;
16362         esac
16363       else
16364         case "$host_cpu" in
16365         hppa*64*|ia64*)
16366           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16367           ;;
16368         *)
16369           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16370           ;;
16371         esac
16372       fi
16373       if test "$with_gnu_ld" = no; then
16374         case "$host_cpu" in
16375         hppa*64*)
16376           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16377           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16378           hardcode_libdir_separator_GCJ=:
16379           hardcode_direct_GCJ=no
16380           hardcode_shlibpath_var_GCJ=no
16381           ;;
16382         ia64*)
16383           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16384           hardcode_direct_GCJ=no
16385           hardcode_shlibpath_var_GCJ=no
16386
16387           # hardcode_minus_L: Not really in the search PATH,
16388           # but as the default location of the library.
16389           hardcode_minus_L_GCJ=yes
16390           ;;
16391         *)
16392           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16393           hardcode_libdir_separator_GCJ=:
16394           hardcode_direct_GCJ=yes
16395           export_dynamic_flag_spec_GCJ='${wl}-E'
16396
16397           # hardcode_minus_L: Not really in the search PATH,
16398           # but as the default location of the library.
16399           hardcode_minus_L_GCJ=yes
16400           ;;
16401         esac
16402       fi
16403       ;;
16404
16405     irix5* | irix6* | nonstopux*)
16406       if test "$GCC" = yes; then
16407         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'
16408       else
16409         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'
16410         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16411       fi
16412       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16413       hardcode_libdir_separator_GCJ=:
16414       link_all_deplibs_GCJ=yes
16415       ;;
16416
16417     netbsd* | knetbsd*-gnu)
16418       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16419         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16420       else
16421         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16422       fi
16423       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16424       hardcode_direct_GCJ=yes
16425       hardcode_shlibpath_var_GCJ=no
16426       ;;
16427
16428     newsos6)
16429       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16430       hardcode_direct_GCJ=yes
16431       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16432       hardcode_libdir_separator_GCJ=:
16433       hardcode_shlibpath_var_GCJ=no
16434       ;;
16435
16436     openbsd*)
16437       hardcode_direct_GCJ=yes
16438       hardcode_shlibpath_var_GCJ=no
16439       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16440         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16441         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16442         export_dynamic_flag_spec_GCJ='${wl}-E'
16443       else
16444        case $host_os in
16445          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16446            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16447            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16448            ;;
16449          *)
16450            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16451            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16452            ;;
16453        esac
16454       fi
16455       ;;
16456
16457     os2*)
16458       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16459       hardcode_minus_L_GCJ=yes
16460       allow_undefined_flag_GCJ=unsupported
16461       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'
16462       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16463       ;;
16464
16465     osf3*)
16466       if test "$GCC" = yes; then
16467         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16468         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'
16469       else
16470         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16471         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'
16472       fi
16473       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16474       hardcode_libdir_separator_GCJ=:
16475       ;;
16476
16477     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16478       if test "$GCC" = yes; then
16479         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16480         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'
16481         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16482       else
16483         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16484         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'
16485         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~
16486         $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'
16487
16488         # Both c and cxx compiler support -rpath directly
16489         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16490       fi
16491       hardcode_libdir_separator_GCJ=:
16492       ;;
16493
16494     sco3.2v5*)
16495       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16496       hardcode_shlibpath_var_GCJ=no
16497       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16498       runpath_var=LD_RUN_PATH
16499       hardcode_runpath_var=yes
16500       ;;
16501
16502     solaris*)
16503       no_undefined_flag_GCJ=' -z text'
16504       if test "$GCC" = yes; then
16505         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16506         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16507           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16508       else
16509         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16510         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16511         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16512       fi
16513       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16514       hardcode_shlibpath_var_GCJ=no
16515       case $host_os in
16516       solaris2.[0-5] | solaris2.[0-5].*) ;;
16517       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16518         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16519       esac
16520       link_all_deplibs_GCJ=yes
16521       ;;
16522
16523     sunos4*)
16524       if test "x$host_vendor" = xsequent; then
16525         # Use $CC to link under sequent, because it throws in some extra .o
16526         # files that make .init and .fini sections work.
16527         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16528       else
16529         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16530       fi
16531       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16532       hardcode_direct_GCJ=yes
16533       hardcode_minus_L_GCJ=yes
16534       hardcode_shlibpath_var_GCJ=no
16535       ;;
16536
16537     sysv4)
16538       case $host_vendor in
16539         sni)
16540           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16541           hardcode_direct_GCJ=yes # is this really true???
16542         ;;
16543         siemens)
16544           ## LD is ld it makes a PLAMLIB
16545           ## CC just makes a GrossModule.
16546           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16547           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16548           hardcode_direct_GCJ=no
16549         ;;
16550         motorola)
16551           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16552           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16553         ;;
16554       esac
16555       runpath_var='LD_RUN_PATH'
16556       hardcode_shlibpath_var_GCJ=no
16557       ;;
16558
16559     sysv4.3*)
16560       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16561       hardcode_shlibpath_var_GCJ=no
16562       export_dynamic_flag_spec_GCJ='-Bexport'
16563       ;;
16564
16565     sysv4*MP*)
16566       if test -d /usr/nec; then
16567         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16568         hardcode_shlibpath_var_GCJ=no
16569         runpath_var=LD_RUN_PATH
16570         hardcode_runpath_var=yes
16571         ld_shlibs_GCJ=yes
16572       fi
16573       ;;
16574
16575     sysv4.2uw2*)
16576       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16577       hardcode_direct_GCJ=yes
16578       hardcode_minus_L_GCJ=no
16579       hardcode_shlibpath_var_GCJ=no
16580       hardcode_runpath_var=yes
16581       runpath_var=LD_RUN_PATH
16582       ;;
16583
16584    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16585       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16586       if test "$GCC" = yes; then
16587         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16588       else
16589         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16590       fi
16591       runpath_var='LD_RUN_PATH'
16592       hardcode_shlibpath_var_GCJ=no
16593       ;;
16594
16595     sysv5*)
16596       no_undefined_flag_GCJ=' -z text'
16597       # $CC -shared without GNU ld will not create a library from C++
16598       # object files and a static libstdc++, better avoid it by now
16599       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16600       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16601                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16602       hardcode_libdir_flag_spec_GCJ=
16603       hardcode_shlibpath_var_GCJ=no
16604       runpath_var='LD_RUN_PATH'
16605       ;;
16606
16607     uts4*)
16608       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16609       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16610       hardcode_shlibpath_var_GCJ=no
16611       ;;
16612
16613     *)
16614       ld_shlibs_GCJ=no
16615       ;;
16616     esac
16617   fi
16618
16619 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16620 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16621 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16622
16623 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16624 if test "$GCC" = yes; then
16625   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16626 fi
16627
16628 #
16629 # Do we need to explicitly link libc?
16630 #
16631 case "x$archive_cmds_need_lc_GCJ" in
16632 x|xyes)
16633   # Assume -lc should be added
16634   archive_cmds_need_lc_GCJ=yes
16635
16636   if test "$enable_shared" = yes && test "$GCC" = yes; then
16637     case $archive_cmds_GCJ in
16638     *'~'*)
16639       # FIXME: we may have to deal with multi-command sequences.
16640       ;;
16641     '$CC '*)
16642       # Test whether the compiler implicitly links with -lc since on some
16643       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16644       # to ld, don't add -lc before -lgcc.
16645       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16646 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16647       $rm conftest*
16648       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16649
16650       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16651   (eval $ac_compile) 2>&5
16652   ac_status=$?
16653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654   (exit $ac_status); } 2>conftest.err; then
16655         soname=conftest
16656         lib=conftest
16657         libobjs=conftest.$ac_objext
16658         deplibs=
16659         wl=$lt_prog_compiler_wl_GCJ
16660         compiler_flags=-v
16661         linker_flags=-v
16662         verstring=
16663         output_objdir=.
16664         libname=conftest
16665         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16666         allow_undefined_flag_GCJ=
16667         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16668   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16669   ac_status=$?
16670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671   (exit $ac_status); }
16672         then
16673           archive_cmds_need_lc_GCJ=no
16674         else
16675           archive_cmds_need_lc_GCJ=yes
16676         fi
16677         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16678       else
16679         cat conftest.err 1>&5
16680       fi
16681       $rm conftest*
16682       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16683 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16684       ;;
16685     esac
16686   fi
16687   ;;
16688 esac
16689
16690 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16691 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16692 library_names_spec=
16693 libname_spec='lib$name'
16694 soname_spec=
16695 shrext_cmds=".so"
16696 postinstall_cmds=
16697 postuninstall_cmds=
16698 finish_cmds=
16699 finish_eval=
16700 shlibpath_var=
16701 shlibpath_overrides_runpath=unknown
16702 version_type=none
16703 dynamic_linker="$host_os ld.so"
16704 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16705 if test "$GCC" = yes; then
16706   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16707   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16708     # if the path contains ";" then we assume it to be the separator
16709     # otherwise default to the standard path separator (i.e. ":") - it is
16710     # assumed that no part of a normal pathname contains ";" but that should
16711     # okay in the real world where ";" in dirpaths is itself problematic.
16712     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16713   else
16714     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16715   fi
16716 else
16717   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16718 fi
16719 need_lib_prefix=unknown
16720 hardcode_into_libs=no
16721
16722 # when you set need_version to no, make sure it does not cause -set_version
16723 # flags to be left without arguments
16724 need_version=unknown
16725
16726 case $host_os in
16727 aix3*)
16728   version_type=linux
16729   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16730   shlibpath_var=LIBPATH
16731
16732   # AIX 3 has no versioning support, so we append a major version to the name.
16733   soname_spec='${libname}${release}${shared_ext}$major'
16734   ;;
16735
16736 aix4* | aix5*)
16737   version_type=linux
16738   need_lib_prefix=no
16739   need_version=no
16740   hardcode_into_libs=yes
16741   if test "$host_cpu" = ia64; then
16742     # AIX 5 supports IA64
16743     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16744     shlibpath_var=LD_LIBRARY_PATH
16745   else
16746     # With GCC up to 2.95.x, collect2 would create an import file
16747     # for dependence libraries.  The import file would start with
16748     # the line `#! .'.  This would cause the generated library to
16749     # depend on `.', always an invalid library.  This was fixed in
16750     # development snapshots of GCC prior to 3.0.
16751     case $host_os in
16752       aix4 | aix4.[01] | aix4.[01].*)
16753       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16754            echo ' yes '
16755            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16756         :
16757       else
16758         can_build_shared=no
16759       fi
16760       ;;
16761     esac
16762     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16763     # soname into executable. Probably we can add versioning support to
16764     # collect2, so additional links can be useful in future.
16765     if test "$aix_use_runtimelinking" = yes; then
16766       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16767       # instead of lib<name>.a to let people know that these are not
16768       # typical AIX shared libraries.
16769       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16770     else
16771       # We preserve .a as extension for shared libraries through AIX4.2
16772       # and later when we are not doing run time linking.
16773       library_names_spec='${libname}${release}.a $libname.a'
16774       soname_spec='${libname}${release}${shared_ext}$major'
16775     fi
16776     shlibpath_var=LIBPATH
16777   fi
16778   ;;
16779
16780 amigaos*)
16781   library_names_spec='$libname.ixlibrary $libname.a'
16782   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16783   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'
16784   ;;
16785
16786 beos*)
16787   library_names_spec='${libname}${shared_ext}'
16788   dynamic_linker="$host_os ld.so"
16789   shlibpath_var=LIBRARY_PATH
16790   ;;
16791
16792 bsdi4*)
16793   version_type=linux
16794   need_version=no
16795   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16796   soname_spec='${libname}${release}${shared_ext}$major'
16797   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16798   shlibpath_var=LD_LIBRARY_PATH
16799   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16800   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16801   # the default ld.so.conf also contains /usr/contrib/lib and
16802   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16803   # libtool to hard-code these into programs
16804   ;;
16805
16806 cygwin* | mingw* | pw32*)
16807   version_type=windows
16808   shrext_cmds=".dll"
16809   need_version=no
16810   need_lib_prefix=no
16811
16812   case $GCC,$host_os in
16813   yes,cygwin* | yes,mingw* | yes,pw32*)
16814     library_names_spec='$libname.dll.a'
16815     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16816     postinstall_cmds='base_file=`basename \${file}`~
16817       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16818       dldir=$destdir/`dirname \$dlpath`~
16819       test -d \$dldir || mkdir -p \$dldir~
16820       $install_prog $dir/$dlname \$dldir/$dlname'
16821     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16822       dlpath=$dir/\$dldll~
16823        $rm \$dlpath'
16824     shlibpath_overrides_runpath=yes
16825
16826     case $host_os in
16827     cygwin*)
16828       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16829       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16830       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16831       ;;
16832     mingw*)
16833       # MinGW DLLs use traditional 'lib' prefix
16834       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16835       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16836       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16837         # It is most probably a Windows format PATH printed by
16838         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16839         # path with ; separators, and with drive letters. We can handle the
16840         # drive letters (cygwin fileutils understands them), so leave them,
16841         # especially as we might pass files found there to a mingw objdump,
16842         # which wouldn't understand a cygwinified path. Ahh.
16843         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16844       else
16845         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16846       fi
16847       ;;
16848     pw32*)
16849       # pw32 DLLs use 'pw' prefix rather than 'lib'
16850       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16851       ;;
16852     esac
16853     ;;
16854
16855   *)
16856     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16857     ;;
16858   esac
16859   dynamic_linker='Win32 ld.exe'
16860   # FIXME: first we should search . and the directory the executable is in
16861   shlibpath_var=PATH
16862   ;;
16863
16864 darwin* | rhapsody*)
16865   dynamic_linker="$host_os dyld"
16866   version_type=darwin
16867   need_lib_prefix=no
16868   need_version=no
16869   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16870   soname_spec='${libname}${release}${major}$shared_ext'
16871   shlibpath_overrides_runpath=yes
16872   shlibpath_var=DYLD_LIBRARY_PATH
16873   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16874   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16875   if test "$GCC" = yes; then
16876     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"`
16877   else
16878     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16879   fi
16880   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16881   ;;
16882
16883 dgux*)
16884   version_type=linux
16885   need_lib_prefix=no
16886   need_version=no
16887   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16888   soname_spec='${libname}${release}${shared_ext}$major'
16889   shlibpath_var=LD_LIBRARY_PATH
16890   ;;
16891
16892 freebsd1*)
16893   dynamic_linker=no
16894   ;;
16895
16896 kfreebsd*-gnu)
16897   version_type=linux
16898   need_lib_prefix=no
16899   need_version=no
16900   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16901   soname_spec='${libname}${release}${shared_ext}$major'
16902   shlibpath_var=LD_LIBRARY_PATH
16903   shlibpath_overrides_runpath=no
16904   hardcode_into_libs=yes
16905   dynamic_linker='GNU ld.so'
16906   ;;
16907
16908 freebsd*)
16909   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16910   version_type=freebsd-$objformat
16911   case $version_type in
16912     freebsd-elf*)
16913       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16914       need_version=no
16915       need_lib_prefix=no
16916       ;;
16917     freebsd-*)
16918       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16919       need_version=yes
16920       ;;
16921   esac
16922   shlibpath_var=LD_LIBRARY_PATH
16923   case $host_os in
16924   freebsd2*)
16925     shlibpath_overrides_runpath=yes
16926     ;;
16927   freebsd3.01* | freebsdelf3.01*)
16928     shlibpath_overrides_runpath=yes
16929     hardcode_into_libs=yes
16930     ;;
16931   *) # from 3.2 on
16932     shlibpath_overrides_runpath=no
16933     hardcode_into_libs=yes
16934     ;;
16935   esac
16936   ;;
16937
16938 gnu*)
16939   version_type=linux
16940   need_lib_prefix=no
16941   need_version=no
16942   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16943   soname_spec='${libname}${release}${shared_ext}$major'
16944   shlibpath_var=LD_LIBRARY_PATH
16945   hardcode_into_libs=yes
16946   ;;
16947
16948 hpux9* | hpux10* | hpux11*)
16949   # Give a soname corresponding to the major version so that dld.sl refuses to
16950   # link against other versions.
16951   version_type=sunos
16952   need_lib_prefix=no
16953   need_version=no
16954   case "$host_cpu" in
16955   ia64*)
16956     shrext_cmds='.so'
16957     hardcode_into_libs=yes
16958     dynamic_linker="$host_os dld.so"
16959     shlibpath_var=LD_LIBRARY_PATH
16960     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16961     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16962     soname_spec='${libname}${release}${shared_ext}$major'
16963     if test "X$HPUX_IA64_MODE" = X32; then
16964       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16965     else
16966       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16967     fi
16968     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16969     ;;
16970    hppa*64*)
16971      shrext_cmds='.sl'
16972      hardcode_into_libs=yes
16973      dynamic_linker="$host_os dld.sl"
16974      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16975      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16976      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16977      soname_spec='${libname}${release}${shared_ext}$major'
16978      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16979      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16980      ;;
16981    *)
16982     shrext_cmds='.sl'
16983     dynamic_linker="$host_os dld.sl"
16984     shlibpath_var=SHLIB_PATH
16985     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16986     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16987     soname_spec='${libname}${release}${shared_ext}$major'
16988     ;;
16989   esac
16990   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16991   postinstall_cmds='chmod 555 $lib'
16992   ;;
16993
16994 irix5* | irix6* | nonstopux*)
16995   case $host_os in
16996     nonstopux*) version_type=nonstopux ;;
16997     *)
16998         if test "$lt_cv_prog_gnu_ld" = yes; then
16999                 version_type=linux
17000         else
17001                 version_type=irix
17002         fi ;;
17003   esac
17004   need_lib_prefix=no
17005   need_version=no
17006   soname_spec='${libname}${release}${shared_ext}$major'
17007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17008   case $host_os in
17009   irix5* | nonstopux*)
17010     libsuff= shlibsuff=
17011     ;;
17012   *)
17013     case $LD in # libtool.m4 will add one of these switches to LD
17014     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17015       libsuff= shlibsuff= libmagic=32-bit;;
17016     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17017       libsuff=32 shlibsuff=N32 libmagic=N32;;
17018     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17019       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17020     *) libsuff= shlibsuff= libmagic=never-match;;
17021     esac
17022     ;;
17023   esac
17024   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17025   shlibpath_overrides_runpath=no
17026   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17027   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17028   hardcode_into_libs=yes
17029   ;;
17030
17031 # No shared lib support for Linux oldld, aout, or coff.
17032 linux*oldld* | linux*aout* | linux*coff*)
17033   dynamic_linker=no
17034   ;;
17035
17036 # This must be Linux ELF.
17037 linux*)
17038   version_type=linux
17039   need_lib_prefix=no
17040   need_version=no
17041   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17042   soname_spec='${libname}${release}${shared_ext}$major'
17043   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17044   shlibpath_var=LD_LIBRARY_PATH
17045   shlibpath_overrides_runpath=no
17046   # This implies no fast_install, which is unacceptable.
17047   # Some rework will be needed to allow for fast_install
17048   # before this can be enabled.
17049   hardcode_into_libs=yes
17050
17051   # Append ld.so.conf contents to the search path
17052   if test -f /etc/ld.so.conf; then
17053     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17054     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17055   fi
17056
17057   # We used to test for /lib/ld.so.1 and disable shared libraries on
17058   # powerpc, because MkLinux only supported shared libraries with the
17059   # GNU dynamic linker.  Since this was broken with cross compilers,
17060   # most powerpc-linux boxes support dynamic linking these days and
17061   # people can always --disable-shared, the test was removed, and we
17062   # assume the GNU/Linux dynamic linker is in use.
17063   dynamic_linker='GNU/Linux ld.so'
17064   ;;
17065
17066 knetbsd*-gnu)
17067   version_type=linux
17068   need_lib_prefix=no
17069   need_version=no
17070   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17071   soname_spec='${libname}${release}${shared_ext}$major'
17072   shlibpath_var=LD_LIBRARY_PATH
17073   shlibpath_overrides_runpath=no
17074   hardcode_into_libs=yes
17075   dynamic_linker='GNU ld.so'
17076   ;;
17077
17078 netbsd*)
17079   version_type=sunos
17080   need_lib_prefix=no
17081   need_version=no
17082   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17083     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17084     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17085     dynamic_linker='NetBSD (a.out) ld.so'
17086   else
17087     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17088     soname_spec='${libname}${release}${shared_ext}$major'
17089     dynamic_linker='NetBSD ld.elf_so'
17090   fi
17091   shlibpath_var=LD_LIBRARY_PATH
17092   shlibpath_overrides_runpath=yes
17093   hardcode_into_libs=yes
17094   ;;
17095
17096 newsos6)
17097   version_type=linux
17098   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17099   shlibpath_var=LD_LIBRARY_PATH
17100   shlibpath_overrides_runpath=yes
17101   ;;
17102
17103 nto-qnx*)
17104   version_type=linux
17105   need_lib_prefix=no
17106   need_version=no
17107   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17108   soname_spec='${libname}${release}${shared_ext}$major'
17109   shlibpath_var=LD_LIBRARY_PATH
17110   shlibpath_overrides_runpath=yes
17111   ;;
17112
17113 openbsd*)
17114   version_type=sunos
17115   need_lib_prefix=no
17116   need_version=yes
17117   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17118   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17119   shlibpath_var=LD_LIBRARY_PATH
17120   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17121     case $host_os in
17122       openbsd2.[89] | openbsd2.[89].*)
17123         shlibpath_overrides_runpath=no
17124         ;;
17125       *)
17126         shlibpath_overrides_runpath=yes
17127         ;;
17128       esac
17129   else
17130     shlibpath_overrides_runpath=yes
17131   fi
17132   ;;
17133
17134 os2*)
17135   libname_spec='$name'
17136   shrext_cmds=".dll"
17137   need_lib_prefix=no
17138   library_names_spec='$libname${shared_ext} $libname.a'
17139   dynamic_linker='OS/2 ld.exe'
17140   shlibpath_var=LIBPATH
17141   ;;
17142
17143 osf3* | osf4* | osf5*)
17144   version_type=osf
17145   need_lib_prefix=no
17146   need_version=no
17147   soname_spec='${libname}${release}${shared_ext}$major'
17148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17149   shlibpath_var=LD_LIBRARY_PATH
17150   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17151   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17152   ;;
17153
17154 sco3.2v5*)
17155   version_type=osf
17156   soname_spec='${libname}${release}${shared_ext}$major'
17157   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17158   shlibpath_var=LD_LIBRARY_PATH
17159   ;;
17160
17161 solaris*)
17162   version_type=linux
17163   need_lib_prefix=no
17164   need_version=no
17165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17166   soname_spec='${libname}${release}${shared_ext}$major'
17167   shlibpath_var=LD_LIBRARY_PATH
17168   shlibpath_overrides_runpath=yes
17169   hardcode_into_libs=yes
17170   # ldd complains unless libraries are executable
17171   postinstall_cmds='chmod +x $lib'
17172   ;;
17173
17174 sunos4*)
17175   version_type=sunos
17176   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17177   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17178   shlibpath_var=LD_LIBRARY_PATH
17179   shlibpath_overrides_runpath=yes
17180   if test "$with_gnu_ld" = yes; then
17181     need_lib_prefix=no
17182   fi
17183   need_version=yes
17184   ;;
17185
17186 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17187   version_type=linux
17188   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17189   soname_spec='${libname}${release}${shared_ext}$major'
17190   shlibpath_var=LD_LIBRARY_PATH
17191   case $host_vendor in
17192     sni)
17193       shlibpath_overrides_runpath=no
17194       need_lib_prefix=no
17195       export_dynamic_flag_spec='${wl}-Blargedynsym'
17196       runpath_var=LD_RUN_PATH
17197       ;;
17198     siemens)
17199       need_lib_prefix=no
17200       ;;
17201     motorola)
17202       need_lib_prefix=no
17203       need_version=no
17204       shlibpath_overrides_runpath=no
17205       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17206       ;;
17207   esac
17208   ;;
17209
17210 sysv4*MP*)
17211   if test -d /usr/nec ;then
17212     version_type=linux
17213     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17214     soname_spec='$libname${shared_ext}.$major'
17215     shlibpath_var=LD_LIBRARY_PATH
17216   fi
17217   ;;
17218
17219 uts4*)
17220   version_type=linux
17221   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17222   soname_spec='${libname}${release}${shared_ext}$major'
17223   shlibpath_var=LD_LIBRARY_PATH
17224   ;;
17225
17226 *)
17227   dynamic_linker=no
17228   ;;
17229 esac
17230 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17231 echo "${ECHO_T}$dynamic_linker" >&6
17232 test "$dynamic_linker" = no && can_build_shared=no
17233
17234 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17235 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17236 hardcode_action_GCJ=
17237 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17238    test -n "$runpath_var GCJ" || \
17239    test "X$hardcode_automatic_GCJ"="Xyes" ; then
17240
17241   # We can hardcode non-existant directories.
17242   if test "$hardcode_direct_GCJ" != no &&
17243      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17244      # have to relink, otherwise we might link with an installed library
17245      # when we should be linking with a yet-to-be-installed one
17246      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17247      test "$hardcode_minus_L_GCJ" != no; then
17248     # Linking always hardcodes the temporary library directory.
17249     hardcode_action_GCJ=relink
17250   else
17251     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17252     hardcode_action_GCJ=immediate
17253   fi
17254 else
17255   # We cannot hardcode anything, or else we can only hardcode existing
17256   # directories.
17257   hardcode_action_GCJ=unsupported
17258 fi
17259 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17260 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17261
17262 if test "$hardcode_action_GCJ" = relink; then
17263   # Fast installation is not supported
17264   enable_fast_install=no
17265 elif test "$shlibpath_overrides_runpath" = yes ||
17266      test "$enable_shared" = no; then
17267   # Fast installation is not necessary
17268   enable_fast_install=needless
17269 fi
17270
17271 striplib=
17272 old_striplib=
17273 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17274 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17275 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17276   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17277   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17278   echo "$as_me:$LINENO: result: yes" >&5
17279 echo "${ECHO_T}yes" >&6
17280 else
17281 # FIXME - insert some real tests, host_os isn't really good enough
17282   case $host_os in
17283    darwin*)
17284        if test -n "$STRIP" ; then
17285          striplib="$STRIP -x"
17286          echo "$as_me:$LINENO: result: yes" >&5
17287 echo "${ECHO_T}yes" >&6
17288        else
17289   echo "$as_me:$LINENO: result: no" >&5
17290 echo "${ECHO_T}no" >&6
17291 fi
17292        ;;
17293    *)
17294   echo "$as_me:$LINENO: result: no" >&5
17295 echo "${ECHO_T}no" >&6
17296     ;;
17297   esac
17298 fi
17299
17300 if test "x$enable_dlopen" != xyes; then
17301   enable_dlopen=unknown
17302   enable_dlopen_self=unknown
17303   enable_dlopen_self_static=unknown
17304 else
17305   lt_cv_dlopen=no
17306   lt_cv_dlopen_libs=
17307
17308   case $host_os in
17309   beos*)
17310     lt_cv_dlopen="load_add_on"
17311     lt_cv_dlopen_libs=
17312     lt_cv_dlopen_self=yes
17313     ;;
17314
17315   mingw* | pw32*)
17316     lt_cv_dlopen="LoadLibrary"
17317     lt_cv_dlopen_libs=
17318    ;;
17319
17320   cygwin*)
17321     lt_cv_dlopen="dlopen"
17322     lt_cv_dlopen_libs=
17323    ;;
17324
17325   darwin*)
17326   # if libdl is installed we need to link against it
17327     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17328 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17329 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17330   echo $ECHO_N "(cached) $ECHO_C" >&6
17331 else
17332   ac_check_lib_save_LIBS=$LIBS
17333 LIBS="-ldl  $LIBS"
17334 cat >conftest.$ac_ext <<_ACEOF
17335 /* confdefs.h.  */
17336 _ACEOF
17337 cat confdefs.h >>conftest.$ac_ext
17338 cat >>conftest.$ac_ext <<_ACEOF
17339 /* end confdefs.h.  */
17340
17341 /* Override any gcc2 internal prototype to avoid an error.  */
17342 #ifdef __cplusplus
17343 extern "C"
17344 #endif
17345 /* We use char because int might match the return type of a gcc2
17346    builtin and then its argument prototype would still apply.  */
17347 char dlopen ();
17348 int
17349 main ()
17350 {
17351 dlopen ();
17352   ;
17353   return 0;
17354 }
17355 _ACEOF
17356 rm -f conftest.$ac_objext conftest$ac_exeext
17357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17358   (eval $ac_link) 2>conftest.er1
17359   ac_status=$?
17360   grep -v '^ *+' conftest.er1 >conftest.err
17361   rm -f conftest.er1
17362   cat conftest.err >&5
17363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364   (exit $ac_status); } &&
17365          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17367   (eval $ac_try) 2>&5
17368   ac_status=$?
17369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370   (exit $ac_status); }; } &&
17371          { ac_try='test -s conftest$ac_exeext'
17372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17373   (eval $ac_try) 2>&5
17374   ac_status=$?
17375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376   (exit $ac_status); }; }; then
17377   ac_cv_lib_dl_dlopen=yes
17378 else
17379   echo "$as_me: failed program was:" >&5
17380 sed 's/^/| /' conftest.$ac_ext >&5
17381
17382 ac_cv_lib_dl_dlopen=no
17383 fi
17384 rm -f conftest.err conftest.$ac_objext \
17385       conftest$ac_exeext conftest.$ac_ext
17386 LIBS=$ac_check_lib_save_LIBS
17387 fi
17388 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17389 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17390 if test $ac_cv_lib_dl_dlopen = yes; then
17391   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17392 else
17393
17394     lt_cv_dlopen="dyld"
17395     lt_cv_dlopen_libs=
17396     lt_cv_dlopen_self=yes
17397
17398 fi
17399
17400    ;;
17401
17402   *)
17403     echo "$as_me:$LINENO: checking for shl_load" >&5
17404 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17405 if test "${ac_cv_func_shl_load+set}" = set; then
17406   echo $ECHO_N "(cached) $ECHO_C" >&6
17407 else
17408   cat >conftest.$ac_ext <<_ACEOF
17409 /* confdefs.h.  */
17410 _ACEOF
17411 cat confdefs.h >>conftest.$ac_ext
17412 cat >>conftest.$ac_ext <<_ACEOF
17413 /* end confdefs.h.  */
17414 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17415    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17416 #define shl_load innocuous_shl_load
17417
17418 /* System header to define __stub macros and hopefully few prototypes,
17419     which can conflict with char shl_load (); below.
17420     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17421     <limits.h> exists even on freestanding compilers.  */
17422
17423 #ifdef __STDC__
17424 # include <limits.h>
17425 #else
17426 # include <assert.h>
17427 #endif
17428
17429 #undef shl_load
17430
17431 /* Override any gcc2 internal prototype to avoid an error.  */
17432 #ifdef __cplusplus
17433 extern "C"
17434 {
17435 #endif
17436 /* We use char because int might match the return type of a gcc2
17437    builtin and then its argument prototype would still apply.  */
17438 char shl_load ();
17439 /* The GNU C library defines this for functions which it implements
17440     to always fail with ENOSYS.  Some functions are actually named
17441     something starting with __ and the normal name is an alias.  */
17442 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17443 choke me
17444 #else
17445 char (*f) () = shl_load;
17446 #endif
17447 #ifdef __cplusplus
17448 }
17449 #endif
17450
17451 int
17452 main ()
17453 {
17454 return f != shl_load;
17455   ;
17456   return 0;
17457 }
17458 _ACEOF
17459 rm -f conftest.$ac_objext conftest$ac_exeext
17460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17461   (eval $ac_link) 2>conftest.er1
17462   ac_status=$?
17463   grep -v '^ *+' conftest.er1 >conftest.err
17464   rm -f conftest.er1
17465   cat conftest.err >&5
17466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467   (exit $ac_status); } &&
17468          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17470   (eval $ac_try) 2>&5
17471   ac_status=$?
17472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473   (exit $ac_status); }; } &&
17474          { ac_try='test -s conftest$ac_exeext'
17475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17476   (eval $ac_try) 2>&5
17477   ac_status=$?
17478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479   (exit $ac_status); }; }; then
17480   ac_cv_func_shl_load=yes
17481 else
17482   echo "$as_me: failed program was:" >&5
17483 sed 's/^/| /' conftest.$ac_ext >&5
17484
17485 ac_cv_func_shl_load=no
17486 fi
17487 rm -f conftest.err conftest.$ac_objext \
17488       conftest$ac_exeext conftest.$ac_ext
17489 fi
17490 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17491 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17492 if test $ac_cv_func_shl_load = yes; then
17493   lt_cv_dlopen="shl_load"
17494 else
17495   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17496 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17497 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17498   echo $ECHO_N "(cached) $ECHO_C" >&6
17499 else
17500   ac_check_lib_save_LIBS=$LIBS
17501 LIBS="-ldld  $LIBS"
17502 cat >conftest.$ac_ext <<_ACEOF
17503 /* confdefs.h.  */
17504 _ACEOF
17505 cat confdefs.h >>conftest.$ac_ext
17506 cat >>conftest.$ac_ext <<_ACEOF
17507 /* end confdefs.h.  */
17508
17509 /* Override any gcc2 internal prototype to avoid an error.  */
17510 #ifdef __cplusplus
17511 extern "C"
17512 #endif
17513 /* We use char because int might match the return type of a gcc2
17514    builtin and then its argument prototype would still apply.  */
17515 char shl_load ();
17516 int
17517 main ()
17518 {
17519 shl_load ();
17520   ;
17521   return 0;
17522 }
17523 _ACEOF
17524 rm -f conftest.$ac_objext conftest$ac_exeext
17525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17526   (eval $ac_link) 2>conftest.er1
17527   ac_status=$?
17528   grep -v '^ *+' conftest.er1 >conftest.err
17529   rm -f conftest.er1
17530   cat conftest.err >&5
17531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532   (exit $ac_status); } &&
17533          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17535   (eval $ac_try) 2>&5
17536   ac_status=$?
17537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538   (exit $ac_status); }; } &&
17539          { ac_try='test -s conftest$ac_exeext'
17540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17541   (eval $ac_try) 2>&5
17542   ac_status=$?
17543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544   (exit $ac_status); }; }; then
17545   ac_cv_lib_dld_shl_load=yes
17546 else
17547   echo "$as_me: failed program was:" >&5
17548 sed 's/^/| /' conftest.$ac_ext >&5
17549
17550 ac_cv_lib_dld_shl_load=no
17551 fi
17552 rm -f conftest.err conftest.$ac_objext \
17553       conftest$ac_exeext conftest.$ac_ext
17554 LIBS=$ac_check_lib_save_LIBS
17555 fi
17556 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17557 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17558 if test $ac_cv_lib_dld_shl_load = yes; then
17559   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17560 else
17561   echo "$as_me:$LINENO: checking for dlopen" >&5
17562 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17563 if test "${ac_cv_func_dlopen+set}" = set; then
17564   echo $ECHO_N "(cached) $ECHO_C" >&6
17565 else
17566   cat >conftest.$ac_ext <<_ACEOF
17567 /* confdefs.h.  */
17568 _ACEOF
17569 cat confdefs.h >>conftest.$ac_ext
17570 cat >>conftest.$ac_ext <<_ACEOF
17571 /* end confdefs.h.  */
17572 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17573    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17574 #define dlopen innocuous_dlopen
17575
17576 /* System header to define __stub macros and hopefully few prototypes,
17577     which can conflict with char dlopen (); below.
17578     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17579     <limits.h> exists even on freestanding compilers.  */
17580
17581 #ifdef __STDC__
17582 # include <limits.h>
17583 #else
17584 # include <assert.h>
17585 #endif
17586
17587 #undef dlopen
17588
17589 /* Override any gcc2 internal prototype to avoid an error.  */
17590 #ifdef __cplusplus
17591 extern "C"
17592 {
17593 #endif
17594 /* We use char because int might match the return type of a gcc2
17595    builtin and then its argument prototype would still apply.  */
17596 char dlopen ();
17597 /* The GNU C library defines this for functions which it implements
17598     to always fail with ENOSYS.  Some functions are actually named
17599     something starting with __ and the normal name is an alias.  */
17600 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17601 choke me
17602 #else
17603 char (*f) () = dlopen;
17604 #endif
17605 #ifdef __cplusplus
17606 }
17607 #endif
17608
17609 int
17610 main ()
17611 {
17612 return f != dlopen;
17613   ;
17614   return 0;
17615 }
17616 _ACEOF
17617 rm -f conftest.$ac_objext conftest$ac_exeext
17618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17619   (eval $ac_link) 2>conftest.er1
17620   ac_status=$?
17621   grep -v '^ *+' conftest.er1 >conftest.err
17622   rm -f conftest.er1
17623   cat conftest.err >&5
17624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625   (exit $ac_status); } &&
17626          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17628   (eval $ac_try) 2>&5
17629   ac_status=$?
17630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631   (exit $ac_status); }; } &&
17632          { ac_try='test -s conftest$ac_exeext'
17633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17634   (eval $ac_try) 2>&5
17635   ac_status=$?
17636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637   (exit $ac_status); }; }; then
17638   ac_cv_func_dlopen=yes
17639 else
17640   echo "$as_me: failed program was:" >&5
17641 sed 's/^/| /' conftest.$ac_ext >&5
17642
17643 ac_cv_func_dlopen=no
17644 fi
17645 rm -f conftest.err conftest.$ac_objext \
17646       conftest$ac_exeext conftest.$ac_ext
17647 fi
17648 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17649 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17650 if test $ac_cv_func_dlopen = yes; then
17651   lt_cv_dlopen="dlopen"
17652 else
17653   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17654 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17655 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17656   echo $ECHO_N "(cached) $ECHO_C" >&6
17657 else
17658   ac_check_lib_save_LIBS=$LIBS
17659 LIBS="-ldl  $LIBS"
17660 cat >conftest.$ac_ext <<_ACEOF
17661 /* confdefs.h.  */
17662 _ACEOF
17663 cat confdefs.h >>conftest.$ac_ext
17664 cat >>conftest.$ac_ext <<_ACEOF
17665 /* end confdefs.h.  */
17666
17667 /* Override any gcc2 internal prototype to avoid an error.  */
17668 #ifdef __cplusplus
17669 extern "C"
17670 #endif
17671 /* We use char because int might match the return type of a gcc2
17672    builtin and then its argument prototype would still apply.  */
17673 char dlopen ();
17674 int
17675 main ()
17676 {
17677 dlopen ();
17678   ;
17679   return 0;
17680 }
17681 _ACEOF
17682 rm -f conftest.$ac_objext conftest$ac_exeext
17683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17684   (eval $ac_link) 2>conftest.er1
17685   ac_status=$?
17686   grep -v '^ *+' conftest.er1 >conftest.err
17687   rm -f conftest.er1
17688   cat conftest.err >&5
17689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690   (exit $ac_status); } &&
17691          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17693   (eval $ac_try) 2>&5
17694   ac_status=$?
17695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696   (exit $ac_status); }; } &&
17697          { ac_try='test -s conftest$ac_exeext'
17698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17699   (eval $ac_try) 2>&5
17700   ac_status=$?
17701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702   (exit $ac_status); }; }; then
17703   ac_cv_lib_dl_dlopen=yes
17704 else
17705   echo "$as_me: failed program was:" >&5
17706 sed 's/^/| /' conftest.$ac_ext >&5
17707
17708 ac_cv_lib_dl_dlopen=no
17709 fi
17710 rm -f conftest.err conftest.$ac_objext \
17711       conftest$ac_exeext conftest.$ac_ext
17712 LIBS=$ac_check_lib_save_LIBS
17713 fi
17714 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17715 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17716 if test $ac_cv_lib_dl_dlopen = yes; then
17717   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17718 else
17719   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17720 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17721 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17722   echo $ECHO_N "(cached) $ECHO_C" >&6
17723 else
17724   ac_check_lib_save_LIBS=$LIBS
17725 LIBS="-lsvld  $LIBS"
17726 cat >conftest.$ac_ext <<_ACEOF
17727 /* confdefs.h.  */
17728 _ACEOF
17729 cat confdefs.h >>conftest.$ac_ext
17730 cat >>conftest.$ac_ext <<_ACEOF
17731 /* end confdefs.h.  */
17732
17733 /* Override any gcc2 internal prototype to avoid an error.  */
17734 #ifdef __cplusplus
17735 extern "C"
17736 #endif
17737 /* We use char because int might match the return type of a gcc2
17738    builtin and then its argument prototype would still apply.  */
17739 char dlopen ();
17740 int
17741 main ()
17742 {
17743 dlopen ();
17744   ;
17745   return 0;
17746 }
17747 _ACEOF
17748 rm -f conftest.$ac_objext conftest$ac_exeext
17749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17750   (eval $ac_link) 2>conftest.er1
17751   ac_status=$?
17752   grep -v '^ *+' conftest.er1 >conftest.err
17753   rm -f conftest.er1
17754   cat conftest.err >&5
17755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756   (exit $ac_status); } &&
17757          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17759   (eval $ac_try) 2>&5
17760   ac_status=$?
17761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762   (exit $ac_status); }; } &&
17763          { ac_try='test -s conftest$ac_exeext'
17764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17765   (eval $ac_try) 2>&5
17766   ac_status=$?
17767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768   (exit $ac_status); }; }; then
17769   ac_cv_lib_svld_dlopen=yes
17770 else
17771   echo "$as_me: failed program was:" >&5
17772 sed 's/^/| /' conftest.$ac_ext >&5
17773
17774 ac_cv_lib_svld_dlopen=no
17775 fi
17776 rm -f conftest.err conftest.$ac_objext \
17777       conftest$ac_exeext conftest.$ac_ext
17778 LIBS=$ac_check_lib_save_LIBS
17779 fi
17780 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17781 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17782 if test $ac_cv_lib_svld_dlopen = yes; then
17783   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17784 else
17785   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17786 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17787 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17788   echo $ECHO_N "(cached) $ECHO_C" >&6
17789 else
17790   ac_check_lib_save_LIBS=$LIBS
17791 LIBS="-ldld  $LIBS"
17792 cat >conftest.$ac_ext <<_ACEOF
17793 /* confdefs.h.  */
17794 _ACEOF
17795 cat confdefs.h >>conftest.$ac_ext
17796 cat >>conftest.$ac_ext <<_ACEOF
17797 /* end confdefs.h.  */
17798
17799 /* Override any gcc2 internal prototype to avoid an error.  */
17800 #ifdef __cplusplus
17801 extern "C"
17802 #endif
17803 /* We use char because int might match the return type of a gcc2
17804    builtin and then its argument prototype would still apply.  */
17805 char dld_link ();
17806 int
17807 main ()
17808 {
17809 dld_link ();
17810   ;
17811   return 0;
17812 }
17813 _ACEOF
17814 rm -f conftest.$ac_objext conftest$ac_exeext
17815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17816   (eval $ac_link) 2>conftest.er1
17817   ac_status=$?
17818   grep -v '^ *+' conftest.er1 >conftest.err
17819   rm -f conftest.er1
17820   cat conftest.err >&5
17821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822   (exit $ac_status); } &&
17823          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17825   (eval $ac_try) 2>&5
17826   ac_status=$?
17827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828   (exit $ac_status); }; } &&
17829          { ac_try='test -s conftest$ac_exeext'
17830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17831   (eval $ac_try) 2>&5
17832   ac_status=$?
17833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834   (exit $ac_status); }; }; then
17835   ac_cv_lib_dld_dld_link=yes
17836 else
17837   echo "$as_me: failed program was:" >&5
17838 sed 's/^/| /' conftest.$ac_ext >&5
17839
17840 ac_cv_lib_dld_dld_link=no
17841 fi
17842 rm -f conftest.err conftest.$ac_objext \
17843       conftest$ac_exeext conftest.$ac_ext
17844 LIBS=$ac_check_lib_save_LIBS
17845 fi
17846 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17847 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17848 if test $ac_cv_lib_dld_dld_link = yes; then
17849   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17850 fi
17851
17852
17853 fi
17854
17855
17856 fi
17857
17858
17859 fi
17860
17861
17862 fi
17863
17864
17865 fi
17866
17867     ;;
17868   esac
17869
17870   if test "x$lt_cv_dlopen" != xno; then
17871     enable_dlopen=yes
17872   else
17873     enable_dlopen=no
17874   fi
17875
17876   case $lt_cv_dlopen in
17877   dlopen)
17878     save_CPPFLAGS="$CPPFLAGS"
17879     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17880
17881     save_LDFLAGS="$LDFLAGS"
17882     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17883
17884     save_LIBS="$LIBS"
17885     LIBS="$lt_cv_dlopen_libs $LIBS"
17886
17887     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17888 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17889 if test "${lt_cv_dlopen_self+set}" = set; then
17890   echo $ECHO_N "(cached) $ECHO_C" >&6
17891 else
17892           if test "$cross_compiling" = yes; then :
17893   lt_cv_dlopen_self=cross
17894 else
17895   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17896   lt_status=$lt_dlunknown
17897   cat > conftest.$ac_ext <<EOF
17898 #line 17898 "configure"
17899 #include "confdefs.h"
17900
17901 #if HAVE_DLFCN_H
17902 #include <dlfcn.h>
17903 #endif
17904
17905 #include <stdio.h>
17906
17907 #ifdef RTLD_GLOBAL
17908 #  define LT_DLGLOBAL           RTLD_GLOBAL
17909 #else
17910 #  ifdef DL_GLOBAL
17911 #    define LT_DLGLOBAL         DL_GLOBAL
17912 #  else
17913 #    define LT_DLGLOBAL         0
17914 #  endif
17915 #endif
17916
17917 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17918    find out it does not work in some platform. */
17919 #ifndef LT_DLLAZY_OR_NOW
17920 #  ifdef RTLD_LAZY
17921 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17922 #  else
17923 #    ifdef DL_LAZY
17924 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17925 #    else
17926 #      ifdef RTLD_NOW
17927 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17928 #      else
17929 #        ifdef DL_NOW
17930 #          define LT_DLLAZY_OR_NOW      DL_NOW
17931 #        else
17932 #          define LT_DLLAZY_OR_NOW      0
17933 #        endif
17934 #      endif
17935 #    endif
17936 #  endif
17937 #endif
17938
17939 #ifdef __cplusplus
17940 extern "C" void exit (int);
17941 #endif
17942
17943 void fnord() { int i=42;}
17944 int main ()
17945 {
17946   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17947   int status = $lt_dlunknown;
17948
17949   if (self)
17950     {
17951       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17952       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17953       /* dlclose (self); */
17954     }
17955
17956     exit (status);
17957 }
17958 EOF
17959   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17960   (eval $ac_link) 2>&5
17961   ac_status=$?
17962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17964     (./conftest; exit; ) 2>/dev/null
17965     lt_status=$?
17966     case x$lt_status in
17967       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17968       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17969       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17970     esac
17971   else :
17972     # compilation failed
17973     lt_cv_dlopen_self=no
17974   fi
17975 fi
17976 rm -fr conftest*
17977
17978
17979 fi
17980 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17981 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17982
17983     if test "x$lt_cv_dlopen_self" = xyes; then
17984       LDFLAGS="$LDFLAGS $link_static_flag"
17985       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17986 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17987 if test "${lt_cv_dlopen_self_static+set}" = set; then
17988   echo $ECHO_N "(cached) $ECHO_C" >&6
17989 else
17990           if test "$cross_compiling" = yes; then :
17991   lt_cv_dlopen_self_static=cross
17992 else
17993   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17994   lt_status=$lt_dlunknown
17995   cat > conftest.$ac_ext <<EOF
17996 #line 17996 "configure"
17997 #include "confdefs.h"
17998
17999 #if HAVE_DLFCN_H
18000 #include <dlfcn.h>
18001 #endif
18002
18003 #include <stdio.h>
18004
18005 #ifdef RTLD_GLOBAL
18006 #  define LT_DLGLOBAL           RTLD_GLOBAL
18007 #else
18008 #  ifdef DL_GLOBAL
18009 #    define LT_DLGLOBAL         DL_GLOBAL
18010 #  else
18011 #    define LT_DLGLOBAL         0
18012 #  endif
18013 #endif
18014
18015 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18016    find out it does not work in some platform. */
18017 #ifndef LT_DLLAZY_OR_NOW
18018 #  ifdef RTLD_LAZY
18019 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18020 #  else
18021 #    ifdef DL_LAZY
18022 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18023 #    else
18024 #      ifdef RTLD_NOW
18025 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18026 #      else
18027 #        ifdef DL_NOW
18028 #          define LT_DLLAZY_OR_NOW      DL_NOW
18029 #        else
18030 #          define LT_DLLAZY_OR_NOW      0
18031 #        endif
18032 #      endif
18033 #    endif
18034 #  endif
18035 #endif
18036
18037 #ifdef __cplusplus
18038 extern "C" void exit (int);
18039 #endif
18040
18041 void fnord() { int i=42;}
18042 int main ()
18043 {
18044   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18045   int status = $lt_dlunknown;
18046
18047   if (self)
18048     {
18049       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18050       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18051       /* dlclose (self); */
18052     }
18053
18054     exit (status);
18055 }
18056 EOF
18057   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18058   (eval $ac_link) 2>&5
18059   ac_status=$?
18060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18062     (./conftest; exit; ) 2>/dev/null
18063     lt_status=$?
18064     case x$lt_status in
18065       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18066       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18067       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18068     esac
18069   else :
18070     # compilation failed
18071     lt_cv_dlopen_self_static=no
18072   fi
18073 fi
18074 rm -fr conftest*
18075
18076
18077 fi
18078 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18079 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18080     fi
18081
18082     CPPFLAGS="$save_CPPFLAGS"
18083     LDFLAGS="$save_LDFLAGS"
18084     LIBS="$save_LIBS"
18085     ;;
18086   esac
18087
18088   case $lt_cv_dlopen_self in
18089   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18090   *) enable_dlopen_self=unknown ;;
18091   esac
18092
18093   case $lt_cv_dlopen_self_static in
18094   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18095   *) enable_dlopen_self_static=unknown ;;
18096   esac
18097 fi
18098
18099
18100 # The else clause should only fire when bootstrapping the
18101 # libtool distribution, otherwise you forgot to ship ltmain.sh
18102 # with your package, and you will get complaints that there are
18103 # no rules to generate ltmain.sh.
18104 if test -f "$ltmain"; then
18105   # See if we are running on zsh, and set the options which allow our commands through
18106   # without removal of \ escapes.
18107   if test -n "${ZSH_VERSION+set}" ; then
18108     setopt NO_GLOB_SUBST
18109   fi
18110   # Now quote all the things that may contain metacharacters while being
18111   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18112   # variables and quote the copies for generation of the libtool script.
18113   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18114     SED SHELL STRIP \
18115     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18116     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18117     deplibs_check_method reload_flag reload_cmds need_locks \
18118     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18119     lt_cv_sys_global_symbol_to_c_name_address \
18120     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18121     old_postinstall_cmds old_postuninstall_cmds \
18122     compiler_GCJ \
18123     CC_GCJ \
18124     LD_GCJ \
18125     lt_prog_compiler_wl_GCJ \
18126     lt_prog_compiler_pic_GCJ \
18127     lt_prog_compiler_static_GCJ \
18128     lt_prog_compiler_no_builtin_flag_GCJ \
18129     export_dynamic_flag_spec_GCJ \
18130     thread_safe_flag_spec_GCJ \
18131     whole_archive_flag_spec_GCJ \
18132     enable_shared_with_static_runtimes_GCJ \
18133     old_archive_cmds_GCJ \
18134     old_archive_from_new_cmds_GCJ \
18135     predep_objects_GCJ \
18136     postdep_objects_GCJ \
18137     predeps_GCJ \
18138     postdeps_GCJ \
18139     compiler_lib_search_path_GCJ \
18140     archive_cmds_GCJ \
18141     archive_expsym_cmds_GCJ \
18142     postinstall_cmds_GCJ \
18143     postuninstall_cmds_GCJ \
18144     old_archive_from_expsyms_cmds_GCJ \
18145     allow_undefined_flag_GCJ \
18146     no_undefined_flag_GCJ \
18147     export_symbols_cmds_GCJ \
18148     hardcode_libdir_flag_spec_GCJ \
18149     hardcode_libdir_flag_spec_ld_GCJ \
18150     hardcode_libdir_separator_GCJ \
18151     hardcode_automatic_GCJ \
18152     module_cmds_GCJ \
18153     module_expsym_cmds_GCJ \
18154     lt_cv_prog_compiler_c_o_GCJ \
18155     exclude_expsyms_GCJ \
18156     include_expsyms_GCJ; do
18157
18158     case $var in
18159     old_archive_cmds_GCJ | \
18160     old_archive_from_new_cmds_GCJ | \
18161     archive_cmds_GCJ | \
18162     archive_expsym_cmds_GCJ | \
18163     module_cmds_GCJ | \
18164     module_expsym_cmds_GCJ | \
18165     old_archive_from_expsyms_cmds_GCJ | \
18166     export_symbols_cmds_GCJ | \
18167     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18168     postinstall_cmds | postuninstall_cmds | \
18169     old_postinstall_cmds | old_postuninstall_cmds | \
18170     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18171       # Double-quote double-evaled strings.
18172       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18173       ;;
18174     *)
18175       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18176       ;;
18177     esac
18178   done
18179
18180   case $lt_echo in
18181   *'\$0 --fallback-echo"')
18182     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18183     ;;
18184   esac
18185
18186 cfgfile="$ofile"
18187
18188   cat <<__EOF__ >> "$cfgfile"
18189 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18190
18191 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18192
18193 # Shell to use when invoking shell scripts.
18194 SHELL=$lt_SHELL
18195
18196 # Whether or not to build shared libraries.
18197 build_libtool_libs=$enable_shared
18198
18199 # Whether or not to build static libraries.
18200 build_old_libs=$enable_static
18201
18202 # Whether or not to add -lc for building shared libraries.
18203 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18204
18205 # Whether or not to disallow shared libs when runtime libs are static
18206 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18207
18208 # Whether or not to optimize for fast installation.
18209 fast_install=$enable_fast_install
18210
18211 # The host system.
18212 host_alias=$host_alias
18213 host=$host
18214
18215 # An echo program that does not interpret backslashes.
18216 echo=$lt_echo
18217
18218 # The archiver.
18219 AR=$lt_AR
18220 AR_FLAGS=$lt_AR_FLAGS
18221
18222 # A C compiler.
18223 LTCC=$lt_LTCC
18224
18225 # A language-specific compiler.
18226 CC=$lt_compiler_GCJ
18227
18228 # Is the compiler the GNU C compiler?
18229 with_gcc=$GCC_GCJ
18230
18231 # An ERE matcher.
18232 EGREP=$lt_EGREP
18233
18234 # The linker used to build libraries.
18235 LD=$lt_LD_GCJ
18236
18237 # Whether we need hard or soft links.
18238 LN_S=$lt_LN_S
18239
18240 # A BSD-compatible nm program.
18241 NM=$lt_NM
18242
18243 # A symbol stripping program
18244 STRIP=$lt_STRIP
18245
18246 # Used to examine libraries when file_magic_cmd begins "file"
18247 MAGIC_CMD=$MAGIC_CMD
18248
18249 # Used on cygwin: DLL creation program.
18250 DLLTOOL="$DLLTOOL"
18251
18252 # Used on cygwin: object dumper.
18253 OBJDUMP="$OBJDUMP"
18254
18255 # Used on cygwin: assembler.
18256 AS="$AS"
18257
18258 # The name of the directory that contains temporary libtool files.
18259 objdir=$objdir
18260
18261 # How to create reloadable object files.
18262 reload_flag=$lt_reload_flag
18263 reload_cmds=$lt_reload_cmds
18264
18265 # How to pass a linker flag through the compiler.
18266 wl=$lt_lt_prog_compiler_wl_GCJ
18267
18268 # Object file suffix (normally "o").
18269 objext="$ac_objext"
18270
18271 # Old archive suffix (normally "a").
18272 libext="$libext"
18273
18274 # Shared library suffix (normally ".so").
18275 shrext_cmds='$shrext_cmds'
18276
18277 # Executable file suffix (normally "").
18278 exeext="$exeext"
18279
18280 # Additional compiler flags for building library objects.
18281 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18282 pic_mode=$pic_mode
18283
18284 # What is the maximum length of a command?
18285 max_cmd_len=$lt_cv_sys_max_cmd_len
18286
18287 # Does compiler simultaneously support -c and -o options?
18288 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18289
18290 # Must we lock files when doing compilation ?
18291 need_locks=$lt_need_locks
18292
18293 # Do we need the lib prefix for modules?
18294 need_lib_prefix=$need_lib_prefix
18295
18296 # Do we need a version for libraries?
18297 need_version=$need_version
18298
18299 # Whether dlopen is supported.
18300 dlopen_support=$enable_dlopen
18301
18302 # Whether dlopen of programs is supported.
18303 dlopen_self=$enable_dlopen_self
18304
18305 # Whether dlopen of statically linked programs is supported.
18306 dlopen_self_static=$enable_dlopen_self_static
18307
18308 # Compiler flag to prevent dynamic linking.
18309 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18310
18311 # Compiler flag to turn off builtin functions.
18312 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18313
18314 # Compiler flag to allow reflexive dlopens.
18315 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18316
18317 # Compiler flag to generate shared objects directly from archives.
18318 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18319
18320 # Compiler flag to generate thread-safe objects.
18321 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18322
18323 # Library versioning type.
18324 version_type=$version_type
18325
18326 # Format of library name prefix.
18327 libname_spec=$lt_libname_spec
18328
18329 # List of archive names.  First name is the real one, the rest are links.
18330 # The last name is the one that the linker finds with -lNAME.
18331 library_names_spec=$lt_library_names_spec
18332
18333 # The coded name of the library, if different from the real name.
18334 soname_spec=$lt_soname_spec
18335
18336 # Commands used to build and install an old-style archive.
18337 RANLIB=$lt_RANLIB
18338 old_archive_cmds=$lt_old_archive_cmds_GCJ
18339 old_postinstall_cmds=$lt_old_postinstall_cmds
18340 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18341
18342 # Create an old-style archive from a shared archive.
18343 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18344
18345 # Create a temporary old-style archive to link instead of a shared archive.
18346 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18347
18348 # Commands used to build and install a shared archive.
18349 archive_cmds=$lt_archive_cmds_GCJ
18350 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18351 postinstall_cmds=$lt_postinstall_cmds
18352 postuninstall_cmds=$lt_postuninstall_cmds
18353
18354 # Commands used to build a loadable module (assumed same as above if empty)
18355 module_cmds=$lt_module_cmds_GCJ
18356 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18357
18358 # Commands to strip libraries.
18359 old_striplib=$lt_old_striplib
18360 striplib=$lt_striplib
18361
18362 # Dependencies to place before the objects being linked to create a
18363 # shared library.
18364 predep_objects=$lt_predep_objects_GCJ
18365
18366 # Dependencies to place after the objects being linked to create a
18367 # shared library.
18368 postdep_objects=$lt_postdep_objects_GCJ
18369
18370 # Dependencies to place before the objects being linked to create a
18371 # shared library.
18372 predeps=$lt_predeps_GCJ
18373
18374 # Dependencies to place after the objects being linked to create a
18375 # shared library.
18376 postdeps=$lt_postdeps_GCJ
18377
18378 # The library search path used internally by the compiler when linking
18379 # a shared library.
18380 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18381
18382 # Method to check whether dependent libraries are shared objects.
18383 deplibs_check_method=$lt_deplibs_check_method
18384
18385 # Command to use when deplibs_check_method == file_magic.
18386 file_magic_cmd=$lt_file_magic_cmd
18387
18388 # Flag that allows shared libraries with undefined symbols to be built.
18389 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18390
18391 # Flag that forces no undefined symbols.
18392 no_undefined_flag=$lt_no_undefined_flag_GCJ
18393
18394 # Commands used to finish a libtool library installation in a directory.
18395 finish_cmds=$lt_finish_cmds
18396
18397 # Same as above, but a single script fragment to be evaled but not shown.
18398 finish_eval=$lt_finish_eval
18399
18400 # Take the output of nm and produce a listing of raw symbols and C names.
18401 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18402
18403 # Transform the output of nm in a proper C declaration
18404 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18405
18406 # Transform the output of nm in a C name address pair
18407 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18408
18409 # This is the shared library runtime path variable.
18410 runpath_var=$runpath_var
18411
18412 # This is the shared library path variable.
18413 shlibpath_var=$shlibpath_var
18414
18415 # Is shlibpath searched before the hard-coded library search path?
18416 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18417
18418 # How to hardcode a shared library path into an executable.
18419 hardcode_action=$hardcode_action_GCJ
18420
18421 # Whether we should hardcode library paths into libraries.
18422 hardcode_into_libs=$hardcode_into_libs
18423
18424 # Flag to hardcode \$libdir into a binary during linking.
18425 # This must work even if \$libdir does not exist.
18426 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18427
18428 # If ld is used when linking, flag to hardcode \$libdir into
18429 # a binary during linking. This must work even if \$libdir does
18430 # not exist.
18431 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18432
18433 # Whether we need a single -rpath flag with a separated argument.
18434 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18435
18436 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18437 # resulting binary.
18438 hardcode_direct=$hardcode_direct_GCJ
18439
18440 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18441 # resulting binary.
18442 hardcode_minus_L=$hardcode_minus_L_GCJ
18443
18444 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18445 # the resulting binary.
18446 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18447
18448 # Set to yes if building a shared library automatically hardcodes DIR into the library
18449 # and all subsequent libraries and executables linked against it.
18450 hardcode_automatic=$hardcode_automatic_GCJ
18451
18452 # Variables whose values should be saved in libtool wrapper scripts and
18453 # restored at relink time.
18454 variables_saved_for_relink="$variables_saved_for_relink"
18455
18456 # Whether libtool must link a program against all its dependency libraries.
18457 link_all_deplibs=$link_all_deplibs_GCJ
18458
18459 # Compile-time system search path for libraries
18460 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18461
18462 # Run-time system search path for libraries
18463 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18464
18465 # Fix the shell variable \$srcfile for the compiler.
18466 fix_srcfile_path="$fix_srcfile_path_GCJ"
18467
18468 # Set to yes if exported symbols are required.
18469 always_export_symbols=$always_export_symbols_GCJ
18470
18471 # The commands to list exported symbols.
18472 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18473
18474 # The commands to extract the exported symbol list from a shared archive.
18475 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18476
18477 # Symbols that should not be listed in the preloaded symbols.
18478 exclude_expsyms=$lt_exclude_expsyms_GCJ
18479
18480 # Symbols that must always be exported.
18481 include_expsyms=$lt_include_expsyms_GCJ
18482
18483 # ### END LIBTOOL TAG CONFIG: $tagname
18484
18485 __EOF__
18486
18487
18488 else
18489   # If there is no Makefile yet, we rely on a make rule to execute
18490   # `config.status --recheck' to rerun these tests and create the
18491   # libtool script then.
18492   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18493   if test -f "$ltmain_in"; then
18494     test -f Makefile && make "$ltmain"
18495   fi
18496 fi
18497
18498
18499 ac_ext=c
18500 ac_cpp='$CPP $CPPFLAGS'
18501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18504
18505 CC="$lt_save_CC"
18506
18507         else
18508           tagname=""
18509         fi
18510         ;;
18511
18512       RC)
18513
18514
18515
18516 # Source file extension for RC test sources.
18517 ac_ext=rc
18518
18519 # Object file extension for compiled RC test sources.
18520 objext=o
18521 objext_RC=$objext
18522
18523 # Code to be used in simple compile tests
18524 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18525
18526 # Code to be used in simple link tests
18527 lt_simple_link_test_code="$lt_simple_compile_test_code"
18528
18529 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18530
18531 # If no C compiler was specified, use CC.
18532 LTCC=${LTCC-"$CC"}
18533
18534 # Allow CC to be a program name with arguments.
18535 compiler=$CC
18536
18537
18538 # Allow CC to be a program name with arguments.
18539 lt_save_CC="$CC"
18540 CC=${RC-"windres"}
18541 compiler=$CC
18542 compiler_RC=$CC
18543 lt_cv_prog_compiler_c_o_RC=yes
18544
18545 # The else clause should only fire when bootstrapping the
18546 # libtool distribution, otherwise you forgot to ship ltmain.sh
18547 # with your package, and you will get complaints that there are
18548 # no rules to generate ltmain.sh.
18549 if test -f "$ltmain"; then
18550   # See if we are running on zsh, and set the options which allow our commands through
18551   # without removal of \ escapes.
18552   if test -n "${ZSH_VERSION+set}" ; then
18553     setopt NO_GLOB_SUBST
18554   fi
18555   # Now quote all the things that may contain metacharacters while being
18556   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18557   # variables and quote the copies for generation of the libtool script.
18558   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18559     SED SHELL STRIP \
18560     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18561     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18562     deplibs_check_method reload_flag reload_cmds need_locks \
18563     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18564     lt_cv_sys_global_symbol_to_c_name_address \
18565     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18566     old_postinstall_cmds old_postuninstall_cmds \
18567     compiler_RC \
18568     CC_RC \
18569     LD_RC \
18570     lt_prog_compiler_wl_RC \
18571     lt_prog_compiler_pic_RC \
18572     lt_prog_compiler_static_RC \
18573     lt_prog_compiler_no_builtin_flag_RC \
18574     export_dynamic_flag_spec_RC \
18575     thread_safe_flag_spec_RC \
18576     whole_archive_flag_spec_RC \
18577     enable_shared_with_static_runtimes_RC \
18578     old_archive_cmds_RC \
18579     old_archive_from_new_cmds_RC \
18580     predep_objects_RC \
18581     postdep_objects_RC \
18582     predeps_RC \
18583     postdeps_RC \
18584     compiler_lib_search_path_RC \
18585     archive_cmds_RC \
18586     archive_expsym_cmds_RC \
18587     postinstall_cmds_RC \
18588     postuninstall_cmds_RC \
18589     old_archive_from_expsyms_cmds_RC \
18590     allow_undefined_flag_RC \
18591     no_undefined_flag_RC \
18592     export_symbols_cmds_RC \
18593     hardcode_libdir_flag_spec_RC \
18594     hardcode_libdir_flag_spec_ld_RC \
18595     hardcode_libdir_separator_RC \
18596     hardcode_automatic_RC \
18597     module_cmds_RC \
18598     module_expsym_cmds_RC \
18599     lt_cv_prog_compiler_c_o_RC \
18600     exclude_expsyms_RC \
18601     include_expsyms_RC; do
18602
18603     case $var in
18604     old_archive_cmds_RC | \
18605     old_archive_from_new_cmds_RC | \
18606     archive_cmds_RC | \
18607     archive_expsym_cmds_RC | \
18608     module_cmds_RC | \
18609     module_expsym_cmds_RC | \
18610     old_archive_from_expsyms_cmds_RC | \
18611     export_symbols_cmds_RC | \
18612     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18613     postinstall_cmds | postuninstall_cmds | \
18614     old_postinstall_cmds | old_postuninstall_cmds | \
18615     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18616       # Double-quote double-evaled strings.
18617       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18618       ;;
18619     *)
18620       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18621       ;;
18622     esac
18623   done
18624
18625   case $lt_echo in
18626   *'\$0 --fallback-echo"')
18627     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18628     ;;
18629   esac
18630
18631 cfgfile="$ofile"
18632
18633   cat <<__EOF__ >> "$cfgfile"
18634 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18635
18636 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18637
18638 # Shell to use when invoking shell scripts.
18639 SHELL=$lt_SHELL
18640
18641 # Whether or not to build shared libraries.
18642 build_libtool_libs=$enable_shared
18643
18644 # Whether or not to build static libraries.
18645 build_old_libs=$enable_static
18646
18647 # Whether or not to add -lc for building shared libraries.
18648 build_libtool_need_lc=$archive_cmds_need_lc_RC
18649
18650 # Whether or not to disallow shared libs when runtime libs are static
18651 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18652
18653 # Whether or not to optimize for fast installation.
18654 fast_install=$enable_fast_install
18655
18656 # The host system.
18657 host_alias=$host_alias
18658 host=$host
18659
18660 # An echo program that does not interpret backslashes.
18661 echo=$lt_echo
18662
18663 # The archiver.
18664 AR=$lt_AR
18665 AR_FLAGS=$lt_AR_FLAGS
18666
18667 # A C compiler.
18668 LTCC=$lt_LTCC
18669
18670 # A language-specific compiler.
18671 CC=$lt_compiler_RC
18672
18673 # Is the compiler the GNU C compiler?
18674 with_gcc=$GCC_RC
18675
18676 # An ERE matcher.
18677 EGREP=$lt_EGREP
18678
18679 # The linker used to build libraries.
18680 LD=$lt_LD_RC
18681
18682 # Whether we need hard or soft links.
18683 LN_S=$lt_LN_S
18684
18685 # A BSD-compatible nm program.
18686 NM=$lt_NM
18687
18688 # A symbol stripping program
18689 STRIP=$lt_STRIP
18690
18691 # Used to examine libraries when file_magic_cmd begins "file"
18692 MAGIC_CMD=$MAGIC_CMD
18693
18694 # Used on cygwin: DLL creation program.
18695 DLLTOOL="$DLLTOOL"
18696
18697 # Used on cygwin: object dumper.
18698 OBJDUMP="$OBJDUMP"
18699
18700 # Used on cygwin: assembler.
18701 AS="$AS"
18702
18703 # The name of the directory that contains temporary libtool files.
18704 objdir=$objdir
18705
18706 # How to create reloadable object files.
18707 reload_flag=$lt_reload_flag
18708 reload_cmds=$lt_reload_cmds
18709
18710 # How to pass a linker flag through the compiler.
18711 wl=$lt_lt_prog_compiler_wl_RC
18712
18713 # Object file suffix (normally "o").
18714 objext="$ac_objext"
18715
18716 # Old archive suffix (normally "a").
18717 libext="$libext"
18718
18719 # Shared library suffix (normally ".so").
18720 shrext_cmds='$shrext_cmds'
18721
18722 # Executable file suffix (normally "").
18723 exeext="$exeext"
18724
18725 # Additional compiler flags for building library objects.
18726 pic_flag=$lt_lt_prog_compiler_pic_RC
18727 pic_mode=$pic_mode
18728
18729 # What is the maximum length of a command?
18730 max_cmd_len=$lt_cv_sys_max_cmd_len
18731
18732 # Does compiler simultaneously support -c and -o options?
18733 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18734
18735 # Must we lock files when doing compilation ?
18736 need_locks=$lt_need_locks
18737
18738 # Do we need the lib prefix for modules?
18739 need_lib_prefix=$need_lib_prefix
18740
18741 # Do we need a version for libraries?
18742 need_version=$need_version
18743
18744 # Whether dlopen is supported.
18745 dlopen_support=$enable_dlopen
18746
18747 # Whether dlopen of programs is supported.
18748 dlopen_self=$enable_dlopen_self
18749
18750 # Whether dlopen of statically linked programs is supported.
18751 dlopen_self_static=$enable_dlopen_self_static
18752
18753 # Compiler flag to prevent dynamic linking.
18754 link_static_flag=$lt_lt_prog_compiler_static_RC
18755
18756 # Compiler flag to turn off builtin functions.
18757 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18758
18759 # Compiler flag to allow reflexive dlopens.
18760 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18761
18762 # Compiler flag to generate shared objects directly from archives.
18763 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18764
18765 # Compiler flag to generate thread-safe objects.
18766 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18767
18768 # Library versioning type.
18769 version_type=$version_type
18770
18771 # Format of library name prefix.
18772 libname_spec=$lt_libname_spec
18773
18774 # List of archive names.  First name is the real one, the rest are links.
18775 # The last name is the one that the linker finds with -lNAME.
18776 library_names_spec=$lt_library_names_spec
18777
18778 # The coded name of the library, if different from the real name.
18779 soname_spec=$lt_soname_spec
18780
18781 # Commands used to build and install an old-style archive.
18782 RANLIB=$lt_RANLIB
18783 old_archive_cmds=$lt_old_archive_cmds_RC
18784 old_postinstall_cmds=$lt_old_postinstall_cmds
18785 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18786
18787 # Create an old-style archive from a shared archive.
18788 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18789
18790 # Create a temporary old-style archive to link instead of a shared archive.
18791 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18792
18793 # Commands used to build and install a shared archive.
18794 archive_cmds=$lt_archive_cmds_RC
18795 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18796 postinstall_cmds=$lt_postinstall_cmds
18797 postuninstall_cmds=$lt_postuninstall_cmds
18798
18799 # Commands used to build a loadable module (assumed same as above if empty)
18800 module_cmds=$lt_module_cmds_RC
18801 module_expsym_cmds=$lt_module_expsym_cmds_RC
18802
18803 # Commands to strip libraries.
18804 old_striplib=$lt_old_striplib
18805 striplib=$lt_striplib
18806
18807 # Dependencies to place before the objects being linked to create a
18808 # shared library.
18809 predep_objects=$lt_predep_objects_RC
18810
18811 # Dependencies to place after the objects being linked to create a
18812 # shared library.
18813 postdep_objects=$lt_postdep_objects_RC
18814
18815 # Dependencies to place before the objects being linked to create a
18816 # shared library.
18817 predeps=$lt_predeps_RC
18818
18819 # Dependencies to place after the objects being linked to create a
18820 # shared library.
18821 postdeps=$lt_postdeps_RC
18822
18823 # The library search path used internally by the compiler when linking
18824 # a shared library.
18825 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18826
18827 # Method to check whether dependent libraries are shared objects.
18828 deplibs_check_method=$lt_deplibs_check_method
18829
18830 # Command to use when deplibs_check_method == file_magic.
18831 file_magic_cmd=$lt_file_magic_cmd
18832
18833 # Flag that allows shared libraries with undefined symbols to be built.
18834 allow_undefined_flag=$lt_allow_undefined_flag_RC
18835
18836 # Flag that forces no undefined symbols.
18837 no_undefined_flag=$lt_no_undefined_flag_RC
18838
18839 # Commands used to finish a libtool library installation in a directory.
18840 finish_cmds=$lt_finish_cmds
18841
18842 # Same as above, but a single script fragment to be evaled but not shown.
18843 finish_eval=$lt_finish_eval
18844
18845 # Take the output of nm and produce a listing of raw symbols and C names.
18846 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18847
18848 # Transform the output of nm in a proper C declaration
18849 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18850
18851 # Transform the output of nm in a C name address pair
18852 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18853
18854 # This is the shared library runtime path variable.
18855 runpath_var=$runpath_var
18856
18857 # This is the shared library path variable.
18858 shlibpath_var=$shlibpath_var
18859
18860 # Is shlibpath searched before the hard-coded library search path?
18861 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18862
18863 # How to hardcode a shared library path into an executable.
18864 hardcode_action=$hardcode_action_RC
18865
18866 # Whether we should hardcode library paths into libraries.
18867 hardcode_into_libs=$hardcode_into_libs
18868
18869 # Flag to hardcode \$libdir into a binary during linking.
18870 # This must work even if \$libdir does not exist.
18871 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18872
18873 # If ld is used when linking, flag to hardcode \$libdir into
18874 # a binary during linking. This must work even if \$libdir does
18875 # not exist.
18876 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18877
18878 # Whether we need a single -rpath flag with a separated argument.
18879 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18880
18881 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18882 # resulting binary.
18883 hardcode_direct=$hardcode_direct_RC
18884
18885 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18886 # resulting binary.
18887 hardcode_minus_L=$hardcode_minus_L_RC
18888
18889 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18890 # the resulting binary.
18891 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18892
18893 # Set to yes if building a shared library automatically hardcodes DIR into the library
18894 # and all subsequent libraries and executables linked against it.
18895 hardcode_automatic=$hardcode_automatic_RC
18896
18897 # Variables whose values should be saved in libtool wrapper scripts and
18898 # restored at relink time.
18899 variables_saved_for_relink="$variables_saved_for_relink"
18900
18901 # Whether libtool must link a program against all its dependency libraries.
18902 link_all_deplibs=$link_all_deplibs_RC
18903
18904 # Compile-time system search path for libraries
18905 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18906
18907 # Run-time system search path for libraries
18908 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18909
18910 # Fix the shell variable \$srcfile for the compiler.
18911 fix_srcfile_path="$fix_srcfile_path_RC"
18912
18913 # Set to yes if exported symbols are required.
18914 always_export_symbols=$always_export_symbols_RC
18915
18916 # The commands to list exported symbols.
18917 export_symbols_cmds=$lt_export_symbols_cmds_RC
18918
18919 # The commands to extract the exported symbol list from a shared archive.
18920 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18921
18922 # Symbols that should not be listed in the preloaded symbols.
18923 exclude_expsyms=$lt_exclude_expsyms_RC
18924
18925 # Symbols that must always be exported.
18926 include_expsyms=$lt_include_expsyms_RC
18927
18928 # ### END LIBTOOL TAG CONFIG: $tagname
18929
18930 __EOF__
18931
18932
18933 else
18934   # If there is no Makefile yet, we rely on a make rule to execute
18935   # `config.status --recheck' to rerun these tests and create the
18936   # libtool script then.
18937   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18938   if test -f "$ltmain_in"; then
18939     test -f Makefile && make "$ltmain"
18940   fi
18941 fi
18942
18943
18944 ac_ext=c
18945 ac_cpp='$CPP $CPPFLAGS'
18946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18949
18950 CC="$lt_save_CC"
18951
18952         ;;
18953
18954       *)
18955         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18956 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18957    { (exit 1); exit 1; }; }
18958         ;;
18959       esac
18960
18961       # Append the new tag name to the list of available tags.
18962       if test -n "$tagname" ; then
18963       available_tags="$available_tags $tagname"
18964     fi
18965     fi
18966   done
18967   IFS="$lt_save_ifs"
18968
18969   # Now substitute the updated list of available tags.
18970   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18971     mv "${ofile}T" "$ofile"
18972     chmod +x "$ofile"
18973   else
18974     rm -f "${ofile}T"
18975     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18976 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18977    { (exit 1); exit 1; }; }
18978   fi
18979 fi
18980
18981
18982
18983 # This can be used to rebuild libtool when needed
18984 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18985
18986 # Always use our own libtool.
18987 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18988
18989 # Prevent multiple expansion
18990
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011 # declare the modules (no optional module)
19012
19013 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
19014 ACLOCAL="$ACLOCAL -I acmacro"
19015
19016
19017 ac_ext=c
19018 ac_cpp='$CPP $CPPFLAGS'
19019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19022 if test -n "$ac_tool_prefix"; then
19023   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19024 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19025 echo "$as_me:$LINENO: checking for $ac_word" >&5
19026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19027 if test "${ac_cv_prog_CC+set}" = set; then
19028   echo $ECHO_N "(cached) $ECHO_C" >&6
19029 else
19030   if test -n "$CC"; then
19031   ac_cv_prog_CC="$CC" # Let the user override the test.
19032 else
19033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19034 for as_dir in $PATH
19035 do
19036   IFS=$as_save_IFS
19037   test -z "$as_dir" && as_dir=.
19038   for ac_exec_ext in '' $ac_executable_extensions; do
19039   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19040     ac_cv_prog_CC="${ac_tool_prefix}gcc"
19041     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19042     break 2
19043   fi
19044 done
19045 done
19046
19047 fi
19048 fi
19049 CC=$ac_cv_prog_CC
19050 if test -n "$CC"; then
19051   echo "$as_me:$LINENO: result: $CC" >&5
19052 echo "${ECHO_T}$CC" >&6
19053 else
19054   echo "$as_me:$LINENO: result: no" >&5
19055 echo "${ECHO_T}no" >&6
19056 fi
19057
19058 fi
19059 if test -z "$ac_cv_prog_CC"; then
19060   ac_ct_CC=$CC
19061   # Extract the first word of "gcc", so it can be a program name with args.
19062 set dummy gcc; ac_word=$2
19063 echo "$as_me:$LINENO: checking for $ac_word" >&5
19064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19065 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19066   echo $ECHO_N "(cached) $ECHO_C" >&6
19067 else
19068   if test -n "$ac_ct_CC"; then
19069   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19070 else
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_prog_ac_ct_CC="gcc"
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 fi
19086 fi
19087 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19088 if test -n "$ac_ct_CC"; then
19089   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19090 echo "${ECHO_T}$ac_ct_CC" >&6
19091 else
19092   echo "$as_me:$LINENO: result: no" >&5
19093 echo "${ECHO_T}no" >&6
19094 fi
19095
19096   CC=$ac_ct_CC
19097 else
19098   CC="$ac_cv_prog_CC"
19099 fi
19100
19101 if test -z "$CC"; then
19102   if test -n "$ac_tool_prefix"; then
19103   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19104 set dummy ${ac_tool_prefix}cc; ac_word=$2
19105 echo "$as_me:$LINENO: checking for $ac_word" >&5
19106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19107 if test "${ac_cv_prog_CC+set}" = set; then
19108   echo $ECHO_N "(cached) $ECHO_C" >&6
19109 else
19110   if test -n "$CC"; then
19111   ac_cv_prog_CC="$CC" # Let the user override the test.
19112 else
19113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19114 for as_dir in $PATH
19115 do
19116   IFS=$as_save_IFS
19117   test -z "$as_dir" && as_dir=.
19118   for ac_exec_ext in '' $ac_executable_extensions; do
19119   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19120     ac_cv_prog_CC="${ac_tool_prefix}cc"
19121     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19122     break 2
19123   fi
19124 done
19125 done
19126
19127 fi
19128 fi
19129 CC=$ac_cv_prog_CC
19130 if test -n "$CC"; then
19131   echo "$as_me:$LINENO: result: $CC" >&5
19132 echo "${ECHO_T}$CC" >&6
19133 else
19134   echo "$as_me:$LINENO: result: no" >&5
19135 echo "${ECHO_T}no" >&6
19136 fi
19137
19138 fi
19139 if test -z "$ac_cv_prog_CC"; then
19140   ac_ct_CC=$CC
19141   # Extract the first word of "cc", so it can be a program name with args.
19142 set dummy cc; ac_word=$2
19143 echo "$as_me:$LINENO: checking for $ac_word" >&5
19144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19145 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19146   echo $ECHO_N "(cached) $ECHO_C" >&6
19147 else
19148   if test -n "$ac_ct_CC"; then
19149   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19150 else
19151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19152 for as_dir in $PATH
19153 do
19154   IFS=$as_save_IFS
19155   test -z "$as_dir" && as_dir=.
19156   for ac_exec_ext in '' $ac_executable_extensions; do
19157   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19158     ac_cv_prog_ac_ct_CC="cc"
19159     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19160     break 2
19161   fi
19162 done
19163 done
19164
19165 fi
19166 fi
19167 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19168 if test -n "$ac_ct_CC"; then
19169   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19170 echo "${ECHO_T}$ac_ct_CC" >&6
19171 else
19172   echo "$as_me:$LINENO: result: no" >&5
19173 echo "${ECHO_T}no" >&6
19174 fi
19175
19176   CC=$ac_ct_CC
19177 else
19178   CC="$ac_cv_prog_CC"
19179 fi
19180
19181 fi
19182 if test -z "$CC"; then
19183   # Extract the first word of "cc", so it can be a program name with args.
19184 set dummy cc; 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_CC+set}" = set; then
19188   echo $ECHO_N "(cached) $ECHO_C" >&6
19189 else
19190   if test -n "$CC"; then
19191   ac_cv_prog_CC="$CC" # Let the user override the test.
19192 else
19193   ac_prog_rejected=no
19194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19195 for as_dir in $PATH
19196 do
19197   IFS=$as_save_IFS
19198   test -z "$as_dir" && as_dir=.
19199   for ac_exec_ext in '' $ac_executable_extensions; do
19200   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19201     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19202        ac_prog_rejected=yes
19203        continue
19204      fi
19205     ac_cv_prog_CC="cc"
19206     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19207     break 2
19208   fi
19209 done
19210 done
19211
19212 if test $ac_prog_rejected = yes; then
19213   # We found a bogon in the path, so make sure we never use it.
19214   set dummy $ac_cv_prog_CC
19215   shift
19216   if test $# != 0; then
19217     # We chose a different compiler from the bogus one.
19218     # However, it has the same basename, so the bogon will be chosen
19219     # first if we set CC to just the basename; use the full file name.
19220     shift
19221     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19222   fi
19223 fi
19224 fi
19225 fi
19226 CC=$ac_cv_prog_CC
19227 if test -n "$CC"; then
19228   echo "$as_me:$LINENO: result: $CC" >&5
19229 echo "${ECHO_T}$CC" >&6
19230 else
19231   echo "$as_me:$LINENO: result: no" >&5
19232 echo "${ECHO_T}no" >&6
19233 fi
19234
19235 fi
19236 if test -z "$CC"; then
19237   if test -n "$ac_tool_prefix"; then
19238   for ac_prog in cl
19239   do
19240     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19241 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19242 echo "$as_me:$LINENO: checking for $ac_word" >&5
19243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19244 if test "${ac_cv_prog_CC+set}" = set; then
19245   echo $ECHO_N "(cached) $ECHO_C" >&6
19246 else
19247   if test -n "$CC"; then
19248   ac_cv_prog_CC="$CC" # Let the user override the test.
19249 else
19250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19251 for as_dir in $PATH
19252 do
19253   IFS=$as_save_IFS
19254   test -z "$as_dir" && as_dir=.
19255   for ac_exec_ext in '' $ac_executable_extensions; do
19256   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19257     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19258     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19259     break 2
19260   fi
19261 done
19262 done
19263
19264 fi
19265 fi
19266 CC=$ac_cv_prog_CC
19267 if test -n "$CC"; then
19268   echo "$as_me:$LINENO: result: $CC" >&5
19269 echo "${ECHO_T}$CC" >&6
19270 else
19271   echo "$as_me:$LINENO: result: no" >&5
19272 echo "${ECHO_T}no" >&6
19273 fi
19274
19275     test -n "$CC" && break
19276   done
19277 fi
19278 if test -z "$CC"; then
19279   ac_ct_CC=$CC
19280   for ac_prog in cl
19281 do
19282   # Extract the first word of "$ac_prog", so it can be a program name with args.
19283 set dummy $ac_prog; ac_word=$2
19284 echo "$as_me:$LINENO: checking for $ac_word" >&5
19285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19286 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19287   echo $ECHO_N "(cached) $ECHO_C" >&6
19288 else
19289   if test -n "$ac_ct_CC"; then
19290   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19291 else
19292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19293 for as_dir in $PATH
19294 do
19295   IFS=$as_save_IFS
19296   test -z "$as_dir" && as_dir=.
19297   for ac_exec_ext in '' $ac_executable_extensions; do
19298   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19299     ac_cv_prog_ac_ct_CC="$ac_prog"
19300     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19301     break 2
19302   fi
19303 done
19304 done
19305
19306 fi
19307 fi
19308 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19309 if test -n "$ac_ct_CC"; then
19310   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19311 echo "${ECHO_T}$ac_ct_CC" >&6
19312 else
19313   echo "$as_me:$LINENO: result: no" >&5
19314 echo "${ECHO_T}no" >&6
19315 fi
19316
19317   test -n "$ac_ct_CC" && break
19318 done
19319
19320   CC=$ac_ct_CC
19321 fi
19322
19323 fi
19324
19325
19326 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19327 See \`config.log' for more details." >&5
19328 echo "$as_me: error: no acceptable C compiler found in \$PATH
19329 See \`config.log' for more details." >&2;}
19330    { (exit 1); exit 1; }; }
19331
19332 # Provide some information about the compiler.
19333 echo "$as_me:$LINENO:" \
19334      "checking for C compiler version" >&5
19335 ac_compiler=`set X $ac_compile; echo $2`
19336 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19337   (eval $ac_compiler --version </dev/null >&5) 2>&5
19338   ac_status=$?
19339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340   (exit $ac_status); }
19341 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19342   (eval $ac_compiler -v </dev/null >&5) 2>&5
19343   ac_status=$?
19344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345   (exit $ac_status); }
19346 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19347   (eval $ac_compiler -V </dev/null >&5) 2>&5
19348   ac_status=$?
19349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350   (exit $ac_status); }
19351
19352 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19353 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19354 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19355   echo $ECHO_N "(cached) $ECHO_C" >&6
19356 else
19357   cat >conftest.$ac_ext <<_ACEOF
19358 /* confdefs.h.  */
19359 _ACEOF
19360 cat confdefs.h >>conftest.$ac_ext
19361 cat >>conftest.$ac_ext <<_ACEOF
19362 /* end confdefs.h.  */
19363
19364 int
19365 main ()
19366 {
19367 #ifndef __GNUC__
19368        choke me
19369 #endif
19370
19371   ;
19372   return 0;
19373 }
19374 _ACEOF
19375 rm -f conftest.$ac_objext
19376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19377   (eval $ac_compile) 2>conftest.er1
19378   ac_status=$?
19379   grep -v '^ *+' conftest.er1 >conftest.err
19380   rm -f conftest.er1
19381   cat conftest.err >&5
19382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383   (exit $ac_status); } &&
19384          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19386   (eval $ac_try) 2>&5
19387   ac_status=$?
19388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389   (exit $ac_status); }; } &&
19390          { ac_try='test -s conftest.$ac_objext'
19391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19392   (eval $ac_try) 2>&5
19393   ac_status=$?
19394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395   (exit $ac_status); }; }; then
19396   ac_compiler_gnu=yes
19397 else
19398   echo "$as_me: failed program was:" >&5
19399 sed 's/^/| /' conftest.$ac_ext >&5
19400
19401 ac_compiler_gnu=no
19402 fi
19403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19404 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19405
19406 fi
19407 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19408 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19409 GCC=`test $ac_compiler_gnu = yes && echo yes`
19410 ac_test_CFLAGS=${CFLAGS+set}
19411 ac_save_CFLAGS=$CFLAGS
19412 CFLAGS="-g"
19413 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19414 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19415 if test "${ac_cv_prog_cc_g+set}" = set; then
19416   echo $ECHO_N "(cached) $ECHO_C" >&6
19417 else
19418   cat >conftest.$ac_ext <<_ACEOF
19419 /* confdefs.h.  */
19420 _ACEOF
19421 cat confdefs.h >>conftest.$ac_ext
19422 cat >>conftest.$ac_ext <<_ACEOF
19423 /* end confdefs.h.  */
19424
19425 int
19426 main ()
19427 {
19428
19429   ;
19430   return 0;
19431 }
19432 _ACEOF
19433 rm -f conftest.$ac_objext
19434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19435   (eval $ac_compile) 2>conftest.er1
19436   ac_status=$?
19437   grep -v '^ *+' conftest.er1 >conftest.err
19438   rm -f conftest.er1
19439   cat conftest.err >&5
19440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441   (exit $ac_status); } &&
19442          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19444   (eval $ac_try) 2>&5
19445   ac_status=$?
19446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447   (exit $ac_status); }; } &&
19448          { ac_try='test -s conftest.$ac_objext'
19449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19450   (eval $ac_try) 2>&5
19451   ac_status=$?
19452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453   (exit $ac_status); }; }; then
19454   ac_cv_prog_cc_g=yes
19455 else
19456   echo "$as_me: failed program was:" >&5
19457 sed 's/^/| /' conftest.$ac_ext >&5
19458
19459 ac_cv_prog_cc_g=no
19460 fi
19461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19462 fi
19463 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19464 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19465 if test "$ac_test_CFLAGS" = set; then
19466   CFLAGS=$ac_save_CFLAGS
19467 elif test $ac_cv_prog_cc_g = yes; then
19468   if test "$GCC" = yes; then
19469     CFLAGS="-g -O2"
19470   else
19471     CFLAGS="-g"
19472   fi
19473 else
19474   if test "$GCC" = yes; then
19475     CFLAGS="-O2"
19476   else
19477     CFLAGS=
19478   fi
19479 fi
19480 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19481 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19482 if test "${ac_cv_prog_cc_stdc+set}" = set; then
19483   echo $ECHO_N "(cached) $ECHO_C" >&6
19484 else
19485   ac_cv_prog_cc_stdc=no
19486 ac_save_CC=$CC
19487 cat >conftest.$ac_ext <<_ACEOF
19488 /* confdefs.h.  */
19489 _ACEOF
19490 cat confdefs.h >>conftest.$ac_ext
19491 cat >>conftest.$ac_ext <<_ACEOF
19492 /* end confdefs.h.  */
19493 #include <stdarg.h>
19494 #include <stdio.h>
19495 #include <sys/types.h>
19496 #include <sys/stat.h>
19497 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19498 struct buf { int x; };
19499 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19500 static char *e (p, i)
19501      char **p;
19502      int i;
19503 {
19504   return p[i];
19505 }
19506 static char *f (char * (*g) (char **, int), char **p, ...)
19507 {
19508   char *s;
19509   va_list v;
19510   va_start (v,p);
19511   s = g (p, va_arg (v,int));
19512   va_end (v);
19513   return s;
19514 }
19515
19516 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
19517    function prototypes and stuff, but not '\xHH' hex character constants.
19518    These don't provoke an error unfortunately, instead are silently treated
19519    as 'x'.  The following induces an error, until -std1 is added to get
19520    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
19521    array size at least.  It's necessary to write '\x00'==0 to get something
19522    that's true only with -std1.  */
19523 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19524
19525 int test (int i, double x);
19526 struct s1 {int (*f) (int a);};
19527 struct s2 {int (*f) (double a);};
19528 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19529 int argc;
19530 char **argv;
19531 int
19532 main ()
19533 {
19534 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
19535   ;
19536   return 0;
19537 }
19538 _ACEOF
19539 # Don't try gcc -ansi; that turns off useful extensions and
19540 # breaks some systems' header files.
19541 # AIX                   -qlanglvl=ansi
19542 # Ultrix and OSF/1      -std1
19543 # HP-UX 10.20 and later -Ae
19544 # HP-UX older versions  -Aa -D_HPUX_SOURCE
19545 # SVR4                  -Xc -D__EXTENSIONS__
19546 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19547 do
19548   CC="$ac_save_CC $ac_arg"
19549   rm -f conftest.$ac_objext
19550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19551   (eval $ac_compile) 2>conftest.er1
19552   ac_status=$?
19553   grep -v '^ *+' conftest.er1 >conftest.err
19554   rm -f conftest.er1
19555   cat conftest.err >&5
19556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557   (exit $ac_status); } &&
19558          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19560   (eval $ac_try) 2>&5
19561   ac_status=$?
19562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563   (exit $ac_status); }; } &&
19564          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19570   ac_cv_prog_cc_stdc=$ac_arg
19571 break
19572 else
19573   echo "$as_me: failed program was:" >&5
19574 sed 's/^/| /' conftest.$ac_ext >&5
19575
19576 fi
19577 rm -f conftest.err conftest.$ac_objext
19578 done
19579 rm -f conftest.$ac_ext conftest.$ac_objext
19580 CC=$ac_save_CC
19581
19582 fi
19583
19584 case "x$ac_cv_prog_cc_stdc" in
19585   x|xno)
19586     echo "$as_me:$LINENO: result: none needed" >&5
19587 echo "${ECHO_T}none needed" >&6 ;;
19588   *)
19589     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19590 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19591     CC="$CC $ac_cv_prog_cc_stdc" ;;
19592 esac
19593
19594 # Some people use a C++ compiler to compile C.  Since we use `exit',
19595 # in C++ we need to declare it.  In case someone uses the same compiler
19596 # for both compiling C and C++ we need to have the C++ compiler decide
19597 # the declaration of exit, since it's the most demanding environment.
19598 cat >conftest.$ac_ext <<_ACEOF
19599 #ifndef __cplusplus
19600   choke me
19601 #endif
19602 _ACEOF
19603 rm -f conftest.$ac_objext
19604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19605   (eval $ac_compile) 2>conftest.er1
19606   ac_status=$?
19607   grep -v '^ *+' conftest.er1 >conftest.err
19608   rm -f conftest.er1
19609   cat conftest.err >&5
19610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611   (exit $ac_status); } &&
19612          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19614   (eval $ac_try) 2>&5
19615   ac_status=$?
19616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617   (exit $ac_status); }; } &&
19618          { ac_try='test -s conftest.$ac_objext'
19619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19620   (eval $ac_try) 2>&5
19621   ac_status=$?
19622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19623   (exit $ac_status); }; }; then
19624   for ac_declaration in \
19625    '' \
19626    'extern "C" void std::exit (int) throw (); using std::exit;' \
19627    'extern "C" void std::exit (int); using std::exit;' \
19628    'extern "C" void exit (int) throw ();' \
19629    'extern "C" void exit (int);' \
19630    'void exit (int);'
19631 do
19632   cat >conftest.$ac_ext <<_ACEOF
19633 /* confdefs.h.  */
19634 _ACEOF
19635 cat confdefs.h >>conftest.$ac_ext
19636 cat >>conftest.$ac_ext <<_ACEOF
19637 /* end confdefs.h.  */
19638 $ac_declaration
19639 #include <stdlib.h>
19640 int
19641 main ()
19642 {
19643 exit (42);
19644   ;
19645   return 0;
19646 }
19647 _ACEOF
19648 rm -f conftest.$ac_objext
19649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19650   (eval $ac_compile) 2>conftest.er1
19651   ac_status=$?
19652   grep -v '^ *+' conftest.er1 >conftest.err
19653   rm -f conftest.er1
19654   cat conftest.err >&5
19655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656   (exit $ac_status); } &&
19657          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19659   (eval $ac_try) 2>&5
19660   ac_status=$?
19661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662   (exit $ac_status); }; } &&
19663          { ac_try='test -s conftest.$ac_objext'
19664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19665   (eval $ac_try) 2>&5
19666   ac_status=$?
19667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19668   (exit $ac_status); }; }; then
19669   :
19670 else
19671   echo "$as_me: failed program was:" >&5
19672 sed 's/^/| /' conftest.$ac_ext >&5
19673
19674 continue
19675 fi
19676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19677   cat >conftest.$ac_ext <<_ACEOF
19678 /* confdefs.h.  */
19679 _ACEOF
19680 cat confdefs.h >>conftest.$ac_ext
19681 cat >>conftest.$ac_ext <<_ACEOF
19682 /* end confdefs.h.  */
19683 $ac_declaration
19684 int
19685 main ()
19686 {
19687 exit (42);
19688   ;
19689   return 0;
19690 }
19691 _ACEOF
19692 rm -f conftest.$ac_objext
19693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19694   (eval $ac_compile) 2>conftest.er1
19695   ac_status=$?
19696   grep -v '^ *+' conftest.er1 >conftest.err
19697   rm -f conftest.er1
19698   cat conftest.err >&5
19699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19700   (exit $ac_status); } &&
19701          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19703   (eval $ac_try) 2>&5
19704   ac_status=$?
19705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19706   (exit $ac_status); }; } &&
19707          { ac_try='test -s conftest.$ac_objext'
19708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19709   (eval $ac_try) 2>&5
19710   ac_status=$?
19711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712   (exit $ac_status); }; }; then
19713   break
19714 else
19715   echo "$as_me: failed program was:" >&5
19716 sed 's/^/| /' conftest.$ac_ext >&5
19717
19718 fi
19719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19720 done
19721 rm -f conftest*
19722 if test -n "$ac_declaration"; then
19723   echo '#ifdef __cplusplus' >>confdefs.h
19724   echo $ac_declaration      >>confdefs.h
19725   echo '#endif'             >>confdefs.h
19726 fi
19727
19728 else
19729   echo "$as_me: failed program was:" >&5
19730 sed 's/^/| /' conftest.$ac_ext >&5
19731
19732 fi
19733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19734 ac_ext=c
19735 ac_cpp='$CPP $CPPFLAGS'
19736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19739
19740 depcc="$CC"   am_compiler_list=
19741
19742 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19743 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19744 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19745   echo $ECHO_N "(cached) $ECHO_C" >&6
19746 else
19747   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19748   # We make a subdir and do the tests there.  Otherwise we can end up
19749   # making bogus files that we don't know about and never remove.  For
19750   # instance it was reported that on HP-UX the gcc test will end up
19751   # making a dummy file named `D' -- because `-MD' means `put the output
19752   # in D'.
19753   mkdir conftest.dir
19754   # Copy depcomp to subdir because otherwise we won't find it if we're
19755   # using a relative directory.
19756   cp "$am_depcomp" conftest.dir
19757   cd conftest.dir
19758   # We will build objects and dependencies in a subdirectory because
19759   # it helps to detect inapplicable dependency modes.  For instance
19760   # both Tru64's cc and ICC support -MD to output dependencies as a
19761   # side effect of compilation, but ICC will put the dependencies in
19762   # the current directory while Tru64 will put them in the object
19763   # directory.
19764   mkdir sub
19765
19766   am_cv_CC_dependencies_compiler_type=none
19767   if test "$am_compiler_list" = ""; then
19768      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19769   fi
19770   for depmode in $am_compiler_list; do
19771     # Setup a source with many dependencies, because some compilers
19772     # like to wrap large dependency lists on column 80 (with \), and
19773     # we should not choose a depcomp mode which is confused by this.
19774     #
19775     # We need to recreate these files for each test, as the compiler may
19776     # overwrite some of them when testing with obscure command lines.
19777     # This happens at least with the AIX C compiler.
19778     : > sub/conftest.c
19779     for i in 1 2 3 4 5 6; do
19780       echo '#include "conftst'$i'.h"' >> sub/conftest.c
19781       : > sub/conftst$i.h
19782     done
19783     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19784
19785     case $depmode in
19786     nosideeffect)
19787       # after this tag, mechanisms are not by side-effect, so they'll
19788       # only be used when explicitly requested
19789       if test "x$enable_dependency_tracking" = xyes; then
19790         continue
19791       else
19792         break
19793       fi
19794       ;;
19795     none) break ;;
19796     esac
19797     # We check with `-c' and `-o' for the sake of the "dashmstdout"
19798     # mode.  It turns out that the SunPro C++ compiler does not properly
19799     # handle `-M -o', and we need to detect this.
19800     if depmode=$depmode \
19801        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19802        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19803        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19804          >/dev/null 2>conftest.err &&
19805        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19806        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19807        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19808       # icc doesn't choke on unknown options, it will just issue warnings
19809       # (even with -Werror).  So we grep stderr for any message
19810       # that says an option was ignored.
19811       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
19812         am_cv_CC_dependencies_compiler_type=$depmode
19813         break
19814       fi
19815     fi
19816   done
19817
19818   cd ..
19819   rm -rf conftest.dir
19820 else
19821   am_cv_CC_dependencies_compiler_type=none
19822 fi
19823
19824 fi
19825 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19826 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19827 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19828
19829
19830
19831 if
19832   test "x$enable_dependency_tracking" != xno \
19833   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19834   am__fastdepCC_TRUE=
19835   am__fastdepCC_FALSE='#'
19836 else
19837   am__fastdepCC_TRUE='#'
19838   am__fastdepCC_FALSE=
19839 fi
19840
19841
19842 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
19843 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
19844 # Just in case
19845 sleep 1
19846 echo timestamp > conftest.file
19847 # Do `set' in a subshell so we don't clobber the current shell's
19848 # arguments.  Must try -L first in case configure is actually a
19849 # symlink; some systems play weird games with the mod time of symlinks
19850 # (eg FreeBSD returns the mod time of the symlink's containing
19851 # directory).
19852 if (
19853    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
19854    if test "$*" = "X"; then
19855       # -L didn't work.
19856       set X `ls -t $srcdir/configure conftest.file`
19857    fi
19858    rm -f conftest.file
19859    if test "$*" != "X $srcdir/configure conftest.file" \
19860       && test "$*" != "X conftest.file $srcdir/configure"; then
19861
19862       # If neither matched, then we have a broken ls.  This can happen
19863       # if, for instance, CONFIG_SHELL is bash and it inherits a
19864       # broken ls alias from the environment.  This has actually
19865       # happened.  Such a system could not be considered "sane".
19866       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
19867 alias in your environment" >&5
19868 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
19869 alias in your environment" >&2;}
19870    { (exit 1); exit 1; }; }
19871    fi
19872
19873    test "$2" = conftest.file
19874    )
19875 then
19876    # Ok.
19877    :
19878 else
19879    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
19880 Check your system clock" >&5
19881 echo "$as_me: error: newly created file is older than distributed files!
19882 Check your system clock" >&2;}
19883    { (exit 1); exit 1; }; }
19884 fi
19885 echo "$as_me:$LINENO: result: yes" >&5
19886 echo "${ECHO_T}yes" >&6
19887 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19888 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
19889 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
19890 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
19891   echo $ECHO_N "(cached) $ECHO_C" >&6
19892 else
19893   cat >conftest.make <<\_ACEOF
19894 all:
19895         @echo 'ac_maketemp="$(MAKE)"'
19896 _ACEOF
19897 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19898 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
19899 if test -n "$ac_maketemp"; then
19900   eval ac_cv_prog_make_${ac_make}_set=yes
19901 else
19902   eval ac_cv_prog_make_${ac_make}_set=no
19903 fi
19904 rm -f conftest.make
19905 fi
19906 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
19907   echo "$as_me:$LINENO: result: yes" >&5
19908 echo "${ECHO_T}yes" >&6
19909   SET_MAKE=
19910 else
19911   echo "$as_me:$LINENO: result: no" >&5
19912 echo "${ECHO_T}no" >&6
19913   SET_MAKE="MAKE=${MAKE-make}"
19914 fi
19915
19916
19917 # Check architecture signature
19918
19919 # Check for the architecture
19920 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19921 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19922 if test "${ac_cv_c_bigendian+set}" = set; then
19923   echo $ECHO_N "(cached) $ECHO_C" >&6
19924 else
19925   # See if sys/param.h defines the BYTE_ORDER macro.
19926 cat >conftest.$ac_ext <<_ACEOF
19927 /* confdefs.h.  */
19928 _ACEOF
19929 cat confdefs.h >>conftest.$ac_ext
19930 cat >>conftest.$ac_ext <<_ACEOF
19931 /* end confdefs.h.  */
19932 #include <sys/types.h>
19933 #include <sys/param.h>
19934
19935 int
19936 main ()
19937 {
19938 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19939  bogus endian macros
19940 #endif
19941
19942   ;
19943   return 0;
19944 }
19945 _ACEOF
19946 rm -f conftest.$ac_objext
19947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19948   (eval $ac_compile) 2>conftest.er1
19949   ac_status=$?
19950   grep -v '^ *+' conftest.er1 >conftest.err
19951   rm -f conftest.er1
19952   cat conftest.err >&5
19953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954   (exit $ac_status); } &&
19955          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19957   (eval $ac_try) 2>&5
19958   ac_status=$?
19959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19960   (exit $ac_status); }; } &&
19961          { ac_try='test -s conftest.$ac_objext'
19962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19963   (eval $ac_try) 2>&5
19964   ac_status=$?
19965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19966   (exit $ac_status); }; }; then
19967   # It does; now see whether it defined to BIG_ENDIAN or not.
19968 cat >conftest.$ac_ext <<_ACEOF
19969 /* confdefs.h.  */
19970 _ACEOF
19971 cat confdefs.h >>conftest.$ac_ext
19972 cat >>conftest.$ac_ext <<_ACEOF
19973 /* end confdefs.h.  */
19974 #include <sys/types.h>
19975 #include <sys/param.h>
19976
19977 int
19978 main ()
19979 {
19980 #if BYTE_ORDER != BIG_ENDIAN
19981  not big endian
19982 #endif
19983
19984   ;
19985   return 0;
19986 }
19987 _ACEOF
19988 rm -f conftest.$ac_objext
19989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19990   (eval $ac_compile) 2>conftest.er1
19991   ac_status=$?
19992   grep -v '^ *+' conftest.er1 >conftest.err
19993   rm -f conftest.er1
19994   cat conftest.err >&5
19995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996   (exit $ac_status); } &&
19997          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19999   (eval $ac_try) 2>&5
20000   ac_status=$?
20001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002   (exit $ac_status); }; } &&
20003          { ac_try='test -s conftest.$ac_objext'
20004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20005   (eval $ac_try) 2>&5
20006   ac_status=$?
20007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008   (exit $ac_status); }; }; then
20009   ac_cv_c_bigendian=yes
20010 else
20011   echo "$as_me: failed program was:" >&5
20012 sed 's/^/| /' conftest.$ac_ext >&5
20013
20014 ac_cv_c_bigendian=no
20015 fi
20016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20017 else
20018   echo "$as_me: failed program was:" >&5
20019 sed 's/^/| /' conftest.$ac_ext >&5
20020
20021 # It does not; compile a test program.
20022 if test "$cross_compiling" = yes; then
20023   # try to guess the endianness by grepping values into an object file
20024   ac_cv_c_bigendian=unknown
20025   cat >conftest.$ac_ext <<_ACEOF
20026 /* confdefs.h.  */
20027 _ACEOF
20028 cat confdefs.h >>conftest.$ac_ext
20029 cat >>conftest.$ac_ext <<_ACEOF
20030 /* end confdefs.h.  */
20031 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20032 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20033 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20034 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20035 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20036 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20037 int
20038 main ()
20039 {
20040  _ascii (); _ebcdic ();
20041   ;
20042   return 0;
20043 }
20044 _ACEOF
20045 rm -f conftest.$ac_objext
20046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20047   (eval $ac_compile) 2>conftest.er1
20048   ac_status=$?
20049   grep -v '^ *+' conftest.er1 >conftest.err
20050   rm -f conftest.er1
20051   cat conftest.err >&5
20052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053   (exit $ac_status); } &&
20054          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20056   (eval $ac_try) 2>&5
20057   ac_status=$?
20058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059   (exit $ac_status); }; } &&
20060          { ac_try='test -s conftest.$ac_objext'
20061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20062   (eval $ac_try) 2>&5
20063   ac_status=$?
20064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065   (exit $ac_status); }; }; then
20066   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20067   ac_cv_c_bigendian=yes
20068 fi
20069 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20070   if test "$ac_cv_c_bigendian" = unknown; then
20071     ac_cv_c_bigendian=no
20072   else
20073     # finding both strings is unlikely to happen, but who knows?
20074     ac_cv_c_bigendian=unknown
20075   fi
20076 fi
20077 else
20078   echo "$as_me: failed program was:" >&5
20079 sed 's/^/| /' conftest.$ac_ext >&5
20080
20081 fi
20082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20083 else
20084   cat >conftest.$ac_ext <<_ACEOF
20085 /* confdefs.h.  */
20086 _ACEOF
20087 cat confdefs.h >>conftest.$ac_ext
20088 cat >>conftest.$ac_ext <<_ACEOF
20089 /* end confdefs.h.  */
20090 int
20091 main ()
20092 {
20093   /* Are we little or big endian?  From Harbison&Steele.  */
20094   union
20095   {
20096     long l;
20097     char c[sizeof (long)];
20098   } u;
20099   u.l = 1;
20100   exit (u.c[sizeof (long) - 1] == 1);
20101 }
20102 _ACEOF
20103 rm -f conftest$ac_exeext
20104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20105   (eval $ac_link) 2>&5
20106   ac_status=$?
20107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_cv_c_bigendian=no
20115 else
20116   echo "$as_me: program exited with status $ac_status" >&5
20117 echo "$as_me: failed program was:" >&5
20118 sed 's/^/| /' conftest.$ac_ext >&5
20119
20120 ( exit $ac_status )
20121 ac_cv_c_bigendian=yes
20122 fi
20123 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20124 fi
20125 fi
20126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20127 fi
20128 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20129 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20130 case $ac_cv_c_bigendian in
20131   yes)
20132     endian=1 ;;
20133   no)
20134     endian=0 ;;
20135   *)
20136     { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
20137 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
20138    { (exit 1); exit 1; }; } ;;
20139 esac
20140
20141
20142 cat >>confdefs.h <<_ACEOF
20143 #define GRAS_BIGENDIAN $endian
20144 _ACEOF
20145
20146
20147 echo "$as_me:$LINENO: checking size of char" >&5
20148 echo $ECHO_N "checking size of char... $ECHO_C" >&6
20149     if test "${ac_cv_sizeof_char+set}" = set; then
20150   echo $ECHO_N "(cached) $ECHO_C" >&6
20151 else
20152   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20153    cat >conftest.$ac_ext <<_ACEOF
20154 /* confdefs.h.  */
20155 _ACEOF
20156 cat confdefs.h >>conftest.$ac_ext
20157 cat >>conftest.$ac_ext <<_ACEOF
20158 /* end confdefs.h.  */
20159 #include "confdefs.h"
20160    #include <sys/types.h>
20161
20162
20163 int
20164 main ()
20165 {
20166 switch (0) case 0: case (sizeof (char) == $ac_size):;
20167   ;
20168   return 0;
20169 }
20170 _ACEOF
20171 rm -f conftest.$ac_objext
20172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20173   (eval $ac_compile) 2>conftest.er1
20174   ac_status=$?
20175   grep -v '^ *+' conftest.er1 >conftest.err
20176   rm -f conftest.er1
20177   cat conftest.err >&5
20178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20179   (exit $ac_status); } &&
20180          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20182   (eval $ac_try) 2>&5
20183   ac_status=$?
20184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185   (exit $ac_status); }; } &&
20186          { ac_try='test -s conftest.$ac_objext'
20187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20188   (eval $ac_try) 2>&5
20189   ac_status=$?
20190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191   (exit $ac_status); }; }; then
20192   ac_cv_sizeof_char=$ac_size
20193 else
20194   echo "$as_me: failed program was:" >&5
20195 sed 's/^/| /' conftest.$ac_ext >&5
20196
20197 fi
20198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20199    if test x$ac_cv_sizeof_char != x ; then break; fi
20200   done
20201
20202 fi
20203
20204
20205 unspecif=$ac_cv_sizeof_char
20206 if test x$unspecif = x ; then
20207   { { echo "$as_me:$LINENO: error: cannot determine a size for char" >&5
20208 echo "$as_me: error: cannot determine a size for char" >&2;}
20209    { (exit 1); exit 1; }; }
20210 fi
20211
20212     if test "${ac_cv_sizeof_signed_char+set}" = set; then
20213   echo $ECHO_N "(cached) $ECHO_C" >&6
20214 else
20215   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20216    cat >conftest.$ac_ext <<_ACEOF
20217 /* confdefs.h.  */
20218 _ACEOF
20219 cat confdefs.h >>conftest.$ac_ext
20220 cat >>conftest.$ac_ext <<_ACEOF
20221 /* end confdefs.h.  */
20222 #include "confdefs.h"
20223    #include <sys/types.h>
20224
20225
20226 int
20227 main ()
20228 {
20229 switch (0) case 0: case (sizeof (signed char) == $ac_size):;
20230   ;
20231   return 0;
20232 }
20233 _ACEOF
20234 rm -f conftest.$ac_objext
20235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20236   (eval $ac_compile) 2>conftest.er1
20237   ac_status=$?
20238   grep -v '^ *+' conftest.er1 >conftest.err
20239   rm -f conftest.er1
20240   cat conftest.err >&5
20241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242   (exit $ac_status); } &&
20243          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20245   (eval $ac_try) 2>&5
20246   ac_status=$?
20247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248   (exit $ac_status); }; } &&
20249          { ac_try='test -s conftest.$ac_objext'
20250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20251   (eval $ac_try) 2>&5
20252   ac_status=$?
20253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254   (exit $ac_status); }; }; then
20255   ac_cv_sizeof_signed_char=$ac_size
20256 else
20257   echo "$as_me: failed program was:" >&5
20258 sed 's/^/| /' conftest.$ac_ext >&5
20259
20260 fi
20261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20262    if test x$ac_cv_sizeof_signed_char != x ; then break; fi
20263   done
20264
20265 fi
20266
20267
20268 signed=$ac_cv_sizeof_signed_char
20269 if test x$signed = x ; then
20270   { { echo "$as_me:$LINENO: error: cannot determine a size for signed char" >&5
20271 echo "$as_me: error: cannot determine a size for signed char" >&2;}
20272    { (exit 1); exit 1; }; }
20273 fi
20274 if test x$unspecif != x$signed ; then
20275   { { echo "$as_me:$LINENO: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&5
20276 echo "$as_me: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&2;}
20277    { (exit 1); exit 1; }; }
20278 fi
20279
20280     if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
20281   echo $ECHO_N "(cached) $ECHO_C" >&6
20282 else
20283   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20284    cat >conftest.$ac_ext <<_ACEOF
20285 /* confdefs.h.  */
20286 _ACEOF
20287 cat confdefs.h >>conftest.$ac_ext
20288 cat >>conftest.$ac_ext <<_ACEOF
20289 /* end confdefs.h.  */
20290 #include "confdefs.h"
20291    #include <sys/types.h>
20292
20293
20294 int
20295 main ()
20296 {
20297 switch (0) case 0: case (sizeof (unsigned char) == $ac_size):;
20298   ;
20299   return 0;
20300 }
20301 _ACEOF
20302 rm -f conftest.$ac_objext
20303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20304   (eval $ac_compile) 2>conftest.er1
20305   ac_status=$?
20306   grep -v '^ *+' conftest.er1 >conftest.err
20307   rm -f conftest.er1
20308   cat conftest.err >&5
20309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310   (exit $ac_status); } &&
20311          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20313   (eval $ac_try) 2>&5
20314   ac_status=$?
20315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316   (exit $ac_status); }; } &&
20317          { ac_try='test -s conftest.$ac_objext'
20318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20319   (eval $ac_try) 2>&5
20320   ac_status=$?
20321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322   (exit $ac_status); }; }; then
20323   ac_cv_sizeof_unsigned_char=$ac_size
20324 else
20325   echo "$as_me: failed program was:" >&5
20326 sed 's/^/| /' conftest.$ac_ext >&5
20327
20328 fi
20329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20330    if test x$ac_cv_sizeof_unsigned_char != x ; then break; fi
20331   done
20332
20333 fi
20334
20335
20336 unsigned=$ac_cv_sizeof_unsigned_char
20337 if test x$unsigned = x ; then
20338   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned char" >&5
20339 echo "$as_me: error: cannot determine a size for unsigned char" >&2;}
20340    { (exit 1); exit 1; }; }
20341 fi
20342 if test x$unsigned != x$signed ; then
20343   { { echo "$as_me:$LINENO: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&5
20344 echo "$as_me: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&2;}
20345    { (exit 1); exit 1; }; }
20346 fi
20347
20348 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
20349 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6
20350
20351 cat >>confdefs.h <<_ACEOF
20352 #define SIZEOF_CHAR $ac_cv_sizeof_unsigned_char
20353 _ACEOF
20354
20355
20356 echo "$as_me:$LINENO: checking size of short int" >&5
20357 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
20358     if test "${ac_cv_sizeof_short_int+set}" = set; then
20359   echo $ECHO_N "(cached) $ECHO_C" >&6
20360 else
20361   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20362    cat >conftest.$ac_ext <<_ACEOF
20363 /* confdefs.h.  */
20364 _ACEOF
20365 cat confdefs.h >>conftest.$ac_ext
20366 cat >>conftest.$ac_ext <<_ACEOF
20367 /* end confdefs.h.  */
20368 #include "confdefs.h"
20369    #include <sys/types.h>
20370
20371
20372 int
20373 main ()
20374 {
20375 switch (0) case 0: case (sizeof (short int) == $ac_size):;
20376   ;
20377   return 0;
20378 }
20379 _ACEOF
20380 rm -f conftest.$ac_objext
20381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20382   (eval $ac_compile) 2>conftest.er1
20383   ac_status=$?
20384   grep -v '^ *+' conftest.er1 >conftest.err
20385   rm -f conftest.er1
20386   cat conftest.err >&5
20387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20388   (exit $ac_status); } &&
20389          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20391   (eval $ac_try) 2>&5
20392   ac_status=$?
20393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394   (exit $ac_status); }; } &&
20395          { ac_try='test -s conftest.$ac_objext'
20396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20397   (eval $ac_try) 2>&5
20398   ac_status=$?
20399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400   (exit $ac_status); }; }; then
20401   ac_cv_sizeof_short_int=$ac_size
20402 else
20403   echo "$as_me: failed program was:" >&5
20404 sed 's/^/| /' conftest.$ac_ext >&5
20405
20406 fi
20407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20408    if test x$ac_cv_sizeof_short_int != x ; then break; fi
20409   done
20410
20411 fi
20412
20413
20414 unspecif=$ac_cv_sizeof_short_int
20415 if test x$unspecif = x ; then
20416   { { echo "$as_me:$LINENO: error: cannot determine a size for short int" >&5
20417 echo "$as_me: error: cannot determine a size for short int" >&2;}
20418    { (exit 1); exit 1; }; }
20419 fi
20420
20421     if test "${ac_cv_sizeof_signed_short_int+set}" = set; then
20422   echo $ECHO_N "(cached) $ECHO_C" >&6
20423 else
20424   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20425    cat >conftest.$ac_ext <<_ACEOF
20426 /* confdefs.h.  */
20427 _ACEOF
20428 cat confdefs.h >>conftest.$ac_ext
20429 cat >>conftest.$ac_ext <<_ACEOF
20430 /* end confdefs.h.  */
20431 #include "confdefs.h"
20432    #include <sys/types.h>
20433
20434
20435 int
20436 main ()
20437 {
20438 switch (0) case 0: case (sizeof (signed short int) == $ac_size):;
20439   ;
20440   return 0;
20441 }
20442 _ACEOF
20443 rm -f conftest.$ac_objext
20444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20445   (eval $ac_compile) 2>conftest.er1
20446   ac_status=$?
20447   grep -v '^ *+' conftest.er1 >conftest.err
20448   rm -f conftest.er1
20449   cat conftest.err >&5
20450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451   (exit $ac_status); } &&
20452          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20454   (eval $ac_try) 2>&5
20455   ac_status=$?
20456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457   (exit $ac_status); }; } &&
20458          { ac_try='test -s conftest.$ac_objext'
20459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20460   (eval $ac_try) 2>&5
20461   ac_status=$?
20462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463   (exit $ac_status); }; }; then
20464   ac_cv_sizeof_signed_short_int=$ac_size
20465 else
20466   echo "$as_me: failed program was:" >&5
20467 sed 's/^/| /' conftest.$ac_ext >&5
20468
20469 fi
20470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20471    if test x$ac_cv_sizeof_signed_short_int != x ; then break; fi
20472   done
20473
20474 fi
20475
20476
20477 signed=$ac_cv_sizeof_signed_short_int
20478 if test x$signed = x ; then
20479   { { echo "$as_me:$LINENO: error: cannot determine a size for signed short int" >&5
20480 echo "$as_me: error: cannot determine a size for signed short int" >&2;}
20481    { (exit 1); exit 1; }; }
20482 fi
20483 if test x$unspecif != x$signed ; then
20484   { { echo "$as_me:$LINENO: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&5
20485 echo "$as_me: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&2;}
20486    { (exit 1); exit 1; }; }
20487 fi
20488
20489     if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
20490   echo $ECHO_N "(cached) $ECHO_C" >&6
20491 else
20492   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20493    cat >conftest.$ac_ext <<_ACEOF
20494 /* confdefs.h.  */
20495 _ACEOF
20496 cat confdefs.h >>conftest.$ac_ext
20497 cat >>conftest.$ac_ext <<_ACEOF
20498 /* end confdefs.h.  */
20499 #include "confdefs.h"
20500    #include <sys/types.h>
20501
20502
20503 int
20504 main ()
20505 {
20506 switch (0) case 0: case (sizeof (unsigned short int) == $ac_size):;
20507   ;
20508   return 0;
20509 }
20510 _ACEOF
20511 rm -f conftest.$ac_objext
20512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20513   (eval $ac_compile) 2>conftest.er1
20514   ac_status=$?
20515   grep -v '^ *+' conftest.er1 >conftest.err
20516   rm -f conftest.er1
20517   cat conftest.err >&5
20518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519   (exit $ac_status); } &&
20520          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20522   (eval $ac_try) 2>&5
20523   ac_status=$?
20524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20525   (exit $ac_status); }; } &&
20526          { ac_try='test -s conftest.$ac_objext'
20527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20528   (eval $ac_try) 2>&5
20529   ac_status=$?
20530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531   (exit $ac_status); }; }; then
20532   ac_cv_sizeof_unsigned_short_int=$ac_size
20533 else
20534   echo "$as_me: failed program was:" >&5
20535 sed 's/^/| /' conftest.$ac_ext >&5
20536
20537 fi
20538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20539    if test x$ac_cv_sizeof_unsigned_short_int != x ; then break; fi
20540   done
20541
20542 fi
20543
20544
20545 unsigned=$ac_cv_sizeof_unsigned_short_int
20546 if test x$unsigned = x ; then
20547   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned short int" >&5
20548 echo "$as_me: error: cannot determine a size for unsigned short int" >&2;}
20549    { (exit 1); exit 1; }; }
20550 fi
20551 if test x$unsigned != x$signed ; then
20552   { { echo "$as_me:$LINENO: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&5
20553 echo "$as_me: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&2;}
20554    { (exit 1); exit 1; }; }
20555 fi
20556
20557 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
20558 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6
20559
20560 cat >>confdefs.h <<_ACEOF
20561 #define SIZEOF_SHORT_INT $ac_cv_sizeof_unsigned_short_int
20562 _ACEOF
20563
20564
20565 echo "$as_me:$LINENO: checking size of int" >&5
20566 echo $ECHO_N "checking size of int... $ECHO_C" >&6
20567     if test "${ac_cv_sizeof_int+set}" = set; then
20568   echo $ECHO_N "(cached) $ECHO_C" >&6
20569 else
20570   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20571    cat >conftest.$ac_ext <<_ACEOF
20572 /* confdefs.h.  */
20573 _ACEOF
20574 cat confdefs.h >>conftest.$ac_ext
20575 cat >>conftest.$ac_ext <<_ACEOF
20576 /* end confdefs.h.  */
20577 #include "confdefs.h"
20578    #include <sys/types.h>
20579
20580
20581 int
20582 main ()
20583 {
20584 switch (0) case 0: case (sizeof (int) == $ac_size):;
20585   ;
20586   return 0;
20587 }
20588 _ACEOF
20589 rm -f conftest.$ac_objext
20590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20591   (eval $ac_compile) 2>conftest.er1
20592   ac_status=$?
20593   grep -v '^ *+' conftest.er1 >conftest.err
20594   rm -f conftest.er1
20595   cat conftest.err >&5
20596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597   (exit $ac_status); } &&
20598          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20600   (eval $ac_try) 2>&5
20601   ac_status=$?
20602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20603   (exit $ac_status); }; } &&
20604          { ac_try='test -s conftest.$ac_objext'
20605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20606   (eval $ac_try) 2>&5
20607   ac_status=$?
20608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609   (exit $ac_status); }; }; then
20610   ac_cv_sizeof_int=$ac_size
20611 else
20612   echo "$as_me: failed program was:" >&5
20613 sed 's/^/| /' conftest.$ac_ext >&5
20614
20615 fi
20616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20617    if test x$ac_cv_sizeof_int != x ; then break; fi
20618   done
20619
20620 fi
20621
20622
20623 unspecif=$ac_cv_sizeof_int
20624 if test x$unspecif = x ; then
20625   { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
20626 echo "$as_me: error: cannot determine a size for int" >&2;}
20627    { (exit 1); exit 1; }; }
20628 fi
20629
20630     if test "${ac_cv_sizeof_signed_int+set}" = set; then
20631   echo $ECHO_N "(cached) $ECHO_C" >&6
20632 else
20633   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20634    cat >conftest.$ac_ext <<_ACEOF
20635 /* confdefs.h.  */
20636 _ACEOF
20637 cat confdefs.h >>conftest.$ac_ext
20638 cat >>conftest.$ac_ext <<_ACEOF
20639 /* end confdefs.h.  */
20640 #include "confdefs.h"
20641    #include <sys/types.h>
20642
20643
20644 int
20645 main ()
20646 {
20647 switch (0) case 0: case (sizeof (signed int) == $ac_size):;
20648   ;
20649   return 0;
20650 }
20651 _ACEOF
20652 rm -f conftest.$ac_objext
20653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20654   (eval $ac_compile) 2>conftest.er1
20655   ac_status=$?
20656   grep -v '^ *+' conftest.er1 >conftest.err
20657   rm -f conftest.er1
20658   cat conftest.err >&5
20659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20660   (exit $ac_status); } &&
20661          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20663   (eval $ac_try) 2>&5
20664   ac_status=$?
20665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20666   (exit $ac_status); }; } &&
20667          { ac_try='test -s conftest.$ac_objext'
20668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20669   (eval $ac_try) 2>&5
20670   ac_status=$?
20671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20672   (exit $ac_status); }; }; then
20673   ac_cv_sizeof_signed_int=$ac_size
20674 else
20675   echo "$as_me: failed program was:" >&5
20676 sed 's/^/| /' conftest.$ac_ext >&5
20677
20678 fi
20679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20680    if test x$ac_cv_sizeof_signed_int != x ; then break; fi
20681   done
20682
20683 fi
20684
20685
20686 signed=$ac_cv_sizeof_signed_int
20687 if test x$signed = x ; then
20688   { { echo "$as_me:$LINENO: error: cannot determine a size for signed int" >&5
20689 echo "$as_me: error: cannot determine a size for signed int" >&2;}
20690    { (exit 1); exit 1; }; }
20691 fi
20692 if test x$unspecif != x$signed ; then
20693   { { echo "$as_me:$LINENO: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&5
20694 echo "$as_me: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&2;}
20695    { (exit 1); exit 1; }; }
20696 fi
20697
20698     if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
20699   echo $ECHO_N "(cached) $ECHO_C" >&6
20700 else
20701   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20702    cat >conftest.$ac_ext <<_ACEOF
20703 /* confdefs.h.  */
20704 _ACEOF
20705 cat confdefs.h >>conftest.$ac_ext
20706 cat >>conftest.$ac_ext <<_ACEOF
20707 /* end confdefs.h.  */
20708 #include "confdefs.h"
20709    #include <sys/types.h>
20710
20711
20712 int
20713 main ()
20714 {
20715 switch (0) case 0: case (sizeof (unsigned int) == $ac_size):;
20716   ;
20717   return 0;
20718 }
20719 _ACEOF
20720 rm -f conftest.$ac_objext
20721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20722   (eval $ac_compile) 2>conftest.er1
20723   ac_status=$?
20724   grep -v '^ *+' conftest.er1 >conftest.err
20725   rm -f conftest.er1
20726   cat conftest.err >&5
20727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728   (exit $ac_status); } &&
20729          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20731   (eval $ac_try) 2>&5
20732   ac_status=$?
20733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20734   (exit $ac_status); }; } &&
20735          { ac_try='test -s conftest.$ac_objext'
20736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20737   (eval $ac_try) 2>&5
20738   ac_status=$?
20739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740   (exit $ac_status); }; }; then
20741   ac_cv_sizeof_unsigned_int=$ac_size
20742 else
20743   echo "$as_me: failed program was:" >&5
20744 sed 's/^/| /' conftest.$ac_ext >&5
20745
20746 fi
20747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20748    if test x$ac_cv_sizeof_unsigned_int != x ; then break; fi
20749   done
20750
20751 fi
20752
20753
20754 unsigned=$ac_cv_sizeof_unsigned_int
20755 if test x$unsigned = x ; then
20756   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned int" >&5
20757 echo "$as_me: error: cannot determine a size for unsigned int" >&2;}
20758    { (exit 1); exit 1; }; }
20759 fi
20760 if test x$unsigned != x$signed ; then
20761   { { echo "$as_me:$LINENO: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&5
20762 echo "$as_me: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&2;}
20763    { (exit 1); exit 1; }; }
20764 fi
20765
20766 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
20767 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6
20768
20769 cat >>confdefs.h <<_ACEOF
20770 #define SIZEOF_INT $ac_cv_sizeof_unsigned_int
20771 _ACEOF
20772
20773
20774 echo "$as_me:$LINENO: checking size of long int" >&5
20775 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
20776     if test "${ac_cv_sizeof_long_int+set}" = set; then
20777   echo $ECHO_N "(cached) $ECHO_C" >&6
20778 else
20779   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20780    cat >conftest.$ac_ext <<_ACEOF
20781 /* confdefs.h.  */
20782 _ACEOF
20783 cat confdefs.h >>conftest.$ac_ext
20784 cat >>conftest.$ac_ext <<_ACEOF
20785 /* end confdefs.h.  */
20786 #include "confdefs.h"
20787    #include <sys/types.h>
20788
20789
20790 int
20791 main ()
20792 {
20793 switch (0) case 0: case (sizeof (long int) == $ac_size):;
20794   ;
20795   return 0;
20796 }
20797 _ACEOF
20798 rm -f conftest.$ac_objext
20799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20800   (eval $ac_compile) 2>conftest.er1
20801   ac_status=$?
20802   grep -v '^ *+' conftest.er1 >conftest.err
20803   rm -f conftest.er1
20804   cat conftest.err >&5
20805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806   (exit $ac_status); } &&
20807          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20809   (eval $ac_try) 2>&5
20810   ac_status=$?
20811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812   (exit $ac_status); }; } &&
20813          { ac_try='test -s conftest.$ac_objext'
20814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20815   (eval $ac_try) 2>&5
20816   ac_status=$?
20817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818   (exit $ac_status); }; }; then
20819   ac_cv_sizeof_long_int=$ac_size
20820 else
20821   echo "$as_me: failed program was:" >&5
20822 sed 's/^/| /' conftest.$ac_ext >&5
20823
20824 fi
20825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20826    if test x$ac_cv_sizeof_long_int != x ; then break; fi
20827   done
20828
20829 fi
20830
20831
20832 unspecif=$ac_cv_sizeof_long_int
20833 if test x$unspecif = x ; then
20834   { { echo "$as_me:$LINENO: error: cannot determine a size for long int" >&5
20835 echo "$as_me: error: cannot determine a size for long int" >&2;}
20836    { (exit 1); exit 1; }; }
20837 fi
20838
20839     if test "${ac_cv_sizeof_signed_long_int+set}" = set; then
20840   echo $ECHO_N "(cached) $ECHO_C" >&6
20841 else
20842   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20843    cat >conftest.$ac_ext <<_ACEOF
20844 /* confdefs.h.  */
20845 _ACEOF
20846 cat confdefs.h >>conftest.$ac_ext
20847 cat >>conftest.$ac_ext <<_ACEOF
20848 /* end confdefs.h.  */
20849 #include "confdefs.h"
20850    #include <sys/types.h>
20851
20852
20853 int
20854 main ()
20855 {
20856 switch (0) case 0: case (sizeof (signed long int) == $ac_size):;
20857   ;
20858   return 0;
20859 }
20860 _ACEOF
20861 rm -f conftest.$ac_objext
20862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20863   (eval $ac_compile) 2>conftest.er1
20864   ac_status=$?
20865   grep -v '^ *+' conftest.er1 >conftest.err
20866   rm -f conftest.er1
20867   cat conftest.err >&5
20868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869   (exit $ac_status); } &&
20870          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20872   (eval $ac_try) 2>&5
20873   ac_status=$?
20874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875   (exit $ac_status); }; } &&
20876          { ac_try='test -s conftest.$ac_objext'
20877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20878   (eval $ac_try) 2>&5
20879   ac_status=$?
20880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881   (exit $ac_status); }; }; then
20882   ac_cv_sizeof_signed_long_int=$ac_size
20883 else
20884   echo "$as_me: failed program was:" >&5
20885 sed 's/^/| /' conftest.$ac_ext >&5
20886
20887 fi
20888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20889    if test x$ac_cv_sizeof_signed_long_int != x ; then break; fi
20890   done
20891
20892 fi
20893
20894
20895 signed=$ac_cv_sizeof_signed_long_int
20896 if test x$signed = x ; then
20897   { { echo "$as_me:$LINENO: error: cannot determine a size for signed long int" >&5
20898 echo "$as_me: error: cannot determine a size for signed long int" >&2;}
20899    { (exit 1); exit 1; }; }
20900 fi
20901 if test x$unspecif != x$signed ; then
20902   { { echo "$as_me:$LINENO: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&5
20903 echo "$as_me: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&2;}
20904    { (exit 1); exit 1; }; }
20905 fi
20906
20907     if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
20908   echo $ECHO_N "(cached) $ECHO_C" >&6
20909 else
20910   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20911    cat >conftest.$ac_ext <<_ACEOF
20912 /* confdefs.h.  */
20913 _ACEOF
20914 cat confdefs.h >>conftest.$ac_ext
20915 cat >>conftest.$ac_ext <<_ACEOF
20916 /* end confdefs.h.  */
20917 #include "confdefs.h"
20918    #include <sys/types.h>
20919
20920
20921 int
20922 main ()
20923 {
20924 switch (0) case 0: case (sizeof (unsigned long int) == $ac_size):;
20925   ;
20926   return 0;
20927 }
20928 _ACEOF
20929 rm -f conftest.$ac_objext
20930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20931   (eval $ac_compile) 2>conftest.er1
20932   ac_status=$?
20933   grep -v '^ *+' conftest.er1 >conftest.err
20934   rm -f conftest.er1
20935   cat conftest.err >&5
20936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20937   (exit $ac_status); } &&
20938          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20940   (eval $ac_try) 2>&5
20941   ac_status=$?
20942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20943   (exit $ac_status); }; } &&
20944          { ac_try='test -s conftest.$ac_objext'
20945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20946   (eval $ac_try) 2>&5
20947   ac_status=$?
20948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20949   (exit $ac_status); }; }; then
20950   ac_cv_sizeof_unsigned_long_int=$ac_size
20951 else
20952   echo "$as_me: failed program was:" >&5
20953 sed 's/^/| /' conftest.$ac_ext >&5
20954
20955 fi
20956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20957    if test x$ac_cv_sizeof_unsigned_long_int != x ; then break; fi
20958   done
20959
20960 fi
20961
20962
20963 unsigned=$ac_cv_sizeof_unsigned_long_int
20964 if test x$unsigned = x ; then
20965   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long int" >&5
20966 echo "$as_me: error: cannot determine a size for unsigned long int" >&2;}
20967    { (exit 1); exit 1; }; }
20968 fi
20969 if test x$unsigned != x$signed ; then
20970   { { echo "$as_me:$LINENO: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&5
20971 echo "$as_me: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&2;}
20972    { (exit 1); exit 1; }; }
20973 fi
20974
20975 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
20976 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6
20977
20978 cat >>confdefs.h <<_ACEOF
20979 #define SIZEOF_LONG_INT $ac_cv_sizeof_unsigned_long_int
20980 _ACEOF
20981
20982
20983 echo "$as_me:$LINENO: checking size of long long int" >&5
20984 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
20985     if test "${ac_cv_sizeof_long_long_int+set}" = set; then
20986   echo $ECHO_N "(cached) $ECHO_C" >&6
20987 else
20988   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20989    cat >conftest.$ac_ext <<_ACEOF
20990 /* confdefs.h.  */
20991 _ACEOF
20992 cat confdefs.h >>conftest.$ac_ext
20993 cat >>conftest.$ac_ext <<_ACEOF
20994 /* end confdefs.h.  */
20995 #include "confdefs.h"
20996    #include <sys/types.h>
20997
20998
20999 int
21000 main ()
21001 {
21002 switch (0) case 0: case (sizeof (long long int) == $ac_size):;
21003   ;
21004   return 0;
21005 }
21006 _ACEOF
21007 rm -f conftest.$ac_objext
21008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21009   (eval $ac_compile) 2>conftest.er1
21010   ac_status=$?
21011   grep -v '^ *+' conftest.er1 >conftest.err
21012   rm -f conftest.er1
21013   cat conftest.err >&5
21014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21015   (exit $ac_status); } &&
21016          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21018   (eval $ac_try) 2>&5
21019   ac_status=$?
21020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021   (exit $ac_status); }; } &&
21022          { ac_try='test -s conftest.$ac_objext'
21023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21024   (eval $ac_try) 2>&5
21025   ac_status=$?
21026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21027   (exit $ac_status); }; }; then
21028   ac_cv_sizeof_long_long_int=$ac_size
21029 else
21030   echo "$as_me: failed program was:" >&5
21031 sed 's/^/| /' conftest.$ac_ext >&5
21032
21033 fi
21034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21035    if test x$ac_cv_sizeof_long_long_int != x ; then break; fi
21036   done
21037
21038 fi
21039
21040
21041 unspecif=$ac_cv_sizeof_long_long_int
21042 if test x$unspecif = x ; then
21043   { { echo "$as_me:$LINENO: error: cannot determine a size for long long int" >&5
21044 echo "$as_me: error: cannot determine a size for long long int" >&2;}
21045    { (exit 1); exit 1; }; }
21046 fi
21047
21048     if test "${ac_cv_sizeof_signed_long_long_int+set}" = set; then
21049   echo $ECHO_N "(cached) $ECHO_C" >&6
21050 else
21051   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
21052    cat >conftest.$ac_ext <<_ACEOF
21053 /* confdefs.h.  */
21054 _ACEOF
21055 cat confdefs.h >>conftest.$ac_ext
21056 cat >>conftest.$ac_ext <<_ACEOF
21057 /* end confdefs.h.  */
21058 #include "confdefs.h"
21059    #include <sys/types.h>
21060
21061
21062 int
21063 main ()
21064 {
21065 switch (0) case 0: case (sizeof (signed long long int) == $ac_size):;
21066   ;
21067   return 0;
21068 }
21069 _ACEOF
21070 rm -f conftest.$ac_objext
21071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21072   (eval $ac_compile) 2>conftest.er1
21073   ac_status=$?
21074   grep -v '^ *+' conftest.er1 >conftest.err
21075   rm -f conftest.er1
21076   cat conftest.err >&5
21077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078   (exit $ac_status); } &&
21079          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21081   (eval $ac_try) 2>&5
21082   ac_status=$?
21083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084   (exit $ac_status); }; } &&
21085          { ac_try='test -s conftest.$ac_objext'
21086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21087   (eval $ac_try) 2>&5
21088   ac_status=$?
21089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21090   (exit $ac_status); }; }; then
21091   ac_cv_sizeof_signed_long_long_int=$ac_size
21092 else
21093   echo "$as_me: failed program was:" >&5
21094 sed 's/^/| /' conftest.$ac_ext >&5
21095
21096 fi
21097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21098    if test x$ac_cv_sizeof_signed_long_long_int != x ; then break; fi
21099   done
21100
21101 fi
21102
21103
21104 signed=$ac_cv_sizeof_signed_long_long_int
21105 if test x$signed = x ; then
21106   { { echo "$as_me:$LINENO: error: cannot determine a size for signed long long int" >&5
21107 echo "$as_me: error: cannot determine a size for signed long long int" >&2;}
21108    { (exit 1); exit 1; }; }
21109 fi
21110 if test x$unspecif != x$signed ; then
21111   { { echo "$as_me:$LINENO: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&5
21112 echo "$as_me: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&2;}
21113    { (exit 1); exit 1; }; }
21114 fi
21115
21116     if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then
21117   echo $ECHO_N "(cached) $ECHO_C" >&6
21118 else
21119   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
21120    cat >conftest.$ac_ext <<_ACEOF
21121 /* confdefs.h.  */
21122 _ACEOF
21123 cat confdefs.h >>conftest.$ac_ext
21124 cat >>conftest.$ac_ext <<_ACEOF
21125 /* end confdefs.h.  */
21126 #include "confdefs.h"
21127    #include <sys/types.h>
21128
21129
21130 int
21131 main ()
21132 {
21133 switch (0) case 0: case (sizeof (unsigned long long int) == $ac_size):;
21134   ;
21135   return 0;
21136 }
21137 _ACEOF
21138 rm -f conftest.$ac_objext
21139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21140   (eval $ac_compile) 2>conftest.er1
21141   ac_status=$?
21142   grep -v '^ *+' conftest.er1 >conftest.err
21143   rm -f conftest.er1
21144   cat conftest.err >&5
21145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146   (exit $ac_status); } &&
21147          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21149   (eval $ac_try) 2>&5
21150   ac_status=$?
21151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152   (exit $ac_status); }; } &&
21153          { ac_try='test -s conftest.$ac_objext'
21154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21155   (eval $ac_try) 2>&5
21156   ac_status=$?
21157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158   (exit $ac_status); }; }; then
21159   ac_cv_sizeof_unsigned_long_long_int=$ac_size
21160 else
21161   echo "$as_me: failed program was:" >&5
21162 sed 's/^/| /' conftest.$ac_ext >&5
21163
21164 fi
21165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21166    if test x$ac_cv_sizeof_unsigned_long_long_int != x ; then break; fi
21167   done
21168
21169 fi
21170
21171
21172 unsigned=$ac_cv_sizeof_unsigned_long_long_int
21173 if test x$unsigned = x ; then
21174   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long long int" >&5
21175 echo "$as_me: error: cannot determine a size for unsigned long long int" >&2;}
21176    { (exit 1); exit 1; }; }
21177 fi
21178 if test x$unsigned != x$signed ; then
21179   { { echo "$as_me:$LINENO: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&5
21180 echo "$as_me: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&2;}
21181    { (exit 1); exit 1; }; }
21182 fi
21183
21184 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
21185 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long_int" >&6
21186
21187 cat >>confdefs.h <<_ACEOF
21188 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_unsigned_long_long_int
21189 _ACEOF
21190
21191
21192
21193
21194 echo "$as_me:$LINENO: checking size of void *" >&5
21195 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
21196     if test "${ac_cv_sizeof_void_p+set}" = set; then
21197   echo $ECHO_N "(cached) $ECHO_C" >&6
21198 else
21199   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
21200    cat >conftest.$ac_ext <<_ACEOF
21201 /* confdefs.h.  */
21202 _ACEOF
21203 cat confdefs.h >>conftest.$ac_ext
21204 cat >>conftest.$ac_ext <<_ACEOF
21205 /* end confdefs.h.  */
21206 #include "confdefs.h"
21207    #include <sys/types.h>
21208
21209
21210 int
21211 main ()
21212 {
21213 switch (0) case 0: case (sizeof (void *) == $ac_size):;
21214   ;
21215   return 0;
21216 }
21217 _ACEOF
21218 rm -f conftest.$ac_objext
21219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21220   (eval $ac_compile) 2>conftest.er1
21221   ac_status=$?
21222   grep -v '^ *+' conftest.er1 >conftest.err
21223   rm -f conftest.er1
21224   cat conftest.err >&5
21225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226   (exit $ac_status); } &&
21227          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21229   (eval $ac_try) 2>&5
21230   ac_status=$?
21231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232   (exit $ac_status); }; } &&
21233          { ac_try='test -s conftest.$ac_objext'
21234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21235   (eval $ac_try) 2>&5
21236   ac_status=$?
21237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238   (exit $ac_status); }; }; then
21239   ac_cv_sizeof_void_p=$ac_size
21240 else
21241   echo "$as_me: failed program was:" >&5
21242 sed 's/^/| /' conftest.$ac_ext >&5
21243
21244 fi
21245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21246    if test x$ac_cv_sizeof_void_p != x ; then break; fi
21247   done
21248
21249 fi
21250
21251
21252 if test x$ac_cv_sizeof_void_p = x ; then
21253   { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
21254 echo "$as_me: error: cannot determine a size for void *" >&2;}
21255    { (exit 1); exit 1; }; }
21256 fi
21257 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
21258 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
21259
21260 cat >>confdefs.h <<_ACEOF
21261 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
21262 _ACEOF
21263
21264
21265 echo "$as_me:$LINENO: checking size of void (*) (void)" >&5
21266 echo $ECHO_N "checking size of void (*) (void)... $ECHO_C" >&6
21267     if test "${ac_cv_sizeof_void_LpR_LvoidR+set}" = set; then
21268   echo $ECHO_N "(cached) $ECHO_C" >&6
21269 else
21270   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
21271    cat >conftest.$ac_ext <<_ACEOF
21272 /* confdefs.h.  */
21273 _ACEOF
21274 cat confdefs.h >>conftest.$ac_ext
21275 cat >>conftest.$ac_ext <<_ACEOF
21276 /* end confdefs.h.  */
21277 #include "confdefs.h"
21278    #include <sys/types.h>
21279
21280
21281 int
21282 main ()
21283 {
21284 switch (0) case 0: case (sizeof (void (*) (void)) == $ac_size):;
21285   ;
21286   return 0;
21287 }
21288 _ACEOF
21289 rm -f conftest.$ac_objext
21290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21291   (eval $ac_compile) 2>conftest.er1
21292   ac_status=$?
21293   grep -v '^ *+' conftest.er1 >conftest.err
21294   rm -f conftest.er1
21295   cat conftest.err >&5
21296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297   (exit $ac_status); } &&
21298          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21300   (eval $ac_try) 2>&5
21301   ac_status=$?
21302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21303   (exit $ac_status); }; } &&
21304          { ac_try='test -s conftest.$ac_objext'
21305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21306   (eval $ac_try) 2>&5
21307   ac_status=$?
21308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21309   (exit $ac_status); }; }; then
21310   ac_cv_sizeof_void_LpR_LvoidR=$ac_size
21311 else
21312   echo "$as_me: failed program was:" >&5
21313 sed 's/^/| /' conftest.$ac_ext >&5
21314
21315 fi
21316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21317    if test x$ac_cv_sizeof_void_LpR_LvoidR != x ; then break; fi
21318   done
21319
21320 fi
21321
21322
21323 if test x$ac_cv_sizeof_void_LpR_LvoidR = x ; then
21324   { { echo "$as_me:$LINENO: error: cannot determine a size for void (*) (void)" >&5
21325 echo "$as_me: error: cannot determine a size for void (*) (void)" >&2;}
21326    { (exit 1); exit 1; }; }
21327 fi
21328 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_LpR_LvoidR" >&5
21329 echo "${ECHO_T}$ac_cv_sizeof_void_LpR_LvoidR" >&6
21330
21331 cat >>confdefs.h <<_ACEOF
21332 #define SIZEOF_VOID__P___VOID_ $ac_cv_sizeof_void_LpR_LvoidR
21333 _ACEOF
21334
21335
21336
21337 echo "$as_me:$LINENO: checking size of float" >&5
21338 echo $ECHO_N "checking size of float... $ECHO_C" >&6
21339     if test "${ac_cv_sizeof_float+set}" = set; then
21340   echo $ECHO_N "(cached) $ECHO_C" >&6
21341 else
21342   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
21343    cat >conftest.$ac_ext <<_ACEOF
21344 /* confdefs.h.  */
21345 _ACEOF
21346 cat confdefs.h >>conftest.$ac_ext
21347 cat >>conftest.$ac_ext <<_ACEOF
21348 /* end confdefs.h.  */
21349 #include "confdefs.h"
21350    #include <sys/types.h>
21351
21352
21353 int
21354 main ()
21355 {
21356 switch (0) case 0: case (sizeof (float) == $ac_size):;
21357   ;
21358   return 0;
21359 }
21360 _ACEOF
21361 rm -f conftest.$ac_objext
21362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21363   (eval $ac_compile) 2>conftest.er1
21364   ac_status=$?
21365   grep -v '^ *+' conftest.er1 >conftest.err
21366   rm -f conftest.er1
21367   cat conftest.err >&5
21368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21369   (exit $ac_status); } &&
21370          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21372   (eval $ac_try) 2>&5
21373   ac_status=$?
21374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21375   (exit $ac_status); }; } &&
21376          { ac_try='test -s conftest.$ac_objext'
21377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21378   (eval $ac_try) 2>&5
21379   ac_status=$?
21380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21381   (exit $ac_status); }; }; then
21382   ac_cv_sizeof_float=$ac_size
21383 else
21384   echo "$as_me: failed program was:" >&5
21385 sed 's/^/| /' conftest.$ac_ext >&5
21386
21387 fi
21388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21389    if test x$ac_cv_sizeof_float != x ; then break; fi
21390   done
21391
21392 fi
21393
21394
21395 if test x$ac_cv_sizeof_float = x ; then
21396   { { echo "$as_me:$LINENO: error: cannot determine a size for float" >&5
21397 echo "$as_me: error: cannot determine a size for float" >&2;}
21398    { (exit 1); exit 1; }; }
21399 fi
21400 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
21401 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
21402
21403 cat >>confdefs.h <<_ACEOF
21404 #define SIZEOF_FLOAT $ac_cv_sizeof_float
21405 _ACEOF
21406
21407
21408 echo "$as_me:$LINENO: checking size of double" >&5
21409 echo $ECHO_N "checking size of double... $ECHO_C" >&6
21410     if test "${ac_cv_sizeof_double+set}" = set; then
21411   echo $ECHO_N "(cached) $ECHO_C" >&6
21412 else
21413   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
21414    cat >conftest.$ac_ext <<_ACEOF
21415 /* confdefs.h.  */
21416 _ACEOF
21417 cat confdefs.h >>conftest.$ac_ext
21418 cat >>conftest.$ac_ext <<_ACEOF
21419 /* end confdefs.h.  */
21420 #include "confdefs.h"
21421    #include <sys/types.h>
21422
21423
21424 int
21425 main ()
21426 {
21427 switch (0) case 0: case (sizeof (double) == $ac_size):;
21428   ;
21429   return 0;
21430 }
21431 _ACEOF
21432 rm -f conftest.$ac_objext
21433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21434   (eval $ac_compile) 2>conftest.er1
21435   ac_status=$?
21436   grep -v '^ *+' conftest.er1 >conftest.err
21437   rm -f conftest.er1
21438   cat conftest.err >&5
21439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21440   (exit $ac_status); } &&
21441          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21443   (eval $ac_try) 2>&5
21444   ac_status=$?
21445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21446   (exit $ac_status); }; } &&
21447          { ac_try='test -s conftest.$ac_objext'
21448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21449   (eval $ac_try) 2>&5
21450   ac_status=$?
21451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452   (exit $ac_status); }; }; then
21453   ac_cv_sizeof_double=$ac_size
21454 else
21455   echo "$as_me: failed program was:" >&5
21456 sed 's/^/| /' conftest.$ac_ext >&5
21457
21458 fi
21459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21460    if test x$ac_cv_sizeof_double != x ; then break; fi
21461   done
21462
21463 fi
21464
21465
21466 if test x$ac_cv_sizeof_double = x ; then
21467   { { echo "$as_me:$LINENO: error: cannot determine a size for double" >&5
21468 echo "$as_me: error: cannot determine a size for double" >&2;}
21469    { (exit 1); exit 1; }; }
21470 fi
21471 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
21472 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
21473
21474 cat >>confdefs.h <<_ACEOF
21475 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
21476 _ACEOF
21477
21478
21479 echo "$as_me:$LINENO: checking if floating point datatypes are IEEE 754 compliant" >&5
21480 echo $ECHO_N "checking if floating point datatypes are IEEE 754 compliant... $ECHO_C" >&6
21481 cat >conftest.$ac_ext <<_ACEOF
21482 /* confdefs.h.  */
21483 _ACEOF
21484 cat confdefs.h >>conftest.$ac_ext
21485 cat >>conftest.$ac_ext <<_ACEOF
21486 /* end confdefs.h.  */
21487 #include "confdefs.h"
21488 union {
21489         double testFP;
21490         unsigned char bytes[sizeof(double)];
21491 } doubleTester;
21492 union {
21493         float testFP;
21494         unsigned char bytes[sizeof(float)];
21495 } floatTester;
21496
21497 int
21498 main ()
21499 {
21500
21501 memset(&doubleTester, 0, sizeof(doubleTester));
21502 memset(&floatTester, 0, sizeof(floatTester));
21503
21504 doubleTester.bytes[GRAS_BIGENDIAN ? sizeof(double) - 1 : 0]=192;
21505 doubleTester.bytes[GRAS_BIGENDIAN ? sizeof(double) - 2 : 1] =
21506   (sizeof(double) == 4)  ? 128 :
21507   (sizeof(double) == 8)  ? 16 :
21508   (sizeof(double) == 16) ? 1 : 0;
21509 if (doubleTester.testFP != -4.0) return 1;
21510
21511 floatTester.bytes[GRAS_BIGENDIAN ? sizeof(float) - 1 : 0]=192;
21512 floatTester.bytes[GRAS_BIGENDIAN ? sizeof(float) - 2 : 1] =
21513   (sizeof(float) == 4)  ? 128 :
21514   (sizeof(float) == 8)  ? 16 :
21515   (sizeof(float) == 16) ? 1 : 0;
21516 if (floatTester.testFP != -4.0) return 1;
21517
21518 return 0;
21519   ;
21520   return 0;
21521 }
21522 _ACEOF
21523 rm -f conftest.$ac_objext
21524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21525   (eval $ac_compile) 2>conftest.er1
21526   ac_status=$?
21527   grep -v '^ *+' conftest.er1 >conftest.err
21528   rm -f conftest.er1
21529   cat conftest.err >&5
21530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21531   (exit $ac_status); } &&
21532          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21534   (eval $ac_try) 2>&5
21535   ac_status=$?
21536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537   (exit $ac_status); }; } &&
21538          { ac_try='test -s conftest.$ac_objext'
21539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21540   (eval $ac_try) 2>&5
21541   ac_status=$?
21542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21543   (exit $ac_status); }; }; then
21544   IEEE_FP=yes
21545
21546 cat >>confdefs.h <<\_ACEOF
21547 #define IEEE_FP 1
21548 _ACEOF
21549
21550
21551 else
21552   echo "$as_me: failed program was:" >&5
21553 sed 's/^/| /' conftest.$ac_ext >&5
21554
21555 IEEE_FP=no
21556    { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
21557 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
21558    { (exit 1); exit 1; }; }
21559 fi
21560 rm -f conftest.err conftest.$ac_objext conftest.$ac_extecho "$as_me:$LINENO: result: $IEEE_FP" >&5
21561 echo "${ECHO_T}$IEEE_FP" >&6
21562
21563
21564 echo "$as_me:$LINENO: checking the GRAS signature of this architecture" >&5
21565 echo $ECHO_N "checking the GRAS signature of this architecture... $ECHO_C" >&6
21566 if test x$endian = x1 ; then
21567   trace_endian=B
21568 else
21569   trace_endian=l
21570 fi
21571 gras_arch=unknown
21572 trace="$trace_endian"
21573 trace="${trace}:${ac_cv_sizeof_char}.${ac_cv_sizeof_short_int}.${ac_cv_sizeof_int}.${ac_cv_sizeof_long_int}.${ac_cv_sizeof_long_long_int}"
21574 trace="${trace}:${ac_cv_sizeof_void_p}.${ac_cv_sizeof_void_LpR_LvoidR}"
21575 trace="${trace}:${ac_cv_sizeof_float}.${ac_cv_sizeof_double}"
21576 case $trace in
21577   l:1.2.4.4.8:4.4:4.8) gras_arch=0; gras_arch_name=i386;;
21578   B:1.2.4.4.8:4.4:4.8) gras_arch=1; gras_arch_name=ppc;;
21579 esac
21580 if test x$gras_arch = xunknown ; then
21581   echo "$as_me:$LINENO: result: damnit ($trace)" >&5
21582 echo "${ECHO_T}damnit ($trace)" >&6
21583   { { echo "$as_me:$LINENO: error: Impossible to determine the GRAS architecture signature.
21584 Please report this architecture trace ($trace) and what it corresponds to." >&5
21585 echo "$as_me: error: Impossible to determine the GRAS architecture signature.
21586 Please report this architecture trace ($trace) and what it corresponds to." >&2;}
21587    { (exit 1); exit 1; }; }
21588 fi
21589 echo "$as_me:$LINENO: GRAS trace of this machine: $trace" >&5
21590
21591 cat >>confdefs.h <<_ACEOF
21592 #define GRAS_THISARCH_NAME "$gras_arch_name"
21593 _ACEOF
21594
21595
21596 cat >>confdefs.h <<_ACEOF
21597 #define GRAS_THISARCH $gras_arch
21598 _ACEOF
21599
21600 echo "$as_me:$LINENO: result: $gras_arch ($gras_arch_name)" >&5
21601 echo "${ECHO_T}$gras_arch ($gras_arch_name)" >&6
21602
21603
21604 # Checks for header files.
21605 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21606 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
21607 if test "${ac_cv_header_stdc+set}" = set; then
21608   echo $ECHO_N "(cached) $ECHO_C" >&6
21609 else
21610   cat >conftest.$ac_ext <<_ACEOF
21611 /* confdefs.h.  */
21612 _ACEOF
21613 cat confdefs.h >>conftest.$ac_ext
21614 cat >>conftest.$ac_ext <<_ACEOF
21615 /* end confdefs.h.  */
21616 #include <stdlib.h>
21617 #include <stdarg.h>
21618 #include <string.h>
21619 #include <float.h>
21620
21621 int
21622 main ()
21623 {
21624
21625   ;
21626   return 0;
21627 }
21628 _ACEOF
21629 rm -f conftest.$ac_objext
21630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21631   (eval $ac_compile) 2>conftest.er1
21632   ac_status=$?
21633   grep -v '^ *+' conftest.er1 >conftest.err
21634   rm -f conftest.er1
21635   cat conftest.err >&5
21636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637   (exit $ac_status); } &&
21638          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21640   (eval $ac_try) 2>&5
21641   ac_status=$?
21642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21643   (exit $ac_status); }; } &&
21644          { ac_try='test -s conftest.$ac_objext'
21645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21646   (eval $ac_try) 2>&5
21647   ac_status=$?
21648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649   (exit $ac_status); }; }; then
21650   ac_cv_header_stdc=yes
21651 else
21652   echo "$as_me: failed program was:" >&5
21653 sed 's/^/| /' conftest.$ac_ext >&5
21654
21655 ac_cv_header_stdc=no
21656 fi
21657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21658
21659 if test $ac_cv_header_stdc = yes; then
21660   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21661   cat >conftest.$ac_ext <<_ACEOF
21662 /* confdefs.h.  */
21663 _ACEOF
21664 cat confdefs.h >>conftest.$ac_ext
21665 cat >>conftest.$ac_ext <<_ACEOF
21666 /* end confdefs.h.  */
21667 #include <string.h>
21668
21669 _ACEOF
21670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21671   $EGREP "memchr" >/dev/null 2>&1; then
21672   :
21673 else
21674   ac_cv_header_stdc=no
21675 fi
21676 rm -f conftest*
21677
21678 fi
21679
21680 if test $ac_cv_header_stdc = yes; then
21681   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21682   cat >conftest.$ac_ext <<_ACEOF
21683 /* confdefs.h.  */
21684 _ACEOF
21685 cat confdefs.h >>conftest.$ac_ext
21686 cat >>conftest.$ac_ext <<_ACEOF
21687 /* end confdefs.h.  */
21688 #include <stdlib.h>
21689
21690 _ACEOF
21691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21692   $EGREP "free" >/dev/null 2>&1; then
21693   :
21694 else
21695   ac_cv_header_stdc=no
21696 fi
21697 rm -f conftest*
21698
21699 fi
21700
21701 if test $ac_cv_header_stdc = yes; then
21702   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21703   if test "$cross_compiling" = yes; then
21704   :
21705 else
21706   cat >conftest.$ac_ext <<_ACEOF
21707 /* confdefs.h.  */
21708 _ACEOF
21709 cat confdefs.h >>conftest.$ac_ext
21710 cat >>conftest.$ac_ext <<_ACEOF
21711 /* end confdefs.h.  */
21712 #include <ctype.h>
21713 #if ((' ' & 0x0FF) == 0x020)
21714 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21715 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21716 #else
21717 # define ISLOWER(c) \
21718                    (('a' <= (c) && (c) <= 'i') \
21719                      || ('j' <= (c) && (c) <= 'r') \
21720                      || ('s' <= (c) && (c) <= 'z'))
21721 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21722 #endif
21723
21724 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21725 int
21726 main ()
21727 {
21728   int i;
21729   for (i = 0; i < 256; i++)
21730     if (XOR (islower (i), ISLOWER (i))
21731         || toupper (i) != TOUPPER (i))
21732       exit(2);
21733   exit (0);
21734 }
21735 _ACEOF
21736 rm -f conftest$ac_exeext
21737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21738   (eval $ac_link) 2>&5
21739   ac_status=$?
21740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21741   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21743   (eval $ac_try) 2>&5
21744   ac_status=$?
21745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746   (exit $ac_status); }; }; then
21747   :
21748 else
21749   echo "$as_me: program exited with status $ac_status" >&5
21750 echo "$as_me: failed program was:" >&5
21751 sed 's/^/| /' conftest.$ac_ext >&5
21752
21753 ( exit $ac_status )
21754 ac_cv_header_stdc=no
21755 fi
21756 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21757 fi
21758 fi
21759 fi
21760 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21761 echo "${ECHO_T}$ac_cv_header_stdc" >&6
21762 if test $ac_cv_header_stdc = yes; then
21763
21764 cat >>confdefs.h <<\_ACEOF
21765 #define STDC_HEADERS 1
21766 _ACEOF
21767
21768 fi
21769
21770
21771
21772
21773
21774 for ac_header in stddef.h stdlib.h string.h unistd.h
21775 do
21776 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21778   echo "$as_me:$LINENO: checking for $ac_header" >&5
21779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21780 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21781   echo $ECHO_N "(cached) $ECHO_C" >&6
21782 fi
21783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21784 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21785 else
21786   # Is the header compilable?
21787 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21788 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21789 cat >conftest.$ac_ext <<_ACEOF
21790 /* confdefs.h.  */
21791 _ACEOF
21792 cat confdefs.h >>conftest.$ac_ext
21793 cat >>conftest.$ac_ext <<_ACEOF
21794 /* end confdefs.h.  */
21795 $ac_includes_default
21796 #include <$ac_header>
21797 _ACEOF
21798 rm -f conftest.$ac_objext
21799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21800   (eval $ac_compile) 2>conftest.er1
21801   ac_status=$?
21802   grep -v '^ *+' conftest.er1 >conftest.err
21803   rm -f conftest.er1
21804   cat conftest.err >&5
21805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806   (exit $ac_status); } &&
21807          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21809   (eval $ac_try) 2>&5
21810   ac_status=$?
21811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812   (exit $ac_status); }; } &&
21813          { ac_try='test -s conftest.$ac_objext'
21814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21815   (eval $ac_try) 2>&5
21816   ac_status=$?
21817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21818   (exit $ac_status); }; }; then
21819   ac_header_compiler=yes
21820 else
21821   echo "$as_me: failed program was:" >&5
21822 sed 's/^/| /' conftest.$ac_ext >&5
21823
21824 ac_header_compiler=no
21825 fi
21826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21827 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21828 echo "${ECHO_T}$ac_header_compiler" >&6
21829
21830 # Is the header present?
21831 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21832 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21833 cat >conftest.$ac_ext <<_ACEOF
21834 /* confdefs.h.  */
21835 _ACEOF
21836 cat confdefs.h >>conftest.$ac_ext
21837 cat >>conftest.$ac_ext <<_ACEOF
21838 /* end confdefs.h.  */
21839 #include <$ac_header>
21840 _ACEOF
21841 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21842   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21843   ac_status=$?
21844   grep -v '^ *+' conftest.er1 >conftest.err
21845   rm -f conftest.er1
21846   cat conftest.err >&5
21847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21848   (exit $ac_status); } >/dev/null; then
21849   if test -s conftest.err; then
21850     ac_cpp_err=$ac_c_preproc_warn_flag
21851     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21852   else
21853     ac_cpp_err=
21854   fi
21855 else
21856   ac_cpp_err=yes
21857 fi
21858 if test -z "$ac_cpp_err"; then
21859   ac_header_preproc=yes
21860 else
21861   echo "$as_me: failed program was:" >&5
21862 sed 's/^/| /' conftest.$ac_ext >&5
21863
21864   ac_header_preproc=no
21865 fi
21866 rm -f conftest.err conftest.$ac_ext
21867 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21868 echo "${ECHO_T}$ac_header_preproc" >&6
21869
21870 # So?  What about this header?
21871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21872   yes:no: )
21873     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21874 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21875     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21876 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21877     ac_header_preproc=yes
21878     ;;
21879   no:yes:* )
21880     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21881 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21882     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21883 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21884     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21885 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21886     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21887 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21888     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21889 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21890     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21891 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21892     (
21893       cat <<\_ASBOX
21894 ## ----------------------------------------- ##
21895 ## Report this to martin.quinson@ens-lyon.fr ##
21896 ## ----------------------------------------- ##
21897 _ASBOX
21898     ) |
21899       sed "s/^/$as_me: WARNING:     /" >&2
21900     ;;
21901 esac
21902 echo "$as_me:$LINENO: checking for $ac_header" >&5
21903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21905   echo $ECHO_N "(cached) $ECHO_C" >&6
21906 else
21907   eval "$as_ac_Header=\$ac_header_preproc"
21908 fi
21909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21910 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21911
21912 fi
21913 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21914   cat >>confdefs.h <<_ACEOF
21915 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21916 _ACEOF
21917
21918 fi
21919
21920 done
21921
21922
21923 # Checks for typedefs, structures, and compiler characteristics.
21924 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21925 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
21926 if test "${ac_cv_c_const+set}" = set; then
21927   echo $ECHO_N "(cached) $ECHO_C" >&6
21928 else
21929   cat >conftest.$ac_ext <<_ACEOF
21930 /* confdefs.h.  */
21931 _ACEOF
21932 cat confdefs.h >>conftest.$ac_ext
21933 cat >>conftest.$ac_ext <<_ACEOF
21934 /* end confdefs.h.  */
21935
21936 int
21937 main ()
21938 {
21939 /* FIXME: Include the comments suggested by Paul. */
21940 #ifndef __cplusplus
21941   /* Ultrix mips cc rejects this.  */
21942   typedef int charset[2];
21943   const charset x;
21944   /* SunOS 4.1.1 cc rejects this.  */
21945   char const *const *ccp;
21946   char **p;
21947   /* NEC SVR4.0.2 mips cc rejects this.  */
21948   struct point {int x, y;};
21949   static struct point const zero = {0,0};
21950   /* AIX XL C 1.02.0.0 rejects this.
21951      It does not let you subtract one const X* pointer from another in
21952      an arm of an if-expression whose if-part is not a constant
21953      expression */
21954   const char *g = "string";
21955   ccp = &g + (g ? g-g : 0);
21956   /* HPUX 7.0 cc rejects these. */
21957   ++ccp;
21958   p = (char**) ccp;
21959   ccp = (char const *const *) p;
21960   { /* SCO 3.2v4 cc rejects this.  */
21961     char *t;
21962     char const *s = 0 ? (char *) 0 : (char const *) 0;
21963
21964     *t++ = 0;
21965   }
21966   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21967     int x[] = {25, 17};
21968     const int *foo = &x[0];
21969     ++foo;
21970   }
21971   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21972     typedef const int *iptr;
21973     iptr p = 0;
21974     ++p;
21975   }
21976   { /* AIX XL C 1.02.0.0 rejects this saying
21977        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21978     struct s { int j; const int *ap[3]; };
21979     struct s *b; b->j = 5;
21980   }
21981   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21982     const int foo = 10;
21983   }
21984 #endif
21985
21986   ;
21987   return 0;
21988 }
21989 _ACEOF
21990 rm -f conftest.$ac_objext
21991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21992   (eval $ac_compile) 2>conftest.er1
21993   ac_status=$?
21994   grep -v '^ *+' conftest.er1 >conftest.err
21995   rm -f conftest.er1
21996   cat conftest.err >&5
21997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21998   (exit $ac_status); } &&
21999          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22001   (eval $ac_try) 2>&5
22002   ac_status=$?
22003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22004   (exit $ac_status); }; } &&
22005          { ac_try='test -s conftest.$ac_objext'
22006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22007   (eval $ac_try) 2>&5
22008   ac_status=$?
22009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010   (exit $ac_status); }; }; then
22011   ac_cv_c_const=yes
22012 else
22013   echo "$as_me: failed program was:" >&5
22014 sed 's/^/| /' conftest.$ac_ext >&5
22015
22016 ac_cv_c_const=no
22017 fi
22018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22019 fi
22020 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22021 echo "${ECHO_T}$ac_cv_c_const" >&6
22022 if test $ac_cv_c_const = no; then
22023
22024 cat >>confdefs.h <<\_ACEOF
22025 #define const
22026 _ACEOF
22027
22028 fi
22029
22030 echo "$as_me:$LINENO: checking for inline" >&5
22031 echo $ECHO_N "checking for inline... $ECHO_C" >&6
22032 if test "${ac_cv_c_inline+set}" = set; then
22033   echo $ECHO_N "(cached) $ECHO_C" >&6
22034 else
22035   ac_cv_c_inline=no
22036 for ac_kw in inline __inline__ __inline; do
22037   cat >conftest.$ac_ext <<_ACEOF
22038 /* confdefs.h.  */
22039 _ACEOF
22040 cat confdefs.h >>conftest.$ac_ext
22041 cat >>conftest.$ac_ext <<_ACEOF
22042 /* end confdefs.h.  */
22043 #ifndef __cplusplus
22044 typedef int foo_t;
22045 static $ac_kw foo_t static_foo () {return 0; }
22046 $ac_kw foo_t foo () {return 0; }
22047 #endif
22048
22049 _ACEOF
22050 rm -f conftest.$ac_objext
22051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22052   (eval $ac_compile) 2>conftest.er1
22053   ac_status=$?
22054   grep -v '^ *+' conftest.er1 >conftest.err
22055   rm -f conftest.er1
22056   cat conftest.err >&5
22057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22058   (exit $ac_status); } &&
22059          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22061   (eval $ac_try) 2>&5
22062   ac_status=$?
22063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22064   (exit $ac_status); }; } &&
22065          { ac_try='test -s conftest.$ac_objext'
22066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22067   (eval $ac_try) 2>&5
22068   ac_status=$?
22069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22070   (exit $ac_status); }; }; then
22071   ac_cv_c_inline=$ac_kw; break
22072 else
22073   echo "$as_me: failed program was:" >&5
22074 sed 's/^/| /' conftest.$ac_ext >&5
22075
22076 fi
22077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22078 done
22079
22080 fi
22081 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
22082 echo "${ECHO_T}$ac_cv_c_inline" >&6
22083
22084
22085 case $ac_cv_c_inline in
22086   inline | yes) ;;
22087   *)
22088     case $ac_cv_c_inline in
22089       no) ac_val=;;
22090       *) ac_val=$ac_cv_c_inline;;
22091     esac
22092     cat >>confdefs.h <<_ACEOF
22093 #ifndef __cplusplus
22094 #define inline $ac_val
22095 #endif
22096 _ACEOF
22097     ;;
22098 esac
22099
22100 echo "$as_me:$LINENO: checking for size_t" >&5
22101 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22102 if test "${ac_cv_type_size_t+set}" = set; then
22103   echo $ECHO_N "(cached) $ECHO_C" >&6
22104 else
22105   cat >conftest.$ac_ext <<_ACEOF
22106 /* confdefs.h.  */
22107 _ACEOF
22108 cat confdefs.h >>conftest.$ac_ext
22109 cat >>conftest.$ac_ext <<_ACEOF
22110 /* end confdefs.h.  */
22111 $ac_includes_default
22112 int
22113 main ()
22114 {
22115 if ((size_t *) 0)
22116   return 0;
22117 if (sizeof (size_t))
22118   return 0;
22119   ;
22120   return 0;
22121 }
22122 _ACEOF
22123 rm -f conftest.$ac_objext
22124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22125   (eval $ac_compile) 2>conftest.er1
22126   ac_status=$?
22127   grep -v '^ *+' conftest.er1 >conftest.err
22128   rm -f conftest.er1
22129   cat conftest.err >&5
22130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22131   (exit $ac_status); } &&
22132          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22134   (eval $ac_try) 2>&5
22135   ac_status=$?
22136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22137   (exit $ac_status); }; } &&
22138          { ac_try='test -s conftest.$ac_objext'
22139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22140   (eval $ac_try) 2>&5
22141   ac_status=$?
22142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22143   (exit $ac_status); }; }; then
22144   ac_cv_type_size_t=yes
22145 else
22146   echo "$as_me: failed program was:" >&5
22147 sed 's/^/| /' conftest.$ac_ext >&5
22148
22149 ac_cv_type_size_t=no
22150 fi
22151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22152 fi
22153 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22154 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22155 if test $ac_cv_type_size_t = yes; then
22156   :
22157 else
22158
22159 cat >>confdefs.h <<_ACEOF
22160 #define size_t unsigned
22161 _ACEOF
22162
22163 fi
22164
22165
22166 # Checks for library functions.
22167
22168 for ac_header in stdlib.h
22169 do
22170 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22172   echo "$as_me:$LINENO: checking for $ac_header" >&5
22173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22175   echo $ECHO_N "(cached) $ECHO_C" >&6
22176 fi
22177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22178 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22179 else
22180   # Is the header compilable?
22181 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22182 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22183 cat >conftest.$ac_ext <<_ACEOF
22184 /* confdefs.h.  */
22185 _ACEOF
22186 cat confdefs.h >>conftest.$ac_ext
22187 cat >>conftest.$ac_ext <<_ACEOF
22188 /* end confdefs.h.  */
22189 $ac_includes_default
22190 #include <$ac_header>
22191 _ACEOF
22192 rm -f conftest.$ac_objext
22193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22194   (eval $ac_compile) 2>conftest.er1
22195   ac_status=$?
22196   grep -v '^ *+' conftest.er1 >conftest.err
22197   rm -f conftest.er1
22198   cat conftest.err >&5
22199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22200   (exit $ac_status); } &&
22201          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22203   (eval $ac_try) 2>&5
22204   ac_status=$?
22205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22206   (exit $ac_status); }; } &&
22207          { ac_try='test -s conftest.$ac_objext'
22208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22209   (eval $ac_try) 2>&5
22210   ac_status=$?
22211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22212   (exit $ac_status); }; }; then
22213   ac_header_compiler=yes
22214 else
22215   echo "$as_me: failed program was:" >&5
22216 sed 's/^/| /' conftest.$ac_ext >&5
22217
22218 ac_header_compiler=no
22219 fi
22220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22221 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22222 echo "${ECHO_T}$ac_header_compiler" >&6
22223
22224 # Is the header present?
22225 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22226 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22227 cat >conftest.$ac_ext <<_ACEOF
22228 /* confdefs.h.  */
22229 _ACEOF
22230 cat confdefs.h >>conftest.$ac_ext
22231 cat >>conftest.$ac_ext <<_ACEOF
22232 /* end confdefs.h.  */
22233 #include <$ac_header>
22234 _ACEOF
22235 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22236   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22237   ac_status=$?
22238   grep -v '^ *+' conftest.er1 >conftest.err
22239   rm -f conftest.er1
22240   cat conftest.err >&5
22241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22242   (exit $ac_status); } >/dev/null; then
22243   if test -s conftest.err; then
22244     ac_cpp_err=$ac_c_preproc_warn_flag
22245     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22246   else
22247     ac_cpp_err=
22248   fi
22249 else
22250   ac_cpp_err=yes
22251 fi
22252 if test -z "$ac_cpp_err"; then
22253   ac_header_preproc=yes
22254 else
22255   echo "$as_me: failed program was:" >&5
22256 sed 's/^/| /' conftest.$ac_ext >&5
22257
22258   ac_header_preproc=no
22259 fi
22260 rm -f conftest.err conftest.$ac_ext
22261 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22262 echo "${ECHO_T}$ac_header_preproc" >&6
22263
22264 # So?  What about this header?
22265 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22266   yes:no: )
22267     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22268 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22269     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22270 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22271     ac_header_preproc=yes
22272     ;;
22273   no:yes:* )
22274     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22275 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22276     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22277 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22278     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22279 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22280     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22281 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22282     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22283 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22284     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22285 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22286     (
22287       cat <<\_ASBOX
22288 ## ----------------------------------------- ##
22289 ## Report this to martin.quinson@ens-lyon.fr ##
22290 ## ----------------------------------------- ##
22291 _ASBOX
22292     ) |
22293       sed "s/^/$as_me: WARNING:     /" >&2
22294     ;;
22295 esac
22296 echo "$as_me:$LINENO: checking for $ac_header" >&5
22297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22299   echo $ECHO_N "(cached) $ECHO_C" >&6
22300 else
22301   eval "$as_ac_Header=\$ac_header_preproc"
22302 fi
22303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22305
22306 fi
22307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22308   cat >>confdefs.h <<_ACEOF
22309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22310 _ACEOF
22311
22312 fi
22313
22314 done
22315
22316 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
22317 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
22318 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
22319   echo $ECHO_N "(cached) $ECHO_C" >&6
22320 else
22321   if test "$cross_compiling" = yes; then
22322   ac_cv_func_malloc_0_nonnull=no
22323 else
22324   cat >conftest.$ac_ext <<_ACEOF
22325 /* confdefs.h.  */
22326 _ACEOF
22327 cat confdefs.h >>conftest.$ac_ext
22328 cat >>conftest.$ac_ext <<_ACEOF
22329 /* end confdefs.h.  */
22330 #if STDC_HEADERS || HAVE_STDLIB_H
22331 # include <stdlib.h>
22332 #else
22333 char *malloc ();
22334 #endif
22335
22336 int
22337 main ()
22338 {
22339 exit (malloc (0) ? 0 : 1);
22340   ;
22341   return 0;
22342 }
22343 _ACEOF
22344 rm -f conftest$ac_exeext
22345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22346   (eval $ac_link) 2>&5
22347   ac_status=$?
22348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22351   (eval $ac_try) 2>&5
22352   ac_status=$?
22353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22354   (exit $ac_status); }; }; then
22355   ac_cv_func_malloc_0_nonnull=yes
22356 else
22357   echo "$as_me: program exited with status $ac_status" >&5
22358 echo "$as_me: failed program was:" >&5
22359 sed 's/^/| /' conftest.$ac_ext >&5
22360
22361 ( exit $ac_status )
22362 ac_cv_func_malloc_0_nonnull=no
22363 fi
22364 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22365 fi
22366 fi
22367 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
22368 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
22369 if test $ac_cv_func_malloc_0_nonnull = yes; then
22370
22371 cat >>confdefs.h <<\_ACEOF
22372 #define HAVE_MALLOC 1
22373 _ACEOF
22374
22375 else
22376   cat >>confdefs.h <<\_ACEOF
22377 #define HAVE_MALLOC 0
22378 _ACEOF
22379
22380    case $LIBOBJS in
22381     "malloc.$ac_objext"   | \
22382   *" malloc.$ac_objext"   | \
22383     "malloc.$ac_objext "* | \
22384   *" malloc.$ac_objext "* ) ;;
22385   *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
22386 esac
22387
22388
22389 cat >>confdefs.h <<\_ACEOF
22390 #define malloc rpl_malloc
22391 _ACEOF
22392
22393 fi
22394
22395
22396
22397 echo "$as_me:$LINENO: checking for working memcmp" >&5
22398 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
22399 if test "${ac_cv_func_memcmp_working+set}" = set; then
22400   echo $ECHO_N "(cached) $ECHO_C" >&6
22401 else
22402   if test "$cross_compiling" = yes; then
22403   ac_cv_func_memcmp_working=no
22404 else
22405   cat >conftest.$ac_ext <<_ACEOF
22406 /* confdefs.h.  */
22407 _ACEOF
22408 cat confdefs.h >>conftest.$ac_ext
22409 cat >>conftest.$ac_ext <<_ACEOF
22410 /* end confdefs.h.  */
22411 $ac_includes_default
22412 int
22413 main ()
22414 {
22415
22416   /* Some versions of memcmp are not 8-bit clean.  */
22417   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
22418   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22419     exit (1);
22420
22421   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22422      or more and with at least one buffer not starting on a 4-byte boundary.
22423      William Lewis provided this test program.   */
22424   {
22425     char foo[21];
22426     char bar[21];
22427     int i;
22428     for (i = 0; i < 4; i++)
22429       {
22430         char *a = foo + i;
22431         char *b = bar + i;
22432         strcpy (a, "--------01111111");
22433         strcpy (b, "--------10000000");
22434         if (memcmp (a, b, 16) >= 0)
22435           exit (1);
22436       }
22437     exit (0);
22438   }
22439
22440   ;
22441   return 0;
22442 }
22443 _ACEOF
22444 rm -f conftest$ac_exeext
22445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22446   (eval $ac_link) 2>&5
22447   ac_status=$?
22448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22449   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22451   (eval $ac_try) 2>&5
22452   ac_status=$?
22453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22454   (exit $ac_status); }; }; then
22455   ac_cv_func_memcmp_working=yes
22456 else
22457   echo "$as_me: program exited with status $ac_status" >&5
22458 echo "$as_me: failed program was:" >&5
22459 sed 's/^/| /' conftest.$ac_ext >&5
22460
22461 ( exit $ac_status )
22462 ac_cv_func_memcmp_working=no
22463 fi
22464 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22465 fi
22466 fi
22467 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
22468 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
22469 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
22470     "memcmp.$ac_objext"   | \
22471   *" memcmp.$ac_objext"   | \
22472     "memcmp.$ac_objext "* | \
22473   *" memcmp.$ac_objext "* ) ;;
22474   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
22475 esac
22476
22477
22478
22479
22480
22481
22482 for ac_func in memset strchr strerror usleep
22483 do
22484 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22485 echo "$as_me:$LINENO: checking for $ac_func" >&5
22486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22487 if eval "test \"\${$as_ac_var+set}\" = set"; then
22488   echo $ECHO_N "(cached) $ECHO_C" >&6
22489 else
22490   cat >conftest.$ac_ext <<_ACEOF
22491 /* confdefs.h.  */
22492 _ACEOF
22493 cat confdefs.h >>conftest.$ac_ext
22494 cat >>conftest.$ac_ext <<_ACEOF
22495 /* end confdefs.h.  */
22496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22497    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22498 #define $ac_func innocuous_$ac_func
22499
22500 /* System header to define __stub macros and hopefully few prototypes,
22501     which can conflict with char $ac_func (); below.
22502     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22503     <limits.h> exists even on freestanding compilers.  */
22504
22505 #ifdef __STDC__
22506 # include <limits.h>
22507 #else
22508 # include <assert.h>
22509 #endif
22510
22511 #undef $ac_func
22512
22513 /* Override any gcc2 internal prototype to avoid an error.  */
22514 #ifdef __cplusplus
22515 extern "C"
22516 {
22517 #endif
22518 /* We use char because int might match the return type of a gcc2
22519    builtin and then its argument prototype would still apply.  */
22520 char $ac_func ();
22521 /* The GNU C library defines this for functions which it implements
22522     to always fail with ENOSYS.  Some functions are actually named
22523     something starting with __ and the normal name is an alias.  */
22524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22525 choke me
22526 #else
22527 char (*f) () = $ac_func;
22528 #endif
22529 #ifdef __cplusplus
22530 }
22531 #endif
22532
22533 int
22534 main ()
22535 {
22536 return f != $ac_func;
22537   ;
22538   return 0;
22539 }
22540 _ACEOF
22541 rm -f conftest.$ac_objext conftest$ac_exeext
22542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22543   (eval $ac_link) 2>conftest.er1
22544   ac_status=$?
22545   grep -v '^ *+' conftest.er1 >conftest.err
22546   rm -f conftest.er1
22547   cat conftest.err >&5
22548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22549   (exit $ac_status); } &&
22550          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22552   (eval $ac_try) 2>&5
22553   ac_status=$?
22554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22555   (exit $ac_status); }; } &&
22556          { ac_try='test -s conftest$ac_exeext'
22557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22558   (eval $ac_try) 2>&5
22559   ac_status=$?
22560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22561   (exit $ac_status); }; }; then
22562   eval "$as_ac_var=yes"
22563 else
22564   echo "$as_me: failed program was:" >&5
22565 sed 's/^/| /' conftest.$ac_ext >&5
22566
22567 eval "$as_ac_var=no"
22568 fi
22569 rm -f conftest.err conftest.$ac_objext \
22570       conftest$ac_exeext conftest.$ac_ext
22571 fi
22572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22573 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22574 if test `eval echo '${'$as_ac_var'}'` = yes; then
22575   cat >>confdefs.h <<_ACEOF
22576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22577 _ACEOF
22578
22579 fi
22580 done
22581
22582
22583 # Can we rebuild the documentation?
22584
22585
22586 # Check whether --with-html-dir or --without-html-dir was given.
22587 if test "${with_html_dir+set}" = set; then
22588   withval="$with_html_dir"
22589
22590 else
22591   with_html_dir='${datadir}/gtk-doc/html'
22592 fi;
22593   HTML_DIR="$with_html_dir"
22594
22595
22596     # Check whether --enable-gtk-doc or --disable-gtk-doc was given.
22597 if test "${enable_gtk_doc+set}" = set; then
22598   enableval="$enable_gtk_doc"
22599
22600 else
22601   enable_gtk_doc=no
22602 fi;
22603
22604   have_gtk_doc=no
22605   if test x$enable_gtk_doc = xyes; then
22606     if test -z "$PKG_CONFIG"; then
22607       # Extract the first word of "pkg-config", so it can be a program name with args.
22608 set dummy pkg-config; ac_word=$2
22609 echo "$as_me:$LINENO: checking for $ac_word" >&5
22610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22611 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22612   echo $ECHO_N "(cached) $ECHO_C" >&6
22613 else
22614   case $PKG_CONFIG in
22615   [\\/]* | ?:[\\/]*)
22616   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22617   ;;
22618   *)
22619   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22620 for as_dir in $PATH
22621 do
22622   IFS=$as_save_IFS
22623   test -z "$as_dir" && as_dir=.
22624   for ac_exec_ext in '' $ac_executable_extensions; do
22625   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22626     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22627     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22628     break 2
22629   fi
22630 done
22631 done
22632
22633   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22634   ;;
22635 esac
22636 fi
22637 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22638
22639 if test -n "$PKG_CONFIG"; then
22640   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22641 echo "${ECHO_T}$PKG_CONFIG" >&6
22642 else
22643   echo "$as_me:$LINENO: result: no" >&5
22644 echo "${ECHO_T}no" >&6
22645 fi
22646
22647     fi
22648     if test "$PKG_CONFIG" != "no" && $PKG_CONFIG --exists gtk-doc; then
22649       have_gtk_doc=yes
22650     fi
22651
22652
22653     if test "$have_gtk_doc" != yes; then
22654       enable_gtk_doc=no
22655     fi
22656   fi
22657
22658
22659
22660 if test x$enable_gtk_doc = xyes; then
22661   ENABLE_GTK_DOC_TRUE=
22662   ENABLE_GTK_DOC_FALSE='#'
22663 else
22664   ENABLE_GTK_DOC_TRUE='#'
22665   ENABLE_GTK_DOC_FALSE=
22666 fi
22667
22668
22669
22670 if test -n "$LIBTOOL"; then
22671   GTK_DOC_USE_LIBTOOL_TRUE=
22672   GTK_DOC_USE_LIBTOOL_FALSE='#'
22673 else
22674   GTK_DOC_USE_LIBTOOL_TRUE='#'
22675   GTK_DOC_USE_LIBTOOL_FALSE=
22676 fi
22677
22678
22679
22680
22681   echo "BEGINING OF ACI-PACKAGE-SAVED(XML)">&5;
22682   # Extract the first word of "xml2-config", so it can be a program name with args.
22683 set dummy xml2-config; ac_word=$2
22684 echo "$as_me:$LINENO: checking for $ac_word" >&5
22685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22686 if test "${ac_cv_path_ACI_CACHE_PROG+set}" = set; then
22687   echo $ECHO_N "(cached) $ECHO_C" >&6
22688 else
22689   case $ACI_CACHE_PROG in
22690   [\\/]* | ?:[\\/]*)
22691   ac_cv_path_ACI_CACHE_PROG="$ACI_CACHE_PROG" # Let the user override the test with a path.
22692   ;;
22693   *)
22694   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22695 for as_dir in $PATH
22696 do
22697   IFS=$as_save_IFS
22698   test -z "$as_dir" && as_dir=.
22699   for ac_exec_ext in '' $ac_executable_extensions; do
22700   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22701     ac_cv_path_ACI_CACHE_PROG="$as_dir/$ac_word$ac_exec_ext"
22702     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22703     break 2
22704   fi
22705 done
22706 done
22707
22708   test -z "$ac_cv_path_ACI_CACHE_PROG" && ac_cv_path_ACI_CACHE_PROG="no"
22709   ;;
22710 esac
22711 fi
22712 ACI_CACHE_PROG=$ac_cv_path_ACI_CACHE_PROG
22713
22714 if test -n "$ACI_CACHE_PROG"; then
22715   echo "$as_me:$LINENO: result: $ACI_CACHE_PROG" >&5
22716 echo "${ECHO_T}$ACI_CACHE_PROG" >&6
22717 else
22718   echo "$as_me:$LINENO: result: no" >&5
22719 echo "${ECHO_T}no" >&6
22720 fi
22721
22722   aci_module_desc_XML="XML library (version XML2)"
22723     aci_pkg_config_XML=xml2-config
22724     aci_packages="$aci_packages XML"
22725   if test x$ACI_CACHE_PROG = xno; then
22726     HAVE_XML=no
22727     CFLAGS_XML=""
22728     LIBS_XML=""
22729     :
22730   else
22731     HAVE_XML=yes
22732     CFLAGS_XML=`$ACI_CACHE_PROG --cflags `
22733     LIBS_XML=`$ACI_CACHE_PROG --libs `
22734     echo >/dev/null
22735   fi
22736           echo "END OF ACI-PACKAGE-SAVED(XML)">&5;
22737
22738
22739
22740
22741
22742
22743
22744
22745
22746
22747         aci_nameok=`echo SimGrid|sed 'y/-/./'`
22748         if test "xSimGrid" != "x$aci_nameok" ; then
22749           { { echo "$as_me:$LINENO: error: ACI error: Please no '-' in package name. (ie, SimGrid is not a valid name)" >&5
22750 echo "$as_me: error: ACI error: Please no '-' in package name. (ie, SimGrid is not a valid name)" >&2;}
22751    { (exit 1); exit 1; }; }
22752         fi
22753         echo "BEGINING OF ACI-PACKAGE(SimGrid)">&5;
22754         aci_module_desc_SimGrid="the SimGrid simulator"
22755                 aci_packages="$aci_packages SimGrid"
22756
22757
22758 # Check whether --with-SimGrid or --without-SimGrid was given.
22759 if test "${with_SimGrid+set}" = set; then
22760   withval="$with_SimGrid"
22761   with_SimGrid=$withval
22762            good=yes
22763            if test "$withval" = yes ; then good=no; fi
22764            if test "$withval" = no ; then good=no; fi
22765            if test $good = no ; then
22766              { { 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
22767 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;}
22768    { (exit 1); exit 1; }; }
22769            fi
22770            aci_pkg_prefix_SimGrid="$withval"
22771            CFLAGS_SimGrid="-I$withval/include $CFLAGS_SimGrid"
22772            LIBS_SimGrid="-L$withval/lib $LIBS_SimGrid"
22773
22774 fi;
22775
22776
22777 # Check whether --with-SimGrid-includes or --without-SimGrid-includes was given.
22778 if test "${with_SimGrid_includes+set}" = set; then
22779   withval="$with_SimGrid_includes"
22780   CFLAGS_SimGrid="-I$withval $CFLAGS_SimGrid"
22781            aci_pkg_inc_SimGrid="$withval"
22782
22783 fi;
22784
22785
22786 # Check whether --with-SimGrid-libraries or --without-SimGrid-libraries was given.
22787 if test "${with_SimGrid_libraries+set}" = set; then
22788   withval="$with_SimGrid_libraries"
22789   LIBS_SimGrid="-L$withval $LIBS_SimGrid"
22790              aci_pkg_lib_SimGrid="$withval"
22791 fi;
22792
22793
22794 # Check whether --with-SimGrid-extra or --without-SimGrid-extra was given.
22795 if test "${with_SimGrid_extra+set}" = set; then
22796   withval="$with_SimGrid_extra"
22797   LIBS_SimGrid=`echo $withval|sed 's/!/ /g'`" $LIBS_SimGrid"
22798              aci_pkg_extra_SimGrid="$withval"
22799 fi;
22800
22801
22802                                 OLD_LDFLAGS=$LDFLAGS
22803         OLD_CFLAGS=$CFLAGS
22804         OLD_CPPFLAGS=$CPPFLAGS
22805
22806                 i=`echo -lsimgrid|wc -l`
22807         if test $i != 1 && test $i != 0 ; then
22808           { { echo "$as_me:$LINENO: error: Badly formed args for function ACI-PACKAGE.
22809             please no newline and no tab." >&5
22810 echo "$as_me: error: Badly formed args for function ACI-PACKAGE.
22811             please no newline and no tab." >&2;}
22812    { (exit 1); exit 1; }; }
22813         fi
22814
22815         ac_func_search_save_LIBS="$LIBS"
22816         ac_func_search_save_this_LIBS="$LIBS_SimGrid"
22817         aci_found="no"
22818         echo "----------------------------------------" >&5
22819         echo "$as_me:$LINENO: checking for SimGrid. Can I access SG_init without new libs" >&5
22820 echo $ECHO_N "checking for SimGrid. Can I access SG_init without new libs... $ECHO_C" >&6
22821         cat >conftest.$ac_ext <<_ACEOF
22822 /* confdefs.h.  */
22823 _ACEOF
22824 cat confdefs.h >>conftest.$ac_ext
22825 cat >>conftest.$ac_ext <<_ACEOF
22826 /* end confdefs.h.  */
22827
22828 /* Override any gcc2 internal prototype to avoid an error.  */
22829 #ifdef __cplusplus
22830 extern "C"
22831 #endif
22832 /* We use char because int might match the return type of a gcc2
22833    builtin and then its argument prototype would still apply.  */
22834 char SG_init ();
22835 int
22836 main ()
22837 {
22838 SG_init ();
22839   ;
22840   return 0;
22841 }
22842 _ACEOF
22843 rm -f conftest.$ac_objext conftest$ac_exeext
22844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22845   (eval $ac_link) 2>conftest.er1
22846   ac_status=$?
22847   grep -v '^ *+' conftest.er1 >conftest.err
22848   rm -f conftest.er1
22849   cat conftest.err >&5
22850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22851   (exit $ac_status); } &&
22852          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22854   (eval $ac_try) 2>&5
22855   ac_status=$?
22856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22857   (exit $ac_status); }; } &&
22858          { ac_try='test -s conftest$ac_exeext'
22859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22860   (eval $ac_try) 2>&5
22861   ac_status=$?
22862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22863   (exit $ac_status); }; }; then
22864   echo "$as_me:$LINENO: result: yes" >&5
22865 echo "${ECHO_T}yes" >&6 aci_found="yes"
22866 else
22867   echo "$as_me: failed program was:" >&5
22868 sed 's/^/| /' conftest.$ac_ext >&5
22869
22870 echo "$as_me:$LINENO: result: no" >&5
22871 echo "${ECHO_T}no" >&6
22872 fi
22873 rm -f conftest.err conftest.$ac_objext \
22874       conftest$ac_exeext conftest.$ac_ext
22875         if test "$aci_found" = "no"; then
22876           if test -n "$LIBS_SimGrid" ; then
22877             LIBS="$LIBS_SimGrid"
22878             echo "----------------------------------------" >&5
22879             echo "$as_me:$LINENO: checking for SimGrid. Can I access SG_init the specified extra args" >&5
22880 echo $ECHO_N "checking for SimGrid. Can I access SG_init the specified extra args... $ECHO_C" >&6
22881             cat >conftest.$ac_ext <<_ACEOF
22882 /* confdefs.h.  */
22883 _ACEOF
22884 cat confdefs.h >>conftest.$ac_ext
22885 cat >>conftest.$ac_ext <<_ACEOF
22886 /* end confdefs.h.  */
22887
22888 /* Override any gcc2 internal prototype to avoid an error.  */
22889 #ifdef __cplusplus
22890 extern "C"
22891 #endif
22892 /* We use char because int might match the return type of a gcc2
22893    builtin and then its argument prototype would still apply.  */
22894 char SG_init ();
22895 int
22896 main ()
22897 {
22898 SG_init ();
22899   ;
22900   return 0;
22901 }
22902 _ACEOF
22903 rm -f conftest.$ac_objext conftest$ac_exeext
22904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22905   (eval $ac_link) 2>conftest.er1
22906   ac_status=$?
22907   grep -v '^ *+' conftest.er1 >conftest.err
22908   rm -f conftest.er1
22909   cat conftest.err >&5
22910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22911   (exit $ac_status); } &&
22912          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22914   (eval $ac_try) 2>&5
22915   ac_status=$?
22916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22917   (exit $ac_status); }; } &&
22918          { ac_try='test -s conftest$ac_exeext'
22919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22920   (eval $ac_try) 2>&5
22921   ac_status=$?
22922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22923   (exit $ac_status); }; }; then
22924   aci_found="yes"
22925 else
22926   echo "$as_me: failed program was:" >&5
22927 sed 's/^/| /' conftest.$ac_ext >&5
22928
22929 aci_found="no"
22930 fi
22931 rm -f conftest.err conftest.$ac_objext \
22932       conftest$ac_exeext conftest.$ac_ext
22933             echo "$as_me:$LINENO: result: $aci_found" >&5
22934 echo "${ECHO_T}$aci_found" >&6
22935           fi
22936         fi
22937         for i in -lsimgrid
22938         do
22939           if test "x$aci_found" = "xno"; then
22940             LIBS_SimGrid=`echo "$i $ac_func_search_save_this_LIBS"|sed 's/!/ /g'`
22941             LIBS="$LIBS_SimGrid $ac_func_search_save_LIBS"
22942             echo "----------------------------------------" >&5
22943             echo "$as_me:$LINENO: checking for SimGrid. Can I access SG_init with $LIBS_SimGrid" >&5
22944 echo $ECHO_N "checking for SimGrid. Can I access SG_init with $LIBS_SimGrid... $ECHO_C" >&6
22945             cat >conftest.$ac_ext <<_ACEOF
22946 /* confdefs.h.  */
22947 _ACEOF
22948 cat confdefs.h >>conftest.$ac_ext
22949 cat >>conftest.$ac_ext <<_ACEOF
22950 /* end confdefs.h.  */
22951
22952 /* Override any gcc2 internal prototype to avoid an error.  */
22953 #ifdef __cplusplus
22954 extern "C"
22955 #endif
22956 /* We use char because int might match the return type of a gcc2
22957    builtin and then its argument prototype would still apply.  */
22958 char SG_init ();
22959 int
22960 main ()
22961 {
22962 SG_init ();
22963   ;
22964   return 0;
22965 }
22966 _ACEOF
22967 rm -f conftest.$ac_objext conftest$ac_exeext
22968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22969   (eval $ac_link) 2>conftest.er1
22970   ac_status=$?
22971   grep -v '^ *+' conftest.er1 >conftest.err
22972   rm -f conftest.er1
22973   cat conftest.err >&5
22974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22975   (exit $ac_status); } &&
22976          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22978   (eval $ac_try) 2>&5
22979   ac_status=$?
22980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22981   (exit $ac_status); }; } &&
22982          { ac_try='test -s conftest$ac_exeext'
22983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22984   (eval $ac_try) 2>&5
22985   ac_status=$?
22986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22987   (exit $ac_status); }; }; then
22988   aci_found="yes"
22989 else
22990   echo "$as_me: failed program was:" >&5
22991 sed 's/^/| /' conftest.$ac_ext >&5
22992
22993 aci_found="no"
22994 fi
22995 rm -f conftest.err conftest.$ac_objext \
22996       conftest$ac_exeext conftest.$ac_ext
22997             echo "$as_me:$LINENO: result: $aci_found" >&5
22998 echo "${ECHO_T}$aci_found" >&6
22999           fi
23000         done
23001         LIBS="$ac_func_search_save_LIBS"
23002
23003                                 if test "x$aci_found" = "xyes" && test "x"simgrid.h != "x" ; then
23004           CPPFLAGS="$CPPFLAGS $CFLAGS_SimGrid"
23005           echo "CPPFLAGS=$CPPFLAGS">&5;
23006           if test "${ac_cv_header_simgrid_h+set}" = set; then
23007   echo "$as_me:$LINENO: checking for simgrid.h" >&5
23008 echo $ECHO_N "checking for simgrid.h... $ECHO_C" >&6
23009 if test "${ac_cv_header_simgrid_h+set}" = set; then
23010   echo $ECHO_N "(cached) $ECHO_C" >&6
23011 fi
23012 echo "$as_me:$LINENO: result: $ac_cv_header_simgrid_h" >&5
23013 echo "${ECHO_T}$ac_cv_header_simgrid_h" >&6
23014 else
23015   # Is the header compilable?
23016 echo "$as_me:$LINENO: checking simgrid.h usability" >&5
23017 echo $ECHO_N "checking simgrid.h usability... $ECHO_C" >&6
23018 cat >conftest.$ac_ext <<_ACEOF
23019 /* confdefs.h.  */
23020 _ACEOF
23021 cat confdefs.h >>conftest.$ac_ext
23022 cat >>conftest.$ac_ext <<_ACEOF
23023 /* end confdefs.h.  */
23024 $ac_includes_default
23025 #include <simgrid.h>
23026 _ACEOF
23027 rm -f conftest.$ac_objext
23028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23029   (eval $ac_compile) 2>conftest.er1
23030   ac_status=$?
23031   grep -v '^ *+' conftest.er1 >conftest.err
23032   rm -f conftest.er1
23033   cat conftest.err >&5
23034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23035   (exit $ac_status); } &&
23036          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23038   (eval $ac_try) 2>&5
23039   ac_status=$?
23040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23041   (exit $ac_status); }; } &&
23042          { ac_try='test -s conftest.$ac_objext'
23043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23044   (eval $ac_try) 2>&5
23045   ac_status=$?
23046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23047   (exit $ac_status); }; }; then
23048   ac_header_compiler=yes
23049 else
23050   echo "$as_me: failed program was:" >&5
23051 sed 's/^/| /' conftest.$ac_ext >&5
23052
23053 ac_header_compiler=no
23054 fi
23055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23056 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23057 echo "${ECHO_T}$ac_header_compiler" >&6
23058
23059 # Is the header present?
23060 echo "$as_me:$LINENO: checking simgrid.h presence" >&5
23061 echo $ECHO_N "checking simgrid.h presence... $ECHO_C" >&6
23062 cat >conftest.$ac_ext <<_ACEOF
23063 /* confdefs.h.  */
23064 _ACEOF
23065 cat confdefs.h >>conftest.$ac_ext
23066 cat >>conftest.$ac_ext <<_ACEOF
23067 /* end confdefs.h.  */
23068 #include <simgrid.h>
23069 _ACEOF
23070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23071   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23072   ac_status=$?
23073   grep -v '^ *+' conftest.er1 >conftest.err
23074   rm -f conftest.er1
23075   cat conftest.err >&5
23076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23077   (exit $ac_status); } >/dev/null; then
23078   if test -s conftest.err; then
23079     ac_cpp_err=$ac_c_preproc_warn_flag
23080     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23081   else
23082     ac_cpp_err=
23083   fi
23084 else
23085   ac_cpp_err=yes
23086 fi
23087 if test -z "$ac_cpp_err"; then
23088   ac_header_preproc=yes
23089 else
23090   echo "$as_me: failed program was:" >&5
23091 sed 's/^/| /' conftest.$ac_ext >&5
23092
23093   ac_header_preproc=no
23094 fi
23095 rm -f conftest.err conftest.$ac_ext
23096 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23097 echo "${ECHO_T}$ac_header_preproc" >&6
23098
23099 # So?  What about this header?
23100 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23101   yes:no: )
23102     { echo "$as_me:$LINENO: WARNING: simgrid.h: accepted by the compiler, rejected by the preprocessor!" >&5
23103 echo "$as_me: WARNING: simgrid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23104     { echo "$as_me:$LINENO: WARNING: simgrid.h: proceeding with the compiler's result" >&5
23105 echo "$as_me: WARNING: simgrid.h: proceeding with the compiler's result" >&2;}
23106     ac_header_preproc=yes
23107     ;;
23108   no:yes:* )
23109     { echo "$as_me:$LINENO: WARNING: simgrid.h: present but cannot be compiled" >&5
23110 echo "$as_me: WARNING: simgrid.h: present but cannot be compiled" >&2;}
23111     { echo "$as_me:$LINENO: WARNING: simgrid.h:     check for missing prerequisite headers?" >&5
23112 echo "$as_me: WARNING: simgrid.h:     check for missing prerequisite headers?" >&2;}
23113     { echo "$as_me:$LINENO: WARNING: simgrid.h: see the Autoconf documentation" >&5
23114 echo "$as_me: WARNING: simgrid.h: see the Autoconf documentation" >&2;}
23115     { echo "$as_me:$LINENO: WARNING: simgrid.h:     section \"Present But Cannot Be Compiled\"" >&5
23116 echo "$as_me: WARNING: simgrid.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23117     { echo "$as_me:$LINENO: WARNING: simgrid.h: proceeding with the preprocessor's result" >&5
23118 echo "$as_me: WARNING: simgrid.h: proceeding with the preprocessor's result" >&2;}
23119     { echo "$as_me:$LINENO: WARNING: simgrid.h: in the future, the compiler will take precedence" >&5
23120 echo "$as_me: WARNING: simgrid.h: in the future, the compiler will take precedence" >&2;}
23121     (
23122       cat <<\_ASBOX
23123 ## ----------------------------------------- ##
23124 ## Report this to martin.quinson@ens-lyon.fr ##
23125 ## ----------------------------------------- ##
23126 _ASBOX
23127     ) |
23128       sed "s/^/$as_me: WARNING:     /" >&2
23129     ;;
23130 esac
23131 echo "$as_me:$LINENO: checking for simgrid.h" >&5
23132 echo $ECHO_N "checking for simgrid.h... $ECHO_C" >&6
23133 if test "${ac_cv_header_simgrid_h+set}" = set; then
23134   echo $ECHO_N "(cached) $ECHO_C" >&6
23135 else
23136   ac_cv_header_simgrid_h=$ac_header_preproc
23137 fi
23138 echo "$as_me:$LINENO: result: $ac_cv_header_simgrid_h" >&5
23139 echo "${ECHO_T}$ac_cv_header_simgrid_h" >&6
23140
23141 fi
23142 if test $ac_cv_header_simgrid_h = yes; then
23143   good=yes
23144 else
23145   good=no
23146 fi
23147
23148
23149         fi
23150         if test "x$aci_found" = "xno" ; then
23151                                    { { 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
23152 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;}
23153    { (exit 1); exit 1; }; }
23154         else
23155                         HAVE_SimGrid="yes"
23156                 echo >/dev/null
23157         fi
23158         if test "x$HAVE_SimGrid" != "xyes" ; then
23159           CFLAGS_SimGrid=""
23160           LIBS_SimGrid=""
23161         fi
23162
23163
23164
23165
23166         echo "END OF ACI-PACKAGE(SimGrid)">&5;
23167                 LDFLAGS=$OLDLDFLAGS
23168         CPPFLAGS=$OLDCPPFLAGS
23169         CFLAGS=$OLDCFLAGS
23170
23171
23172
23173 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
23174 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
23175     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
23176 if test "${enable_maintainer_mode+set}" = set; then
23177   enableval="$enable_maintainer_mode"
23178   USE_MAINTAINER_MODE=$enableval
23179 else
23180   USE_MAINTAINER_MODE=no
23181 fi;
23182   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
23183 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
23184
23185
23186 if test $USE_MAINTAINER_MODE = yes; then
23187   MAINTAINER_MODE_TRUE=
23188   MAINTAINER_MODE_FALSE='#'
23189 else
23190   MAINTAINER_MODE_TRUE='#'
23191   MAINTAINER_MODE_FALSE=
23192 fi
23193
23194   MAINT=$MAINTAINER_MODE_TRUE
23195
23196
23197 if test x$USE_MAINTAINER_MODE = xyes
23198 then
23199
23200   # Check whether --enable-compile-warnings or --disable-compile-warnings was given.
23201 if test "${enable_compile_warnings+set}" = set; then
23202   enableval="$enable_compile_warnings"
23203
23204 else
23205   enable_compile_warnings=yes
23206 fi;
23207
23208   echo "$as_me:$LINENO: checking what warning flags to pass to the C compiler" >&5
23209 echo $ECHO_N "checking what warning flags to pass to the C compiler... $ECHO_C" >&6
23210   warnCFLAGS=
23211   if test "x$GCC" != xyes; then
23212     enable_compile_warnings=no
23213   fi
23214
23215   if test "x$enable_compile_warnings" != "xno"; then
23216     if test "x$GCC" = "xyes"; then
23217       case " $CFLAGS " in
23218       *-Wall*) ;;
23219       *) warnCFLAGS="-g -Wall -Wunused" ;;
23220       esac
23221
23222       ## -W is not all that useful.  And it cannot be controlled
23223       ## with individual -Wno-xxx flags, unlike -Wall
23224       if test "x$enable_compile_warnings" = "xyes"; then
23225         warnCFLAGS="$warnCFLAGS  -Wmissing-prototypes -Wmissing-declarations\
23226                     -finline-functions  -Wshadow -Wpointer-arith \
23227                     -Wwrite-strings -Wno-unused-function -Werror"
23228       fi
23229     fi
23230   fi
23231   echo "$as_me:$LINENO: result: $warnCFLAGS" >&5
23232 echo "${ECHO_T}$warnCFLAGS" >&6
23233
23234   # Check whether --enable-iso-c or --disable-iso-c was given.
23235 if test "${enable_iso_c+set}" = set; then
23236   enableval="$enable_iso_c"
23237
23238 else
23239   enable_iso_c=no
23240 fi;
23241
23242   echo "$as_me:$LINENO: checking what language compliance flags to pass to the C compiler" >&5
23243 echo $ECHO_N "checking what language compliance flags to pass to the C compiler... $ECHO_C" >&6
23244   complCFLAGS=
23245   if test "x$enable_iso_c" != "xno"; then
23246     if test "x$GCC" = "xyes"; then
23247       case " $CFLAGS " in
23248       *-ansi*) ;;
23249       *) complCFLAGS="$complCFLAGS -ansi" ;;
23250       esac
23251
23252       case " $CFLAGS " in
23253       *-pedantic*) ;;
23254       *) complCFLAGS="$complCFLAGS -pedantic" ;;
23255       esac
23256     fi
23257   fi
23258   echo "$as_me:$LINENO: result: $complCFLAGS" >&5
23259 echo "${ECHO_T}$complCFLAGS" >&6
23260   if test "x$cflags_set" != "xyes"; then
23261     CFLAGS="$CFLAGS $warnCFLAGS $complCFLAGS"
23262     cflags_set=yes
23263
23264   fi
23265
23266 fi
23267
23268
23269
23270
23271
23272 # Extract the first word of "bash", so it can be a program name with args.
23273 set dummy bash; ac_word=$2
23274 echo "$as_me:$LINENO: checking for $ac_word" >&5
23275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23276 if test "${ac_cv_prog_BASH+set}" = set; then
23277   echo $ECHO_N "(cached) $ECHO_C" >&6
23278 else
23279   if test -n "$BASH"; then
23280   ac_cv_prog_BASH="$BASH" # Let the user override the test.
23281 else
23282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23283 for as_dir in $PATH
23284 do
23285   IFS=$as_save_IFS
23286   test -z "$as_dir" && as_dir=.
23287   for ac_exec_ext in '' $ac_executable_extensions; do
23288   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23289     ac_cv_prog_BASH="`which bash`"
23290     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23291     break 2
23292   fi
23293 done
23294 done
23295
23296   test -z "$ac_cv_prog_BASH" && ac_cv_prog_BASH="/bin/sh"
23297 fi
23298 fi
23299 BASH=$ac_cv_prog_BASH
23300 if test -n "$BASH"; then
23301   echo "$as_me:$LINENO: result: $BASH" >&5
23302 echo "${ECHO_T}$BASH" >&6
23303 else
23304   echo "$as_me:$LINENO: result: no" >&5
23305 echo "${ECHO_T}no" >&6
23306 fi
23307
23308 WARNING="This file is generated, do not edit"
23309
23310
23311                                                                                                                                                                 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/run_tests src/base/Tests/trp_tcp_usage src/base/Tests/trp_file_usage src/modules/Makefile src/examples/Makefile src/examples/ping/Makefile src/examples/bandwidth/Makefile src/examples/saturate/Makefile src/examples/alnem/Makefile doc/Makefile"
23312
23313
23314 cat >confcache <<\_ACEOF
23315 # This file is a shell script that caches the results of configure
23316 # tests run on this system so they can be shared between configure
23317 # scripts and configure runs, see configure's option --config-cache.
23318 # It is not useful on other systems.  If it contains results you don't
23319 # want to keep, you may remove or edit it.
23320 #
23321 # config.status only pays attention to the cache file if you give it
23322 # the --recheck option to rerun configure.
23323 #
23324 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23325 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23326 # following values.
23327
23328 _ACEOF
23329
23330 # The following way of writing the cache mishandles newlines in values,
23331 # but we know of no workaround that is simple, portable, and efficient.
23332 # So, don't put newlines in cache variables' values.
23333 # Ultrix sh set writes to stderr and can't be redirected directly,
23334 # and sets the high bit in the cache file unless we assign to the vars.
23335 {
23336   (set) 2>&1 |
23337     case `(ac_space=' '; set | grep ac_space) 2>&1` in
23338     *ac_space=\ *)
23339       # `set' does not quote correctly, so add quotes (double-quote
23340       # substitution turns \\\\ into \\, and sed turns \\ into \).
23341       sed -n \
23342         "s/'/'\\\\''/g;
23343           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23344       ;;
23345     *)
23346       # `set' quotes correctly as required by POSIX, so do not add quotes.
23347       sed -n \
23348         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23349       ;;
23350     esac;
23351 } |
23352   sed '
23353      t clear
23354      : clear
23355      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23356      t end
23357      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23358      : end' >>confcache
23359 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23360   if test -w $cache_file; then
23361     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23362     cat confcache >$cache_file
23363   else
23364     echo "not updating unwritable cache $cache_file"
23365   fi
23366 fi
23367 rm -f confcache
23368
23369 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23370 # Let make expand exec_prefix.
23371 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23372
23373 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23374 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23375 # trailing colons and then remove the whole line if VPATH becomes empty
23376 # (actually we leave an empty line to preserve line numbers).
23377 if test "x$srcdir" = x.; then
23378   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23379 s/:*\$(srcdir):*/:/;
23380 s/:*\${srcdir}:*/:/;
23381 s/:*@srcdir@:*/:/;
23382 s/^\([^=]*=[     ]*\):*/\1/;
23383 s/:*$//;
23384 s/^[^=]*=[       ]*$//;
23385 }'
23386 fi
23387
23388 DEFS=-DHAVE_CONFIG_H
23389
23390 ac_libobjs=
23391 ac_ltlibobjs=
23392 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23393   # 1. Remove the extension, and $U if already installed.
23394   ac_i=`echo "$ac_i" |
23395          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23396   # 2. Add them.
23397   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23398   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23399 done
23400 LIBOBJS=$ac_libobjs
23401
23402 LTLIBOBJS=$ac_ltlibobjs
23403
23404
23405 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23406   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23407 Usually this means the macro was only invoked conditionally." >&5
23408 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23409 Usually this means the macro was only invoked conditionally." >&2;}
23410    { (exit 1); exit 1; }; }
23411 fi
23412 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23413   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23414 Usually this means the macro was only invoked conditionally." >&5
23415 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23416 Usually this means the macro was only invoked conditionally." >&2;}
23417    { (exit 1); exit 1; }; }
23418 fi
23419 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23420   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23421 Usually this means the macro was only invoked conditionally." >&5
23422 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23423 Usually this means the macro was only invoked conditionally." >&2;}
23424    { (exit 1); exit 1; }; }
23425 fi
23426 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23427   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23428 Usually this means the macro was only invoked conditionally." >&5
23429 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23430 Usually this means the macro was only invoked conditionally." >&2;}
23431    { (exit 1); exit 1; }; }
23432 fi
23433 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
23434   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK_DOC\" was never defined.
23435 Usually this means the macro was only invoked conditionally." >&5
23436 echo "$as_me: error: conditional \"ENABLE_GTK_DOC\" was never defined.
23437 Usually this means the macro was only invoked conditionally." >&2;}
23438    { (exit 1); exit 1; }; }
23439 fi
23440 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
23441   { { echo "$as_me:$LINENO: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
23442 Usually this means the macro was only invoked conditionally." >&5
23443 echo "$as_me: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
23444 Usually this means the macro was only invoked conditionally." >&2;}
23445    { (exit 1); exit 1; }; }
23446 fi
23447 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23448   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23449 Usually this means the macro was only invoked conditionally." >&5
23450 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23451 Usually this means the macro was only invoked conditionally." >&2;}
23452    { (exit 1); exit 1; }; }
23453 fi
23454
23455 : ${CONFIG_STATUS=./config.status}
23456 ac_clean_files_save=$ac_clean_files
23457 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23458 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23459 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23460 cat >$CONFIG_STATUS <<_ACEOF
23461 #! $SHELL
23462 # Generated by $as_me.
23463 # Run this file to recreate the current configuration.
23464 # Compiler output produced by configure, useful for debugging
23465 # configure, is in config.log if it exists.
23466
23467 debug=false
23468 ac_cs_recheck=false
23469 ac_cs_silent=false
23470 SHELL=\${CONFIG_SHELL-$SHELL}
23471 _ACEOF
23472
23473 cat >>$CONFIG_STATUS <<\_ACEOF
23474 ## --------------------- ##
23475 ## M4sh Initialization.  ##
23476 ## --------------------- ##
23477
23478 # Be Bourne compatible
23479 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23480   emulate sh
23481   NULLCMD=:
23482   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23483   # is contrary to our usage.  Disable this feature.
23484   alias -g '${1+"$@"}'='"$@"'
23485 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23486   set -o posix
23487 fi
23488 DUALCASE=1; export DUALCASE # for MKS sh
23489
23490 # Support unset when possible.
23491 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23492   as_unset=unset
23493 else
23494   as_unset=false
23495 fi
23496
23497
23498 # Work around bugs in pre-3.0 UWIN ksh.
23499 $as_unset ENV MAIL MAILPATH
23500 PS1='$ '
23501 PS2='> '
23502 PS4='+ '
23503
23504 # NLS nuisances.
23505 for as_var in \
23506   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23507   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23508   LC_TELEPHONE LC_TIME
23509 do
23510   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23511     eval $as_var=C; export $as_var
23512   else
23513     $as_unset $as_var
23514   fi
23515 done
23516
23517 # Required to use basename.
23518 if expr a : '\(a\)' >/dev/null 2>&1; then
23519   as_expr=expr
23520 else
23521   as_expr=false
23522 fi
23523
23524 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23525   as_basename=basename
23526 else
23527   as_basename=false
23528 fi
23529
23530
23531 # Name of the executable.
23532 as_me=`$as_basename "$0" ||
23533 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23534          X"$0" : 'X\(//\)$' \| \
23535          X"$0" : 'X\(/\)$' \| \
23536          .     : '\(.\)' 2>/dev/null ||
23537 echo X/"$0" |
23538     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23539           /^X\/\(\/\/\)$/{ s//\1/; q; }
23540           /^X\/\(\/\).*/{ s//\1/; q; }
23541           s/.*/./; q'`
23542
23543
23544 # PATH needs CR, and LINENO needs CR and PATH.
23545 # Avoid depending upon Character Ranges.
23546 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23547 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23548 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23549 as_cr_digits='0123456789'
23550 as_cr_alnum=$as_cr_Letters$as_cr_digits
23551
23552 # The user is always right.
23553 if test "${PATH_SEPARATOR+set}" != set; then
23554   echo "#! /bin/sh" >conf$$.sh
23555   echo  "exit 0"   >>conf$$.sh
23556   chmod +x conf$$.sh
23557   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23558     PATH_SEPARATOR=';'
23559   else
23560     PATH_SEPARATOR=:
23561   fi
23562   rm -f conf$$.sh
23563 fi
23564
23565
23566   as_lineno_1=$LINENO
23567   as_lineno_2=$LINENO
23568   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23569   test "x$as_lineno_1" != "x$as_lineno_2" &&
23570   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23571   # Find who we are.  Look in the path if we contain no path at all
23572   # relative or not.
23573   case $0 in
23574     *[\\/]* ) as_myself=$0 ;;
23575     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23576 for as_dir in $PATH
23577 do
23578   IFS=$as_save_IFS
23579   test -z "$as_dir" && as_dir=.
23580   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23581 done
23582
23583        ;;
23584   esac
23585   # We did not find ourselves, most probably we were run as `sh COMMAND'
23586   # in which case we are not to be found in the path.
23587   if test "x$as_myself" = x; then
23588     as_myself=$0
23589   fi
23590   if test ! -f "$as_myself"; then
23591     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23592 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23593    { (exit 1); exit 1; }; }
23594   fi
23595   case $CONFIG_SHELL in
23596   '')
23597     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23598 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23599 do
23600   IFS=$as_save_IFS
23601   test -z "$as_dir" && as_dir=.
23602   for as_base in sh bash ksh sh5; do
23603          case $as_dir in
23604          /*)
23605            if ("$as_dir/$as_base" -c '
23606   as_lineno_1=$LINENO
23607   as_lineno_2=$LINENO
23608   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23609   test "x$as_lineno_1" != "x$as_lineno_2" &&
23610   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23611              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23612              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23613              CONFIG_SHELL=$as_dir/$as_base
23614              export CONFIG_SHELL
23615              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23616            fi;;
23617          esac
23618        done
23619 done
23620 ;;
23621   esac
23622
23623   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23624   # uniformly replaced by the line number.  The first 'sed' inserts a
23625   # line-number line before each line; the second 'sed' does the real
23626   # work.  The second script uses 'N' to pair each line-number line
23627   # with the numbered line, and appends trailing '-' during
23628   # substitution so that $LINENO is not a special case at line end.
23629   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23630   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23631   sed '=' <$as_myself |
23632     sed '
23633       N
23634       s,$,-,
23635       : loop
23636       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23637       t loop
23638       s,-$,,
23639       s,^['$as_cr_digits']*\n,,
23640     ' >$as_me.lineno &&
23641   chmod +x $as_me.lineno ||
23642     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23643 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23644    { (exit 1); exit 1; }; }
23645
23646   # Don't try to exec as it changes $[0], causing all sort of problems
23647   # (the dirname of $[0] is not the place where we might find the
23648   # original and so on.  Autoconf is especially sensible to this).
23649   . ./$as_me.lineno
23650   # Exit status is that of the last command.
23651   exit
23652 }
23653
23654
23655 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23656   *c*,-n*) ECHO_N= ECHO_C='
23657 ' ECHO_T='      ' ;;
23658   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23659   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23660 esac
23661
23662 if expr a : '\(a\)' >/dev/null 2>&1; then
23663   as_expr=expr
23664 else
23665   as_expr=false
23666 fi
23667
23668 rm -f conf$$ conf$$.exe conf$$.file
23669 echo >conf$$.file
23670 if ln -s conf$$.file conf$$ 2>/dev/null; then
23671   # We could just check for DJGPP; but this test a) works b) is more generic
23672   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23673   if test -f conf$$.exe; then
23674     # Don't use ln at all; we don't have any links
23675     as_ln_s='cp -p'
23676   else
23677     as_ln_s='ln -s'
23678   fi
23679 elif ln conf$$.file conf$$ 2>/dev/null; then
23680   as_ln_s=ln
23681 else
23682   as_ln_s='cp -p'
23683 fi
23684 rm -f conf$$ conf$$.exe conf$$.file
23685
23686 if mkdir -p . 2>/dev/null; then
23687   as_mkdir_p=:
23688 else
23689   test -d ./-p && rmdir ./-p
23690   as_mkdir_p=false
23691 fi
23692
23693 as_executable_p="test -f"
23694
23695 # Sed expression to map a string onto a valid CPP name.
23696 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23697
23698 # Sed expression to map a string onto a valid variable name.
23699 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23700
23701
23702 # IFS
23703 # We need space, tab and new line, in precisely that order.
23704 as_nl='
23705 '
23706 IFS="   $as_nl"
23707
23708 # CDPATH.
23709 $as_unset CDPATH
23710
23711 exec 6>&1
23712
23713 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23714 # report actual input values of CONFIG_FILES etc. instead of their
23715 # values after options handling.  Logging --version etc. is OK.
23716 exec 5>>config.log
23717 {
23718   echo
23719   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23720 ## Running $as_me. ##
23721 _ASBOX
23722 } >&5
23723 cat >&5 <<_CSEOF
23724
23725 This file was extended by GRAS $as_me 0.0.040304, which was
23726 generated by GNU Autoconf 2.59.  Invocation command line was
23727
23728   CONFIG_FILES    = $CONFIG_FILES
23729   CONFIG_HEADERS  = $CONFIG_HEADERS
23730   CONFIG_LINKS    = $CONFIG_LINKS
23731   CONFIG_COMMANDS = $CONFIG_COMMANDS
23732   $ $0 $@
23733
23734 _CSEOF
23735 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23736 echo >&5
23737 _ACEOF
23738
23739 # Files that config.status was made for.
23740 if test -n "$ac_config_files"; then
23741   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23742 fi
23743
23744 if test -n "$ac_config_headers"; then
23745   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23746 fi
23747
23748 if test -n "$ac_config_links"; then
23749   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23750 fi
23751
23752 if test -n "$ac_config_commands"; then
23753   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23754 fi
23755
23756 cat >>$CONFIG_STATUS <<\_ACEOF
23757
23758 ac_cs_usage="\
23759 \`$as_me' instantiates files from templates according to the
23760 current configuration.
23761
23762 Usage: $0 [OPTIONS] [FILE]...
23763
23764   -h, --help       print this help, then exit
23765   -V, --version    print version number, then exit
23766   -q, --quiet      do not print progress messages
23767   -d, --debug      don't remove temporary files
23768       --recheck    update $as_me by reconfiguring in the same conditions
23769   --file=FILE[:TEMPLATE]
23770                    instantiate the configuration file FILE
23771   --header=FILE[:TEMPLATE]
23772                    instantiate the configuration header FILE
23773
23774 Configuration files:
23775 $config_files
23776
23777 Configuration headers:
23778 $config_headers
23779
23780 Configuration commands:
23781 $config_commands
23782
23783 Report bugs to <bug-autoconf@gnu.org>."
23784 _ACEOF
23785
23786 cat >>$CONFIG_STATUS <<_ACEOF
23787 ac_cs_version="\\
23788 GRAS config.status 0.0.040304
23789 configured by $0, generated by GNU Autoconf 2.59,
23790   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23791
23792 Copyright (C) 2003 Free Software Foundation, Inc.
23793 This config.status script is free software; the Free Software Foundation
23794 gives unlimited permission to copy, distribute and modify it."
23795 srcdir=$srcdir
23796 INSTALL="$INSTALL"
23797 _ACEOF
23798
23799 cat >>$CONFIG_STATUS <<\_ACEOF
23800 # If no file are specified by the user, then we need to provide default
23801 # value.  By we need to know if files were specified by the user.
23802 ac_need_defaults=:
23803 while test $# != 0
23804 do
23805   case $1 in
23806   --*=*)
23807     ac_option=`expr "x$1" : 'x\([^=]*\)='`
23808     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23809     ac_shift=:
23810     ;;
23811   -*)
23812     ac_option=$1
23813     ac_optarg=$2
23814     ac_shift=shift
23815     ;;
23816   *) # This is not an option, so the user has probably given explicit
23817      # arguments.
23818      ac_option=$1
23819      ac_need_defaults=false;;
23820   esac
23821
23822   case $ac_option in
23823   # Handling of the options.
23824 _ACEOF
23825 cat >>$CONFIG_STATUS <<\_ACEOF
23826   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23827     ac_cs_recheck=: ;;
23828   --version | --vers* | -V )
23829     echo "$ac_cs_version"; exit 0 ;;
23830   --he | --h)
23831     # Conflict between --help and --header
23832     { { echo "$as_me:$LINENO: error: ambiguous option: $1
23833 Try \`$0 --help' for more information." >&5
23834 echo "$as_me: error: ambiguous option: $1
23835 Try \`$0 --help' for more information." >&2;}
23836    { (exit 1); exit 1; }; };;
23837   --help | --hel | -h )
23838     echo "$ac_cs_usage"; exit 0 ;;
23839   --debug | --d* | -d )
23840     debug=: ;;
23841   --file | --fil | --fi | --f )
23842     $ac_shift
23843     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23844     ac_need_defaults=false;;
23845   --header | --heade | --head | --hea )
23846     $ac_shift
23847     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23848     ac_need_defaults=false;;
23849   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23850   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23851     ac_cs_silent=: ;;
23852
23853   # This is an error.
23854   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23855 Try \`$0 --help' for more information." >&5
23856 echo "$as_me: error: unrecognized option: $1
23857 Try \`$0 --help' for more information." >&2;}
23858    { (exit 1); exit 1; }; } ;;
23859
23860   *) ac_config_targets="$ac_config_targets $1" ;;
23861
23862   esac
23863   shift
23864 done
23865
23866 ac_configure_extra_args=
23867
23868 if $ac_cs_silent; then
23869   exec 6>/dev/null
23870   ac_configure_extra_args="$ac_configure_extra_args --silent"
23871 fi
23872
23873 _ACEOF
23874 cat >>$CONFIG_STATUS <<_ACEOF
23875 if \$ac_cs_recheck; then
23876   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23877   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23878 fi
23879
23880 _ACEOF
23881
23882 cat >>$CONFIG_STATUS <<_ACEOF
23883 #
23884 # INIT-COMMANDS section.
23885 #
23886
23887 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23888
23889 _ACEOF
23890
23891
23892
23893 cat >>$CONFIG_STATUS <<\_ACEOF
23894 for ac_config_target in $ac_config_targets
23895 do
23896   case "$ac_config_target" in
23897   # Handling of arguments.
23898   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23899   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23900   "src/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
23901   "src/include/modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/modules/Makefile" ;;
23902   "src/base/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/base/Makefile" ;;
23903   "src/base/Tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/base/Tests/Makefile" ;;
23904   "src/base/Tests/run_tests" ) CONFIG_FILES="$CONFIG_FILES src/base/Tests/run_tests" ;;
23905   "src/base/Tests/trp_tcp_usage" ) CONFIG_FILES="$CONFIG_FILES src/base/Tests/trp_tcp_usage" ;;
23906   "src/base/Tests/trp_file_usage" ) CONFIG_FILES="$CONFIG_FILES src/base/Tests/trp_file_usage" ;;
23907   "src/modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/modules/Makefile" ;;
23908   "src/examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/Makefile" ;;
23909   "src/examples/ping/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/ping/Makefile" ;;
23910   "src/examples/bandwidth/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/bandwidth/Makefile" ;;
23911   "src/examples/saturate/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/saturate/Makefile" ;;
23912   "src/examples/alnem/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/alnem/Makefile" ;;
23913   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
23914   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23915   "src/gras_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/gras_config.h" ;;
23916   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23917 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23918    { (exit 1); exit 1; }; };;
23919   esac
23920 done
23921
23922 # If the user did not use the arguments to specify the items to instantiate,
23923 # then the envvar interface is used.  Set only those that are not.
23924 # We use the long form for the default assignment because of an extremely
23925 # bizarre bug on SunOS 4.1.3.
23926 if $ac_need_defaults; then
23927   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23928   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23929   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23930 fi
23931
23932 # Have a temporary directory for convenience.  Make it in the build tree
23933 # simply because there is no reason to put it here, and in addition,
23934 # creating and moving files from /tmp can sometimes cause problems.
23935 # Create a temporary directory, and hook for its removal unless debugging.
23936 $debug ||
23937 {
23938   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23939   trap '{ (exit 1); exit 1; }' 1 2 13 15
23940 }
23941
23942 # Create a (secure) tmp directory for tmp files.
23943
23944 {
23945   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23946   test -n "$tmp" && test -d "$tmp"
23947 }  ||
23948 {
23949   tmp=./confstat$$-$RANDOM
23950   (umask 077 && mkdir $tmp)
23951 } ||
23952 {
23953    echo "$me: cannot create a temporary directory in ." >&2
23954    { (exit 1); exit 1; }
23955 }
23956
23957 _ACEOF
23958
23959 cat >>$CONFIG_STATUS <<_ACEOF
23960
23961 #
23962 # CONFIG_FILES section.
23963 #
23964
23965 # No need to generate the scripts if there are no CONFIG_FILES.
23966 # This happens for instance when ./config.status config.h
23967 if test -n "\$CONFIG_FILES"; then
23968   # Protect against being on the right side of a sed subst in config.status.
23969   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23970    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23971 s,@SHELL@,$SHELL,;t t
23972 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23973 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23974 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23975 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23976 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23977 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23978 s,@exec_prefix@,$exec_prefix,;t t
23979 s,@prefix@,$prefix,;t t
23980 s,@program_transform_name@,$program_transform_name,;t t
23981 s,@bindir@,$bindir,;t t
23982 s,@sbindir@,$sbindir,;t t
23983 s,@libexecdir@,$libexecdir,;t t
23984 s,@datadir@,$datadir,;t t
23985 s,@sysconfdir@,$sysconfdir,;t t
23986 s,@sharedstatedir@,$sharedstatedir,;t t
23987 s,@localstatedir@,$localstatedir,;t t
23988 s,@libdir@,$libdir,;t t
23989 s,@includedir@,$includedir,;t t
23990 s,@oldincludedir@,$oldincludedir,;t t
23991 s,@infodir@,$infodir,;t t
23992 s,@mandir@,$mandir,;t t
23993 s,@build_alias@,$build_alias,;t t
23994 s,@host_alias@,$host_alias,;t t
23995 s,@target_alias@,$target_alias,;t t
23996 s,@DEFS@,$DEFS,;t t
23997 s,@ECHO_C@,$ECHO_C,;t t
23998 s,@ECHO_N@,$ECHO_N,;t t
23999 s,@ECHO_T@,$ECHO_T,;t t
24000 s,@LIBS@,$LIBS,;t t
24001 s,@build@,$build,;t t
24002 s,@build_cpu@,$build_cpu,;t t
24003 s,@build_vendor@,$build_vendor,;t t
24004 s,@build_os@,$build_os,;t t
24005 s,@host@,$host,;t t
24006 s,@host_cpu@,$host_cpu,;t t
24007 s,@host_vendor@,$host_vendor,;t t
24008 s,@host_os@,$host_os,;t t
24009 s,@target@,$target,;t t
24010 s,@target_cpu@,$target_cpu,;t t
24011 s,@target_vendor@,$target_vendor,;t t
24012 s,@target_os@,$target_os,;t t
24013 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24014 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24015 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24016 s,@CYGPATH_W@,$CYGPATH_W,;t t
24017 s,@PACKAGE@,$PACKAGE,;t t
24018 s,@VERSION@,$VERSION,;t t
24019 s,@ACLOCAL@,$ACLOCAL,;t t
24020 s,@AUTOCONF@,$AUTOCONF,;t t
24021 s,@AUTOMAKE@,$AUTOMAKE,;t t
24022 s,@AUTOHEADER@,$AUTOHEADER,;t t
24023 s,@MAKEINFO@,$MAKEINFO,;t t
24024 s,@AMTAR@,$AMTAR,;t t
24025 s,@install_sh@,$install_sh,;t t
24026 s,@STRIP@,$STRIP,;t t
24027 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24028 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
24029 s,@AWK@,$AWK,;t t
24030 s,@SET_MAKE@,$SET_MAKE,;t t
24031 s,@am__leading_dot@,$am__leading_dot,;t t
24032 s,@CC@,$CC,;t t
24033 s,@CFLAGS@,$CFLAGS,;t t
24034 s,@LDFLAGS@,$LDFLAGS,;t t
24035 s,@CPPFLAGS@,$CPPFLAGS,;t t
24036 s,@ac_ct_CC@,$ac_ct_CC,;t t
24037 s,@EXEEXT@,$EXEEXT,;t t
24038 s,@OBJEXT@,$OBJEXT,;t t
24039 s,@DEPDIR@,$DEPDIR,;t t
24040 s,@am__include@,$am__include,;t t
24041 s,@am__quote@,$am__quote,;t t
24042 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
24043 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
24044 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
24045 s,@CCDEPMODE@,$CCDEPMODE,;t t
24046 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
24047 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
24048 s,@EGREP@,$EGREP,;t t
24049 s,@LN_S@,$LN_S,;t t
24050 s,@ECHO@,$ECHO,;t t
24051 s,@AR@,$AR,;t t
24052 s,@ac_ct_AR@,$ac_ct_AR,;t t
24053 s,@RANLIB@,$RANLIB,;t t
24054 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24055 s,@CPP@,$CPP,;t t
24056 s,@CXX@,$CXX,;t t
24057 s,@CXXFLAGS@,$CXXFLAGS,;t t
24058 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24059 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
24060 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
24061 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
24062 s,@CXXCPP@,$CXXCPP,;t t
24063 s,@F77@,$F77,;t t
24064 s,@FFLAGS@,$FFLAGS,;t t
24065 s,@ac_ct_F77@,$ac_ct_F77,;t t
24066 s,@LIBTOOL@,$LIBTOOL,;t t
24067 s,@LIBOBJS@,$LIBOBJS,;t t
24068 s,@HTML_DIR@,$HTML_DIR,;t t
24069 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
24070 s,@ENABLE_GTK_DOC_TRUE@,$ENABLE_GTK_DOC_TRUE,;t t
24071 s,@ENABLE_GTK_DOC_FALSE@,$ENABLE_GTK_DOC_FALSE,;t t
24072 s,@GTK_DOC_USE_LIBTOOL_TRUE@,$GTK_DOC_USE_LIBTOOL_TRUE,;t t
24073 s,@GTK_DOC_USE_LIBTOOL_FALSE@,$GTK_DOC_USE_LIBTOOL_FALSE,;t t
24074 s,@ACI_CACHE_PROG@,$ACI_CACHE_PROG,;t t
24075 s,@aci_module_desc_XML@,$aci_module_desc_XML,;t t
24076 s,@aci_pkg_config_XML@,$aci_pkg_config_XML,;t t
24077 s,@HAVE_XML@,$HAVE_XML,;t t
24078 s,@CFLAGS_XML@,$CFLAGS_XML,;t t
24079 s,@LIBS_XML@,$LIBS_XML,;t t
24080 s,@aci_module_desc_SimGrid@,$aci_module_desc_SimGrid,;t t
24081 s,@aci_pkg_prefix_SimGrid@,$aci_pkg_prefix_SimGrid,;t t
24082 s,@aci_pkg_inc_SimGrid@,$aci_pkg_inc_SimGrid,;t t
24083 s,@aci_pkg_lib_SimGrid@,$aci_pkg_lib_SimGrid,;t t
24084 s,@aci_pkg_extra_SimGrid@,$aci_pkg_extra_SimGrid,;t t
24085 s,@HAVE_SimGrid@,$HAVE_SimGrid,;t t
24086 s,@CFLAGS_SimGrid@,$CFLAGS_SimGrid,;t t
24087 s,@LIBS_SimGrid@,$LIBS_SimGrid,;t t
24088 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
24089 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
24090 s,@MAINT@,$MAINT,;t t
24091 s,@cflags_set@,$cflags_set,;t t
24092 s,@BASH@,$BASH,;t t
24093 s,@WARNING@,$WARNING,;t t
24094 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24095 CEOF
24096
24097 _ACEOF
24098
24099   cat >>$CONFIG_STATUS <<\_ACEOF
24100   # Split the substitutions into bite-sized pieces for seds with
24101   # small command number limits, like on Digital OSF/1 and HP-UX.
24102   ac_max_sed_lines=48
24103   ac_sed_frag=1 # Number of current file.
24104   ac_beg=1 # First line for current file.
24105   ac_end=$ac_max_sed_lines # Line after last line for current file.
24106   ac_more_lines=:
24107   ac_sed_cmds=
24108   while $ac_more_lines; do
24109     if test $ac_beg -gt 1; then
24110       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24111     else
24112       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24113     fi
24114     if test ! -s $tmp/subs.frag; then
24115       ac_more_lines=false
24116     else
24117       # The purpose of the label and of the branching condition is to
24118       # speed up the sed processing (if there are no `@' at all, there
24119       # is no need to browse any of the substitutions).
24120       # These are the two extra sed commands mentioned above.
24121       (echo ':t
24122   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24123       if test -z "$ac_sed_cmds"; then
24124         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24125       else
24126         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24127       fi
24128       ac_sed_frag=`expr $ac_sed_frag + 1`
24129       ac_beg=$ac_end
24130       ac_end=`expr $ac_end + $ac_max_sed_lines`
24131     fi
24132   done
24133   if test -z "$ac_sed_cmds"; then
24134     ac_sed_cmds=cat
24135   fi
24136 fi # test -n "$CONFIG_FILES"
24137
24138 _ACEOF
24139 cat >>$CONFIG_STATUS <<\_ACEOF
24140 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24141   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24142   case $ac_file in
24143   - | *:- | *:-:* ) # input from stdin
24144         cat >$tmp/stdin
24145         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24146         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24147   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24148         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24149   * )   ac_file_in=$ac_file.in ;;
24150   esac
24151
24152   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24153   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24154 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24155          X"$ac_file" : 'X\(//\)[^/]' \| \
24156          X"$ac_file" : 'X\(//\)$' \| \
24157          X"$ac_file" : 'X\(/\)' \| \
24158          .     : '\(.\)' 2>/dev/null ||
24159 echo X"$ac_file" |
24160     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24161           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24162           /^X\(\/\/\)$/{ s//\1/; q; }
24163           /^X\(\/\).*/{ s//\1/; q; }
24164           s/.*/./; q'`
24165   { if $as_mkdir_p; then
24166     mkdir -p "$ac_dir"
24167   else
24168     as_dir="$ac_dir"
24169     as_dirs=
24170     while test ! -d "$as_dir"; do
24171       as_dirs="$as_dir $as_dirs"
24172       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24173 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24174          X"$as_dir" : 'X\(//\)[^/]' \| \
24175          X"$as_dir" : 'X\(//\)$' \| \
24176          X"$as_dir" : 'X\(/\)' \| \
24177          .     : '\(.\)' 2>/dev/null ||
24178 echo X"$as_dir" |
24179     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24180           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24181           /^X\(\/\/\)$/{ s//\1/; q; }
24182           /^X\(\/\).*/{ s//\1/; q; }
24183           s/.*/./; q'`
24184     done
24185     test ! -n "$as_dirs" || mkdir $as_dirs
24186   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24187 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24188    { (exit 1); exit 1; }; }; }
24189
24190   ac_builddir=.
24191
24192 if test "$ac_dir" != .; then
24193   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24194   # A "../" for each directory in $ac_dir_suffix.
24195   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24196 else
24197   ac_dir_suffix= ac_top_builddir=
24198 fi
24199
24200 case $srcdir in
24201   .)  # No --srcdir option.  We are building in place.
24202     ac_srcdir=.
24203     if test -z "$ac_top_builddir"; then
24204        ac_top_srcdir=.
24205     else
24206        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24207     fi ;;
24208   [\\/]* | ?:[\\/]* )  # Absolute path.
24209     ac_srcdir=$srcdir$ac_dir_suffix;
24210     ac_top_srcdir=$srcdir ;;
24211   *) # Relative path.
24212     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24213     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24214 esac
24215
24216 # Do not use `cd foo && pwd` to compute absolute paths, because
24217 # the directories may not exist.
24218 case `pwd` in
24219 .) ac_abs_builddir="$ac_dir";;
24220 *)
24221   case "$ac_dir" in
24222   .) ac_abs_builddir=`pwd`;;
24223   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24224   *) ac_abs_builddir=`pwd`/"$ac_dir";;
24225   esac;;
24226 esac
24227 case $ac_abs_builddir in
24228 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24229 *)
24230   case ${ac_top_builddir}. in
24231   .) ac_abs_top_builddir=$ac_abs_builddir;;
24232   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24233   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24234   esac;;
24235 esac
24236 case $ac_abs_builddir in
24237 .) ac_abs_srcdir=$ac_srcdir;;
24238 *)
24239   case $ac_srcdir in
24240   .) ac_abs_srcdir=$ac_abs_builddir;;
24241   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24242   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24243   esac;;
24244 esac
24245 case $ac_abs_builddir in
24246 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24247 *)
24248   case $ac_top_srcdir in
24249   .) ac_abs_top_srcdir=$ac_abs_builddir;;
24250   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24251   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24252   esac;;
24253 esac
24254
24255
24256   case $INSTALL in
24257   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24258   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24259   esac
24260
24261   # Let's still pretend it is `configure' which instantiates (i.e., don't
24262   # use $as_me), people would be surprised to read:
24263   #    /* config.h.  Generated by config.status.  */
24264   if test x"$ac_file" = x-; then
24265     configure_input=
24266   else
24267     configure_input="$ac_file.  "
24268   fi
24269   configure_input=$configure_input"Generated from `echo $ac_file_in |
24270                                      sed 's,.*/,,'` by configure."
24271
24272   # First look for the input files in the build tree, otherwise in the
24273   # src tree.
24274   ac_file_inputs=`IFS=:
24275     for f in $ac_file_in; do
24276       case $f in
24277       -) echo $tmp/stdin ;;
24278       [\\/$]*)
24279          # Absolute (can't be DOS-style, as IFS=:)
24280          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24281 echo "$as_me: error: cannot find input file: $f" >&2;}
24282    { (exit 1); exit 1; }; }
24283          echo "$f";;
24284       *) # Relative
24285          if test -f "$f"; then
24286            # Build tree
24287            echo "$f"
24288          elif test -f "$srcdir/$f"; then
24289            # Source tree
24290            echo "$srcdir/$f"
24291          else
24292            # /dev/null tree
24293            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24294 echo "$as_me: error: cannot find input file: $f" >&2;}
24295    { (exit 1); exit 1; }; }
24296          fi;;
24297       esac
24298     done` || { (exit 1); exit 1; }
24299
24300   if test x"$ac_file" != x-; then
24301     { echo "$as_me:$LINENO: creating $ac_file" >&5
24302 echo "$as_me: creating $ac_file" >&6;}
24303     rm -f "$ac_file"
24304   fi
24305 _ACEOF
24306 cat >>$CONFIG_STATUS <<_ACEOF
24307   sed "$ac_vpsub
24308 $extrasub
24309 _ACEOF
24310 cat >>$CONFIG_STATUS <<\_ACEOF
24311 :t
24312 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24313 s,@configure_input@,$configure_input,;t t
24314 s,@srcdir@,$ac_srcdir,;t t
24315 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24316 s,@top_srcdir@,$ac_top_srcdir,;t t
24317 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24318 s,@builddir@,$ac_builddir,;t t
24319 s,@abs_builddir@,$ac_abs_builddir,;t t
24320 s,@top_builddir@,$ac_top_builddir,;t t
24321 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24322 s,@INSTALL@,$ac_INSTALL,;t t
24323 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24324   rm -f $tmp/stdin
24325   if test x"$ac_file" != x-; then
24326     mv $tmp/out $ac_file
24327   else
24328     cat $tmp/out
24329     rm -f $tmp/out
24330   fi
24331
24332   # Run the commands associated with the file.
24333   case $ac_file in
24334     Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24335      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24336      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24337      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests;
24338      chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg ;;
24339     src/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24340      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24341      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24342      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests;
24343      chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg ;;
24344     src/include/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24345      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24346      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24347      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests;
24348      chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg ;;
24349     src/include/modules/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24350      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24351      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24352      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests;
24353      chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg ;;
24354     src/base/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24355      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24356      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24357      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests;
24358      chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg ;;
24359     src/base/Tests/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24360      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24361      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24362      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests;
24363      chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg ;;
24364     src/base/Tests/run_tests ) ( cd src/include ; test -e gras || ln -s . gras )
24365      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24366      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24367      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests;
24368      chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg ;;
24369     src/base/Tests/trp_tcp_usage ) ( cd src/include ; test -e gras || ln -s . gras )
24370      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24371      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24372      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests;
24373      chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg ;;
24374     src/base/Tests/trp_file_usage ) ( cd src/include ; test -e gras || ln -s . gras )
24375      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24376      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24377      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests;
24378      chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg ;;
24379     src/modules/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24380      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24381      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24382      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests;
24383      chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg ;;
24384     src/examples/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24385      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24386      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24387      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests;
24388      chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg ;;
24389     src/examples/ping/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24390      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24391      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24392      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests;
24393      chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg ;;
24394     src/examples/bandwidth/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24395      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24396      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24397      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests;
24398      chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg ;;
24399     src/examples/saturate/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24400      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24401      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24402      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests;
24403      chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg ;;
24404     src/examples/alnem/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24405      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24406      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24407      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests;
24408      chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg ;;
24409     doc/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24410      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24411      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24412      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests;
24413      chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg ;;
24414   esac
24415 done
24416 _ACEOF
24417 cat >>$CONFIG_STATUS <<\_ACEOF
24418
24419 #
24420 # CONFIG_HEADER section.
24421 #
24422
24423 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24424 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24425 #
24426 # ac_d sets the value in "#define NAME VALUE" lines.
24427 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
24428 ac_dB='[         ].*$,\1#\2'
24429 ac_dC=' '
24430 ac_dD=',;t'
24431 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24432 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24433 ac_uB='$,\1#\2define\3'
24434 ac_uC=' '
24435 ac_uD=',;t'
24436
24437 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24438   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24439   case $ac_file in
24440   - | *:- | *:-:* ) # input from stdin
24441         cat >$tmp/stdin
24442         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24443         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24444   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24445         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24446   * )   ac_file_in=$ac_file.in ;;
24447   esac
24448
24449   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24450 echo "$as_me: creating $ac_file" >&6;}
24451
24452   # First look for the input files in the build tree, otherwise in the
24453   # src tree.
24454   ac_file_inputs=`IFS=:
24455     for f in $ac_file_in; do
24456       case $f in
24457       -) echo $tmp/stdin ;;
24458       [\\/$]*)
24459          # Absolute (can't be DOS-style, as IFS=:)
24460          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24461 echo "$as_me: error: cannot find input file: $f" >&2;}
24462    { (exit 1); exit 1; }; }
24463          # Do quote $f, to prevent DOS paths from being IFS'd.
24464          echo "$f";;
24465       *) # Relative
24466          if test -f "$f"; then
24467            # Build tree
24468            echo "$f"
24469          elif test -f "$srcdir/$f"; then
24470            # Source tree
24471            echo "$srcdir/$f"
24472          else
24473            # /dev/null tree
24474            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24475 echo "$as_me: error: cannot find input file: $f" >&2;}
24476    { (exit 1); exit 1; }; }
24477          fi;;
24478       esac
24479     done` || { (exit 1); exit 1; }
24480   # Remove the trailing spaces.
24481   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
24482
24483 _ACEOF
24484
24485 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24486 # `conftest.undefs', that substitutes the proper values into
24487 # config.h.in to produce config.h.  The first handles `#define'
24488 # templates, and the second `#undef' templates.
24489 # And first: Protect against being on the right side of a sed subst in
24490 # config.status.  Protect against being in an unquoted here document
24491 # in config.status.
24492 rm -f conftest.defines conftest.undefs
24493 # Using a here document instead of a string reduces the quoting nightmare.
24494 # Putting comments in sed scripts is not portable.
24495 #
24496 # `end' is used to avoid that the second main sed command (meant for
24497 # 0-ary CPP macros) applies to n-ary macro definitions.
24498 # See the Autoconf documentation for `clear'.
24499 cat >confdef2sed.sed <<\_ACEOF
24500 s/[\\&,]/\\&/g
24501 s,[\\$`],\\&,g
24502 t clear
24503 : clear
24504 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24505 t end
24506 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24507 : end
24508 _ACEOF
24509 # If some macros were called several times there might be several times
24510 # the same #defines, which is useless.  Nevertheless, we may not want to
24511 # sort them, since we want the *last* AC-DEFINE to be honored.
24512 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24513 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24514 rm -f confdef2sed.sed
24515
24516 # This sed command replaces #undef with comments.  This is necessary, for
24517 # example, in the case of _POSIX_SOURCE, which is predefined and required
24518 # on some systems where configure will not decide to define it.
24519 cat >>conftest.undefs <<\_ACEOF
24520 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24521 _ACEOF
24522
24523 # Break up conftest.defines because some shells have a limit on the size
24524 # of here documents, and old seds have small limits too (100 cmds).
24525 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24526 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24527 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24528 echo '  :' >>$CONFIG_STATUS
24529 rm -f conftest.tail
24530 while grep . conftest.defines >/dev/null
24531 do
24532   # Write a limited-size here document to $tmp/defines.sed.
24533   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24534   # Speed up: don't consider the non `#define' lines.
24535   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
24536   # Work around the forget-to-reset-the-flag bug.
24537   echo 't clr' >>$CONFIG_STATUS
24538   echo ': clr' >>$CONFIG_STATUS
24539   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24540   echo 'CEOF
24541   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24542   rm -f $tmp/in
24543   mv $tmp/out $tmp/in
24544 ' >>$CONFIG_STATUS
24545   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24546   rm -f conftest.defines
24547   mv conftest.tail conftest.defines
24548 done
24549 rm -f conftest.defines
24550 echo '  fi # grep' >>$CONFIG_STATUS
24551 echo >>$CONFIG_STATUS
24552
24553 # Break up conftest.undefs because some shells have a limit on the size
24554 # of here documents, and old seds have small limits too (100 cmds).
24555 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24556 rm -f conftest.tail
24557 while grep . conftest.undefs >/dev/null
24558 do
24559   # Write a limited-size here document to $tmp/undefs.sed.
24560   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24561   # Speed up: don't consider the non `#undef'
24562   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24563   # Work around the forget-to-reset-the-flag bug.
24564   echo 't clr' >>$CONFIG_STATUS
24565   echo ': clr' >>$CONFIG_STATUS
24566   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24567   echo 'CEOF
24568   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24569   rm -f $tmp/in
24570   mv $tmp/out $tmp/in
24571 ' >>$CONFIG_STATUS
24572   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24573   rm -f conftest.undefs
24574   mv conftest.tail conftest.undefs
24575 done
24576 rm -f conftest.undefs
24577
24578 cat >>$CONFIG_STATUS <<\_ACEOF
24579   # Let's still pretend it is `configure' which instantiates (i.e., don't
24580   # use $as_me), people would be surprised to read:
24581   #    /* config.h.  Generated by config.status.  */
24582   if test x"$ac_file" = x-; then
24583     echo "/* Generated by configure.  */" >$tmp/config.h
24584   else
24585     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24586   fi
24587   cat $tmp/in >>$tmp/config.h
24588   rm -f $tmp/in
24589   if test x"$ac_file" != x-; then
24590     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24591       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24592 echo "$as_me: $ac_file is unchanged" >&6;}
24593     else
24594       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24595 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24596          X"$ac_file" : 'X\(//\)[^/]' \| \
24597          X"$ac_file" : 'X\(//\)$' \| \
24598          X"$ac_file" : 'X\(/\)' \| \
24599          .     : '\(.\)' 2>/dev/null ||
24600 echo X"$ac_file" |
24601     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24602           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24603           /^X\(\/\/\)$/{ s//\1/; q; }
24604           /^X\(\/\).*/{ s//\1/; q; }
24605           s/.*/./; q'`
24606       { if $as_mkdir_p; then
24607     mkdir -p "$ac_dir"
24608   else
24609     as_dir="$ac_dir"
24610     as_dirs=
24611     while test ! -d "$as_dir"; do
24612       as_dirs="$as_dir $as_dirs"
24613       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24614 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24615          X"$as_dir" : 'X\(//\)[^/]' \| \
24616          X"$as_dir" : 'X\(//\)$' \| \
24617          X"$as_dir" : 'X\(/\)' \| \
24618          .     : '\(.\)' 2>/dev/null ||
24619 echo X"$as_dir" |
24620     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24621           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24622           /^X\(\/\/\)$/{ s//\1/; q; }
24623           /^X\(\/\).*/{ s//\1/; q; }
24624           s/.*/./; q'`
24625     done
24626     test ! -n "$as_dirs" || mkdir $as_dirs
24627   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24628 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24629    { (exit 1); exit 1; }; }; }
24630
24631       rm -f $ac_file
24632       mv $tmp/config.h $ac_file
24633     fi
24634   else
24635     cat $tmp/config.h
24636     rm -f $tmp/config.h
24637   fi
24638 # Compute $ac_file's index in $config_headers.
24639 _am_stamp_count=1
24640 for _am_header in $config_headers :; do
24641   case $_am_header in
24642     $ac_file | $ac_file:* )
24643       break ;;
24644     * )
24645       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24646   esac
24647 done
24648 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
24649 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24650          X$ac_file : 'X\(//\)[^/]' \| \
24651          X$ac_file : 'X\(//\)$' \| \
24652          X$ac_file : 'X\(/\)' \| \
24653          .     : '\(.\)' 2>/dev/null ||
24654 echo X$ac_file |
24655     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24656           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24657           /^X\(\/\/\)$/{ s//\1/; q; }
24658           /^X\(\/\).*/{ s//\1/; q; }
24659           s/.*/./; q'`/stamp-h$_am_stamp_count
24660 done
24661 _ACEOF
24662 cat >>$CONFIG_STATUS <<\_ACEOF
24663
24664 #
24665 # CONFIG_COMMANDS section.
24666 #
24667 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24668   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24669   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24670   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24671 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24672          X"$ac_dest" : 'X\(//\)[^/]' \| \
24673          X"$ac_dest" : 'X\(//\)$' \| \
24674          X"$ac_dest" : 'X\(/\)' \| \
24675          .     : '\(.\)' 2>/dev/null ||
24676 echo X"$ac_dest" |
24677     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24678           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24679           /^X\(\/\/\)$/{ s//\1/; q; }
24680           /^X\(\/\).*/{ s//\1/; q; }
24681           s/.*/./; q'`
24682   { if $as_mkdir_p; then
24683     mkdir -p "$ac_dir"
24684   else
24685     as_dir="$ac_dir"
24686     as_dirs=
24687     while test ! -d "$as_dir"; do
24688       as_dirs="$as_dir $as_dirs"
24689       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24690 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24691          X"$as_dir" : 'X\(//\)[^/]' \| \
24692          X"$as_dir" : 'X\(//\)$' \| \
24693          X"$as_dir" : 'X\(/\)' \| \
24694          .     : '\(.\)' 2>/dev/null ||
24695 echo X"$as_dir" |
24696     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24697           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24698           /^X\(\/\/\)$/{ s//\1/; q; }
24699           /^X\(\/\).*/{ s//\1/; q; }
24700           s/.*/./; q'`
24701     done
24702     test ! -n "$as_dirs" || mkdir $as_dirs
24703   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24704 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24705    { (exit 1); exit 1; }; }; }
24706
24707   ac_builddir=.
24708
24709 if test "$ac_dir" != .; then
24710   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24711   # A "../" for each directory in $ac_dir_suffix.
24712   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24713 else
24714   ac_dir_suffix= ac_top_builddir=
24715 fi
24716
24717 case $srcdir in
24718   .)  # No --srcdir option.  We are building in place.
24719     ac_srcdir=.
24720     if test -z "$ac_top_builddir"; then
24721        ac_top_srcdir=.
24722     else
24723        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24724     fi ;;
24725   [\\/]* | ?:[\\/]* )  # Absolute path.
24726     ac_srcdir=$srcdir$ac_dir_suffix;
24727     ac_top_srcdir=$srcdir ;;
24728   *) # Relative path.
24729     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24730     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24731 esac
24732
24733 # Do not use `cd foo && pwd` to compute absolute paths, because
24734 # the directories may not exist.
24735 case `pwd` in
24736 .) ac_abs_builddir="$ac_dir";;
24737 *)
24738   case "$ac_dir" in
24739   .) ac_abs_builddir=`pwd`;;
24740   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24741   *) ac_abs_builddir=`pwd`/"$ac_dir";;
24742   esac;;
24743 esac
24744 case $ac_abs_builddir in
24745 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24746 *)
24747   case ${ac_top_builddir}. in
24748   .) ac_abs_top_builddir=$ac_abs_builddir;;
24749   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24750   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24751   esac;;
24752 esac
24753 case $ac_abs_builddir in
24754 .) ac_abs_srcdir=$ac_srcdir;;
24755 *)
24756   case $ac_srcdir in
24757   .) ac_abs_srcdir=$ac_abs_builddir;;
24758   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24759   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24760   esac;;
24761 esac
24762 case $ac_abs_builddir in
24763 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24764 *)
24765   case $ac_top_srcdir in
24766   .) ac_abs_top_srcdir=$ac_abs_builddir;;
24767   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24768   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24769   esac;;
24770 esac
24771
24772
24773   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24774 echo "$as_me: executing $ac_dest commands" >&6;}
24775   case $ac_dest in
24776     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24777   # Strip MF so we end up with the name of the file.
24778   mf=`echo "$mf" | sed -e 's/:.*$//'`
24779   # Check whether this is an Automake generated Makefile or not.
24780   # We used to match only the files named `Makefile.in', but
24781   # some people rename them; so instead we look at the file content.
24782   # Grep'ing the first line is not enough: some people post-process
24783   # each Makefile.in and add a new line on top of each file to say so.
24784   # So let's grep whole file.
24785   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24786     dirpart=`(dirname "$mf") 2>/dev/null ||
24787 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24788          X"$mf" : 'X\(//\)[^/]' \| \
24789          X"$mf" : 'X\(//\)$' \| \
24790          X"$mf" : 'X\(/\)' \| \
24791          .     : '\(.\)' 2>/dev/null ||
24792 echo X"$mf" |
24793     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24794           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24795           /^X\(\/\/\)$/{ s//\1/; q; }
24796           /^X\(\/\).*/{ s//\1/; q; }
24797           s/.*/./; q'`
24798   else
24799     continue
24800   fi
24801   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
24802   # Extract the definition of DEP_FILES from the Makefile without
24803   # running `make'.
24804   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
24805   test -z "$DEPDIR" && continue
24806   # When using ansi2knr, U may be empty or an underscore; expand it
24807   U=`sed -n -e '/^U = / s///p' < "$mf"`
24808   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
24809   # We invoke sed twice because it is the simplest approach to
24810   # changing $(DEPDIR) to its actual value in the expansion.
24811   for file in `sed -n -e '
24812     /^DEP_FILES = .*\\\\$/ {
24813       s/^DEP_FILES = //
24814       :loop
24815         s/\\\\$//
24816         p
24817         n
24818         /\\\\$/ b loop
24819       p
24820     }
24821     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
24822        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24823     # Make sure the directory exists.
24824     test -f "$dirpart/$file" && continue
24825     fdir=`(dirname "$file") 2>/dev/null ||
24826 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24827          X"$file" : 'X\(//\)[^/]' \| \
24828          X"$file" : 'X\(//\)$' \| \
24829          X"$file" : 'X\(/\)' \| \
24830          .     : '\(.\)' 2>/dev/null ||
24831 echo X"$file" |
24832     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24833           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24834           /^X\(\/\/\)$/{ s//\1/; q; }
24835           /^X\(\/\).*/{ s//\1/; q; }
24836           s/.*/./; q'`
24837     { if $as_mkdir_p; then
24838     mkdir -p $dirpart/$fdir
24839   else
24840     as_dir=$dirpart/$fdir
24841     as_dirs=
24842     while test ! -d "$as_dir"; do
24843       as_dirs="$as_dir $as_dirs"
24844       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24845 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24846          X"$as_dir" : 'X\(//\)[^/]' \| \
24847          X"$as_dir" : 'X\(//\)$' \| \
24848          X"$as_dir" : 'X\(/\)' \| \
24849          .     : '\(.\)' 2>/dev/null ||
24850 echo X"$as_dir" |
24851     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24852           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24853           /^X\(\/\/\)$/{ s//\1/; q; }
24854           /^X\(\/\).*/{ s//\1/; q; }
24855           s/.*/./; q'`
24856     done
24857     test ! -n "$as_dirs" || mkdir $as_dirs
24858   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
24859 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
24860    { (exit 1); exit 1; }; }; }
24861
24862     # echo "creating $dirpart/$file"
24863     echo '# dummy' > "$dirpart/$file"
24864   done
24865 done
24866  ;;
24867   esac
24868 done
24869 _ACEOF
24870
24871 cat >>$CONFIG_STATUS <<\_ACEOF
24872
24873 { (exit 0); exit 0; }
24874 _ACEOF
24875 chmod +x $CONFIG_STATUS
24876 ac_clean_files=$ac_clean_files_save
24877
24878
24879 # configure is writing to config.log, and then calls config.status.
24880 # config.status does its own redirection, appending to config.log.
24881 # Unfortunately, on DOS this fails, as config.log is still kept open
24882 # by configure, so config.status won't be able to write to it; its
24883 # output is simply discarded.  So we exec the FD to /dev/null,
24884 # effectively closing config.log, so it can be properly (re)opened and
24885 # appended to by config.status.  When coming back to configure, we
24886 # need to make the FD available again.
24887 if test "$no_create" != yes; then
24888   ac_cs_success=:
24889   ac_config_status_args=
24890   test "$silent" = yes &&
24891     ac_config_status_args="$ac_config_status_args --quiet"
24892   exec 5>/dev/null
24893   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24894   exec 5>>config.log
24895   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24896   # would make configure fail if this is the last instruction.
24897   $ac_cs_success || { (exit 1); exit 1; }
24898 fi
24899
24900
24901 echo "
24902
24903 Configuration of package \`${PACKAGE}':
24904
24905         Compiler:       ${CC}
24906
24907         CFlags:         ${CFLAGS}
24908         LDFlags:        ${LDFLAGS}
24909 "
24910
24911 exit 0;