Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Cosmetics
[simgrid.git] / configure
1 #! /bin/sh
2 # From configure.ac Revision: 1.3 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for GRAS 0.0.040205.
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.040205'
428 PACKAGE_STRING='GRAS 0.0.040205'
429 PACKAGE_BUGREPORT='martin.quinson@ens-lyon.fr'
430
431 ac_unique_file="src/include/gras.h"
432 ac_subdirs_all="$ac_subdirs_all src/nws_portability"
433 # Factoring default headers for most tests.
434 ac_includes_default="\
435 #include <stdio.h>
436 #if HAVE_SYS_TYPES_H
437 # include <sys/types.h>
438 #endif
439 #if HAVE_SYS_STAT_H
440 # include <sys/stat.h>
441 #endif
442 #if STDC_HEADERS
443 # include <stdlib.h>
444 # include <stddef.h>
445 #else
446 # if HAVE_STDLIB_H
447 #  include <stdlib.h>
448 # endif
449 #endif
450 #if HAVE_STRING_H
451 # if !STDC_HEADERS && HAVE_MEMORY_H
452 #  include <memory.h>
453 # endif
454 # include <string.h>
455 #endif
456 #if HAVE_STRINGS_H
457 # include <strings.h>
458 #endif
459 #if HAVE_INTTYPES_H
460 # include <inttypes.h>
461 #else
462 # if HAVE_STDINT_H
463 #  include <stdint.h>
464 # endif
465 #endif
466 #if HAVE_UNISTD_H
467 # include <unistd.h>
468 #endif"
469
470 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL 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'
471 ac_subst_files=''
472
473 # Initialize some variables set by options.
474 ac_init_help=
475 ac_init_version=false
476 # The variables have the same names as the options, with
477 # dashes changed to underlines.
478 cache_file=/dev/null
479 exec_prefix=NONE
480 no_create=
481 no_recursion=
482 prefix=NONE
483 program_prefix=NONE
484 program_suffix=NONE
485 program_transform_name=s,x,x,
486 silent=
487 site=
488 srcdir=
489 verbose=
490 x_includes=NONE
491 x_libraries=NONE
492
493 # Installation directory options.
494 # These are left unexpanded so users can "make install exec_prefix=/foo"
495 # and all the variables that are supposed to be based on exec_prefix
496 # by default will actually change.
497 # Use braces instead of parens because sh, perl, etc. also accept them.
498 bindir='${exec_prefix}/bin'
499 sbindir='${exec_prefix}/sbin'
500 libexecdir='${exec_prefix}/libexec'
501 datadir='${prefix}/share'
502 sysconfdir='${prefix}/etc'
503 sharedstatedir='${prefix}/com'
504 localstatedir='${prefix}/var'
505 libdir='${exec_prefix}/lib'
506 includedir='${prefix}/include'
507 oldincludedir='/usr/include'
508 infodir='${prefix}/info'
509 mandir='${prefix}/man'
510
511 ac_prev=
512 for ac_option
513 do
514   # If the previous option needs an argument, assign it.
515   if test -n "$ac_prev"; then
516     eval "$ac_prev=\$ac_option"
517     ac_prev=
518     continue
519   fi
520
521   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
522
523   # Accept the important Cygnus configure options, so we can diagnose typos.
524
525   case $ac_option in
526
527   -bindir | --bindir | --bindi | --bind | --bin | --bi)
528     ac_prev=bindir ;;
529   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530     bindir=$ac_optarg ;;
531
532   -build | --build | --buil | --bui | --bu)
533     ac_prev=build_alias ;;
534   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
535     build_alias=$ac_optarg ;;
536
537   -cache-file | --cache-file | --cache-fil | --cache-fi \
538   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
539     ac_prev=cache_file ;;
540   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
541   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
542     cache_file=$ac_optarg ;;
543
544   --config-cache | -C)
545     cache_file=config.cache ;;
546
547   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
548     ac_prev=datadir ;;
549   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
550   | --da=*)
551     datadir=$ac_optarg ;;
552
553   -disable-* | --disable-*)
554     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
555     # Reject names that are not valid shell variable names.
556     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558    { (exit 1); exit 1; }; }
559     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560     eval "enable_$ac_feature=no" ;;
561
562   -enable-* | --enable-*)
563     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
564     # Reject names that are not valid shell variable names.
565     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567    { (exit 1); exit 1; }; }
568     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569     case $ac_option in
570       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571       *) ac_optarg=yes ;;
572     esac
573     eval "enable_$ac_feature='$ac_optarg'" ;;
574
575   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
576   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
577   | --exec | --exe | --ex)
578     ac_prev=exec_prefix ;;
579   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
580   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
581   | --exec=* | --exe=* | --ex=*)
582     exec_prefix=$ac_optarg ;;
583
584   -gas | --gas | --ga | --g)
585     # Obsolete; use --with-gas.
586     with_gas=yes ;;
587
588   -help | --help | --hel | --he | -h)
589     ac_init_help=long ;;
590   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
591     ac_init_help=recursive ;;
592   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
593     ac_init_help=short ;;
594
595   -host | --host | --hos | --ho)
596     ac_prev=host_alias ;;
597   -host=* | --host=* | --hos=* | --ho=*)
598     host_alias=$ac_optarg ;;
599
600   -includedir | --includedir | --includedi | --included | --include \
601   | --includ | --inclu | --incl | --inc)
602     ac_prev=includedir ;;
603   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
604   | --includ=* | --inclu=* | --incl=* | --inc=*)
605     includedir=$ac_optarg ;;
606
607   -infodir | --infodir | --infodi | --infod | --info | --inf)
608     ac_prev=infodir ;;
609   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
610     infodir=$ac_optarg ;;
611
612   -libdir | --libdir | --libdi | --libd)
613     ac_prev=libdir ;;
614   -libdir=* | --libdir=* | --libdi=* | --libd=*)
615     libdir=$ac_optarg ;;
616
617   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
618   | --libexe | --libex | --libe)
619     ac_prev=libexecdir ;;
620   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
621   | --libexe=* | --libex=* | --libe=*)
622     libexecdir=$ac_optarg ;;
623
624   -localstatedir | --localstatedir | --localstatedi | --localstated \
625   | --localstate | --localstat | --localsta | --localst \
626   | --locals | --local | --loca | --loc | --lo)
627     ac_prev=localstatedir ;;
628   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
629   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
630   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
631     localstatedir=$ac_optarg ;;
632
633   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
634     ac_prev=mandir ;;
635   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636     mandir=$ac_optarg ;;
637
638   -nfp | --nfp | --nf)
639     # Obsolete; use --without-fp.
640     with_fp=no ;;
641
642   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
643   | --no-cr | --no-c | -n)
644     no_create=yes ;;
645
646   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
647   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648     no_recursion=yes ;;
649
650   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
651   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
652   | --oldin | --oldi | --old | --ol | --o)
653     ac_prev=oldincludedir ;;
654   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
655   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
656   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
657     oldincludedir=$ac_optarg ;;
658
659   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
660     ac_prev=prefix ;;
661   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662     prefix=$ac_optarg ;;
663
664   -program-prefix | --program-prefix | --program-prefi | --program-pref \
665   | --program-pre | --program-pr | --program-p)
666     ac_prev=program_prefix ;;
667   -program-prefix=* | --program-prefix=* | --program-prefi=* \
668   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
669     program_prefix=$ac_optarg ;;
670
671   -program-suffix | --program-suffix | --program-suffi | --program-suff \
672   | --program-suf | --program-su | --program-s)
673     ac_prev=program_suffix ;;
674   -program-suffix=* | --program-suffix=* | --program-suffi=* \
675   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
676     program_suffix=$ac_optarg ;;
677
678   -program-transform-name | --program-transform-name \
679   | --program-transform-nam | --program-transform-na \
680   | --program-transform-n | --program-transform- \
681   | --program-transform | --program-transfor \
682   | --program-transfo | --program-transf \
683   | --program-trans | --program-tran \
684   | --progr-tra | --program-tr | --program-t)
685     ac_prev=program_transform_name ;;
686   -program-transform-name=* | --program-transform-name=* \
687   | --program-transform-nam=* | --program-transform-na=* \
688   | --program-transform-n=* | --program-transform-=* \
689   | --program-transform=* | --program-transfor=* \
690   | --program-transfo=* | --program-transf=* \
691   | --program-trans=* | --program-tran=* \
692   | --progr-tra=* | --program-tr=* | --program-t=*)
693     program_transform_name=$ac_optarg ;;
694
695   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
696   | -silent | --silent | --silen | --sile | --sil)
697     silent=yes ;;
698
699   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
700     ac_prev=sbindir ;;
701   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
702   | --sbi=* | --sb=*)
703     sbindir=$ac_optarg ;;
704
705   -sharedstatedir | --sharedstatedir | --sharedstatedi \
706   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
707   | --sharedst | --shareds | --shared | --share | --shar \
708   | --sha | --sh)
709     ac_prev=sharedstatedir ;;
710   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
711   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
712   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
713   | --sha=* | --sh=*)
714     sharedstatedir=$ac_optarg ;;
715
716   -site | --site | --sit)
717     ac_prev=site ;;
718   -site=* | --site=* | --sit=*)
719     site=$ac_optarg ;;
720
721   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
722     ac_prev=srcdir ;;
723   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724     srcdir=$ac_optarg ;;
725
726   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
727   | --syscon | --sysco | --sysc | --sys | --sy)
728     ac_prev=sysconfdir ;;
729   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
730   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
731     sysconfdir=$ac_optarg ;;
732
733   -target | --target | --targe | --targ | --tar | --ta | --t)
734     ac_prev=target_alias ;;
735   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
736     target_alias=$ac_optarg ;;
737
738   -v | -verbose | --verbose | --verbos | --verbo | --verb)
739     verbose=yes ;;
740
741   -version | --version | --versio | --versi | --vers | -V)
742     ac_init_version=: ;;
743
744   -with-* | --with-*)
745     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
746     # Reject names that are not valid shell variable names.
747     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
748       { echo "$as_me: error: invalid package name: $ac_package" >&2
749    { (exit 1); exit 1; }; }
750     ac_package=`echo $ac_package| sed 's/-/_/g'`
751     case $ac_option in
752       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753       *) ac_optarg=yes ;;
754     esac
755     eval "with_$ac_package='$ac_optarg'" ;;
756
757   -without-* | --without-*)
758     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
759     # Reject names that are not valid shell variable names.
760     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
761       { echo "$as_me: error: invalid package name: $ac_package" >&2
762    { (exit 1); exit 1; }; }
763     ac_package=`echo $ac_package | sed 's/-/_/g'`
764     eval "with_$ac_package=no" ;;
765
766   --x)
767     # Obsolete; use --with-x.
768     with_x=yes ;;
769
770   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
771   | --x-incl | --x-inc | --x-in | --x-i)
772     ac_prev=x_includes ;;
773   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
774   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
775     x_includes=$ac_optarg ;;
776
777   -x-libraries | --x-libraries | --x-librarie | --x-librari \
778   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
779     ac_prev=x_libraries ;;
780   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
781   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
782     x_libraries=$ac_optarg ;;
783
784   -*) { echo "$as_me: error: unrecognized option: $ac_option
785 Try \`$0 --help' for more information." >&2
786    { (exit 1); exit 1; }; }
787     ;;
788
789   *=*)
790     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
791     # Reject names that are not valid shell variable names.
792     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
793       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
794    { (exit 1); exit 1; }; }
795     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
796     eval "$ac_envvar='$ac_optarg'"
797     export $ac_envvar ;;
798
799   *)
800     # FIXME: should be removed in autoconf 3.0.
801     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
802     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
803       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
804     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
805     ;;
806
807   esac
808 done
809
810 if test -n "$ac_prev"; then
811   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
812   { echo "$as_me: error: missing argument to $ac_option" >&2
813    { (exit 1); exit 1; }; }
814 fi
815
816 # Be sure to have absolute paths.
817 for ac_var in exec_prefix prefix
818 do
819   eval ac_val=$`echo $ac_var`
820   case $ac_val in
821     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
822     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
823    { (exit 1); exit 1; }; };;
824   esac
825 done
826
827 # Be sure to have absolute paths.
828 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
829               localstatedir libdir includedir oldincludedir infodir mandir
830 do
831   eval ac_val=$`echo $ac_var`
832   case $ac_val in
833     [\\/$]* | ?:[\\/]* ) ;;
834     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
835    { (exit 1); exit 1; }; };;
836   esac
837 done
838
839 # There might be people who depend on the old broken behavior: `$host'
840 # used to hold the argument of --host etc.
841 # FIXME: To remove some day.
842 build=$build_alias
843 host=$host_alias
844 target=$target_alias
845
846 # FIXME: To remove some day.
847 if test "x$host_alias" != x; then
848   if test "x$build_alias" = x; then
849     cross_compiling=maybe
850     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
851     If a cross compiler is detected then cross compile mode will be used." >&2
852   elif test "x$build_alias" != "x$host_alias"; then
853     cross_compiling=yes
854   fi
855 fi
856
857 ac_tool_prefix=
858 test -n "$host_alias" && ac_tool_prefix=$host_alias-
859
860 test "$silent" = yes && exec 6>/dev/null
861
862
863 # Find the source files, if location was not specified.
864 if test -z "$srcdir"; then
865   ac_srcdir_defaulted=yes
866   # Try the directory containing this script, then its parent.
867   ac_confdir=`(dirname "$0") 2>/dev/null ||
868 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
869          X"$0" : 'X\(//\)[^/]' \| \
870          X"$0" : 'X\(//\)$' \| \
871          X"$0" : 'X\(/\)' \| \
872          .     : '\(.\)' 2>/dev/null ||
873 echo X"$0" |
874     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
875           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
876           /^X\(\/\/\)$/{ s//\1/; q; }
877           /^X\(\/\).*/{ s//\1/; q; }
878           s/.*/./; q'`
879   srcdir=$ac_confdir
880   if test ! -r $srcdir/$ac_unique_file; then
881     srcdir=..
882   fi
883 else
884   ac_srcdir_defaulted=no
885 fi
886 if test ! -r $srcdir/$ac_unique_file; then
887   if test "$ac_srcdir_defaulted" = yes; then
888     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
889    { (exit 1); exit 1; }; }
890   else
891     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
892    { (exit 1); exit 1; }; }
893   fi
894 fi
895 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
896   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
897    { (exit 1); exit 1; }; }
898 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
899 ac_env_build_alias_set=${build_alias+set}
900 ac_env_build_alias_value=$build_alias
901 ac_cv_env_build_alias_set=${build_alias+set}
902 ac_cv_env_build_alias_value=$build_alias
903 ac_env_host_alias_set=${host_alias+set}
904 ac_env_host_alias_value=$host_alias
905 ac_cv_env_host_alias_set=${host_alias+set}
906 ac_cv_env_host_alias_value=$host_alias
907 ac_env_target_alias_set=${target_alias+set}
908 ac_env_target_alias_value=$target_alias
909 ac_cv_env_target_alias_set=${target_alias+set}
910 ac_cv_env_target_alias_value=$target_alias
911 ac_env_CC_set=${CC+set}
912 ac_env_CC_value=$CC
913 ac_cv_env_CC_set=${CC+set}
914 ac_cv_env_CC_value=$CC
915 ac_env_CFLAGS_set=${CFLAGS+set}
916 ac_env_CFLAGS_value=$CFLAGS
917 ac_cv_env_CFLAGS_set=${CFLAGS+set}
918 ac_cv_env_CFLAGS_value=$CFLAGS
919 ac_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_env_LDFLAGS_value=$LDFLAGS
921 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922 ac_cv_env_LDFLAGS_value=$LDFLAGS
923 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_env_CPPFLAGS_value=$CPPFLAGS
925 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
926 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
927 ac_env_CPP_set=${CPP+set}
928 ac_env_CPP_value=$CPP
929 ac_cv_env_CPP_set=${CPP+set}
930 ac_cv_env_CPP_value=$CPP
931 ac_env_CXX_set=${CXX+set}
932 ac_env_CXX_value=$CXX
933 ac_cv_env_CXX_set=${CXX+set}
934 ac_cv_env_CXX_value=$CXX
935 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
936 ac_env_CXXFLAGS_value=$CXXFLAGS
937 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
938 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
939 ac_env_CXXCPP_set=${CXXCPP+set}
940 ac_env_CXXCPP_value=$CXXCPP
941 ac_cv_env_CXXCPP_set=${CXXCPP+set}
942 ac_cv_env_CXXCPP_value=$CXXCPP
943 ac_env_F77_set=${F77+set}
944 ac_env_F77_value=$F77
945 ac_cv_env_F77_set=${F77+set}
946 ac_cv_env_F77_value=$F77
947 ac_env_FFLAGS_set=${FFLAGS+set}
948 ac_env_FFLAGS_value=$FFLAGS
949 ac_cv_env_FFLAGS_set=${FFLAGS+set}
950 ac_cv_env_FFLAGS_value=$FFLAGS
951
952 #
953 # Report the --help message.
954 #
955 if test "$ac_init_help" = "long"; then
956   # Omit some internal or obsolete options to make the list less imposing.
957   # This message is too long to be a string in the A/UX 3.1 sh.
958   cat <<_ACEOF
959 \`configure' configures GRAS 0.0.040205 to adapt to many kinds of systems.
960
961 Usage: $0 [OPTION]... [VAR=VALUE]...
962
963 To assign environment variables (e.g., CC, CFLAGS...), specify them as
964 VAR=VALUE.  See below for descriptions of some of the useful variables.
965
966 Defaults for the options are specified in brackets.
967
968 Configuration:
969   -h, --help              display this help and exit
970       --help=short        display options specific to this package
971       --help=recursive    display the short help of all the included packages
972   -V, --version           display version information and exit
973   -q, --quiet, --silent   do not print \`checking...' messages
974       --cache-file=FILE   cache test results in FILE [disabled]
975   -C, --config-cache      alias for \`--cache-file=config.cache'
976   -n, --no-create         do not create output files
977       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
978
979 _ACEOF
980
981   cat <<_ACEOF
982 Installation directories:
983   --prefix=PREFIX         install architecture-independent files in PREFIX
984                           [$ac_default_prefix]
985   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
986                           [PREFIX]
987
988 By default, \`make install' will install all the files in
989 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
990 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
991 for instance \`--prefix=\$HOME'.
992
993 For better control, use the options below.
994
995 Fine tuning of the installation directories:
996   --bindir=DIR           user executables [EPREFIX/bin]
997   --sbindir=DIR          system admin executables [EPREFIX/sbin]
998   --libexecdir=DIR       program executables [EPREFIX/libexec]
999   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1000   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1001   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1002   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1003   --libdir=DIR           object code libraries [EPREFIX/lib]
1004   --includedir=DIR       C header files [PREFIX/include]
1005   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1006   --infodir=DIR          info documentation [PREFIX/info]
1007   --mandir=DIR           man documentation [PREFIX/man]
1008 _ACEOF
1009
1010   cat <<\_ACEOF
1011
1012 Program names:
1013   --program-prefix=PREFIX            prepend PREFIX to installed program names
1014   --program-suffix=SUFFIX            append SUFFIX to installed program names
1015   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1016
1017 System types:
1018   --build=BUILD     configure for building on BUILD [guessed]
1019   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1020   --target=TARGET   configure for building compilers for TARGET [HOST]
1021 _ACEOF
1022 fi
1023
1024 if test -n "$ac_init_help"; then
1025   case $ac_init_help in
1026      short | recursive ) echo "Configuration of GRAS 0.0.040205:";;
1027    esac
1028   cat <<\_ACEOF
1029
1030 Optional Features:
1031   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1032   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1033   --enable-shared[=PKGS]
1034                           build shared libraries [default=yes]
1035   --enable-static[=PKGS]
1036                           build static libraries [default=yes]
1037   --enable-fast-install[=PKGS]
1038                           optimize for fast installation [default=yes]
1039   --disable-dependency-tracking Speeds up one-time builds
1040   --enable-dependency-tracking  Do not reject slow dependency extractors
1041   --disable-libtool-lock  avoid locking (might break parallel builds)
1042   --enable-gtk-doc        use gtk-doc to build documentation default=no
1043   --enable-maintainer-mode enable make rules and dependencies not useful
1044                           (and sometimes confusing) to the casual installer
1045   --enable-compile-warnings=no/minimum/yes       Turn on compiler warnings.
1046   --enable-iso-c          Try to warn if code is not ISO C
1047
1048 Optional Packages:
1049   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1050   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1051   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1052   --with-pic              try to use only PIC/non-PIC objects [default=use
1053                           both]
1054   --with-tags[=TAGS]
1055                           include additional configurations [automatic]
1056   --with-html-dir=PATH    path to installed docs
1057   --with-SimGrid=DIR      root directory of the SimGrid simulator installation
1058   --with-SimGrid-includes=DIR
1059                           specify exact include dir for the SimGrid simulator headers
1060   --with-SimGrid-libraries=DIR
1061                           specify exact library dir for the SimGrid simulator library
1062   --with-SimGrid-extra=ARG
1063                           specify extra args to pass to the linker to get the
1064                           the SimGrid simulator library (with no space. A sed to change "!"
1065                           to " " is run)
1066
1067 Some influential environment variables:
1068   CC          C compiler command
1069   CFLAGS      C compiler flags
1070   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1071               nonstandard directory <lib dir>
1072   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1073               headers in a nonstandard directory <include dir>
1074   CPP         C preprocessor
1075   CXX         C++ compiler command
1076   CXXFLAGS    C++ compiler flags
1077   CXXCPP      C++ preprocessor
1078   F77         Fortran 77 compiler command
1079   FFLAGS      Fortran 77 compiler flags
1080
1081 Use these variables to override the choices made by `configure' or to help
1082 it to find libraries and programs with nonstandard names/locations.
1083
1084 Report bugs to <martin.quinson@ens-lyon.fr>.
1085 _ACEOF
1086 fi
1087
1088 if test "$ac_init_help" = "recursive"; then
1089   # If there are subdirs, report their specific --help.
1090   ac_popdir=`pwd`
1091   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1092     test -d $ac_dir || continue
1093     ac_builddir=.
1094
1095 if test "$ac_dir" != .; then
1096   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1097   # A "../" for each directory in $ac_dir_suffix.
1098   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1099 else
1100   ac_dir_suffix= ac_top_builddir=
1101 fi
1102
1103 case $srcdir in
1104   .)  # No --srcdir option.  We are building in place.
1105     ac_srcdir=.
1106     if test -z "$ac_top_builddir"; then
1107        ac_top_srcdir=.
1108     else
1109        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1110     fi ;;
1111   [\\/]* | ?:[\\/]* )  # Absolute path.
1112     ac_srcdir=$srcdir$ac_dir_suffix;
1113     ac_top_srcdir=$srcdir ;;
1114   *) # Relative path.
1115     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1116     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1117 esac
1118
1119 # Do not use `cd foo && pwd` to compute absolute paths, because
1120 # the directories may not exist.
1121 case `pwd` in
1122 .) ac_abs_builddir="$ac_dir";;
1123 *)
1124   case "$ac_dir" in
1125   .) ac_abs_builddir=`pwd`;;
1126   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1127   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1128   esac;;
1129 esac
1130 case $ac_abs_builddir in
1131 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1132 *)
1133   case ${ac_top_builddir}. in
1134   .) ac_abs_top_builddir=$ac_abs_builddir;;
1135   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1136   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1137   esac;;
1138 esac
1139 case $ac_abs_builddir in
1140 .) ac_abs_srcdir=$ac_srcdir;;
1141 *)
1142   case $ac_srcdir in
1143   .) ac_abs_srcdir=$ac_abs_builddir;;
1144   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1145   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1146   esac;;
1147 esac
1148 case $ac_abs_builddir in
1149 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1150 *)
1151   case $ac_top_srcdir in
1152   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1153   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1154   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1155   esac;;
1156 esac
1157
1158     cd $ac_dir
1159     # Check for guested configure; otherwise get Cygnus style configure.
1160     if test -f $ac_srcdir/configure.gnu; then
1161       echo
1162       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1163     elif test -f $ac_srcdir/configure; then
1164       echo
1165       $SHELL $ac_srcdir/configure  --help=recursive
1166     elif test -f $ac_srcdir/configure.ac ||
1167            test -f $ac_srcdir/configure.in; then
1168       echo
1169       $ac_configure --help
1170     else
1171       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1172     fi
1173     cd "$ac_popdir"
1174   done
1175 fi
1176
1177 test -n "$ac_init_help" && exit 0
1178 if $ac_init_version; then
1179   cat <<\_ACEOF
1180 GRAS configure 0.0.040205
1181 generated by GNU Autoconf 2.59
1182
1183 Copyright (C) 2003 Free Software Foundation, Inc.
1184 This configure script is free software; the Free Software Foundation
1185 gives unlimited permission to copy, distribute and modify it.
1186 _ACEOF
1187   exit 0
1188 fi
1189 exec 5>config.log
1190 cat >&5 <<_ACEOF
1191 This file contains any messages produced by compilers while
1192 running configure, to aid debugging if configure makes a mistake.
1193
1194 It was created by GRAS $as_me 0.0.040205, which was
1195 generated by GNU Autoconf 2.59.  Invocation command line was
1196
1197   $ $0 $@
1198
1199 _ACEOF
1200 {
1201 cat <<_ASUNAME
1202 ## --------- ##
1203 ## Platform. ##
1204 ## --------- ##
1205
1206 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1207 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1208 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1209 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1210 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1211
1212 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1213 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1214
1215 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1216 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1217 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1218 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1219 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1220 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1221 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1222
1223 _ASUNAME
1224
1225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1226 for as_dir in $PATH
1227 do
1228   IFS=$as_save_IFS
1229   test -z "$as_dir" && as_dir=.
1230   echo "PATH: $as_dir"
1231 done
1232
1233 } >&5
1234
1235 cat >&5 <<_ACEOF
1236
1237
1238 ## ----------- ##
1239 ## Core tests. ##
1240 ## ----------- ##
1241
1242 _ACEOF
1243
1244
1245 # Keep a trace of the command line.
1246 # Strip out --no-create and --no-recursion so they do not pile up.
1247 # Strip out --silent because we don't want to record it for future runs.
1248 # Also quote any args containing shell meta-characters.
1249 # Make two passes to allow for proper duplicate-argument suppression.
1250 ac_configure_args=
1251 ac_configure_args0=
1252 ac_configure_args1=
1253 ac_sep=
1254 ac_must_keep_next=false
1255 for ac_pass in 1 2
1256 do
1257   for ac_arg
1258   do
1259     case $ac_arg in
1260     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1261     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1262     | -silent | --silent | --silen | --sile | --sil)
1263       continue ;;
1264     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1265       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1266     esac
1267     case $ac_pass in
1268     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1269     2)
1270       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1271       if test $ac_must_keep_next = true; then
1272         ac_must_keep_next=false # Got value, back to normal.
1273       else
1274         case $ac_arg in
1275           *=* | --config-cache | -C | -disable-* | --disable-* \
1276           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1277           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1278           | -with-* | --with-* | -without-* | --without-* | --x)
1279             case "$ac_configure_args0 " in
1280               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1281             esac
1282             ;;
1283           -* ) ac_must_keep_next=true ;;
1284         esac
1285       fi
1286       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1287       # Get rid of the leading space.
1288       ac_sep=" "
1289       ;;
1290     esac
1291   done
1292 done
1293 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1294 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1295
1296 # When interrupted or exit'd, cleanup temporary files, and complete
1297 # config.log.  We remove comments because anyway the quotes in there
1298 # would cause problems or look ugly.
1299 # WARNING: Be sure not to use single quotes in there, as some shells,
1300 # such as our DU 5.0 friend, will then `close' the trap.
1301 trap 'exit_status=$?
1302   # Save into config.log some information that might help in debugging.
1303   {
1304     echo
1305
1306     cat <<\_ASBOX
1307 ## ---------------- ##
1308 ## Cache variables. ##
1309 ## ---------------- ##
1310 _ASBOX
1311     echo
1312     # The following way of writing the cache mishandles newlines in values,
1313 {
1314   (set) 2>&1 |
1315     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1316     *ac_space=\ *)
1317       sed -n \
1318         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1319           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1320       ;;
1321     *)
1322       sed -n \
1323         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1324       ;;
1325     esac;
1326 }
1327     echo
1328
1329     cat <<\_ASBOX
1330 ## ----------------- ##
1331 ## Output variables. ##
1332 ## ----------------- ##
1333 _ASBOX
1334     echo
1335     for ac_var in $ac_subst_vars
1336     do
1337       eval ac_val=$`echo $ac_var`
1338       echo "$ac_var='"'"'$ac_val'"'"'"
1339     done | sort
1340     echo
1341
1342     if test -n "$ac_subst_files"; then
1343       cat <<\_ASBOX
1344 ## ------------- ##
1345 ## Output files. ##
1346 ## ------------- ##
1347 _ASBOX
1348       echo
1349       for ac_var in $ac_subst_files
1350       do
1351         eval ac_val=$`echo $ac_var`
1352         echo "$ac_var='"'"'$ac_val'"'"'"
1353       done | sort
1354       echo
1355     fi
1356
1357     if test -s confdefs.h; then
1358       cat <<\_ASBOX
1359 ## ----------- ##
1360 ## confdefs.h. ##
1361 ## ----------- ##
1362 _ASBOX
1363       echo
1364       sed "/^$/d" confdefs.h | sort
1365       echo
1366     fi
1367     test "$ac_signal" != 0 &&
1368       echo "$as_me: caught signal $ac_signal"
1369     echo "$as_me: exit $exit_status"
1370   } >&5
1371   rm -f core *.core &&
1372   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1373     exit $exit_status
1374      ' 0
1375 for ac_signal in 1 2 13 15; do
1376   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1377 done
1378 ac_signal=0
1379
1380 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1381 rm -rf conftest* confdefs.h
1382 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1383 echo >confdefs.h
1384
1385 # Predefined preprocessor variables.
1386
1387 cat >>confdefs.h <<_ACEOF
1388 #define PACKAGE_NAME "$PACKAGE_NAME"
1389 _ACEOF
1390
1391
1392 cat >>confdefs.h <<_ACEOF
1393 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1394 _ACEOF
1395
1396
1397 cat >>confdefs.h <<_ACEOF
1398 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1399 _ACEOF
1400
1401
1402 cat >>confdefs.h <<_ACEOF
1403 #define PACKAGE_STRING "$PACKAGE_STRING"
1404 _ACEOF
1405
1406
1407 cat >>confdefs.h <<_ACEOF
1408 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1409 _ACEOF
1410
1411
1412 # Let the site file select an alternate cache file if it wants to.
1413 # Prefer explicitly selected file to automatically selected ones.
1414 if test -z "$CONFIG_SITE"; then
1415   if test "x$prefix" != xNONE; then
1416     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1417   else
1418     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1419   fi
1420 fi
1421 for ac_site_file in $CONFIG_SITE; do
1422   if test -r "$ac_site_file"; then
1423     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1424 echo "$as_me: loading site script $ac_site_file" >&6;}
1425     sed 's/^/| /' "$ac_site_file" >&5
1426     . "$ac_site_file"
1427   fi
1428 done
1429
1430 if test -r "$cache_file"; then
1431   # Some versions of bash will fail to source /dev/null (special
1432   # files actually), so we avoid doing that.
1433   if test -f "$cache_file"; then
1434     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1435 echo "$as_me: loading cache $cache_file" >&6;}
1436     case $cache_file in
1437       [\\/]* | ?:[\\/]* ) . $cache_file;;
1438       *)                      . ./$cache_file;;
1439     esac
1440   fi
1441 else
1442   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1443 echo "$as_me: creating cache $cache_file" >&6;}
1444   >$cache_file
1445 fi
1446
1447 # Check that the precious variables saved in the cache have kept the same
1448 # value.
1449 ac_cache_corrupted=false
1450 for ac_var in `(set) 2>&1 |
1451                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1452   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1453   eval ac_new_set=\$ac_env_${ac_var}_set
1454   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1455   eval ac_new_val="\$ac_env_${ac_var}_value"
1456   case $ac_old_set,$ac_new_set in
1457     set,)
1458       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1459 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1460       ac_cache_corrupted=: ;;
1461     ,set)
1462       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1463 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1464       ac_cache_corrupted=: ;;
1465     ,);;
1466     *)
1467       if test "x$ac_old_val" != "x$ac_new_val"; then
1468         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1469 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1470         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1471 echo "$as_me:   former value:  $ac_old_val" >&2;}
1472         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1473 echo "$as_me:   current value: $ac_new_val" >&2;}
1474         ac_cache_corrupted=:
1475       fi;;
1476   esac
1477   # Pass precious variables to config.status.
1478   if test "$ac_new_set" = set; then
1479     case $ac_new_val in
1480     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1481       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1482     *) ac_arg=$ac_var=$ac_new_val ;;
1483     esac
1484     case " $ac_configure_args " in
1485       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1486       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1487     esac
1488   fi
1489 done
1490 if $ac_cache_corrupted; then
1491   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1492 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1493   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1494 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1495    { (exit 1); exit 1; }; }
1496 fi
1497
1498 ac_ext=c
1499 ac_cpp='$CPP $CPPFLAGS'
1500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532 ac_aux_dir=
1533 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1534   if test -f $ac_dir/install-sh; then
1535     ac_aux_dir=$ac_dir
1536     ac_install_sh="$ac_aux_dir/install-sh -c"
1537     break
1538   elif test -f $ac_dir/install.sh; then
1539     ac_aux_dir=$ac_dir
1540     ac_install_sh="$ac_aux_dir/install.sh -c"
1541     break
1542   elif test -f $ac_dir/shtool; then
1543     ac_aux_dir=$ac_dir
1544     ac_install_sh="$ac_aux_dir/shtool install -c"
1545     break
1546   fi
1547 done
1548 if test -z "$ac_aux_dir"; then
1549   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1550 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1551    { (exit 1); exit 1; }; }
1552 fi
1553 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1554 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1555 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1556
1557
1558
1559 subdirs="$subdirs src/nws_portability"
1560
1561
1562 # Make sure we can run config.sub.
1563 $ac_config_sub sun4 >/dev/null 2>&1 ||
1564   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1565 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1566    { (exit 1); exit 1; }; }
1567
1568 echo "$as_me:$LINENO: checking build system type" >&5
1569 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1570 if test "${ac_cv_build+set}" = set; then
1571   echo $ECHO_N "(cached) $ECHO_C" >&6
1572 else
1573   ac_cv_build_alias=$build_alias
1574 test -z "$ac_cv_build_alias" &&
1575   ac_cv_build_alias=`$ac_config_guess`
1576 test -z "$ac_cv_build_alias" &&
1577   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1578 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1579    { (exit 1); exit 1; }; }
1580 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1581   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1582 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1583    { (exit 1); exit 1; }; }
1584
1585 fi
1586 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1587 echo "${ECHO_T}$ac_cv_build" >&6
1588 build=$ac_cv_build
1589 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1590 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1591 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1592
1593
1594 echo "$as_me:$LINENO: checking host system type" >&5
1595 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1596 if test "${ac_cv_host+set}" = set; then
1597   echo $ECHO_N "(cached) $ECHO_C" >&6
1598 else
1599   ac_cv_host_alias=$host_alias
1600 test -z "$ac_cv_host_alias" &&
1601   ac_cv_host_alias=$ac_cv_build_alias
1602 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1603   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1604 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1605    { (exit 1); exit 1; }; }
1606
1607 fi
1608 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1609 echo "${ECHO_T}$ac_cv_host" >&6
1610 host=$ac_cv_host
1611 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1612 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1613 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1614
1615
1616 echo "$as_me:$LINENO: checking target system type" >&5
1617 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1618 if test "${ac_cv_target+set}" = set; then
1619   echo $ECHO_N "(cached) $ECHO_C" >&6
1620 else
1621   ac_cv_target_alias=$target_alias
1622 test "x$ac_cv_target_alias" = "x" &&
1623   ac_cv_target_alias=$ac_cv_host_alias
1624 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1625   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1626 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1627    { (exit 1); exit 1; }; }
1628
1629 fi
1630 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1631 echo "${ECHO_T}$ac_cv_target" >&6
1632 target=$ac_cv_target
1633 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1634 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1635 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1636
1637
1638 # The aliases save the names the user supplied, while $host etc.
1639 # will get canonicalized.
1640 test -n "$target_alias" &&
1641   test "$program_prefix$program_suffix$program_transform_name" = \
1642     NONENONEs,x,x, &&
1643   program_prefix=${target_alias}-
1644 ac_ext=c
1645 ac_cpp='$CPP $CPPFLAGS'
1646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1649
1650
1651           ac_config_headers="$ac_config_headers src/gras_config.h"
1652
1653 am__api_version="1.7"
1654 # Find a good install program.  We prefer a C program (faster),
1655 # so one script is as good as another.  But avoid the broken or
1656 # incompatible versions:
1657 # SysV /etc/install, /usr/sbin/install
1658 # SunOS /usr/etc/install
1659 # IRIX /sbin/install
1660 # AIX /bin/install
1661 # AmigaOS /C/install, which installs bootblocks on floppy discs
1662 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1663 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1664 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1665 # OS/2's system install, which has a completely different semantic
1666 # ./install, which can be erroneously created by make from ./install.sh.
1667 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1668 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1669 if test -z "$INSTALL"; then
1670 if test "${ac_cv_path_install+set}" = set; then
1671   echo $ECHO_N "(cached) $ECHO_C" >&6
1672 else
1673   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1674 for as_dir in $PATH
1675 do
1676   IFS=$as_save_IFS
1677   test -z "$as_dir" && as_dir=.
1678   # Account for people who put trailing slashes in PATH elements.
1679 case $as_dir/ in
1680   ./ | .// | /cC/* | \
1681   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1682   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1683   /usr/ucb/* ) ;;
1684   *)
1685     # OSF1 and SCO ODT 3.0 have their own names for install.
1686     # Don't use installbsd from OSF since it installs stuff as root
1687     # by default.
1688     for ac_prog in ginstall scoinst install; do
1689       for ac_exec_ext in '' $ac_executable_extensions; do
1690         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1691           if test $ac_prog = install &&
1692             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1693             # AIX install.  It has an incompatible calling convention.
1694             :
1695           elif test $ac_prog = install &&
1696             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1697             # program-specific install script used by HP pwplus--don't use.
1698             :
1699           else
1700             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1701             break 3
1702           fi
1703         fi
1704       done
1705     done
1706     ;;
1707 esac
1708 done
1709
1710
1711 fi
1712   if test "${ac_cv_path_install+set}" = set; then
1713     INSTALL=$ac_cv_path_install
1714   else
1715     # As a last resort, use the slow shell script.  We don't cache a
1716     # path for INSTALL within a source directory, because that will
1717     # break other packages using the cache if that directory is
1718     # removed, or if the path is relative.
1719     INSTALL=$ac_install_sh
1720   fi
1721 fi
1722 echo "$as_me:$LINENO: result: $INSTALL" >&5
1723 echo "${ECHO_T}$INSTALL" >&6
1724
1725 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1726 # It thinks the first close brace ends the variable substitution.
1727 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1728
1729 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1730
1731 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1732
1733 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1734 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1735 # Just in case
1736 sleep 1
1737 echo timestamp > conftest.file
1738 # Do `set' in a subshell so we don't clobber the current shell's
1739 # arguments.  Must try -L first in case configure is actually a
1740 # symlink; some systems play weird games with the mod time of symlinks
1741 # (eg FreeBSD returns the mod time of the symlink's containing
1742 # directory).
1743 if (
1744    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1745    if test "$*" = "X"; then
1746       # -L didn't work.
1747       set X `ls -t $srcdir/configure conftest.file`
1748    fi
1749    rm -f conftest.file
1750    if test "$*" != "X $srcdir/configure conftest.file" \
1751       && test "$*" != "X conftest.file $srcdir/configure"; then
1752
1753       # If neither matched, then we have a broken ls.  This can happen
1754       # if, for instance, CONFIG_SHELL is bash and it inherits a
1755       # broken ls alias from the environment.  This has actually
1756       # happened.  Such a system could not be considered "sane".
1757       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1758 alias in your environment" >&5
1759 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1760 alias in your environment" >&2;}
1761    { (exit 1); exit 1; }; }
1762    fi
1763
1764    test "$2" = conftest.file
1765    )
1766 then
1767    # Ok.
1768    :
1769 else
1770    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1771 Check your system clock" >&5
1772 echo "$as_me: error: newly created file is older than distributed files!
1773 Check your system clock" >&2;}
1774    { (exit 1); exit 1; }; }
1775 fi
1776 echo "$as_me:$LINENO: result: yes" >&5
1777 echo "${ECHO_T}yes" >&6
1778 test "$program_prefix" != NONE &&
1779   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1780 # Use a double $ so make ignores it.
1781 test "$program_suffix" != NONE &&
1782   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1783 # Double any \ or $.  echo might interpret backslashes.
1784 # By default was `s,x,x', remove it if useless.
1785 cat <<\_ACEOF >conftest.sed
1786 s/[\\$]/&&/g;s/;s,x,x,$//
1787 _ACEOF
1788 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1789 rm conftest.sed
1790
1791
1792 # expand $ac_aux_dir to an absolute path
1793 am_aux_dir=`cd $ac_aux_dir && pwd`
1794
1795 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1796 # Use eval to expand $SHELL
1797 if eval "$MISSING --run true"; then
1798   am_missing_run="$MISSING --run "
1799 else
1800   am_missing_run=
1801   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1802 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1803 fi
1804
1805 for ac_prog in gawk mawk nawk awk
1806 do
1807   # Extract the first word of "$ac_prog", so it can be a program name with args.
1808 set dummy $ac_prog; ac_word=$2
1809 echo "$as_me:$LINENO: checking for $ac_word" >&5
1810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1811 if test "${ac_cv_prog_AWK+set}" = set; then
1812   echo $ECHO_N "(cached) $ECHO_C" >&6
1813 else
1814   if test -n "$AWK"; then
1815   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1816 else
1817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1818 for as_dir in $PATH
1819 do
1820   IFS=$as_save_IFS
1821   test -z "$as_dir" && as_dir=.
1822   for ac_exec_ext in '' $ac_executable_extensions; do
1823   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1824     ac_cv_prog_AWK="$ac_prog"
1825     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1826     break 2
1827   fi
1828 done
1829 done
1830
1831 fi
1832 fi
1833 AWK=$ac_cv_prog_AWK
1834 if test -n "$AWK"; then
1835   echo "$as_me:$LINENO: result: $AWK" >&5
1836 echo "${ECHO_T}$AWK" >&6
1837 else
1838   echo "$as_me:$LINENO: result: no" >&5
1839 echo "${ECHO_T}no" >&6
1840 fi
1841
1842   test -n "$AWK" && break
1843 done
1844
1845 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1846 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1847 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1848 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1849   echo $ECHO_N "(cached) $ECHO_C" >&6
1850 else
1851   cat >conftest.make <<\_ACEOF
1852 all:
1853         @echo 'ac_maketemp="$(MAKE)"'
1854 _ACEOF
1855 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1856 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1857 if test -n "$ac_maketemp"; then
1858   eval ac_cv_prog_make_${ac_make}_set=yes
1859 else
1860   eval ac_cv_prog_make_${ac_make}_set=no
1861 fi
1862 rm -f conftest.make
1863 fi
1864 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1865   echo "$as_me:$LINENO: result: yes" >&5
1866 echo "${ECHO_T}yes" >&6
1867   SET_MAKE=
1868 else
1869   echo "$as_me:$LINENO: result: no" >&5
1870 echo "${ECHO_T}no" >&6
1871   SET_MAKE="MAKE=${MAKE-make}"
1872 fi
1873
1874 rm -rf .tst 2>/dev/null
1875 mkdir .tst 2>/dev/null
1876 if test -d .tst; then
1877   am__leading_dot=.
1878 else
1879   am__leading_dot=_
1880 fi
1881 rmdir .tst 2>/dev/null
1882
1883  # test to see if srcdir already configured
1884 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1885    test -f $srcdir/config.status; then
1886   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1887 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1888    { (exit 1); exit 1; }; }
1889 fi
1890
1891 # test whether we have cygpath
1892 if test -z "$CYGPATH_W"; then
1893   if (cygpath --version) >/dev/null 2>/dev/null; then
1894     CYGPATH_W='cygpath -w'
1895   else
1896     CYGPATH_W=echo
1897   fi
1898 fi
1899
1900
1901 # Define the identity of the package.
1902  PACKAGE='gras'
1903  VERSION='0.0.040205'
1904
1905
1906 cat >>confdefs.h <<_ACEOF
1907 #define PACKAGE "$PACKAGE"
1908 _ACEOF
1909
1910
1911 cat >>confdefs.h <<_ACEOF
1912 #define VERSION "$VERSION"
1913 _ACEOF
1914
1915 # Some tools Automake needs.
1916
1917 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1918
1919
1920 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1921
1922
1923 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1924
1925
1926 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1927
1928
1929 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1930
1931
1932 AMTAR=${AMTAR-"${am_missing_run}tar"}
1933
1934 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1935
1936 # Installed binaries are usually stripped using `strip' when the user
1937 # run `make install-strip'.  However `strip' might not be the right
1938 # tool to use in cross-compilation environments, therefore Automake
1939 # will honor the `STRIP' environment variable to overrule this program.
1940 if test "$cross_compiling" != no; then
1941   if test -n "$ac_tool_prefix"; then
1942   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1943 set dummy ${ac_tool_prefix}strip; ac_word=$2
1944 echo "$as_me:$LINENO: checking for $ac_word" >&5
1945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1946 if test "${ac_cv_prog_STRIP+set}" = set; then
1947   echo $ECHO_N "(cached) $ECHO_C" >&6
1948 else
1949   if test -n "$STRIP"; then
1950   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1951 else
1952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1953 for as_dir in $PATH
1954 do
1955   IFS=$as_save_IFS
1956   test -z "$as_dir" && as_dir=.
1957   for ac_exec_ext in '' $ac_executable_extensions; do
1958   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1959     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1960     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1961     break 2
1962   fi
1963 done
1964 done
1965
1966 fi
1967 fi
1968 STRIP=$ac_cv_prog_STRIP
1969 if test -n "$STRIP"; then
1970   echo "$as_me:$LINENO: result: $STRIP" >&5
1971 echo "${ECHO_T}$STRIP" >&6
1972 else
1973   echo "$as_me:$LINENO: result: no" >&5
1974 echo "${ECHO_T}no" >&6
1975 fi
1976
1977 fi
1978 if test -z "$ac_cv_prog_STRIP"; then
1979   ac_ct_STRIP=$STRIP
1980   # Extract the first word of "strip", so it can be a program name with args.
1981 set dummy strip; ac_word=$2
1982 echo "$as_me:$LINENO: checking for $ac_word" >&5
1983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1984 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1985   echo $ECHO_N "(cached) $ECHO_C" >&6
1986 else
1987   if test -n "$ac_ct_STRIP"; then
1988   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1989 else
1990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1991 for as_dir in $PATH
1992 do
1993   IFS=$as_save_IFS
1994   test -z "$as_dir" && as_dir=.
1995   for ac_exec_ext in '' $ac_executable_extensions; do
1996   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1997     ac_cv_prog_ac_ct_STRIP="strip"
1998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1999     break 2
2000   fi
2001 done
2002 done
2003
2004   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2005 fi
2006 fi
2007 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2008 if test -n "$ac_ct_STRIP"; then
2009   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2010 echo "${ECHO_T}$ac_ct_STRIP" >&6
2011 else
2012   echo "$as_me:$LINENO: result: no" >&5
2013 echo "${ECHO_T}no" >&6
2014 fi
2015
2016   STRIP=$ac_ct_STRIP
2017 else
2018   STRIP="$ac_cv_prog_STRIP"
2019 fi
2020
2021 fi
2022 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2023
2024 # We need awk for the "check" target.  The system "awk" is bad on
2025 # some platforms.
2026
2027
2028
2029
2030 # Check whether --enable-shared or --disable-shared was given.
2031 if test "${enable_shared+set}" = set; then
2032   enableval="$enable_shared"
2033   p=${PACKAGE-default}
2034     case $enableval in
2035     yes) enable_shared=yes ;;
2036     no) enable_shared=no ;;
2037     *)
2038       enable_shared=no
2039       # Look at the argument we got.  We use all the common list separators.
2040       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2041       for pkg in $enableval; do
2042         IFS="$lt_save_ifs"
2043         if test "X$pkg" = "X$p"; then
2044           enable_shared=yes
2045         fi
2046       done
2047       IFS="$lt_save_ifs"
2048       ;;
2049     esac
2050 else
2051   enable_shared=yes
2052 fi;
2053
2054 # Check whether --enable-static or --disable-static was given.
2055 if test "${enable_static+set}" = set; then
2056   enableval="$enable_static"
2057   p=${PACKAGE-default}
2058     case $enableval in
2059     yes) enable_static=yes ;;
2060     no) enable_static=no ;;
2061     *)
2062      enable_static=no
2063       # Look at the argument we got.  We use all the common list separators.
2064       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2065       for pkg in $enableval; do
2066         IFS="$lt_save_ifs"
2067         if test "X$pkg" = "X$p"; then
2068           enable_static=yes
2069         fi
2070       done
2071       IFS="$lt_save_ifs"
2072       ;;
2073     esac
2074 else
2075   enable_static=yes
2076 fi;
2077
2078 # Check whether --enable-fast-install or --disable-fast-install was given.
2079 if test "${enable_fast_install+set}" = set; then
2080   enableval="$enable_fast_install"
2081   p=${PACKAGE-default}
2082     case $enableval in
2083     yes) enable_fast_install=yes ;;
2084     no) enable_fast_install=no ;;
2085     *)
2086       enable_fast_install=no
2087       # Look at the argument we got.  We use all the common list separators.
2088       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2089       for pkg in $enableval; do
2090         IFS="$lt_save_ifs"
2091         if test "X$pkg" = "X$p"; then
2092           enable_fast_install=yes
2093         fi
2094       done
2095       IFS="$lt_save_ifs"
2096       ;;
2097     esac
2098 else
2099   enable_fast_install=yes
2100 fi;
2101
2102 DEPDIR="${am__leading_dot}deps"
2103
2104           ac_config_commands="$ac_config_commands depfiles"
2105
2106
2107 am_make=${MAKE-make}
2108 cat > confinc << 'END'
2109 am__doit:
2110         @echo done
2111 .PHONY: am__doit
2112 END
2113 # If we don't find an include directive, just comment out the code.
2114 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2115 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2116 am__include="#"
2117 am__quote=
2118 _am_result=none
2119 # First try GNU make style include.
2120 echo "include confinc" > confmf
2121 # We grep out `Entering directory' and `Leaving directory'
2122 # messages which can occur if `w' ends up in MAKEFLAGS.
2123 # In particular we don't look at `^make:' because GNU make might
2124 # be invoked under some other name (usually "gmake"), in which
2125 # case it prints its new name instead of `make'.
2126 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2127    am__include=include
2128    am__quote=
2129    _am_result=GNU
2130 fi
2131 # Now try BSD make style include.
2132 if test "$am__include" = "#"; then
2133    echo '.include "confinc"' > confmf
2134    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2135       am__include=.include
2136       am__quote="\""
2137       _am_result=BSD
2138    fi
2139 fi
2140
2141
2142 echo "$as_me:$LINENO: result: $_am_result" >&5
2143 echo "${ECHO_T}$_am_result" >&6
2144 rm -f confinc confmf
2145
2146 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2147 if test "${enable_dependency_tracking+set}" = set; then
2148   enableval="$enable_dependency_tracking"
2149
2150 fi;
2151 if test "x$enable_dependency_tracking" != xno; then
2152   am_depcomp="$ac_aux_dir/depcomp"
2153   AMDEPBACKSLASH='\'
2154 fi
2155
2156
2157 if test "x$enable_dependency_tracking" != xno; then
2158   AMDEP_TRUE=
2159   AMDEP_FALSE='#'
2160 else
2161   AMDEP_TRUE='#'
2162   AMDEP_FALSE=
2163 fi
2164
2165
2166
2167 ac_ext=c
2168 ac_cpp='$CPP $CPPFLAGS'
2169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2172 if test -n "$ac_tool_prefix"; then
2173   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2174 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2175 echo "$as_me:$LINENO: checking for $ac_word" >&5
2176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2177 if test "${ac_cv_prog_CC+set}" = set; then
2178   echo $ECHO_N "(cached) $ECHO_C" >&6
2179 else
2180   if test -n "$CC"; then
2181   ac_cv_prog_CC="$CC" # Let the user override the test.
2182 else
2183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2184 for as_dir in $PATH
2185 do
2186   IFS=$as_save_IFS
2187   test -z "$as_dir" && as_dir=.
2188   for ac_exec_ext in '' $ac_executable_extensions; do
2189   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2190     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2192     break 2
2193   fi
2194 done
2195 done
2196
2197 fi
2198 fi
2199 CC=$ac_cv_prog_CC
2200 if test -n "$CC"; then
2201   echo "$as_me:$LINENO: result: $CC" >&5
2202 echo "${ECHO_T}$CC" >&6
2203 else
2204   echo "$as_me:$LINENO: result: no" >&5
2205 echo "${ECHO_T}no" >&6
2206 fi
2207
2208 fi
2209 if test -z "$ac_cv_prog_CC"; then
2210   ac_ct_CC=$CC
2211   # Extract the first word of "gcc", so it can be a program name with args.
2212 set dummy gcc; ac_word=$2
2213 echo "$as_me:$LINENO: checking for $ac_word" >&5
2214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2215 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2216   echo $ECHO_N "(cached) $ECHO_C" >&6
2217 else
2218   if test -n "$ac_ct_CC"; then
2219   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2220 else
2221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2222 for as_dir in $PATH
2223 do
2224   IFS=$as_save_IFS
2225   test -z "$as_dir" && as_dir=.
2226   for ac_exec_ext in '' $ac_executable_extensions; do
2227   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2228     ac_cv_prog_ac_ct_CC="gcc"
2229     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2230     break 2
2231   fi
2232 done
2233 done
2234
2235 fi
2236 fi
2237 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2238 if test -n "$ac_ct_CC"; then
2239   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2240 echo "${ECHO_T}$ac_ct_CC" >&6
2241 else
2242   echo "$as_me:$LINENO: result: no" >&5
2243 echo "${ECHO_T}no" >&6
2244 fi
2245
2246   CC=$ac_ct_CC
2247 else
2248   CC="$ac_cv_prog_CC"
2249 fi
2250
2251 if test -z "$CC"; then
2252   if test -n "$ac_tool_prefix"; then
2253   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2254 set dummy ${ac_tool_prefix}cc; ac_word=$2
2255 echo "$as_me:$LINENO: checking for $ac_word" >&5
2256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2257 if test "${ac_cv_prog_CC+set}" = set; then
2258   echo $ECHO_N "(cached) $ECHO_C" >&6
2259 else
2260   if test -n "$CC"; then
2261   ac_cv_prog_CC="$CC" # Let the user override the test.
2262 else
2263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2264 for as_dir in $PATH
2265 do
2266   IFS=$as_save_IFS
2267   test -z "$as_dir" && as_dir=.
2268   for ac_exec_ext in '' $ac_executable_extensions; do
2269   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2270     ac_cv_prog_CC="${ac_tool_prefix}cc"
2271     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2272     break 2
2273   fi
2274 done
2275 done
2276
2277 fi
2278 fi
2279 CC=$ac_cv_prog_CC
2280 if test -n "$CC"; then
2281   echo "$as_me:$LINENO: result: $CC" >&5
2282 echo "${ECHO_T}$CC" >&6
2283 else
2284   echo "$as_me:$LINENO: result: no" >&5
2285 echo "${ECHO_T}no" >&6
2286 fi
2287
2288 fi
2289 if test -z "$ac_cv_prog_CC"; then
2290   ac_ct_CC=$CC
2291   # Extract the first word of "cc", so it can be a program name with args.
2292 set dummy cc; ac_word=$2
2293 echo "$as_me:$LINENO: checking for $ac_word" >&5
2294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2295 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2296   echo $ECHO_N "(cached) $ECHO_C" >&6
2297 else
2298   if test -n "$ac_ct_CC"; then
2299   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2300 else
2301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2302 for as_dir in $PATH
2303 do
2304   IFS=$as_save_IFS
2305   test -z "$as_dir" && as_dir=.
2306   for ac_exec_ext in '' $ac_executable_extensions; do
2307   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2308     ac_cv_prog_ac_ct_CC="cc"
2309     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2310     break 2
2311   fi
2312 done
2313 done
2314
2315 fi
2316 fi
2317 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2318 if test -n "$ac_ct_CC"; then
2319   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2320 echo "${ECHO_T}$ac_ct_CC" >&6
2321 else
2322   echo "$as_me:$LINENO: result: no" >&5
2323 echo "${ECHO_T}no" >&6
2324 fi
2325
2326   CC=$ac_ct_CC
2327 else
2328   CC="$ac_cv_prog_CC"
2329 fi
2330
2331 fi
2332 if test -z "$CC"; then
2333   # Extract the first word of "cc", so it can be a program name with args.
2334 set dummy cc; ac_word=$2
2335 echo "$as_me:$LINENO: checking for $ac_word" >&5
2336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2337 if test "${ac_cv_prog_CC+set}" = set; then
2338   echo $ECHO_N "(cached) $ECHO_C" >&6
2339 else
2340   if test -n "$CC"; then
2341   ac_cv_prog_CC="$CC" # Let the user override the test.
2342 else
2343   ac_prog_rejected=no
2344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345 for as_dir in $PATH
2346 do
2347   IFS=$as_save_IFS
2348   test -z "$as_dir" && as_dir=.
2349   for ac_exec_ext in '' $ac_executable_extensions; do
2350   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2351     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2352        ac_prog_rejected=yes
2353        continue
2354      fi
2355     ac_cv_prog_CC="cc"
2356     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2357     break 2
2358   fi
2359 done
2360 done
2361
2362 if test $ac_prog_rejected = yes; then
2363   # We found a bogon in the path, so make sure we never use it.
2364   set dummy $ac_cv_prog_CC
2365   shift
2366   if test $# != 0; then
2367     # We chose a different compiler from the bogus one.
2368     # However, it has the same basename, so the bogon will be chosen
2369     # first if we set CC to just the basename; use the full file name.
2370     shift
2371     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2372   fi
2373 fi
2374 fi
2375 fi
2376 CC=$ac_cv_prog_CC
2377 if test -n "$CC"; then
2378   echo "$as_me:$LINENO: result: $CC" >&5
2379 echo "${ECHO_T}$CC" >&6
2380 else
2381   echo "$as_me:$LINENO: result: no" >&5
2382 echo "${ECHO_T}no" >&6
2383 fi
2384
2385 fi
2386 if test -z "$CC"; then
2387   if test -n "$ac_tool_prefix"; then
2388   for ac_prog in cl
2389   do
2390     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2391 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2392 echo "$as_me:$LINENO: checking for $ac_word" >&5
2393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2394 if test "${ac_cv_prog_CC+set}" = set; then
2395   echo $ECHO_N "(cached) $ECHO_C" >&6
2396 else
2397   if test -n "$CC"; then
2398   ac_cv_prog_CC="$CC" # Let the user override the test.
2399 else
2400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2401 for as_dir in $PATH
2402 do
2403   IFS=$as_save_IFS
2404   test -z "$as_dir" && as_dir=.
2405   for ac_exec_ext in '' $ac_executable_extensions; do
2406   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2407     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2408     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2409     break 2
2410   fi
2411 done
2412 done
2413
2414 fi
2415 fi
2416 CC=$ac_cv_prog_CC
2417 if test -n "$CC"; then
2418   echo "$as_me:$LINENO: result: $CC" >&5
2419 echo "${ECHO_T}$CC" >&6
2420 else
2421   echo "$as_me:$LINENO: result: no" >&5
2422 echo "${ECHO_T}no" >&6
2423 fi
2424
2425     test -n "$CC" && break
2426   done
2427 fi
2428 if test -z "$CC"; then
2429   ac_ct_CC=$CC
2430   for ac_prog in cl
2431 do
2432   # Extract the first word of "$ac_prog", so it can be a program name with args.
2433 set dummy $ac_prog; ac_word=$2
2434 echo "$as_me:$LINENO: checking for $ac_word" >&5
2435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2436 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2437   echo $ECHO_N "(cached) $ECHO_C" >&6
2438 else
2439   if test -n "$ac_ct_CC"; then
2440   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2441 else
2442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443 for as_dir in $PATH
2444 do
2445   IFS=$as_save_IFS
2446   test -z "$as_dir" && as_dir=.
2447   for ac_exec_ext in '' $ac_executable_extensions; do
2448   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2449     ac_cv_prog_ac_ct_CC="$ac_prog"
2450     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2451     break 2
2452   fi
2453 done
2454 done
2455
2456 fi
2457 fi
2458 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2459 if test -n "$ac_ct_CC"; then
2460   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2461 echo "${ECHO_T}$ac_ct_CC" >&6
2462 else
2463   echo "$as_me:$LINENO: result: no" >&5
2464 echo "${ECHO_T}no" >&6
2465 fi
2466
2467   test -n "$ac_ct_CC" && break
2468 done
2469
2470   CC=$ac_ct_CC
2471 fi
2472
2473 fi
2474
2475
2476 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2477 See \`config.log' for more details." >&5
2478 echo "$as_me: error: no acceptable C compiler found in \$PATH
2479 See \`config.log' for more details." >&2;}
2480    { (exit 1); exit 1; }; }
2481
2482 # Provide some information about the compiler.
2483 echo "$as_me:$LINENO:" \
2484      "checking for C compiler version" >&5
2485 ac_compiler=`set X $ac_compile; echo $2`
2486 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2487   (eval $ac_compiler --version </dev/null >&5) 2>&5
2488   ac_status=$?
2489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490   (exit $ac_status); }
2491 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2492   (eval $ac_compiler -v </dev/null >&5) 2>&5
2493   ac_status=$?
2494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495   (exit $ac_status); }
2496 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2497   (eval $ac_compiler -V </dev/null >&5) 2>&5
2498   ac_status=$?
2499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500   (exit $ac_status); }
2501
2502 cat >conftest.$ac_ext <<_ACEOF
2503 /* confdefs.h.  */
2504 _ACEOF
2505 cat confdefs.h >>conftest.$ac_ext
2506 cat >>conftest.$ac_ext <<_ACEOF
2507 /* end confdefs.h.  */
2508
2509 int
2510 main ()
2511 {
2512
2513   ;
2514   return 0;
2515 }
2516 _ACEOF
2517 ac_clean_files_save=$ac_clean_files
2518 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2519 # Try to create an executable without -o first, disregard a.out.
2520 # It will help us diagnose broken compilers, and finding out an intuition
2521 # of exeext.
2522 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2523 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2524 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2525 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2526   (eval $ac_link_default) 2>&5
2527   ac_status=$?
2528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529   (exit $ac_status); }; then
2530   # Find the output, starting from the most likely.  This scheme is
2531 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2532 # resort.
2533
2534 # Be careful to initialize this variable, since it used to be cached.
2535 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2536 ac_cv_exeext=
2537 # b.out is created by i960 compilers.
2538 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2539 do
2540   test -f "$ac_file" || continue
2541   case $ac_file in
2542     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2543         ;;
2544     conftest.$ac_ext )
2545         # This is the source file.
2546         ;;
2547     [ab].out )
2548         # We found the default executable, but exeext='' is most
2549         # certainly right.
2550         break;;
2551     *.* )
2552         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2553         # FIXME: I believe we export ac_cv_exeext for Libtool,
2554         # but it would be cool to find out if it's true.  Does anybody
2555         # maintain Libtool? --akim.
2556         export ac_cv_exeext
2557         break;;
2558     * )
2559         break;;
2560   esac
2561 done
2562 else
2563   echo "$as_me: failed program was:" >&5
2564 sed 's/^/| /' conftest.$ac_ext >&5
2565
2566 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2567 See \`config.log' for more details." >&5
2568 echo "$as_me: error: C compiler cannot create executables
2569 See \`config.log' for more details." >&2;}
2570    { (exit 77); exit 77; }; }
2571 fi
2572
2573 ac_exeext=$ac_cv_exeext
2574 echo "$as_me:$LINENO: result: $ac_file" >&5
2575 echo "${ECHO_T}$ac_file" >&6
2576
2577 # Check the compiler produces executables we can run.  If not, either
2578 # the compiler is broken, or we cross compile.
2579 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2580 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2581 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2582 # If not cross compiling, check that we can run a simple program.
2583 if test "$cross_compiling" != yes; then
2584   if { ac_try='./$ac_file'
2585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2586   (eval $ac_try) 2>&5
2587   ac_status=$?
2588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589   (exit $ac_status); }; }; then
2590     cross_compiling=no
2591   else
2592     if test "$cross_compiling" = maybe; then
2593         cross_compiling=yes
2594     else
2595         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2596 If you meant to cross compile, use \`--host'.
2597 See \`config.log' for more details." >&5
2598 echo "$as_me: error: cannot run C compiled programs.
2599 If you meant to cross compile, use \`--host'.
2600 See \`config.log' for more details." >&2;}
2601    { (exit 1); exit 1; }; }
2602     fi
2603   fi
2604 fi
2605 echo "$as_me:$LINENO: result: yes" >&5
2606 echo "${ECHO_T}yes" >&6
2607
2608 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2609 ac_clean_files=$ac_clean_files_save
2610 # Check the compiler produces executables we can run.  If not, either
2611 # the compiler is broken, or we cross compile.
2612 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2613 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2614 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2615 echo "${ECHO_T}$cross_compiling" >&6
2616
2617 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2618 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2620   (eval $ac_link) 2>&5
2621   ac_status=$?
2622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623   (exit $ac_status); }; then
2624   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2625 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2626 # work properly (i.e., refer to `conftest.exe'), while it won't with
2627 # `rm'.
2628 for ac_file in conftest.exe conftest conftest.*; do
2629   test -f "$ac_file" || continue
2630   case $ac_file in
2631     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2632     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2633           export ac_cv_exeext
2634           break;;
2635     * ) break;;
2636   esac
2637 done
2638 else
2639   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2640 See \`config.log' for more details." >&5
2641 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2642 See \`config.log' for more details." >&2;}
2643    { (exit 1); exit 1; }; }
2644 fi
2645
2646 rm -f conftest$ac_cv_exeext
2647 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2648 echo "${ECHO_T}$ac_cv_exeext" >&6
2649
2650 rm -f conftest.$ac_ext
2651 EXEEXT=$ac_cv_exeext
2652 ac_exeext=$EXEEXT
2653 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2654 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2655 if test "${ac_cv_objext+set}" = set; then
2656   echo $ECHO_N "(cached) $ECHO_C" >&6
2657 else
2658   cat >conftest.$ac_ext <<_ACEOF
2659 /* confdefs.h.  */
2660 _ACEOF
2661 cat confdefs.h >>conftest.$ac_ext
2662 cat >>conftest.$ac_ext <<_ACEOF
2663 /* end confdefs.h.  */
2664
2665 int
2666 main ()
2667 {
2668
2669   ;
2670   return 0;
2671 }
2672 _ACEOF
2673 rm -f conftest.o conftest.obj
2674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2675   (eval $ac_compile) 2>&5
2676   ac_status=$?
2677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678   (exit $ac_status); }; then
2679   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2680   case $ac_file in
2681     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2682     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2683        break;;
2684   esac
2685 done
2686 else
2687   echo "$as_me: failed program was:" >&5
2688 sed 's/^/| /' conftest.$ac_ext >&5
2689
2690 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2691 See \`config.log' for more details." >&5
2692 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2693 See \`config.log' for more details." >&2;}
2694    { (exit 1); exit 1; }; }
2695 fi
2696
2697 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2698 fi
2699 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2700 echo "${ECHO_T}$ac_cv_objext" >&6
2701 OBJEXT=$ac_cv_objext
2702 ac_objext=$OBJEXT
2703 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2704 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2705 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2706   echo $ECHO_N "(cached) $ECHO_C" >&6
2707 else
2708   cat >conftest.$ac_ext <<_ACEOF
2709 /* confdefs.h.  */
2710 _ACEOF
2711 cat confdefs.h >>conftest.$ac_ext
2712 cat >>conftest.$ac_ext <<_ACEOF
2713 /* end confdefs.h.  */
2714
2715 int
2716 main ()
2717 {
2718 #ifndef __GNUC__
2719        choke me
2720 #endif
2721
2722   ;
2723   return 0;
2724 }
2725 _ACEOF
2726 rm -f conftest.$ac_objext
2727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2728   (eval $ac_compile) 2>conftest.er1
2729   ac_status=$?
2730   grep -v '^ *+' conftest.er1 >conftest.err
2731   rm -f conftest.er1
2732   cat conftest.err >&5
2733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734   (exit $ac_status); } &&
2735          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737   (eval $ac_try) 2>&5
2738   ac_status=$?
2739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740   (exit $ac_status); }; } &&
2741          { ac_try='test -s conftest.$ac_objext'
2742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743   (eval $ac_try) 2>&5
2744   ac_status=$?
2745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746   (exit $ac_status); }; }; then
2747   ac_compiler_gnu=yes
2748 else
2749   echo "$as_me: failed program was:" >&5
2750 sed 's/^/| /' conftest.$ac_ext >&5
2751
2752 ac_compiler_gnu=no
2753 fi
2754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2755 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2756
2757 fi
2758 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2759 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2760 GCC=`test $ac_compiler_gnu = yes && echo yes`
2761 ac_test_CFLAGS=${CFLAGS+set}
2762 ac_save_CFLAGS=$CFLAGS
2763 CFLAGS="-g"
2764 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2765 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2766 if test "${ac_cv_prog_cc_g+set}" = set; then
2767   echo $ECHO_N "(cached) $ECHO_C" >&6
2768 else
2769   cat >conftest.$ac_ext <<_ACEOF
2770 /* confdefs.h.  */
2771 _ACEOF
2772 cat confdefs.h >>conftest.$ac_ext
2773 cat >>conftest.$ac_ext <<_ACEOF
2774 /* end confdefs.h.  */
2775
2776 int
2777 main ()
2778 {
2779
2780   ;
2781   return 0;
2782 }
2783 _ACEOF
2784 rm -f conftest.$ac_objext
2785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2786   (eval $ac_compile) 2>conftest.er1
2787   ac_status=$?
2788   grep -v '^ *+' conftest.er1 >conftest.err
2789   rm -f conftest.er1
2790   cat conftest.err >&5
2791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792   (exit $ac_status); } &&
2793          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795   (eval $ac_try) 2>&5
2796   ac_status=$?
2797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798   (exit $ac_status); }; } &&
2799          { ac_try='test -s conftest.$ac_objext'
2800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801   (eval $ac_try) 2>&5
2802   ac_status=$?
2803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804   (exit $ac_status); }; }; then
2805   ac_cv_prog_cc_g=yes
2806 else
2807   echo "$as_me: failed program was:" >&5
2808 sed 's/^/| /' conftest.$ac_ext >&5
2809
2810 ac_cv_prog_cc_g=no
2811 fi
2812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2813 fi
2814 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2815 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2816 if test "$ac_test_CFLAGS" = set; then
2817   CFLAGS=$ac_save_CFLAGS
2818 elif test $ac_cv_prog_cc_g = yes; then
2819   if test "$GCC" = yes; then
2820     CFLAGS="-g -O2"
2821   else
2822     CFLAGS="-g"
2823   fi
2824 else
2825   if test "$GCC" = yes; then
2826     CFLAGS="-O2"
2827   else
2828     CFLAGS=
2829   fi
2830 fi
2831 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2832 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2833 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2834   echo $ECHO_N "(cached) $ECHO_C" >&6
2835 else
2836   ac_cv_prog_cc_stdc=no
2837 ac_save_CC=$CC
2838 cat >conftest.$ac_ext <<_ACEOF
2839 /* confdefs.h.  */
2840 _ACEOF
2841 cat confdefs.h >>conftest.$ac_ext
2842 cat >>conftest.$ac_ext <<_ACEOF
2843 /* end confdefs.h.  */
2844 #include <stdarg.h>
2845 #include <stdio.h>
2846 #include <sys/types.h>
2847 #include <sys/stat.h>
2848 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2849 struct buf { int x; };
2850 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2851 static char *e (p, i)
2852      char **p;
2853      int i;
2854 {
2855   return p[i];
2856 }
2857 static char *f (char * (*g) (char **, int), char **p, ...)
2858 {
2859   char *s;
2860   va_list v;
2861   va_start (v,p);
2862   s = g (p, va_arg (v,int));
2863   va_end (v);
2864   return s;
2865 }
2866
2867 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2868    function prototypes and stuff, but not '\xHH' hex character constants.
2869    These don't provoke an error unfortunately, instead are silently treated
2870    as 'x'.  The following induces an error, until -std1 is added to get
2871    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2872    array size at least.  It's necessary to write '\x00'==0 to get something
2873    that's true only with -std1.  */
2874 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2875
2876 int test (int i, double x);
2877 struct s1 {int (*f) (int a);};
2878 struct s2 {int (*f) (double a);};
2879 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2880 int argc;
2881 char **argv;
2882 int
2883 main ()
2884 {
2885 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2886   ;
2887   return 0;
2888 }
2889 _ACEOF
2890 # Don't try gcc -ansi; that turns off useful extensions and
2891 # breaks some systems' header files.
2892 # AIX                   -qlanglvl=ansi
2893 # Ultrix and OSF/1      -std1
2894 # HP-UX 10.20 and later -Ae
2895 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2896 # SVR4                  -Xc -D__EXTENSIONS__
2897 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2898 do
2899   CC="$ac_save_CC $ac_arg"
2900   rm -f conftest.$ac_objext
2901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2902   (eval $ac_compile) 2>conftest.er1
2903   ac_status=$?
2904   grep -v '^ *+' conftest.er1 >conftest.err
2905   rm -f conftest.er1
2906   cat conftest.err >&5
2907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908   (exit $ac_status); } &&
2909          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2911   (eval $ac_try) 2>&5
2912   ac_status=$?
2913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914   (exit $ac_status); }; } &&
2915          { ac_try='test -s conftest.$ac_objext'
2916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2917   (eval $ac_try) 2>&5
2918   ac_status=$?
2919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920   (exit $ac_status); }; }; then
2921   ac_cv_prog_cc_stdc=$ac_arg
2922 break
2923 else
2924   echo "$as_me: failed program was:" >&5
2925 sed 's/^/| /' conftest.$ac_ext >&5
2926
2927 fi
2928 rm -f conftest.err conftest.$ac_objext
2929 done
2930 rm -f conftest.$ac_ext conftest.$ac_objext
2931 CC=$ac_save_CC
2932
2933 fi
2934
2935 case "x$ac_cv_prog_cc_stdc" in
2936   x|xno)
2937     echo "$as_me:$LINENO: result: none needed" >&5
2938 echo "${ECHO_T}none needed" >&6 ;;
2939   *)
2940     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2941 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2942     CC="$CC $ac_cv_prog_cc_stdc" ;;
2943 esac
2944
2945 # Some people use a C++ compiler to compile C.  Since we use `exit',
2946 # in C++ we need to declare it.  In case someone uses the same compiler
2947 # for both compiling C and C++ we need to have the C++ compiler decide
2948 # the declaration of exit, since it's the most demanding environment.
2949 cat >conftest.$ac_ext <<_ACEOF
2950 #ifndef __cplusplus
2951   choke me
2952 #endif
2953 _ACEOF
2954 rm -f conftest.$ac_objext
2955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2956   (eval $ac_compile) 2>conftest.er1
2957   ac_status=$?
2958   grep -v '^ *+' conftest.er1 >conftest.err
2959   rm -f conftest.er1
2960   cat conftest.err >&5
2961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962   (exit $ac_status); } &&
2963          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2965   (eval $ac_try) 2>&5
2966   ac_status=$?
2967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968   (exit $ac_status); }; } &&
2969          { ac_try='test -s conftest.$ac_objext'
2970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2971   (eval $ac_try) 2>&5
2972   ac_status=$?
2973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974   (exit $ac_status); }; }; then
2975   for ac_declaration in \
2976    '' \
2977    'extern "C" void std::exit (int) throw (); using std::exit;' \
2978    'extern "C" void std::exit (int); using std::exit;' \
2979    'extern "C" void exit (int) throw ();' \
2980    'extern "C" void exit (int);' \
2981    'void exit (int);'
2982 do
2983   cat >conftest.$ac_ext <<_ACEOF
2984 /* confdefs.h.  */
2985 _ACEOF
2986 cat confdefs.h >>conftest.$ac_ext
2987 cat >>conftest.$ac_ext <<_ACEOF
2988 /* end confdefs.h.  */
2989 $ac_declaration
2990 #include <stdlib.h>
2991 int
2992 main ()
2993 {
2994 exit (42);
2995   ;
2996   return 0;
2997 }
2998 _ACEOF
2999 rm -f conftest.$ac_objext
3000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3001   (eval $ac_compile) 2>conftest.er1
3002   ac_status=$?
3003   grep -v '^ *+' conftest.er1 >conftest.err
3004   rm -f conftest.er1
3005   cat conftest.err >&5
3006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007   (exit $ac_status); } &&
3008          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3010   (eval $ac_try) 2>&5
3011   ac_status=$?
3012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013   (exit $ac_status); }; } &&
3014          { ac_try='test -s conftest.$ac_objext'
3015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3016   (eval $ac_try) 2>&5
3017   ac_status=$?
3018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019   (exit $ac_status); }; }; then
3020   :
3021 else
3022   echo "$as_me: failed program was:" >&5
3023 sed 's/^/| /' conftest.$ac_ext >&5
3024
3025 continue
3026 fi
3027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3028   cat >conftest.$ac_ext <<_ACEOF
3029 /* confdefs.h.  */
3030 _ACEOF
3031 cat confdefs.h >>conftest.$ac_ext
3032 cat >>conftest.$ac_ext <<_ACEOF
3033 /* end confdefs.h.  */
3034 $ac_declaration
3035 int
3036 main ()
3037 {
3038 exit (42);
3039   ;
3040   return 0;
3041 }
3042 _ACEOF
3043 rm -f conftest.$ac_objext
3044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3045   (eval $ac_compile) 2>conftest.er1
3046   ac_status=$?
3047   grep -v '^ *+' conftest.er1 >conftest.err
3048   rm -f conftest.er1
3049   cat conftest.err >&5
3050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051   (exit $ac_status); } &&
3052          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3054   (eval $ac_try) 2>&5
3055   ac_status=$?
3056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057   (exit $ac_status); }; } &&
3058          { ac_try='test -s conftest.$ac_objext'
3059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3060   (eval $ac_try) 2>&5
3061   ac_status=$?
3062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063   (exit $ac_status); }; }; then
3064   break
3065 else
3066   echo "$as_me: failed program was:" >&5
3067 sed 's/^/| /' conftest.$ac_ext >&5
3068
3069 fi
3070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3071 done
3072 rm -f conftest*
3073 if test -n "$ac_declaration"; then
3074   echo '#ifdef __cplusplus' >>confdefs.h
3075   echo $ac_declaration      >>confdefs.h
3076   echo '#endif'             >>confdefs.h
3077 fi
3078
3079 else
3080   echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3082
3083 fi
3084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3085 ac_ext=c
3086 ac_cpp='$CPP $CPPFLAGS'
3087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3090
3091 depcc="$CC"   am_compiler_list=
3092
3093 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3094 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3095 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3096   echo $ECHO_N "(cached) $ECHO_C" >&6
3097 else
3098   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3099   # We make a subdir and do the tests there.  Otherwise we can end up
3100   # making bogus files that we don't know about and never remove.  For
3101   # instance it was reported that on HP-UX the gcc test will end up
3102   # making a dummy file named `D' -- because `-MD' means `put the output
3103   # in D'.
3104   mkdir conftest.dir
3105   # Copy depcomp to subdir because otherwise we won't find it if we're
3106   # using a relative directory.
3107   cp "$am_depcomp" conftest.dir
3108   cd conftest.dir
3109   # We will build objects and dependencies in a subdirectory because
3110   # it helps to detect inapplicable dependency modes.  For instance
3111   # both Tru64's cc and ICC support -MD to output dependencies as a
3112   # side effect of compilation, but ICC will put the dependencies in
3113   # the current directory while Tru64 will put them in the object
3114   # directory.
3115   mkdir sub
3116
3117   am_cv_CC_dependencies_compiler_type=none
3118   if test "$am_compiler_list" = ""; then
3119      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3120   fi
3121   for depmode in $am_compiler_list; do
3122     # Setup a source with many dependencies, because some compilers
3123     # like to wrap large dependency lists on column 80 (with \), and
3124     # we should not choose a depcomp mode which is confused by this.
3125     #
3126     # We need to recreate these files for each test, as the compiler may
3127     # overwrite some of them when testing with obscure command lines.
3128     # This happens at least with the AIX C compiler.
3129     : > sub/conftest.c
3130     for i in 1 2 3 4 5 6; do
3131       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3132       : > sub/conftst$i.h
3133     done
3134     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3135
3136     case $depmode in
3137     nosideeffect)
3138       # after this tag, mechanisms are not by side-effect, so they'll
3139       # only be used when explicitly requested
3140       if test "x$enable_dependency_tracking" = xyes; then
3141         continue
3142       else
3143         break
3144       fi
3145       ;;
3146     none) break ;;
3147     esac
3148     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3149     # mode.  It turns out that the SunPro C++ compiler does not properly
3150     # handle `-M -o', and we need to detect this.
3151     if depmode=$depmode \
3152        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3153        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3154        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3155          >/dev/null 2>conftest.err &&
3156        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3157        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3158        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3159       # icc doesn't choke on unknown options, it will just issue warnings
3160       # (even with -Werror).  So we grep stderr for any message
3161       # that says an option was ignored.
3162       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3163         am_cv_CC_dependencies_compiler_type=$depmode
3164         break
3165       fi
3166     fi
3167   done
3168
3169   cd ..
3170   rm -rf conftest.dir
3171 else
3172   am_cv_CC_dependencies_compiler_type=none
3173 fi
3174
3175 fi
3176 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3177 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3178 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3179
3180
3181
3182 if
3183   test "x$enable_dependency_tracking" != xno \
3184   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3185   am__fastdepCC_TRUE=
3186   am__fastdepCC_FALSE='#'
3187 else
3188   am__fastdepCC_TRUE='#'
3189   am__fastdepCC_FALSE=
3190 fi
3191
3192
3193 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3194 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3195 if test "${lt_cv_path_SED+set}" = set; then
3196   echo $ECHO_N "(cached) $ECHO_C" >&6
3197 else
3198   # Loop through the user's path and test for sed and gsed.
3199 # Then use that list of sed's as ones to test for truncation.
3200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201 for as_dir in $PATH
3202 do
3203   IFS=$as_save_IFS
3204   test -z "$as_dir" && as_dir=.
3205   for lt_ac_prog in sed gsed; do
3206     for ac_exec_ext in '' $ac_executable_extensions; do
3207       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3208         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3209       fi
3210     done
3211   done
3212 done
3213 lt_ac_max=0
3214 lt_ac_count=0
3215 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3216 # along with /bin/sed that truncates output.
3217 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3218   test ! -f $lt_ac_sed && break
3219   cat /dev/null > conftest.in
3220   lt_ac_count=0
3221   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3222   # Check for GNU sed and select it if it is found.
3223   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3224     lt_cv_path_SED=$lt_ac_sed
3225     break
3226   fi
3227   while true; do
3228     cat conftest.in conftest.in >conftest.tmp
3229     mv conftest.tmp conftest.in
3230     cp conftest.in conftest.nl
3231     echo >>conftest.nl
3232     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3233     cmp -s conftest.out conftest.nl || break
3234     # 10000 chars as input seems more than enough
3235     test $lt_ac_count -gt 10 && break
3236     lt_ac_count=`expr $lt_ac_count + 1`
3237     if test $lt_ac_count -gt $lt_ac_max; then
3238       lt_ac_max=$lt_ac_count
3239       lt_cv_path_SED=$lt_ac_sed
3240     fi
3241   done
3242 done
3243 SED=$lt_cv_path_SED
3244
3245 fi
3246
3247 echo "$as_me:$LINENO: result: $SED" >&5
3248 echo "${ECHO_T}$SED" >&6
3249
3250 echo "$as_me:$LINENO: checking for egrep" >&5
3251 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3252 if test "${ac_cv_prog_egrep+set}" = set; then
3253   echo $ECHO_N "(cached) $ECHO_C" >&6
3254 else
3255   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3256     then ac_cv_prog_egrep='grep -E'
3257     else ac_cv_prog_egrep='egrep'
3258     fi
3259 fi
3260 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3261 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3262  EGREP=$ac_cv_prog_egrep
3263
3264
3265
3266 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3267 if test "${with_gnu_ld+set}" = set; then
3268   withval="$with_gnu_ld"
3269   test "$withval" = no || with_gnu_ld=yes
3270 else
3271   with_gnu_ld=no
3272 fi;
3273 ac_prog=ld
3274 if test "$GCC" = yes; then
3275   # Check if gcc -print-prog-name=ld gives a path.
3276   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3277 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3278   case $host in
3279   *-*-mingw*)
3280     # gcc leaves a trailing carriage return which upsets mingw
3281     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3282   *)
3283     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3284   esac
3285   case $ac_prog in
3286     # Accept absolute paths.
3287     [\\/]* | ?:[\\/]*)
3288       re_direlt='/[^/][^/]*/\.\./'
3289       # Canonicalize the pathname of ld
3290       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3291       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3292         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3293       done
3294       test -z "$LD" && LD="$ac_prog"
3295       ;;
3296   "")
3297     # If it fails, then pretend we aren't using GCC.
3298     ac_prog=ld
3299     ;;
3300   *)
3301     # If it is relative, then search for the first ld in PATH.
3302     with_gnu_ld=unknown
3303     ;;
3304   esac
3305 elif test "$with_gnu_ld" = yes; then
3306   echo "$as_me:$LINENO: checking for GNU ld" >&5
3307 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3308 else
3309   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3310 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3311 fi
3312 if test "${lt_cv_path_LD+set}" = set; then
3313   echo $ECHO_N "(cached) $ECHO_C" >&6
3314 else
3315   if test -z "$LD"; then
3316   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3317   for ac_dir in $PATH; do
3318     IFS="$lt_save_ifs"
3319     test -z "$ac_dir" && ac_dir=.
3320     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3321       lt_cv_path_LD="$ac_dir/$ac_prog"
3322       # Check to see if the program is GNU ld.  I'd rather use --version,
3323       # but apparently some GNU ld's only accept -v.
3324       # Break only if it was the GNU/non-GNU ld that we prefer.
3325       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3326       *GNU* | *'with BFD'*)
3327         test "$with_gnu_ld" != no && break
3328         ;;
3329       *)
3330         test "$with_gnu_ld" != yes && break
3331         ;;
3332       esac
3333     fi
3334   done
3335   IFS="$lt_save_ifs"
3336 else
3337   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3338 fi
3339 fi
3340
3341 LD="$lt_cv_path_LD"
3342 if test -n "$LD"; then
3343   echo "$as_me:$LINENO: result: $LD" >&5
3344 echo "${ECHO_T}$LD" >&6
3345 else
3346   echo "$as_me:$LINENO: result: no" >&5
3347 echo "${ECHO_T}no" >&6
3348 fi
3349 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3350 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3351    { (exit 1); exit 1; }; }
3352 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3353 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3354 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3355   echo $ECHO_N "(cached) $ECHO_C" >&6
3356 else
3357   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3358 case `$LD -v 2>&1 </dev/null` in
3359 *GNU* | *'with BFD'*)
3360   lt_cv_prog_gnu_ld=yes
3361   ;;
3362 *)
3363   lt_cv_prog_gnu_ld=no
3364   ;;
3365 esac
3366 fi
3367 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3368 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3369 with_gnu_ld=$lt_cv_prog_gnu_ld
3370
3371
3372 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3373 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3374 if test "${lt_cv_ld_reload_flag+set}" = set; then
3375   echo $ECHO_N "(cached) $ECHO_C" >&6
3376 else
3377   lt_cv_ld_reload_flag='-r'
3378 fi
3379 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3380 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3381 reload_flag=$lt_cv_ld_reload_flag
3382 case $reload_flag in
3383 "" | " "*) ;;
3384 *) reload_flag=" $reload_flag" ;;
3385 esac
3386 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3387
3388 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3389 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3390 if test "${lt_cv_path_NM+set}" = set; then
3391   echo $ECHO_N "(cached) $ECHO_C" >&6
3392 else
3393   if test -n "$NM"; then
3394   # Let the user override the test.
3395   lt_cv_path_NM="$NM"
3396 else
3397   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3398   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3399     IFS="$lt_save_ifs"
3400     test -z "$ac_dir" && ac_dir=.
3401     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3402     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3403       # Check to see if the nm accepts a BSD-compat flag.
3404       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3405       #   nm: unknown option "B" ignored
3406       # Tru64's nm complains that /dev/null is an invalid object file
3407       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3408       */dev/null* | *'Invalid file or object type'*)
3409         lt_cv_path_NM="$tmp_nm -B"
3410         break
3411         ;;
3412       *)
3413         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3414         */dev/null*)
3415           lt_cv_path_NM="$tmp_nm -p"
3416           break
3417           ;;
3418         *)
3419           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3420           continue # so that we can try to find one that supports BSD flags
3421           ;;
3422         esac
3423       esac
3424     fi
3425   done
3426   IFS="$lt_save_ifs"
3427   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3428 fi
3429 fi
3430 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3431 echo "${ECHO_T}$lt_cv_path_NM" >&6
3432 NM="$lt_cv_path_NM"
3433
3434 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3435 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3436 LN_S=$as_ln_s
3437 if test "$LN_S" = "ln -s"; then
3438   echo "$as_me:$LINENO: result: yes" >&5
3439 echo "${ECHO_T}yes" >&6
3440 else
3441   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3442 echo "${ECHO_T}no, using $LN_S" >&6
3443 fi
3444
3445 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3446 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3447 if test "${lt_cv_deplibs_check_method+set}" = set; then
3448   echo $ECHO_N "(cached) $ECHO_C" >&6
3449 else
3450   lt_cv_file_magic_cmd='$MAGIC_CMD'
3451 lt_cv_file_magic_test_file=
3452 lt_cv_deplibs_check_method='unknown'
3453 # Need to set the preceding variable on all platforms that support
3454 # interlibrary dependencies.
3455 # 'none' -- dependencies not supported.
3456 # `unknown' -- same as none, but documents that we really don't know.
3457 # 'pass_all' -- all dependencies passed with no checks.
3458 # 'test_compile' -- check by making test program.
3459 # 'file_magic [[regex]]' -- check by looking for files in library path
3460 # which responds to the $file_magic_cmd with a given extended regex.
3461 # If you have `file' or equivalent on your system and you're not sure
3462 # whether `pass_all' will *always* work, you probably want this one.
3463
3464 case $host_os in
3465 aix4* | aix5*)
3466   lt_cv_deplibs_check_method=pass_all
3467   ;;
3468
3469 beos*)
3470   lt_cv_deplibs_check_method=pass_all
3471   ;;
3472
3473 bsdi4*)
3474   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3475   lt_cv_file_magic_cmd='/usr/bin/file -L'
3476   lt_cv_file_magic_test_file=/shlib/libc.so
3477   ;;
3478
3479 cygwin*)
3480   # win32_libid is a shell function defined in ltmain.sh
3481   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3482   lt_cv_file_magic_cmd='win32_libid'
3483   ;;
3484
3485 mingw* | pw32*)
3486   # Base MSYS/MinGW do not provide the 'file' command needed by
3487   # win32_libid shell function, so use a weaker test based on 'objdump'.
3488   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3489   lt_cv_file_magic_cmd='$OBJDUMP -f'
3490   ;;
3491
3492 darwin* | rhapsody*)
3493   lt_cv_deplibs_check_method=pass_all
3494   ;;
3495
3496 freebsd* | kfreebsd*-gnu)
3497   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3498     case $host_cpu in
3499     i*86 )
3500       # Not sure whether the presence of OpenBSD here was a mistake.
3501       # Let's accept both of them until this is cleared up.
3502       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3503       lt_cv_file_magic_cmd=/usr/bin/file
3504       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3505       ;;
3506     esac
3507   else
3508     lt_cv_deplibs_check_method=pass_all
3509   fi
3510   ;;
3511
3512 gnu*)
3513   lt_cv_deplibs_check_method=pass_all
3514   ;;
3515
3516 hpux10.20* | hpux11*)
3517   lt_cv_file_magic_cmd=/usr/bin/file
3518   case "$host_cpu" in
3519   ia64*)
3520     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3521     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3522     ;;
3523   hppa*64*)
3524     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
3525     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3526     ;;
3527   *)
3528     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3529     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3530     ;;
3531   esac
3532   ;;
3533
3534 irix5* | irix6* | nonstopux*)
3535   case $LD in
3536   *-32|*"-32 ") libmagic=32-bit;;
3537   *-n32|*"-n32 ") libmagic=N32;;
3538   *-64|*"-64 ") libmagic=64-bit;;
3539   *) libmagic=never-match;;
3540   esac
3541   lt_cv_deplibs_check_method=pass_all
3542   ;;
3543
3544 # This must be Linux ELF.
3545 linux*)
3546   lt_cv_deplibs_check_method=pass_all
3547   ;;
3548
3549 netbsd*)
3550   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3551     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3552   else
3553     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3554   fi
3555   ;;
3556
3557 newos6*)
3558   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3559   lt_cv_file_magic_cmd=/usr/bin/file
3560   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3561   ;;
3562
3563 nto-qnx*)
3564   lt_cv_deplibs_check_method=unknown
3565   ;;
3566
3567 openbsd*)
3568   lt_cv_file_magic_cmd=/usr/bin/file
3569   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3570   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3571     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3572   else
3573     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3574   fi
3575   ;;
3576
3577 osf3* | osf4* | osf5*)
3578   lt_cv_deplibs_check_method=pass_all
3579   ;;
3580
3581 sco3.2v5*)
3582   lt_cv_deplibs_check_method=pass_all
3583   ;;
3584
3585 solaris*)
3586   lt_cv_deplibs_check_method=pass_all
3587   ;;
3588
3589 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3590   case $host_vendor in
3591   motorola)
3592     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3593     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3594     ;;
3595   ncr)
3596     lt_cv_deplibs_check_method=pass_all
3597     ;;
3598   sequent)
3599     lt_cv_file_magic_cmd='/bin/file'
3600     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3601     ;;
3602   sni)
3603     lt_cv_file_magic_cmd='/bin/file'
3604     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3605     lt_cv_file_magic_test_file=/lib/libc.so
3606     ;;
3607   siemens)
3608     lt_cv_deplibs_check_method=pass_all
3609     ;;
3610   esac
3611   ;;
3612
3613 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3614   lt_cv_deplibs_check_method=pass_all
3615   ;;
3616 esac
3617
3618 fi
3619 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3620 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3621 file_magic_cmd=$lt_cv_file_magic_cmd
3622 deplibs_check_method=$lt_cv_deplibs_check_method
3623 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3624
3625
3626
3627
3628 # If no C compiler was specified, use CC.
3629 LTCC=${LTCC-"$CC"}
3630
3631 # Allow CC to be a program name with arguments.
3632 compiler=$CC
3633
3634
3635 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3636 if test "${enable_libtool_lock+set}" = set; then
3637   enableval="$enable_libtool_lock"
3638
3639 fi;
3640 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3641
3642 # Some flags need to be propagated to the compiler or linker for good
3643 # libtool support.
3644 case $host in
3645 ia64-*-hpux*)
3646   # Find out which ABI we are using.
3647   echo 'int i;' > conftest.$ac_ext
3648   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3649   (eval $ac_compile) 2>&5
3650   ac_status=$?
3651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652   (exit $ac_status); }; then
3653     case `/usr/bin/file conftest.$ac_objext` in
3654     *ELF-32*)
3655       HPUX_IA64_MODE="32"
3656       ;;
3657     *ELF-64*)
3658       HPUX_IA64_MODE="64"
3659       ;;
3660     esac
3661   fi
3662   rm -rf conftest*
3663   ;;
3664 *-*-irix6*)
3665   # Find out which ABI we are using.
3666   echo '#line 3666 "configure"' > conftest.$ac_ext
3667   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3668   (eval $ac_compile) 2>&5
3669   ac_status=$?
3670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671   (exit $ac_status); }; then
3672    if test "$lt_cv_prog_gnu_ld" = yes; then
3673     case `/usr/bin/file conftest.$ac_objext` in
3674     *32-bit*)
3675       LD="${LD-ld} -melf32bsmip"
3676       ;;
3677     *N32*)
3678       LD="${LD-ld} -melf32bmipn32"
3679       ;;
3680     *64-bit*)
3681       LD="${LD-ld} -melf64bmip"
3682       ;;
3683     esac
3684    else
3685     case `/usr/bin/file conftest.$ac_objext` in
3686     *32-bit*)
3687       LD="${LD-ld} -32"
3688       ;;
3689     *N32*)
3690       LD="${LD-ld} -n32"
3691       ;;
3692     *64-bit*)
3693       LD="${LD-ld} -64"
3694       ;;
3695     esac
3696    fi
3697   fi
3698   rm -rf conftest*
3699   ;;
3700
3701 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3702   # Find out which ABI we are using.
3703   echo 'int i;' > conftest.$ac_ext
3704   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3705   (eval $ac_compile) 2>&5
3706   ac_status=$?
3707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708   (exit $ac_status); }; then
3709     case "`/usr/bin/file conftest.o`" in
3710     *32-bit*)
3711       case $host in
3712         x86_64-*linux*)
3713           LD="${LD-ld} -m elf_i386"
3714           ;;
3715         ppc64-*linux*|powerpc64-*linux*)
3716           LD="${LD-ld} -m elf32ppclinux"
3717           ;;
3718         s390x-*linux*)
3719           LD="${LD-ld} -m elf_s390"
3720           ;;
3721         sparc64-*linux*)
3722           LD="${LD-ld} -m elf32_sparc"
3723           ;;
3724       esac
3725       ;;
3726     *64-bit*)
3727       case $host in
3728         x86_64-*linux*)
3729           LD="${LD-ld} -m elf_x86_64"
3730           ;;
3731         ppc*-*linux*|powerpc*-*linux*)
3732           LD="${LD-ld} -m elf64ppc"
3733           ;;
3734         s390*-*linux*)
3735           LD="${LD-ld} -m elf64_s390"
3736           ;;
3737         sparc*-*linux*)
3738           LD="${LD-ld} -m elf64_sparc"
3739           ;;
3740       esac
3741       ;;
3742     esac
3743   fi
3744   rm -rf conftest*
3745   ;;
3746
3747 *-*-sco3.2v5*)
3748   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3749   SAVE_CFLAGS="$CFLAGS"
3750   CFLAGS="$CFLAGS -belf"
3751   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3752 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3753 if test "${lt_cv_cc_needs_belf+set}" = set; then
3754   echo $ECHO_N "(cached) $ECHO_C" >&6
3755 else
3756   ac_ext=c
3757 ac_cpp='$CPP $CPPFLAGS'
3758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3761
3762      cat >conftest.$ac_ext <<_ACEOF
3763 /* confdefs.h.  */
3764 _ACEOF
3765 cat confdefs.h >>conftest.$ac_ext
3766 cat >>conftest.$ac_ext <<_ACEOF
3767 /* end confdefs.h.  */
3768
3769 int
3770 main ()
3771 {
3772
3773   ;
3774   return 0;
3775 }
3776 _ACEOF
3777 rm -f conftest.$ac_objext conftest$ac_exeext
3778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3779   (eval $ac_link) 2>conftest.er1
3780   ac_status=$?
3781   grep -v '^ *+' conftest.er1 >conftest.err
3782   rm -f conftest.er1
3783   cat conftest.err >&5
3784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785   (exit $ac_status); } &&
3786          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3788   (eval $ac_try) 2>&5
3789   ac_status=$?
3790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791   (exit $ac_status); }; } &&
3792          { ac_try='test -s conftest$ac_exeext'
3793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3794   (eval $ac_try) 2>&5
3795   ac_status=$?
3796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797   (exit $ac_status); }; }; then
3798   lt_cv_cc_needs_belf=yes
3799 else
3800   echo "$as_me: failed program was:" >&5
3801 sed 's/^/| /' conftest.$ac_ext >&5
3802
3803 lt_cv_cc_needs_belf=no
3804 fi
3805 rm -f conftest.err conftest.$ac_objext \
3806       conftest$ac_exeext conftest.$ac_ext
3807      ac_ext=c
3808 ac_cpp='$CPP $CPPFLAGS'
3809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3812
3813 fi
3814 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3815 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3816   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3817     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3818     CFLAGS="$SAVE_CFLAGS"
3819   fi
3820   ;;
3821
3822 esac
3823
3824 need_locks="$enable_libtool_lock"
3825
3826
3827 ac_ext=c
3828 ac_cpp='$CPP $CPPFLAGS'
3829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3832 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3833 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3834 # On Suns, sometimes $CPP names a directory.
3835 if test -n "$CPP" && test -d "$CPP"; then
3836   CPP=
3837 fi
3838 if test -z "$CPP"; then
3839   if test "${ac_cv_prog_CPP+set}" = set; then
3840   echo $ECHO_N "(cached) $ECHO_C" >&6
3841 else
3842       # Double quotes because CPP needs to be expanded
3843     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3844     do
3845       ac_preproc_ok=false
3846 for ac_c_preproc_warn_flag in '' yes
3847 do
3848   # Use a header file that comes with gcc, so configuring glibc
3849   # with a fresh cross-compiler works.
3850   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3851   # <limits.h> exists even on freestanding compilers.
3852   # On the NeXT, cc -E runs the code through the compiler's parser,
3853   # not just through cpp. "Syntax error" is here to catch this case.
3854   cat >conftest.$ac_ext <<_ACEOF
3855 /* confdefs.h.  */
3856 _ACEOF
3857 cat confdefs.h >>conftest.$ac_ext
3858 cat >>conftest.$ac_ext <<_ACEOF
3859 /* end confdefs.h.  */
3860 #ifdef __STDC__
3861 # include <limits.h>
3862 #else
3863 # include <assert.h>
3864 #endif
3865                      Syntax error
3866 _ACEOF
3867 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3868   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3869   ac_status=$?
3870   grep -v '^ *+' conftest.er1 >conftest.err
3871   rm -f conftest.er1
3872   cat conftest.err >&5
3873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874   (exit $ac_status); } >/dev/null; then
3875   if test -s conftest.err; then
3876     ac_cpp_err=$ac_c_preproc_warn_flag
3877     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3878   else
3879     ac_cpp_err=
3880   fi
3881 else
3882   ac_cpp_err=yes
3883 fi
3884 if test -z "$ac_cpp_err"; then
3885   :
3886 else
3887   echo "$as_me: failed program was:" >&5
3888 sed 's/^/| /' conftest.$ac_ext >&5
3889
3890   # Broken: fails on valid input.
3891 continue
3892 fi
3893 rm -f conftest.err conftest.$ac_ext
3894
3895   # OK, works on sane cases.  Now check whether non-existent headers
3896   # can be detected and how.
3897   cat >conftest.$ac_ext <<_ACEOF
3898 /* confdefs.h.  */
3899 _ACEOF
3900 cat confdefs.h >>conftest.$ac_ext
3901 cat >>conftest.$ac_ext <<_ACEOF
3902 /* end confdefs.h.  */
3903 #include <ac_nonexistent.h>
3904 _ACEOF
3905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3906   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3907   ac_status=$?
3908   grep -v '^ *+' conftest.er1 >conftest.err
3909   rm -f conftest.er1
3910   cat conftest.err >&5
3911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912   (exit $ac_status); } >/dev/null; then
3913   if test -s conftest.err; then
3914     ac_cpp_err=$ac_c_preproc_warn_flag
3915     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3916   else
3917     ac_cpp_err=
3918   fi
3919 else
3920   ac_cpp_err=yes
3921 fi
3922 if test -z "$ac_cpp_err"; then
3923   # Broken: success on invalid input.
3924 continue
3925 else
3926   echo "$as_me: failed program was:" >&5
3927 sed 's/^/| /' conftest.$ac_ext >&5
3928
3929   # Passes both tests.
3930 ac_preproc_ok=:
3931 break
3932 fi
3933 rm -f conftest.err conftest.$ac_ext
3934
3935 done
3936 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3937 rm -f conftest.err conftest.$ac_ext
3938 if $ac_preproc_ok; then
3939   break
3940 fi
3941
3942     done
3943     ac_cv_prog_CPP=$CPP
3944
3945 fi
3946   CPP=$ac_cv_prog_CPP
3947 else
3948   ac_cv_prog_CPP=$CPP
3949 fi
3950 echo "$as_me:$LINENO: result: $CPP" >&5
3951 echo "${ECHO_T}$CPP" >&6
3952 ac_preproc_ok=false
3953 for ac_c_preproc_warn_flag in '' yes
3954 do
3955   # Use a header file that comes with gcc, so configuring glibc
3956   # with a fresh cross-compiler works.
3957   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3958   # <limits.h> exists even on freestanding compilers.
3959   # On the NeXT, cc -E runs the code through the compiler's parser,
3960   # not just through cpp. "Syntax error" is here to catch this case.
3961   cat >conftest.$ac_ext <<_ACEOF
3962 /* confdefs.h.  */
3963 _ACEOF
3964 cat confdefs.h >>conftest.$ac_ext
3965 cat >>conftest.$ac_ext <<_ACEOF
3966 /* end confdefs.h.  */
3967 #ifdef __STDC__
3968 # include <limits.h>
3969 #else
3970 # include <assert.h>
3971 #endif
3972                      Syntax error
3973 _ACEOF
3974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3975   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3976   ac_status=$?
3977   grep -v '^ *+' conftest.er1 >conftest.err
3978   rm -f conftest.er1
3979   cat conftest.err >&5
3980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981   (exit $ac_status); } >/dev/null; then
3982   if test -s conftest.err; then
3983     ac_cpp_err=$ac_c_preproc_warn_flag
3984     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3985   else
3986     ac_cpp_err=
3987   fi
3988 else
3989   ac_cpp_err=yes
3990 fi
3991 if test -z "$ac_cpp_err"; then
3992   :
3993 else
3994   echo "$as_me: failed program was:" >&5
3995 sed 's/^/| /' conftest.$ac_ext >&5
3996
3997   # Broken: fails on valid input.
3998 continue
3999 fi
4000 rm -f conftest.err conftest.$ac_ext
4001
4002   # OK, works on sane cases.  Now check whether non-existent headers
4003   # can be detected and how.
4004   cat >conftest.$ac_ext <<_ACEOF
4005 /* confdefs.h.  */
4006 _ACEOF
4007 cat confdefs.h >>conftest.$ac_ext
4008 cat >>conftest.$ac_ext <<_ACEOF
4009 /* end confdefs.h.  */
4010 #include <ac_nonexistent.h>
4011 _ACEOF
4012 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4013   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4014   ac_status=$?
4015   grep -v '^ *+' conftest.er1 >conftest.err
4016   rm -f conftest.er1
4017   cat conftest.err >&5
4018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019   (exit $ac_status); } >/dev/null; then
4020   if test -s conftest.err; then
4021     ac_cpp_err=$ac_c_preproc_warn_flag
4022     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4023   else
4024     ac_cpp_err=
4025   fi
4026 else
4027   ac_cpp_err=yes
4028 fi
4029 if test -z "$ac_cpp_err"; then
4030   # Broken: success on invalid input.
4031 continue
4032 else
4033   echo "$as_me: failed program was:" >&5
4034 sed 's/^/| /' conftest.$ac_ext >&5
4035
4036   # Passes both tests.
4037 ac_preproc_ok=:
4038 break
4039 fi
4040 rm -f conftest.err conftest.$ac_ext
4041
4042 done
4043 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4044 rm -f conftest.err conftest.$ac_ext
4045 if $ac_preproc_ok; then
4046   :
4047 else
4048   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4049 See \`config.log' for more details." >&5
4050 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4051 See \`config.log' for more details." >&2;}
4052    { (exit 1); exit 1; }; }
4053 fi
4054
4055 ac_ext=c
4056 ac_cpp='$CPP $CPPFLAGS'
4057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4060
4061
4062 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4063 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4064 if test "${ac_cv_header_stdc+set}" = set; then
4065   echo $ECHO_N "(cached) $ECHO_C" >&6
4066 else
4067   cat >conftest.$ac_ext <<_ACEOF
4068 /* confdefs.h.  */
4069 _ACEOF
4070 cat confdefs.h >>conftest.$ac_ext
4071 cat >>conftest.$ac_ext <<_ACEOF
4072 /* end confdefs.h.  */
4073 #include <stdlib.h>
4074 #include <stdarg.h>
4075 #include <string.h>
4076 #include <float.h>
4077
4078 int
4079 main ()
4080 {
4081
4082   ;
4083   return 0;
4084 }
4085 _ACEOF
4086 rm -f conftest.$ac_objext
4087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4088   (eval $ac_compile) 2>conftest.er1
4089   ac_status=$?
4090   grep -v '^ *+' conftest.er1 >conftest.err
4091   rm -f conftest.er1
4092   cat conftest.err >&5
4093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094   (exit $ac_status); } &&
4095          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4097   (eval $ac_try) 2>&5
4098   ac_status=$?
4099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100   (exit $ac_status); }; } &&
4101          { ac_try='test -s conftest.$ac_objext'
4102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4103   (eval $ac_try) 2>&5
4104   ac_status=$?
4105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106   (exit $ac_status); }; }; then
4107   ac_cv_header_stdc=yes
4108 else
4109   echo "$as_me: failed program was:" >&5
4110 sed 's/^/| /' conftest.$ac_ext >&5
4111
4112 ac_cv_header_stdc=no
4113 fi
4114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4115
4116 if test $ac_cv_header_stdc = yes; then
4117   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4118   cat >conftest.$ac_ext <<_ACEOF
4119 /* confdefs.h.  */
4120 _ACEOF
4121 cat confdefs.h >>conftest.$ac_ext
4122 cat >>conftest.$ac_ext <<_ACEOF
4123 /* end confdefs.h.  */
4124 #include <string.h>
4125
4126 _ACEOF
4127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4128   $EGREP "memchr" >/dev/null 2>&1; then
4129   :
4130 else
4131   ac_cv_header_stdc=no
4132 fi
4133 rm -f conftest*
4134
4135 fi
4136
4137 if test $ac_cv_header_stdc = yes; then
4138   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4139   cat >conftest.$ac_ext <<_ACEOF
4140 /* confdefs.h.  */
4141 _ACEOF
4142 cat confdefs.h >>conftest.$ac_ext
4143 cat >>conftest.$ac_ext <<_ACEOF
4144 /* end confdefs.h.  */
4145 #include <stdlib.h>
4146
4147 _ACEOF
4148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4149   $EGREP "free" >/dev/null 2>&1; then
4150   :
4151 else
4152   ac_cv_header_stdc=no
4153 fi
4154 rm -f conftest*
4155
4156 fi
4157
4158 if test $ac_cv_header_stdc = yes; then
4159   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4160   if test "$cross_compiling" = yes; then
4161   :
4162 else
4163   cat >conftest.$ac_ext <<_ACEOF
4164 /* confdefs.h.  */
4165 _ACEOF
4166 cat confdefs.h >>conftest.$ac_ext
4167 cat >>conftest.$ac_ext <<_ACEOF
4168 /* end confdefs.h.  */
4169 #include <ctype.h>
4170 #if ((' ' & 0x0FF) == 0x020)
4171 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4172 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4173 #else
4174 # define ISLOWER(c) \
4175                    (('a' <= (c) && (c) <= 'i') \
4176                      || ('j' <= (c) && (c) <= 'r') \
4177                      || ('s' <= (c) && (c) <= 'z'))
4178 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4179 #endif
4180
4181 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4182 int
4183 main ()
4184 {
4185   int i;
4186   for (i = 0; i < 256; i++)
4187     if (XOR (islower (i), ISLOWER (i))
4188         || toupper (i) != TOUPPER (i))
4189       exit(2);
4190   exit (0);
4191 }
4192 _ACEOF
4193 rm -f conftest$ac_exeext
4194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4195   (eval $ac_link) 2>&5
4196   ac_status=$?
4197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4200   (eval $ac_try) 2>&5
4201   ac_status=$?
4202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203   (exit $ac_status); }; }; then
4204   :
4205 else
4206   echo "$as_me: program exited with status $ac_status" >&5
4207 echo "$as_me: failed program was:" >&5
4208 sed 's/^/| /' conftest.$ac_ext >&5
4209
4210 ( exit $ac_status )
4211 ac_cv_header_stdc=no
4212 fi
4213 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4214 fi
4215 fi
4216 fi
4217 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4218 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4219 if test $ac_cv_header_stdc = yes; then
4220
4221 cat >>confdefs.h <<\_ACEOF
4222 #define STDC_HEADERS 1
4223 _ACEOF
4224
4225 fi
4226
4227 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4238                   inttypes.h stdint.h unistd.h
4239 do
4240 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4241 echo "$as_me:$LINENO: checking for $ac_header" >&5
4242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4244   echo $ECHO_N "(cached) $ECHO_C" >&6
4245 else
4246   cat >conftest.$ac_ext <<_ACEOF
4247 /* confdefs.h.  */
4248 _ACEOF
4249 cat confdefs.h >>conftest.$ac_ext
4250 cat >>conftest.$ac_ext <<_ACEOF
4251 /* end confdefs.h.  */
4252 $ac_includes_default
4253
4254 #include <$ac_header>
4255 _ACEOF
4256 rm -f conftest.$ac_objext
4257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4258   (eval $ac_compile) 2>conftest.er1
4259   ac_status=$?
4260   grep -v '^ *+' conftest.er1 >conftest.err
4261   rm -f conftest.er1
4262   cat conftest.err >&5
4263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264   (exit $ac_status); } &&
4265          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4267   (eval $ac_try) 2>&5
4268   ac_status=$?
4269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270   (exit $ac_status); }; } &&
4271          { ac_try='test -s conftest.$ac_objext'
4272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4273   (eval $ac_try) 2>&5
4274   ac_status=$?
4275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276   (exit $ac_status); }; }; then
4277   eval "$as_ac_Header=yes"
4278 else
4279   echo "$as_me: failed program was:" >&5
4280 sed 's/^/| /' conftest.$ac_ext >&5
4281
4282 eval "$as_ac_Header=no"
4283 fi
4284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4285 fi
4286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4287 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4288 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4289   cat >>confdefs.h <<_ACEOF
4290 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4291 _ACEOF
4292
4293 fi
4294
4295 done
4296
4297
4298
4299 for ac_header in dlfcn.h
4300 do
4301 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4303   echo "$as_me:$LINENO: checking for $ac_header" >&5
4304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4306   echo $ECHO_N "(cached) $ECHO_C" >&6
4307 fi
4308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4310 else
4311   # Is the header compilable?
4312 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4313 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4314 cat >conftest.$ac_ext <<_ACEOF
4315 /* confdefs.h.  */
4316 _ACEOF
4317 cat confdefs.h >>conftest.$ac_ext
4318 cat >>conftest.$ac_ext <<_ACEOF
4319 /* end confdefs.h.  */
4320 $ac_includes_default
4321 #include <$ac_header>
4322 _ACEOF
4323 rm -f conftest.$ac_objext
4324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4325   (eval $ac_compile) 2>conftest.er1
4326   ac_status=$?
4327   grep -v '^ *+' conftest.er1 >conftest.err
4328   rm -f conftest.er1
4329   cat conftest.err >&5
4330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331   (exit $ac_status); } &&
4332          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4334   (eval $ac_try) 2>&5
4335   ac_status=$?
4336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337   (exit $ac_status); }; } &&
4338          { ac_try='test -s conftest.$ac_objext'
4339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4340   (eval $ac_try) 2>&5
4341   ac_status=$?
4342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343   (exit $ac_status); }; }; then
4344   ac_header_compiler=yes
4345 else
4346   echo "$as_me: failed program was:" >&5
4347 sed 's/^/| /' conftest.$ac_ext >&5
4348
4349 ac_header_compiler=no
4350 fi
4351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4352 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4353 echo "${ECHO_T}$ac_header_compiler" >&6
4354
4355 # Is the header present?
4356 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4357 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4358 cat >conftest.$ac_ext <<_ACEOF
4359 /* confdefs.h.  */
4360 _ACEOF
4361 cat confdefs.h >>conftest.$ac_ext
4362 cat >>conftest.$ac_ext <<_ACEOF
4363 /* end confdefs.h.  */
4364 #include <$ac_header>
4365 _ACEOF
4366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4367   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4368   ac_status=$?
4369   grep -v '^ *+' conftest.er1 >conftest.err
4370   rm -f conftest.er1
4371   cat conftest.err >&5
4372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373   (exit $ac_status); } >/dev/null; then
4374   if test -s conftest.err; then
4375     ac_cpp_err=$ac_c_preproc_warn_flag
4376     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4377   else
4378     ac_cpp_err=
4379   fi
4380 else
4381   ac_cpp_err=yes
4382 fi
4383 if test -z "$ac_cpp_err"; then
4384   ac_header_preproc=yes
4385 else
4386   echo "$as_me: failed program was:" >&5
4387 sed 's/^/| /' conftest.$ac_ext >&5
4388
4389   ac_header_preproc=no
4390 fi
4391 rm -f conftest.err conftest.$ac_ext
4392 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4393 echo "${ECHO_T}$ac_header_preproc" >&6
4394
4395 # So?  What about this header?
4396 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4397   yes:no: )
4398     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4399 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4400     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4401 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4402     ac_header_preproc=yes
4403     ;;
4404   no:yes:* )
4405     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4406 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4407     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4408 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4409     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4410 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4411     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4412 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4413     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4414 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4415     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4416 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4417     (
4418       cat <<\_ASBOX
4419 ## ----------------------------------------- ##
4420 ## Report this to martin.quinson@ens-lyon.fr ##
4421 ## ----------------------------------------- ##
4422 _ASBOX
4423     ) |
4424       sed "s/^/$as_me: WARNING:     /" >&2
4425     ;;
4426 esac
4427 echo "$as_me:$LINENO: checking for $ac_header" >&5
4428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4430   echo $ECHO_N "(cached) $ECHO_C" >&6
4431 else
4432   eval "$as_ac_Header=\$ac_header_preproc"
4433 fi
4434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4436
4437 fi
4438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4439   cat >>confdefs.h <<_ACEOF
4440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4441 _ACEOF
4442
4443 fi
4444
4445 done
4446
4447 ac_ext=cc
4448 ac_cpp='$CXXCPP $CPPFLAGS'
4449 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4450 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4451 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4452 if test -n "$ac_tool_prefix"; then
4453   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4454   do
4455     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4456 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4457 echo "$as_me:$LINENO: checking for $ac_word" >&5
4458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4459 if test "${ac_cv_prog_CXX+set}" = set; then
4460   echo $ECHO_N "(cached) $ECHO_C" >&6
4461 else
4462   if test -n "$CXX"; then
4463   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4464 else
4465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466 for as_dir in $PATH
4467 do
4468   IFS=$as_save_IFS
4469   test -z "$as_dir" && as_dir=.
4470   for ac_exec_ext in '' $ac_executable_extensions; do
4471   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4472     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4473     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4474     break 2
4475   fi
4476 done
4477 done
4478
4479 fi
4480 fi
4481 CXX=$ac_cv_prog_CXX
4482 if test -n "$CXX"; then
4483   echo "$as_me:$LINENO: result: $CXX" >&5
4484 echo "${ECHO_T}$CXX" >&6
4485 else
4486   echo "$as_me:$LINENO: result: no" >&5
4487 echo "${ECHO_T}no" >&6
4488 fi
4489
4490     test -n "$CXX" && break
4491   done
4492 fi
4493 if test -z "$CXX"; then
4494   ac_ct_CXX=$CXX
4495   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4496 do
4497   # Extract the first word of "$ac_prog", so it can be a program name with args.
4498 set dummy $ac_prog; ac_word=$2
4499 echo "$as_me:$LINENO: checking for $ac_word" >&5
4500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4501 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4502   echo $ECHO_N "(cached) $ECHO_C" >&6
4503 else
4504   if test -n "$ac_ct_CXX"; then
4505   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4506 else
4507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508 for as_dir in $PATH
4509 do
4510   IFS=$as_save_IFS
4511   test -z "$as_dir" && as_dir=.
4512   for ac_exec_ext in '' $ac_executable_extensions; do
4513   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4514     ac_cv_prog_ac_ct_CXX="$ac_prog"
4515     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4516     break 2
4517   fi
4518 done
4519 done
4520
4521 fi
4522 fi
4523 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4524 if test -n "$ac_ct_CXX"; then
4525   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4526 echo "${ECHO_T}$ac_ct_CXX" >&6
4527 else
4528   echo "$as_me:$LINENO: result: no" >&5
4529 echo "${ECHO_T}no" >&6
4530 fi
4531
4532   test -n "$ac_ct_CXX" && break
4533 done
4534 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4535
4536   CXX=$ac_ct_CXX
4537 fi
4538
4539
4540 # Provide some information about the compiler.
4541 echo "$as_me:$LINENO:" \
4542      "checking for C++ compiler version" >&5
4543 ac_compiler=`set X $ac_compile; echo $2`
4544 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4545   (eval $ac_compiler --version </dev/null >&5) 2>&5
4546   ac_status=$?
4547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548   (exit $ac_status); }
4549 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4550   (eval $ac_compiler -v </dev/null >&5) 2>&5
4551   ac_status=$?
4552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553   (exit $ac_status); }
4554 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4555   (eval $ac_compiler -V </dev/null >&5) 2>&5
4556   ac_status=$?
4557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558   (exit $ac_status); }
4559
4560 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4561 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4562 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4563   echo $ECHO_N "(cached) $ECHO_C" >&6
4564 else
4565   cat >conftest.$ac_ext <<_ACEOF
4566 /* confdefs.h.  */
4567 _ACEOF
4568 cat confdefs.h >>conftest.$ac_ext
4569 cat >>conftest.$ac_ext <<_ACEOF
4570 /* end confdefs.h.  */
4571
4572 int
4573 main ()
4574 {
4575 #ifndef __GNUC__
4576        choke me
4577 #endif
4578
4579   ;
4580   return 0;
4581 }
4582 _ACEOF
4583 rm -f conftest.$ac_objext
4584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4585   (eval $ac_compile) 2>conftest.er1
4586   ac_status=$?
4587   grep -v '^ *+' conftest.er1 >conftest.err
4588   rm -f conftest.er1
4589   cat conftest.err >&5
4590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591   (exit $ac_status); } &&
4592          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4594   (eval $ac_try) 2>&5
4595   ac_status=$?
4596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597   (exit $ac_status); }; } &&
4598          { ac_try='test -s conftest.$ac_objext'
4599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4600   (eval $ac_try) 2>&5
4601   ac_status=$?
4602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603   (exit $ac_status); }; }; then
4604   ac_compiler_gnu=yes
4605 else
4606   echo "$as_me: failed program was:" >&5
4607 sed 's/^/| /' conftest.$ac_ext >&5
4608
4609 ac_compiler_gnu=no
4610 fi
4611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4612 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4613
4614 fi
4615 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4616 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4617 GXX=`test $ac_compiler_gnu = yes && echo yes`
4618 ac_test_CXXFLAGS=${CXXFLAGS+set}
4619 ac_save_CXXFLAGS=$CXXFLAGS
4620 CXXFLAGS="-g"
4621 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4622 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4623 if test "${ac_cv_prog_cxx_g+set}" = set; then
4624   echo $ECHO_N "(cached) $ECHO_C" >&6
4625 else
4626   cat >conftest.$ac_ext <<_ACEOF
4627 /* confdefs.h.  */
4628 _ACEOF
4629 cat confdefs.h >>conftest.$ac_ext
4630 cat >>conftest.$ac_ext <<_ACEOF
4631 /* end confdefs.h.  */
4632
4633 int
4634 main ()
4635 {
4636
4637   ;
4638   return 0;
4639 }
4640 _ACEOF
4641 rm -f conftest.$ac_objext
4642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4643   (eval $ac_compile) 2>conftest.er1
4644   ac_status=$?
4645   grep -v '^ *+' conftest.er1 >conftest.err
4646   rm -f conftest.er1
4647   cat conftest.err >&5
4648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649   (exit $ac_status); } &&
4650          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4652   (eval $ac_try) 2>&5
4653   ac_status=$?
4654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655   (exit $ac_status); }; } &&
4656          { ac_try='test -s conftest.$ac_objext'
4657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4658   (eval $ac_try) 2>&5
4659   ac_status=$?
4660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661   (exit $ac_status); }; }; then
4662   ac_cv_prog_cxx_g=yes
4663 else
4664   echo "$as_me: failed program was:" >&5
4665 sed 's/^/| /' conftest.$ac_ext >&5
4666
4667 ac_cv_prog_cxx_g=no
4668 fi
4669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4670 fi
4671 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4672 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4673 if test "$ac_test_CXXFLAGS" = set; then
4674   CXXFLAGS=$ac_save_CXXFLAGS
4675 elif test $ac_cv_prog_cxx_g = yes; then
4676   if test "$GXX" = yes; then
4677     CXXFLAGS="-g -O2"
4678   else
4679     CXXFLAGS="-g"
4680   fi
4681 else
4682   if test "$GXX" = yes; then
4683     CXXFLAGS="-O2"
4684   else
4685     CXXFLAGS=
4686   fi
4687 fi
4688 for ac_declaration in \
4689    '' \
4690    'extern "C" void std::exit (int) throw (); using std::exit;' \
4691    'extern "C" void std::exit (int); using std::exit;' \
4692    'extern "C" void exit (int) throw ();' \
4693    'extern "C" void exit (int);' \
4694    'void exit (int);'
4695 do
4696   cat >conftest.$ac_ext <<_ACEOF
4697 /* confdefs.h.  */
4698 _ACEOF
4699 cat confdefs.h >>conftest.$ac_ext
4700 cat >>conftest.$ac_ext <<_ACEOF
4701 /* end confdefs.h.  */
4702 $ac_declaration
4703 #include <stdlib.h>
4704 int
4705 main ()
4706 {
4707 exit (42);
4708   ;
4709   return 0;
4710 }
4711 _ACEOF
4712 rm -f conftest.$ac_objext
4713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4714   (eval $ac_compile) 2>conftest.er1
4715   ac_status=$?
4716   grep -v '^ *+' conftest.er1 >conftest.err
4717   rm -f conftest.er1
4718   cat conftest.err >&5
4719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720   (exit $ac_status); } &&
4721          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4723   (eval $ac_try) 2>&5
4724   ac_status=$?
4725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726   (exit $ac_status); }; } &&
4727          { ac_try='test -s conftest.$ac_objext'
4728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4729   (eval $ac_try) 2>&5
4730   ac_status=$?
4731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732   (exit $ac_status); }; }; then
4733   :
4734 else
4735   echo "$as_me: failed program was:" >&5
4736 sed 's/^/| /' conftest.$ac_ext >&5
4737
4738 continue
4739 fi
4740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4741   cat >conftest.$ac_ext <<_ACEOF
4742 /* confdefs.h.  */
4743 _ACEOF
4744 cat confdefs.h >>conftest.$ac_ext
4745 cat >>conftest.$ac_ext <<_ACEOF
4746 /* end confdefs.h.  */
4747 $ac_declaration
4748 int
4749 main ()
4750 {
4751 exit (42);
4752   ;
4753   return 0;
4754 }
4755 _ACEOF
4756 rm -f conftest.$ac_objext
4757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4758   (eval $ac_compile) 2>conftest.er1
4759   ac_status=$?
4760   grep -v '^ *+' conftest.er1 >conftest.err
4761   rm -f conftest.er1
4762   cat conftest.err >&5
4763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764   (exit $ac_status); } &&
4765          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4767   (eval $ac_try) 2>&5
4768   ac_status=$?
4769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770   (exit $ac_status); }; } &&
4771          { ac_try='test -s conftest.$ac_objext'
4772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4773   (eval $ac_try) 2>&5
4774   ac_status=$?
4775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776   (exit $ac_status); }; }; then
4777   break
4778 else
4779   echo "$as_me: failed program was:" >&5
4780 sed 's/^/| /' conftest.$ac_ext >&5
4781
4782 fi
4783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4784 done
4785 rm -f conftest*
4786 if test -n "$ac_declaration"; then
4787   echo '#ifdef __cplusplus' >>confdefs.h
4788   echo $ac_declaration      >>confdefs.h
4789   echo '#endif'             >>confdefs.h
4790 fi
4791
4792 ac_ext=cc
4793 ac_cpp='$CXXCPP $CPPFLAGS'
4794 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4795 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4796 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4797
4798 depcc="$CXX"  am_compiler_list=
4799
4800 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4801 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4802 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4803   echo $ECHO_N "(cached) $ECHO_C" >&6
4804 else
4805   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4806   # We make a subdir and do the tests there.  Otherwise we can end up
4807   # making bogus files that we don't know about and never remove.  For
4808   # instance it was reported that on HP-UX the gcc test will end up
4809   # making a dummy file named `D' -- because `-MD' means `put the output
4810   # in D'.
4811   mkdir conftest.dir
4812   # Copy depcomp to subdir because otherwise we won't find it if we're
4813   # using a relative directory.
4814   cp "$am_depcomp" conftest.dir
4815   cd conftest.dir
4816   # We will build objects and dependencies in a subdirectory because
4817   # it helps to detect inapplicable dependency modes.  For instance
4818   # both Tru64's cc and ICC support -MD to output dependencies as a
4819   # side effect of compilation, but ICC will put the dependencies in
4820   # the current directory while Tru64 will put them in the object
4821   # directory.
4822   mkdir sub
4823
4824   am_cv_CXX_dependencies_compiler_type=none
4825   if test "$am_compiler_list" = ""; then
4826      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4827   fi
4828   for depmode in $am_compiler_list; do
4829     # Setup a source with many dependencies, because some compilers
4830     # like to wrap large dependency lists on column 80 (with \), and
4831     # we should not choose a depcomp mode which is confused by this.
4832     #
4833     # We need to recreate these files for each test, as the compiler may
4834     # overwrite some of them when testing with obscure command lines.
4835     # This happens at least with the AIX C compiler.
4836     : > sub/conftest.c
4837     for i in 1 2 3 4 5 6; do
4838       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4839       : > sub/conftst$i.h
4840     done
4841     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4842
4843     case $depmode in
4844     nosideeffect)
4845       # after this tag, mechanisms are not by side-effect, so they'll
4846       # only be used when explicitly requested
4847       if test "x$enable_dependency_tracking" = xyes; then
4848         continue
4849       else
4850         break
4851       fi
4852       ;;
4853     none) break ;;
4854     esac
4855     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4856     # mode.  It turns out that the SunPro C++ compiler does not properly
4857     # handle `-M -o', and we need to detect this.
4858     if depmode=$depmode \
4859        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4860        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4861        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4862          >/dev/null 2>conftest.err &&
4863        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4864        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4865        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4866       # icc doesn't choke on unknown options, it will just issue warnings
4867       # (even with -Werror).  So we grep stderr for any message
4868       # that says an option was ignored.
4869       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4870         am_cv_CXX_dependencies_compiler_type=$depmode
4871         break
4872       fi
4873     fi
4874   done
4875
4876   cd ..
4877   rm -rf conftest.dir
4878 else
4879   am_cv_CXX_dependencies_compiler_type=none
4880 fi
4881
4882 fi
4883 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4884 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4885 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4886
4887
4888
4889 if
4890   test "x$enable_dependency_tracking" != xno \
4891   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4892   am__fastdepCXX_TRUE=
4893   am__fastdepCXX_FALSE='#'
4894 else
4895   am__fastdepCXX_TRUE='#'
4896   am__fastdepCXX_FALSE=
4897 fi
4898
4899
4900 ac_ext=cc
4901 ac_cpp='$CXXCPP $CPPFLAGS'
4902 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4903 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4904 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4905 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4906 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4907 if test -z "$CXXCPP"; then
4908   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4909   echo $ECHO_N "(cached) $ECHO_C" >&6
4910 else
4911       # Double quotes because CXXCPP needs to be expanded
4912     for CXXCPP in "$CXX -E" "/lib/cpp"
4913     do
4914       ac_preproc_ok=false
4915 for ac_cxx_preproc_warn_flag in '' yes
4916 do
4917   # Use a header file that comes with gcc, so configuring glibc
4918   # with a fresh cross-compiler works.
4919   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4920   # <limits.h> exists even on freestanding compilers.
4921   # On the NeXT, cc -E runs the code through the compiler's parser,
4922   # not just through cpp. "Syntax error" is here to catch this case.
4923   cat >conftest.$ac_ext <<_ACEOF
4924 /* confdefs.h.  */
4925 _ACEOF
4926 cat confdefs.h >>conftest.$ac_ext
4927 cat >>conftest.$ac_ext <<_ACEOF
4928 /* end confdefs.h.  */
4929 #ifdef __STDC__
4930 # include <limits.h>
4931 #else
4932 # include <assert.h>
4933 #endif
4934                      Syntax error
4935 _ACEOF
4936 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4937   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4938   ac_status=$?
4939   grep -v '^ *+' conftest.er1 >conftest.err
4940   rm -f conftest.er1
4941   cat conftest.err >&5
4942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943   (exit $ac_status); } >/dev/null; then
4944   if test -s conftest.err; then
4945     ac_cpp_err=$ac_cxx_preproc_warn_flag
4946     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4947   else
4948     ac_cpp_err=
4949   fi
4950 else
4951   ac_cpp_err=yes
4952 fi
4953 if test -z "$ac_cpp_err"; then
4954   :
4955 else
4956   echo "$as_me: failed program was:" >&5
4957 sed 's/^/| /' conftest.$ac_ext >&5
4958
4959   # Broken: fails on valid input.
4960 continue
4961 fi
4962 rm -f conftest.err conftest.$ac_ext
4963
4964   # OK, works on sane cases.  Now check whether non-existent headers
4965   # can be detected and how.
4966   cat >conftest.$ac_ext <<_ACEOF
4967 /* confdefs.h.  */
4968 _ACEOF
4969 cat confdefs.h >>conftest.$ac_ext
4970 cat >>conftest.$ac_ext <<_ACEOF
4971 /* end confdefs.h.  */
4972 #include <ac_nonexistent.h>
4973 _ACEOF
4974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4975   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4976   ac_status=$?
4977   grep -v '^ *+' conftest.er1 >conftest.err
4978   rm -f conftest.er1
4979   cat conftest.err >&5
4980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981   (exit $ac_status); } >/dev/null; then
4982   if test -s conftest.err; then
4983     ac_cpp_err=$ac_cxx_preproc_warn_flag
4984     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4985   else
4986     ac_cpp_err=
4987   fi
4988 else
4989   ac_cpp_err=yes
4990 fi
4991 if test -z "$ac_cpp_err"; then
4992   # Broken: success on invalid input.
4993 continue
4994 else
4995   echo "$as_me: failed program was:" >&5
4996 sed 's/^/| /' conftest.$ac_ext >&5
4997
4998   # Passes both tests.
4999 ac_preproc_ok=:
5000 break
5001 fi
5002 rm -f conftest.err conftest.$ac_ext
5003
5004 done
5005 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5006 rm -f conftest.err conftest.$ac_ext
5007 if $ac_preproc_ok; then
5008   break
5009 fi
5010
5011     done
5012     ac_cv_prog_CXXCPP=$CXXCPP
5013
5014 fi
5015   CXXCPP=$ac_cv_prog_CXXCPP
5016 else
5017   ac_cv_prog_CXXCPP=$CXXCPP
5018 fi
5019 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5020 echo "${ECHO_T}$CXXCPP" >&6
5021 ac_preproc_ok=false
5022 for ac_cxx_preproc_warn_flag in '' yes
5023 do
5024   # Use a header file that comes with gcc, so configuring glibc
5025   # with a fresh cross-compiler works.
5026   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5027   # <limits.h> exists even on freestanding compilers.
5028   # On the NeXT, cc -E runs the code through the compiler's parser,
5029   # not just through cpp. "Syntax error" is here to catch this case.
5030   cat >conftest.$ac_ext <<_ACEOF
5031 /* confdefs.h.  */
5032 _ACEOF
5033 cat confdefs.h >>conftest.$ac_ext
5034 cat >>conftest.$ac_ext <<_ACEOF
5035 /* end confdefs.h.  */
5036 #ifdef __STDC__
5037 # include <limits.h>
5038 #else
5039 # include <assert.h>
5040 #endif
5041                      Syntax error
5042 _ACEOF
5043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5044   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5045   ac_status=$?
5046   grep -v '^ *+' conftest.er1 >conftest.err
5047   rm -f conftest.er1
5048   cat conftest.err >&5
5049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050   (exit $ac_status); } >/dev/null; then
5051   if test -s conftest.err; then
5052     ac_cpp_err=$ac_cxx_preproc_warn_flag
5053     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5054   else
5055     ac_cpp_err=
5056   fi
5057 else
5058   ac_cpp_err=yes
5059 fi
5060 if test -z "$ac_cpp_err"; then
5061   :
5062 else
5063   echo "$as_me: failed program was:" >&5
5064 sed 's/^/| /' conftest.$ac_ext >&5
5065
5066   # Broken: fails on valid input.
5067 continue
5068 fi
5069 rm -f conftest.err conftest.$ac_ext
5070
5071   # OK, works on sane cases.  Now check whether non-existent headers
5072   # can be detected and how.
5073   cat >conftest.$ac_ext <<_ACEOF
5074 /* confdefs.h.  */
5075 _ACEOF
5076 cat confdefs.h >>conftest.$ac_ext
5077 cat >>conftest.$ac_ext <<_ACEOF
5078 /* end confdefs.h.  */
5079 #include <ac_nonexistent.h>
5080 _ACEOF
5081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5082   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5083   ac_status=$?
5084   grep -v '^ *+' conftest.er1 >conftest.err
5085   rm -f conftest.er1
5086   cat conftest.err >&5
5087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088   (exit $ac_status); } >/dev/null; then
5089   if test -s conftest.err; then
5090     ac_cpp_err=$ac_cxx_preproc_warn_flag
5091     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5092   else
5093     ac_cpp_err=
5094   fi
5095 else
5096   ac_cpp_err=yes
5097 fi
5098 if test -z "$ac_cpp_err"; then
5099   # Broken: success on invalid input.
5100 continue
5101 else
5102   echo "$as_me: failed program was:" >&5
5103 sed 's/^/| /' conftest.$ac_ext >&5
5104
5105   # Passes both tests.
5106 ac_preproc_ok=:
5107 break
5108 fi
5109 rm -f conftest.err conftest.$ac_ext
5110
5111 done
5112 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5113 rm -f conftest.err conftest.$ac_ext
5114 if $ac_preproc_ok; then
5115   :
5116 else
5117   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5118 See \`config.log' for more details." >&5
5119 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5120 See \`config.log' for more details." >&2;}
5121    { (exit 1); exit 1; }; }
5122 fi
5123
5124 ac_ext=cc
5125 ac_cpp='$CXXCPP $CPPFLAGS'
5126 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5127 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5128 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5129
5130
5131 ac_ext=f
5132 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5133 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5134 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5135 if test -n "$ac_tool_prefix"; then
5136   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5137   do
5138     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5139 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5140 echo "$as_me:$LINENO: checking for $ac_word" >&5
5141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5142 if test "${ac_cv_prog_F77+set}" = set; then
5143   echo $ECHO_N "(cached) $ECHO_C" >&6
5144 else
5145   if test -n "$F77"; then
5146   ac_cv_prog_F77="$F77" # Let the user override the test.
5147 else
5148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149 for as_dir in $PATH
5150 do
5151   IFS=$as_save_IFS
5152   test -z "$as_dir" && as_dir=.
5153   for ac_exec_ext in '' $ac_executable_extensions; do
5154   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5155     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5156     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5157     break 2
5158   fi
5159 done
5160 done
5161
5162 fi
5163 fi
5164 F77=$ac_cv_prog_F77
5165 if test -n "$F77"; then
5166   echo "$as_me:$LINENO: result: $F77" >&5
5167 echo "${ECHO_T}$F77" >&6
5168 else
5169   echo "$as_me:$LINENO: result: no" >&5
5170 echo "${ECHO_T}no" >&6
5171 fi
5172
5173     test -n "$F77" && break
5174   done
5175 fi
5176 if test -z "$F77"; then
5177   ac_ct_F77=$F77
5178   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5179 do
5180   # Extract the first word of "$ac_prog", so it can be a program name with args.
5181 set dummy $ac_prog; ac_word=$2
5182 echo "$as_me:$LINENO: checking for $ac_word" >&5
5183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5184 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5185   echo $ECHO_N "(cached) $ECHO_C" >&6
5186 else
5187   if test -n "$ac_ct_F77"; then
5188   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5189 else
5190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191 for as_dir in $PATH
5192 do
5193   IFS=$as_save_IFS
5194   test -z "$as_dir" && as_dir=.
5195   for ac_exec_ext in '' $ac_executable_extensions; do
5196   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5197     ac_cv_prog_ac_ct_F77="$ac_prog"
5198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5199     break 2
5200   fi
5201 done
5202 done
5203
5204 fi
5205 fi
5206 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5207 if test -n "$ac_ct_F77"; then
5208   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5209 echo "${ECHO_T}$ac_ct_F77" >&6
5210 else
5211   echo "$as_me:$LINENO: result: no" >&5
5212 echo "${ECHO_T}no" >&6
5213 fi
5214
5215   test -n "$ac_ct_F77" && break
5216 done
5217
5218   F77=$ac_ct_F77
5219 fi
5220
5221
5222 # Provide some information about the compiler.
5223 echo "$as_me:5223:" \
5224      "checking for Fortran 77 compiler version" >&5
5225 ac_compiler=`set X $ac_compile; echo $2`
5226 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5227   (eval $ac_compiler --version </dev/null >&5) 2>&5
5228   ac_status=$?
5229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230   (exit $ac_status); }
5231 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5232   (eval $ac_compiler -v </dev/null >&5) 2>&5
5233   ac_status=$?
5234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235   (exit $ac_status); }
5236 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5237   (eval $ac_compiler -V </dev/null >&5) 2>&5
5238   ac_status=$?
5239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240   (exit $ac_status); }
5241 rm -f a.out
5242
5243 # If we don't use `.F' as extension, the preprocessor is not run on the
5244 # input file.  (Note that this only needs to work for GNU compilers.)
5245 ac_save_ext=$ac_ext
5246 ac_ext=F
5247 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5248 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5249 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5250   echo $ECHO_N "(cached) $ECHO_C" >&6
5251 else
5252   cat >conftest.$ac_ext <<_ACEOF
5253       program main
5254 #ifndef __GNUC__
5255        choke me
5256 #endif
5257
5258       end
5259 _ACEOF
5260 rm -f conftest.$ac_objext
5261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5262   (eval $ac_compile) 2>conftest.er1
5263   ac_status=$?
5264   grep -v '^ *+' conftest.er1 >conftest.err
5265   rm -f conftest.er1
5266   cat conftest.err >&5
5267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268   (exit $ac_status); } &&
5269          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5271   (eval $ac_try) 2>&5
5272   ac_status=$?
5273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274   (exit $ac_status); }; } &&
5275          { ac_try='test -s conftest.$ac_objext'
5276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5277   (eval $ac_try) 2>&5
5278   ac_status=$?
5279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280   (exit $ac_status); }; }; then
5281   ac_compiler_gnu=yes
5282 else
5283   echo "$as_me: failed program was:" >&5
5284 sed 's/^/| /' conftest.$ac_ext >&5
5285
5286 ac_compiler_gnu=no
5287 fi
5288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5289 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5290
5291 fi
5292 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5293 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5294 ac_ext=$ac_save_ext
5295 ac_test_FFLAGS=${FFLAGS+set}
5296 ac_save_FFLAGS=$FFLAGS
5297 FFLAGS=
5298 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5299 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5300 if test "${ac_cv_prog_f77_g+set}" = set; then
5301   echo $ECHO_N "(cached) $ECHO_C" >&6
5302 else
5303   FFLAGS=-g
5304 cat >conftest.$ac_ext <<_ACEOF
5305       program main
5306
5307       end
5308 _ACEOF
5309 rm -f conftest.$ac_objext
5310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5311   (eval $ac_compile) 2>conftest.er1
5312   ac_status=$?
5313   grep -v '^ *+' conftest.er1 >conftest.err
5314   rm -f conftest.er1
5315   cat conftest.err >&5
5316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317   (exit $ac_status); } &&
5318          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5320   (eval $ac_try) 2>&5
5321   ac_status=$?
5322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323   (exit $ac_status); }; } &&
5324          { ac_try='test -s conftest.$ac_objext'
5325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5326   (eval $ac_try) 2>&5
5327   ac_status=$?
5328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329   (exit $ac_status); }; }; then
5330   ac_cv_prog_f77_g=yes
5331 else
5332   echo "$as_me: failed program was:" >&5
5333 sed 's/^/| /' conftest.$ac_ext >&5
5334
5335 ac_cv_prog_f77_g=no
5336 fi
5337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5338
5339 fi
5340 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5341 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5342 if test "$ac_test_FFLAGS" = set; then
5343   FFLAGS=$ac_save_FFLAGS
5344 elif test $ac_cv_prog_f77_g = yes; then
5345   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5346     FFLAGS="-g -O2"
5347   else
5348     FFLAGS="-g"
5349   fi
5350 else
5351   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5352     FFLAGS="-O2"
5353   else
5354     FFLAGS=
5355   fi
5356 fi
5357
5358 G77=`test $ac_compiler_gnu = yes && echo yes`
5359 ac_ext=c
5360 ac_cpp='$CPP $CPPFLAGS'
5361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5364
5365
5366
5367 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5368
5369 # find the maximum length of command line arguments
5370 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5371 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5372 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5373   echo $ECHO_N "(cached) $ECHO_C" >&6
5374 else
5375     i=0
5376   testring="ABCD"
5377
5378   case $build_os in
5379   msdosdjgpp*)
5380     # On DJGPP, this test can blow up pretty badly due to problems in libc
5381     # (any single argument exceeding 2000 bytes causes a buffer overrun
5382     # during glob expansion).  Even if it were fixed, the result of this
5383     # check would be larger than it should be.
5384     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5385     ;;
5386
5387   gnu*)
5388     # Under GNU Hurd, this test is not required because there is
5389     # no limit to the length of command line arguments.
5390     # Libtool will interpret -1 as no limit whatsoever
5391     lt_cv_sys_max_cmd_len=-1;
5392     ;;
5393
5394   cygwin* | mingw*)
5395     # On Win9x/ME, this test blows up -- it succeeds, but takes
5396     # about 5 minutes as the teststring grows exponentially.
5397     # Worse, since 9x/ME are not pre-emptively multitasking,
5398     # you end up with a "frozen" computer, even though with patience
5399     # the test eventually succeeds (with a max line length of 256k).
5400     # Instead, let's just punt: use the minimum linelength reported by
5401     # all of the supported platforms: 8192 (on NT/2K/XP).
5402     lt_cv_sys_max_cmd_len=8192;
5403     ;;
5404
5405   amigaos*)
5406     # On AmigaOS with pdksh, this test takes hours, literally.
5407     # So we just punt and use a minimum line length of 8192.
5408     lt_cv_sys_max_cmd_len=8192;
5409     ;;
5410
5411  *)
5412     # If test is not a shell built-in, we'll probably end up computing a
5413     # maximum length that is only half of the actual maximum length, but
5414     # we can't tell.
5415     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5416                = "XX$testring") >/dev/null 2>&1 &&
5417             new_result=`expr "X$testring" : ".*" 2>&1` &&
5418             lt_cv_sys_max_cmd_len=$new_result &&
5419             test $i != 17 # 1/2 MB should be enough
5420     do
5421       i=`expr $i + 1`
5422       testring=$testring$testring
5423     done
5424     testring=
5425     # Add a significant safety factor because C++ compilers can tack on massive
5426     # amounts of additional arguments before passing them to the linker.
5427     # It appears as though 1/2 is a usable value.
5428     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5429     ;;
5430   esac
5431
5432 fi
5433
5434 if test -n $lt_cv_sys_max_cmd_len ; then
5435   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5436 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5437 else
5438   echo "$as_me:$LINENO: result: none" >&5
5439 echo "${ECHO_T}none" >&6
5440 fi
5441
5442
5443
5444
5445 # Check for command to grab the raw symbol name followed by C symbol from nm.
5446 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5447 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5448 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5449   echo $ECHO_N "(cached) $ECHO_C" >&6
5450 else
5451
5452 # These are sane defaults that work on at least a few old systems.
5453 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5454
5455 # Character class describing NM global symbol codes.
5456 symcode='[BCDEGRST]'
5457
5458 # Regexp to match symbols that can be accessed directly from C.
5459 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5460
5461 # Transform the above into a raw symbol and a C symbol.
5462 symxfrm='\1 \2\3 \3'
5463
5464 # Transform an extracted symbol line into a proper C declaration
5465 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5466
5467 # Transform an extracted symbol line into symbol name and symbol address
5468 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5469
5470 # Define system-specific variables.
5471 case $host_os in
5472 aix*)
5473   symcode='[BCDT]'
5474   ;;
5475 cygwin* | mingw* | pw32*)
5476   symcode='[ABCDGISTW]'
5477   ;;
5478 hpux*) # Its linker distinguishes data from code symbols
5479   if test "$host_cpu" = ia64; then
5480     symcode='[ABCDEGRST]'
5481   fi
5482   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5483   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5484   ;;
5485 irix* | nonstopux*)
5486   symcode='[BCDEGRST]'
5487   ;;
5488 osf*)
5489   symcode='[BCDEGQRST]'
5490   ;;
5491 solaris* | sysv5*)
5492   symcode='[BDRT]'
5493   ;;
5494 sysv4)
5495   symcode='[DFNSTU]'
5496   ;;
5497 esac
5498
5499 # Handle CRLF in mingw tool chain
5500 opt_cr=
5501 case $build_os in
5502 mingw*)
5503   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5504   ;;
5505 esac
5506
5507 # If we're using GNU nm, then use its standard symbol codes.
5508 case `$NM -V 2>&1` in
5509 *GNU* | *'with BFD'*)
5510   symcode='[ABCDGIRSTW]' ;;
5511 esac
5512
5513 # Try without a prefix undercore, then with it.
5514 for ac_symprfx in "" "_"; do
5515
5516   # Write the raw and C identifiers.
5517   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5518
5519   # Check to see that the pipe works correctly.
5520   pipe_works=no
5521
5522   rm -f conftest*
5523   cat > conftest.$ac_ext <<EOF
5524 #ifdef __cplusplus
5525 extern "C" {
5526 #endif
5527 char nm_test_var;
5528 void nm_test_func(){}
5529 #ifdef __cplusplus
5530 }
5531 #endif
5532 int main(){nm_test_var='a';nm_test_func();return(0);}
5533 EOF
5534
5535   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5536   (eval $ac_compile) 2>&5
5537   ac_status=$?
5538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539   (exit $ac_status); }; then
5540     # Now try to grab the symbols.
5541     nlist=conftest.nm
5542     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5543   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5544   ac_status=$?
5545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546   (exit $ac_status); } && test -s "$nlist"; then
5547       # Try sorting and uniquifying the output.
5548       if sort "$nlist" | uniq > "$nlist"T; then
5549         mv -f "$nlist"T "$nlist"
5550       else
5551         rm -f "$nlist"T
5552       fi
5553
5554       # Make sure that we snagged all the symbols we need.
5555       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5556         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5557           cat <<EOF > conftest.$ac_ext
5558 #ifdef __cplusplus
5559 extern "C" {
5560 #endif
5561
5562 EOF
5563           # Now generate the symbol file.
5564           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5565
5566           cat <<EOF >> conftest.$ac_ext
5567 #if defined (__STDC__) && __STDC__
5568 # define lt_ptr_t void *
5569 #else
5570 # define lt_ptr_t char *
5571 # define const
5572 #endif
5573
5574 /* The mapping between symbol names and symbols. */
5575 const struct {
5576   const char *name;
5577   lt_ptr_t address;
5578 }
5579 lt_preloaded_symbols[] =
5580 {
5581 EOF
5582           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5583           cat <<\EOF >> conftest.$ac_ext
5584   {0, (lt_ptr_t) 0}
5585 };
5586
5587 #ifdef __cplusplus
5588 }
5589 #endif
5590 EOF
5591           # Now try linking the two files.
5592           mv conftest.$ac_objext conftstm.$ac_objext
5593           lt_save_LIBS="$LIBS"
5594           lt_save_CFLAGS="$CFLAGS"
5595           LIBS="conftstm.$ac_objext"
5596           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5597           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5598   (eval $ac_link) 2>&5
5599   ac_status=$?
5600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5602             pipe_works=yes
5603           fi
5604           LIBS="$lt_save_LIBS"
5605           CFLAGS="$lt_save_CFLAGS"
5606         else
5607           echo "cannot find nm_test_func in $nlist" >&5
5608         fi
5609       else
5610         echo "cannot find nm_test_var in $nlist" >&5
5611       fi
5612     else
5613       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5614     fi
5615   else
5616     echo "$progname: failed program was:" >&5
5617     cat conftest.$ac_ext >&5
5618   fi
5619   rm -f conftest* conftst*
5620
5621   # Do not use the global_symbol_pipe unless it works.
5622   if test "$pipe_works" = yes; then
5623     break
5624   else
5625     lt_cv_sys_global_symbol_pipe=
5626   fi
5627 done
5628
5629 fi
5630
5631 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5632   lt_cv_sys_global_symbol_to_cdecl=
5633 fi
5634 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5635   echo "$as_me:$LINENO: result: failed" >&5
5636 echo "${ECHO_T}failed" >&6
5637 else
5638   echo "$as_me:$LINENO: result: ok" >&5
5639 echo "${ECHO_T}ok" >&6
5640 fi
5641
5642 echo "$as_me:$LINENO: checking for objdir" >&5
5643 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5644 if test "${lt_cv_objdir+set}" = set; then
5645   echo $ECHO_N "(cached) $ECHO_C" >&6
5646 else
5647   rm -f .libs 2>/dev/null
5648 mkdir .libs 2>/dev/null
5649 if test -d .libs; then
5650   lt_cv_objdir=.libs
5651 else
5652   # MS-DOS does not allow filenames that begin with a dot.
5653   lt_cv_objdir=_libs
5654 fi
5655 rmdir .libs 2>/dev/null
5656 fi
5657 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5658 echo "${ECHO_T}$lt_cv_objdir" >&6
5659 objdir=$lt_cv_objdir
5660
5661
5662
5663
5664
5665 case $host_os in
5666 aix3*)
5667   # AIX sometimes has problems with the GCC collect2 program.  For some
5668   # reason, if we set the COLLECT_NAMES environment variable, the problems
5669   # vanish in a puff of smoke.
5670   if test "X${COLLECT_NAMES+set}" != Xset; then
5671     COLLECT_NAMES=
5672     export COLLECT_NAMES
5673   fi
5674   ;;
5675 esac
5676
5677 # Sed substitution that helps us do robust quoting.  It backslashifies
5678 # metacharacters that are still active within double-quoted strings.
5679 Xsed='sed -e s/^X//'
5680 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5681
5682 # Same as above, but do not quote variable references.
5683 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5684
5685 # Sed substitution to delay expansion of an escaped shell variable in a
5686 # double_quote_subst'ed string.
5687 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5688
5689 # Sed substitution to avoid accidental globbing in evaled expressions
5690 no_glob_subst='s/\*/\\\*/g'
5691
5692 # Constants:
5693 rm="rm -f"
5694
5695 # Global variables:
5696 default_ofile=libtool
5697 can_build_shared=yes
5698
5699 # All known linkers require a `.a' archive for static linking (except M$VC,
5700 # which needs '.lib').
5701 libext=a
5702 ltmain="$ac_aux_dir/ltmain.sh"
5703 ofile="$default_ofile"
5704 with_gnu_ld="$lt_cv_prog_gnu_ld"
5705
5706 if test -n "$ac_tool_prefix"; then
5707   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5708 set dummy ${ac_tool_prefix}ar; ac_word=$2
5709 echo "$as_me:$LINENO: checking for $ac_word" >&5
5710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5711 if test "${ac_cv_prog_AR+set}" = set; then
5712   echo $ECHO_N "(cached) $ECHO_C" >&6
5713 else
5714   if test -n "$AR"; then
5715   ac_cv_prog_AR="$AR" # Let the user override the test.
5716 else
5717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5718 for as_dir in $PATH
5719 do
5720   IFS=$as_save_IFS
5721   test -z "$as_dir" && as_dir=.
5722   for ac_exec_ext in '' $ac_executable_extensions; do
5723   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5724     ac_cv_prog_AR="${ac_tool_prefix}ar"
5725     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5726     break 2
5727   fi
5728 done
5729 done
5730
5731 fi
5732 fi
5733 AR=$ac_cv_prog_AR
5734 if test -n "$AR"; then
5735   echo "$as_me:$LINENO: result: $AR" >&5
5736 echo "${ECHO_T}$AR" >&6
5737 else
5738   echo "$as_me:$LINENO: result: no" >&5
5739 echo "${ECHO_T}no" >&6
5740 fi
5741
5742 fi
5743 if test -z "$ac_cv_prog_AR"; then
5744   ac_ct_AR=$AR
5745   # Extract the first word of "ar", so it can be a program name with args.
5746 set dummy ar; ac_word=$2
5747 echo "$as_me:$LINENO: checking for $ac_word" >&5
5748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5749 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5750   echo $ECHO_N "(cached) $ECHO_C" >&6
5751 else
5752   if test -n "$ac_ct_AR"; then
5753   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5754 else
5755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5756 for as_dir in $PATH
5757 do
5758   IFS=$as_save_IFS
5759   test -z "$as_dir" && as_dir=.
5760   for ac_exec_ext in '' $ac_executable_extensions; do
5761   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5762     ac_cv_prog_ac_ct_AR="ar"
5763     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5764     break 2
5765   fi
5766 done
5767 done
5768
5769   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5770 fi
5771 fi
5772 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5773 if test -n "$ac_ct_AR"; then
5774   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5775 echo "${ECHO_T}$ac_ct_AR" >&6
5776 else
5777   echo "$as_me:$LINENO: result: no" >&5
5778 echo "${ECHO_T}no" >&6
5779 fi
5780
5781   AR=$ac_ct_AR
5782 else
5783   AR="$ac_cv_prog_AR"
5784 fi
5785
5786 if test -n "$ac_tool_prefix"; then
5787   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5788 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5789 echo "$as_me:$LINENO: checking for $ac_word" >&5
5790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5791 if test "${ac_cv_prog_RANLIB+set}" = set; then
5792   echo $ECHO_N "(cached) $ECHO_C" >&6
5793 else
5794   if test -n "$RANLIB"; then
5795   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5796 else
5797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5798 for as_dir in $PATH
5799 do
5800   IFS=$as_save_IFS
5801   test -z "$as_dir" && as_dir=.
5802   for ac_exec_ext in '' $ac_executable_extensions; do
5803   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5804     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5805     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5806     break 2
5807   fi
5808 done
5809 done
5810
5811 fi
5812 fi
5813 RANLIB=$ac_cv_prog_RANLIB
5814 if test -n "$RANLIB"; then
5815   echo "$as_me:$LINENO: result: $RANLIB" >&5
5816 echo "${ECHO_T}$RANLIB" >&6
5817 else
5818   echo "$as_me:$LINENO: result: no" >&5
5819 echo "${ECHO_T}no" >&6
5820 fi
5821
5822 fi
5823 if test -z "$ac_cv_prog_RANLIB"; then
5824   ac_ct_RANLIB=$RANLIB
5825   # Extract the first word of "ranlib", so it can be a program name with args.
5826 set dummy ranlib; ac_word=$2
5827 echo "$as_me:$LINENO: checking for $ac_word" >&5
5828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5829 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5830   echo $ECHO_N "(cached) $ECHO_C" >&6
5831 else
5832   if test -n "$ac_ct_RANLIB"; then
5833   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5834 else
5835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5836 for as_dir in $PATH
5837 do
5838   IFS=$as_save_IFS
5839   test -z "$as_dir" && as_dir=.
5840   for ac_exec_ext in '' $ac_executable_extensions; do
5841   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5842     ac_cv_prog_ac_ct_RANLIB="ranlib"
5843     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5844     break 2
5845   fi
5846 done
5847 done
5848
5849   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5850 fi
5851 fi
5852 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5853 if test -n "$ac_ct_RANLIB"; then
5854   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5855 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5856 else
5857   echo "$as_me:$LINENO: result: no" >&5
5858 echo "${ECHO_T}no" >&6
5859 fi
5860
5861   RANLIB=$ac_ct_RANLIB
5862 else
5863   RANLIB="$ac_cv_prog_RANLIB"
5864 fi
5865
5866 if test -n "$ac_tool_prefix"; then
5867   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5868 set dummy ${ac_tool_prefix}strip; ac_word=$2
5869 echo "$as_me:$LINENO: checking for $ac_word" >&5
5870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5871 if test "${ac_cv_prog_STRIP+set}" = set; then
5872   echo $ECHO_N "(cached) $ECHO_C" >&6
5873 else
5874   if test -n "$STRIP"; then
5875   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5876 else
5877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5878 for as_dir in $PATH
5879 do
5880   IFS=$as_save_IFS
5881   test -z "$as_dir" && as_dir=.
5882   for ac_exec_ext in '' $ac_executable_extensions; do
5883   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5884     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5885     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5886     break 2
5887   fi
5888 done
5889 done
5890
5891 fi
5892 fi
5893 STRIP=$ac_cv_prog_STRIP
5894 if test -n "$STRIP"; then
5895   echo "$as_me:$LINENO: result: $STRIP" >&5
5896 echo "${ECHO_T}$STRIP" >&6
5897 else
5898   echo "$as_me:$LINENO: result: no" >&5
5899 echo "${ECHO_T}no" >&6
5900 fi
5901
5902 fi
5903 if test -z "$ac_cv_prog_STRIP"; then
5904   ac_ct_STRIP=$STRIP
5905   # Extract the first word of "strip", so it can be a program name with args.
5906 set dummy strip; ac_word=$2
5907 echo "$as_me:$LINENO: checking for $ac_word" >&5
5908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5909 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5910   echo $ECHO_N "(cached) $ECHO_C" >&6
5911 else
5912   if test -n "$ac_ct_STRIP"; then
5913   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5914 else
5915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5916 for as_dir in $PATH
5917 do
5918   IFS=$as_save_IFS
5919   test -z "$as_dir" && as_dir=.
5920   for ac_exec_ext in '' $ac_executable_extensions; do
5921   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5922     ac_cv_prog_ac_ct_STRIP="strip"
5923     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5924     break 2
5925   fi
5926 done
5927 done
5928
5929   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5930 fi
5931 fi
5932 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5933 if test -n "$ac_ct_STRIP"; then
5934   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5935 echo "${ECHO_T}$ac_ct_STRIP" >&6
5936 else
5937   echo "$as_me:$LINENO: result: no" >&5
5938 echo "${ECHO_T}no" >&6
5939 fi
5940
5941   STRIP=$ac_ct_STRIP
5942 else
5943   STRIP="$ac_cv_prog_STRIP"
5944 fi
5945
5946
5947 old_CC="$CC"
5948 old_CFLAGS="$CFLAGS"
5949
5950 # Set sane defaults for various variables
5951 test -z "$AR" && AR=ar
5952 test -z "$AR_FLAGS" && AR_FLAGS=cru
5953 test -z "$AS" && AS=as
5954 test -z "$CC" && CC=cc
5955 test -z "$LTCC" && LTCC=$CC
5956 test -z "$DLLTOOL" && DLLTOOL=dlltool
5957 test -z "$LD" && LD=ld
5958 test -z "$LN_S" && LN_S="ln -s"
5959 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5960 test -z "$NM" && NM=nm
5961 test -z "$SED" && SED=sed
5962 test -z "$OBJDUMP" && OBJDUMP=objdump
5963 test -z "$RANLIB" && RANLIB=:
5964 test -z "$STRIP" && STRIP=:
5965 test -z "$ac_objext" && ac_objext=o
5966
5967 # Determine commands to create old-style static archives.
5968 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5969 old_postinstall_cmds='chmod 644 $oldlib'
5970 old_postuninstall_cmds=
5971
5972 if test -n "$RANLIB"; then
5973   case $host_os in
5974   openbsd*)
5975     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5976     ;;
5977   *)
5978     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5979     ;;
5980   esac
5981   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5982 fi
5983
5984 # Only perform the check for file, if the check method requires it
5985 case $deplibs_check_method in
5986 file_magic*)
5987   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5988     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5989 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5990 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5991   echo $ECHO_N "(cached) $ECHO_C" >&6
5992 else
5993   case $MAGIC_CMD in
5994 [\\/*] |  ?:[\\/]*)
5995   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5996   ;;
5997 *)
5998   lt_save_MAGIC_CMD="$MAGIC_CMD"
5999   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6000   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6001   for ac_dir in $ac_dummy; do
6002     IFS="$lt_save_ifs"
6003     test -z "$ac_dir" && ac_dir=.
6004     if test -f $ac_dir/${ac_tool_prefix}file; then
6005       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6006       if test -n "$file_magic_test_file"; then
6007         case $deplibs_check_method in
6008         "file_magic "*)
6009           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6010           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6011           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6012             $EGREP "$file_magic_regex" > /dev/null; then
6013             :
6014           else
6015             cat <<EOF 1>&2
6016
6017 *** Warning: the command libtool uses to detect shared libraries,
6018 *** $file_magic_cmd, produces output that libtool cannot recognize.
6019 *** The result is that libtool may fail to recognize shared libraries
6020 *** as such.  This will affect the creation of libtool libraries that
6021 *** depend on shared libraries, but programs linked with such libtool
6022 *** libraries will work regardless of this problem.  Nevertheless, you
6023 *** may want to report the problem to your system manager and/or to
6024 *** bug-libtool@gnu.org
6025
6026 EOF
6027           fi ;;
6028         esac
6029       fi
6030       break
6031     fi
6032   done
6033   IFS="$lt_save_ifs"
6034   MAGIC_CMD="$lt_save_MAGIC_CMD"
6035   ;;
6036 esac
6037 fi
6038
6039 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6040 if test -n "$MAGIC_CMD"; then
6041   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6042 echo "${ECHO_T}$MAGIC_CMD" >&6
6043 else
6044   echo "$as_me:$LINENO: result: no" >&5
6045 echo "${ECHO_T}no" >&6
6046 fi
6047
6048 if test -z "$lt_cv_path_MAGIC_CMD"; then
6049   if test -n "$ac_tool_prefix"; then
6050     echo "$as_me:$LINENO: checking for file" >&5
6051 echo $ECHO_N "checking for file... $ECHO_C" >&6
6052 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6053   echo $ECHO_N "(cached) $ECHO_C" >&6
6054 else
6055   case $MAGIC_CMD in
6056 [\\/*] |  ?:[\\/]*)
6057   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6058   ;;
6059 *)
6060   lt_save_MAGIC_CMD="$MAGIC_CMD"
6061   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6062   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6063   for ac_dir in $ac_dummy; do
6064     IFS="$lt_save_ifs"
6065     test -z "$ac_dir" && ac_dir=.
6066     if test -f $ac_dir/file; then
6067       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6068       if test -n "$file_magic_test_file"; then
6069         case $deplibs_check_method in
6070         "file_magic "*)
6071           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6072           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6073           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6074             $EGREP "$file_magic_regex" > /dev/null; then
6075             :
6076           else
6077             cat <<EOF 1>&2
6078
6079 *** Warning: the command libtool uses to detect shared libraries,
6080 *** $file_magic_cmd, produces output that libtool cannot recognize.
6081 *** The result is that libtool may fail to recognize shared libraries
6082 *** as such.  This will affect the creation of libtool libraries that
6083 *** depend on shared libraries, but programs linked with such libtool
6084 *** libraries will work regardless of this problem.  Nevertheless, you
6085 *** may want to report the problem to your system manager and/or to
6086 *** bug-libtool@gnu.org
6087
6088 EOF
6089           fi ;;
6090         esac
6091       fi
6092       break
6093     fi
6094   done
6095   IFS="$lt_save_ifs"
6096   MAGIC_CMD="$lt_save_MAGIC_CMD"
6097   ;;
6098 esac
6099 fi
6100
6101 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6102 if test -n "$MAGIC_CMD"; then
6103   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6104 echo "${ECHO_T}$MAGIC_CMD" >&6
6105 else
6106   echo "$as_me:$LINENO: result: no" >&5
6107 echo "${ECHO_T}no" >&6
6108 fi
6109
6110   else
6111     MAGIC_CMD=:
6112   fi
6113 fi
6114
6115   fi
6116   ;;
6117 esac
6118
6119 enable_dlopen=no
6120 enable_win32_dll=no
6121
6122 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6123 if test "${enable_libtool_lock+set}" = set; then
6124   enableval="$enable_libtool_lock"
6125
6126 fi;
6127 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6128
6129
6130 # Check whether --with-pic or --without-pic was given.
6131 if test "${with_pic+set}" = set; then
6132   withval="$with_pic"
6133   pic_mode="$withval"
6134 else
6135   pic_mode=default
6136 fi;
6137 test -z "$pic_mode" && pic_mode=default
6138
6139 # Use C for the default configuration in the libtool script
6140 tagname=
6141 lt_save_CC="$CC"
6142 ac_ext=c
6143 ac_cpp='$CPP $CPPFLAGS'
6144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6147
6148
6149 # Source file extension for C test sources.
6150 ac_ext=c
6151
6152 # Object file extension for compiled C test sources.
6153 objext=o
6154 objext=$objext
6155
6156 # Code to be used in simple compile tests
6157 lt_simple_compile_test_code="int some_variable = 0;\n"
6158
6159 # Code to be used in simple link tests
6160 lt_simple_link_test_code='int main(){return(0);}\n'
6161
6162
6163 # If no C compiler was specified, use CC.
6164 LTCC=${LTCC-"$CC"}
6165
6166 # Allow CC to be a program name with arguments.
6167 compiler=$CC
6168
6169
6170 #
6171 # Check for any special shared library compilation flags.
6172 #
6173 lt_prog_cc_shlib=
6174 if test "$GCC" = no; then
6175   case $host_os in
6176   sco3.2v5*)
6177     lt_prog_cc_shlib='-belf'
6178     ;;
6179   esac
6180 fi
6181 if test -n "$lt_prog_cc_shlib"; then
6182   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6183 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6184   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6185   else
6186     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6187 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6188     lt_cv_prog_cc_can_build_shared=no
6189   fi
6190 fi
6191
6192
6193 #
6194 # Check to make sure the static flag actually works.
6195 #
6196 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6197 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6198 if test "${lt_prog_compiler_static_works+set}" = set; then
6199   echo $ECHO_N "(cached) $ECHO_C" >&6
6200 else
6201   lt_prog_compiler_static_works=no
6202    save_LDFLAGS="$LDFLAGS"
6203    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6204    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6205    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6206      # The compiler can only warn and ignore the option if not recognized
6207      # So say no if there are warnings
6208      if test -s conftest.err; then
6209        # Append any errors to the config.log.
6210        cat conftest.err 1>&5
6211      else
6212        lt_prog_compiler_static_works=yes
6213      fi
6214    fi
6215    $rm conftest*
6216    LDFLAGS="$save_LDFLAGS"
6217
6218 fi
6219 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6220 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6221
6222 if test x"$lt_prog_compiler_static_works" = xyes; then
6223     :
6224 else
6225     lt_prog_compiler_static=
6226 fi
6227
6228
6229
6230
6231 lt_prog_compiler_no_builtin_flag=
6232
6233 if test "$GCC" = yes; then
6234   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6235
6236
6237 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6238 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6239 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6240   echo $ECHO_N "(cached) $ECHO_C" >&6
6241 else
6242   lt_cv_prog_compiler_rtti_exceptions=no
6243   ac_outfile=conftest.$ac_objext
6244    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6245    lt_compiler_flag="-fno-rtti -fno-exceptions"
6246    # Insert the option either (1) after the last *FLAGS variable, or
6247    # (2) before a word containing "conftest.", or (3) at the end.
6248    # Note that $ac_compile itself does not contain backslashes and begins
6249    # with a dollar sign (not a hyphen), so the echo should work correctly.
6250    # The option is referenced via a variable to avoid confusing sed.
6251    lt_compile=`echo "$ac_compile" | $SED \
6252    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6253    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6254    -e 's:$: $lt_compiler_flag:'`
6255    (eval echo "\"\$as_me:6255: $lt_compile\"" >&5)
6256    (eval "$lt_compile" 2>conftest.err)
6257    ac_status=$?
6258    cat conftest.err >&5
6259    echo "$as_me:6259: \$? = $ac_status" >&5
6260    if (exit $ac_status) && test -s "$ac_outfile"; then
6261      # The compiler can only warn and ignore the option if not recognized
6262      # So say no if there are warnings
6263      if test ! -s conftest.err; then
6264        lt_cv_prog_compiler_rtti_exceptions=yes
6265      fi
6266    fi
6267    $rm conftest*
6268
6269 fi
6270 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6271 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6272
6273 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6274     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6275 else
6276     :
6277 fi
6278
6279 fi
6280
6281 lt_prog_compiler_wl=
6282 lt_prog_compiler_pic=
6283 lt_prog_compiler_static=
6284
6285 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6286 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6287
6288   if test "$GCC" = yes; then
6289     lt_prog_compiler_wl='-Wl,'
6290     lt_prog_compiler_static='-static'
6291
6292     case $host_os in
6293       aix*)
6294       # All AIX code is PIC.
6295       if test "$host_cpu" = ia64; then
6296         # AIX 5 now supports IA64 processor
6297         lt_prog_compiler_static='-Bstatic'
6298       fi
6299       ;;
6300
6301     amigaos*)
6302       # FIXME: we need at least 68020 code to build shared libraries, but
6303       # adding the `-m68020' flag to GCC prevents building anything better,
6304       # like `-m68040'.
6305       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6306       ;;
6307
6308     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6309       # PIC is the default for these OSes.
6310       ;;
6311
6312     mingw* | pw32* | os2*)
6313       # This hack is so that the source file can tell whether it is being
6314       # built for inclusion in a dll (and should export symbols for example).
6315       lt_prog_compiler_pic='-DDLL_EXPORT'
6316       ;;
6317
6318     darwin* | rhapsody*)
6319       # PIC is the default on this platform
6320       # Common symbols not allowed in MH_DYLIB files
6321       lt_prog_compiler_pic='-fno-common'
6322       ;;
6323
6324     msdosdjgpp*)
6325       # Just because we use GCC doesn't mean we suddenly get shared libraries
6326       # on systems that don't support them.
6327       lt_prog_compiler_can_build_shared=no
6328       enable_shared=no
6329       ;;
6330
6331     sysv4*MP*)
6332       if test -d /usr/nec; then
6333         lt_prog_compiler_pic=-Kconform_pic
6334       fi
6335       ;;
6336
6337     hpux*)
6338       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6339       # not for PA HP-UX.
6340       case "$host_cpu" in
6341       hppa*64*|ia64*)
6342         # +Z the default
6343         ;;
6344       *)
6345         lt_prog_compiler_pic='-fPIC'
6346         ;;
6347       esac
6348       ;;
6349
6350     *)
6351       lt_prog_compiler_pic='-fPIC'
6352       ;;
6353     esac
6354   else
6355     # PORTME Check for flag to pass linker flags through the system compiler.
6356     case $host_os in
6357     aix*)
6358       lt_prog_compiler_wl='-Wl,'
6359       if test "$host_cpu" = ia64; then
6360         # AIX 5 now supports IA64 processor
6361         lt_prog_compiler_static='-Bstatic'
6362       else
6363         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6364       fi
6365       ;;
6366
6367     mingw* | pw32* | os2*)
6368       # This hack is so that the source file can tell whether it is being
6369       # built for inclusion in a dll (and should export symbols for example).
6370       lt_prog_compiler_pic='-DDLL_EXPORT'
6371       ;;
6372
6373     hpux9* | hpux10* | hpux11*)
6374       lt_prog_compiler_wl='-Wl,'
6375       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6376       # not for PA HP-UX.
6377       case "$host_cpu" in
6378       hppa*64*|ia64*)
6379         # +Z the default
6380         ;;
6381       *)
6382         lt_prog_compiler_pic='+Z'
6383         ;;
6384       esac
6385       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6386       lt_prog_compiler_static='${wl}-a ${wl}archive'
6387       ;;
6388
6389     irix5* | irix6* | nonstopux*)
6390       lt_prog_compiler_wl='-Wl,'
6391       # PIC (with -KPIC) is the default.
6392       lt_prog_compiler_static='-non_shared'
6393       ;;
6394
6395     newsos6)
6396       lt_prog_compiler_pic='-KPIC'
6397       lt_prog_compiler_static='-Bstatic'
6398       ;;
6399
6400     linux*)
6401       case $CC in
6402       icc* | ecc*)
6403         lt_prog_compiler_wl='-Wl,'
6404         lt_prog_compiler_pic='-KPIC'
6405         lt_prog_compiler_static='-static'
6406         ;;
6407       ccc*)
6408         lt_prog_compiler_wl='-Wl,'
6409         # All Alpha code is PIC.
6410         lt_prog_compiler_static='-non_shared'
6411         ;;
6412       esac
6413       ;;
6414
6415     osf3* | osf4* | osf5*)
6416       lt_prog_compiler_wl='-Wl,'
6417       # All OSF/1 code is PIC.
6418       lt_prog_compiler_static='-non_shared'
6419       ;;
6420
6421     sco3.2v5*)
6422       lt_prog_compiler_pic='-Kpic'
6423       lt_prog_compiler_static='-dn'
6424       ;;
6425
6426     solaris*)
6427       lt_prog_compiler_wl='-Wl,'
6428       lt_prog_compiler_pic='-KPIC'
6429       lt_prog_compiler_static='-Bstatic'
6430       ;;
6431
6432     sunos4*)
6433       lt_prog_compiler_wl='-Qoption ld '
6434       lt_prog_compiler_pic='-PIC'
6435       lt_prog_compiler_static='-Bstatic'
6436       ;;
6437
6438     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6439       lt_prog_compiler_wl='-Wl,'
6440       lt_prog_compiler_pic='-KPIC'
6441       lt_prog_compiler_static='-Bstatic'
6442       ;;
6443
6444     sysv4*MP*)
6445       if test -d /usr/nec ;then
6446         lt_prog_compiler_pic='-Kconform_pic'
6447         lt_prog_compiler_static='-Bstatic'
6448       fi
6449       ;;
6450
6451     uts4*)
6452       lt_prog_compiler_pic='-pic'
6453       lt_prog_compiler_static='-Bstatic'
6454       ;;
6455
6456     *)
6457       lt_prog_compiler_can_build_shared=no
6458       ;;
6459     esac
6460   fi
6461
6462 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6463 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6464
6465 #
6466 # Check to make sure the PIC flag actually works.
6467 #
6468 if test -n "$lt_prog_compiler_pic"; then
6469
6470 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6471 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6472 if test "${lt_prog_compiler_pic_works+set}" = set; then
6473   echo $ECHO_N "(cached) $ECHO_C" >&6
6474 else
6475   lt_prog_compiler_pic_works=no
6476   ac_outfile=conftest.$ac_objext
6477    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6478    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6479    # Insert the option either (1) after the last *FLAGS variable, or
6480    # (2) before a word containing "conftest.", or (3) at the end.
6481    # Note that $ac_compile itself does not contain backslashes and begins
6482    # with a dollar sign (not a hyphen), so the echo should work correctly.
6483    # The option is referenced via a variable to avoid confusing sed.
6484    lt_compile=`echo "$ac_compile" | $SED \
6485    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6486    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6487    -e 's:$: $lt_compiler_flag:'`
6488    (eval echo "\"\$as_me:6488: $lt_compile\"" >&5)
6489    (eval "$lt_compile" 2>conftest.err)
6490    ac_status=$?
6491    cat conftest.err >&5
6492    echo "$as_me:6492: \$? = $ac_status" >&5
6493    if (exit $ac_status) && test -s "$ac_outfile"; then
6494      # The compiler can only warn and ignore the option if not recognized
6495      # So say no if there are warnings
6496      if test ! -s conftest.err; then
6497        lt_prog_compiler_pic_works=yes
6498      fi
6499    fi
6500    $rm conftest*
6501
6502 fi
6503 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6504 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6505
6506 if test x"$lt_prog_compiler_pic_works" = xyes; then
6507     case $lt_prog_compiler_pic in
6508      "" | " "*) ;;
6509      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6510      esac
6511 else
6512     lt_prog_compiler_pic=
6513      lt_prog_compiler_can_build_shared=no
6514 fi
6515
6516 fi
6517 case "$host_os" in
6518   # For platforms which do not support PIC, -DPIC is meaningless:
6519   *djgpp*)
6520     lt_prog_compiler_pic=
6521     ;;
6522   *)
6523     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6524     ;;
6525 esac
6526
6527 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6528 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6529 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6530   echo $ECHO_N "(cached) $ECHO_C" >&6
6531 else
6532   lt_cv_prog_compiler_c_o=no
6533    $rm -r conftest 2>/dev/null
6534    mkdir conftest
6535    cd conftest
6536    mkdir out
6537    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6538
6539    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6540    # that will create temporary files in the current directory regardless of
6541    # the output directory.  Thus, making CWD read-only will cause this test
6542    # to fail, enabling locking or at least warning the user not to do parallel
6543    # builds.
6544    chmod -w .
6545
6546    lt_compiler_flag="-o out/conftest2.$ac_objext"
6547    # Insert the option either (1) after the last *FLAGS variable, or
6548    # (2) before a word containing "conftest.", or (3) at the end.
6549    # Note that $ac_compile itself does not contain backslashes and begins
6550    # with a dollar sign (not a hyphen), so the echo should work correctly.
6551    lt_compile=`echo "$ac_compile" | $SED \
6552    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6553    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6554    -e 's:$: $lt_compiler_flag:'`
6555    (eval echo "\"\$as_me:6555: $lt_compile\"" >&5)
6556    (eval "$lt_compile" 2>out/conftest.err)
6557    ac_status=$?
6558    cat out/conftest.err >&5
6559    echo "$as_me:6559: \$? = $ac_status" >&5
6560    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6561    then
6562      # The compiler can only warn and ignore the option if not recognized
6563      # So say no if there are warnings
6564      if test ! -s out/conftest.err; then
6565        lt_cv_prog_compiler_c_o=yes
6566      fi
6567    fi
6568    chmod u+w .
6569    $rm conftest*
6570    # SGI C++ compiler will create directory out/ii_files/ for
6571    # template instantiation
6572    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6573    $rm out/* && rmdir out
6574    cd ..
6575    rmdir conftest
6576    $rm conftest*
6577
6578 fi
6579 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6580 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6581
6582
6583 hard_links="nottested"
6584 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6585   # do not overwrite the value of need_locks provided by the user
6586   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6587 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6588   hard_links=yes
6589   $rm conftest*
6590   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6591   touch conftest.a
6592   ln conftest.a conftest.b 2>&5 || hard_links=no
6593   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6594   echo "$as_me:$LINENO: result: $hard_links" >&5
6595 echo "${ECHO_T}$hard_links" >&6
6596   if test "$hard_links" = no; then
6597     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6598 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6599     need_locks=warn
6600   fi
6601 else
6602   need_locks=no
6603 fi
6604
6605 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6606 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6607
6608   runpath_var=
6609   allow_undefined_flag=
6610   enable_shared_with_static_runtimes=no
6611   archive_cmds=
6612   archive_expsym_cmds=
6613   old_archive_From_new_cmds=
6614   old_archive_from_expsyms_cmds=
6615   export_dynamic_flag_spec=
6616   whole_archive_flag_spec=
6617   thread_safe_flag_spec=
6618   hardcode_libdir_flag_spec=
6619   hardcode_libdir_flag_spec_ld=
6620   hardcode_libdir_separator=
6621   hardcode_direct=no
6622   hardcode_minus_L=no
6623   hardcode_shlibpath_var=unsupported
6624   link_all_deplibs=unknown
6625   hardcode_automatic=no
6626   module_cmds=
6627   module_expsym_cmds=
6628   always_export_symbols=no
6629   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6630   # include_expsyms should be a list of space-separated symbols to be *always*
6631   # included in the symbol list
6632   include_expsyms=
6633   # exclude_expsyms can be an extended regexp of symbols to exclude
6634   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6635   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6636   # as well as any symbol that contains `d'.
6637   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6638   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6639   # platforms (ab)use it in PIC code, but their linkers get confused if
6640   # the symbol is explicitly referenced.  Since portable code cannot
6641   # rely on this symbol name, it's probably fine to never include it in
6642   # preloaded symbol tables.
6643   extract_expsyms_cmds=
6644
6645   case $host_os in
6646   cygwin* | mingw* | pw32*)
6647     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6648     # When not using gcc, we currently assume that we are using
6649     # Microsoft Visual C++.
6650     if test "$GCC" != yes; then
6651       with_gnu_ld=no
6652     fi
6653     ;;
6654   openbsd*)
6655     with_gnu_ld=no
6656     ;;
6657   esac
6658
6659   ld_shlibs=yes
6660   if test "$with_gnu_ld" = yes; then
6661     # If archive_cmds runs LD, not CC, wlarc should be empty
6662     wlarc='${wl}'
6663
6664     # See if GNU ld supports shared libraries.
6665     case $host_os in
6666     aix3* | aix4* | aix5*)
6667       # On AIX/PPC, the GNU linker is very broken
6668       if test "$host_cpu" != ia64; then
6669         ld_shlibs=no
6670         cat <<EOF 1>&2
6671
6672 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6673 *** to be unable to reliably create shared libraries on AIX.
6674 *** Therefore, libtool is disabling shared libraries support.  If you
6675 *** really care for shared libraries, you may want to modify your PATH
6676 *** so that a non-GNU linker is found, and then restart.
6677
6678 EOF
6679       fi
6680       ;;
6681
6682     amigaos*)
6683       archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6684       hardcode_libdir_flag_spec='-L$libdir'
6685       hardcode_minus_L=yes
6686
6687       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6688       # that the semantics of dynamic libraries on AmigaOS, at least up
6689       # to version 4, is to share data among multiple programs linked
6690       # with the same dynamic library.  Since this doesn't match the
6691       # behavior of shared libraries on other platforms, we can't use
6692       # them.
6693       ld_shlibs=no
6694       ;;
6695
6696     beos*)
6697       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6698         allow_undefined_flag=unsupported
6699         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6700         # support --undefined.  This deserves some investigation.  FIXME
6701         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6702       else
6703         ld_shlibs=no
6704       fi
6705       ;;
6706
6707     cygwin* | mingw* | pw32*)
6708       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6709       # as there is no search path for DLLs.
6710       hardcode_libdir_flag_spec='-L$libdir'
6711       allow_undefined_flag=unsupported
6712       always_export_symbols=no
6713       enable_shared_with_static_runtimes=yes
6714       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6715
6716       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6717         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6718         # If the export-symbols file already is a .def file (1st line
6719         # is EXPORTS), use it as is; otherwise, prepend...
6720         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6721           cp $export_symbols $output_objdir/$soname.def;
6722         else
6723           echo EXPORTS > $output_objdir/$soname.def;
6724           cat $export_symbols >> $output_objdir/$soname.def;
6725         fi~
6726         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6727       else
6728         ld_shlibs=no
6729       fi
6730       ;;
6731
6732     netbsd*)
6733       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6734         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6735         wlarc=
6736       else
6737         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6738         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6739       fi
6740       ;;
6741
6742     solaris* | sysv5*)
6743       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6744         ld_shlibs=no
6745         cat <<EOF 1>&2
6746
6747 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6748 *** create shared libraries on Solaris systems.  Therefore, libtool
6749 *** is disabling shared libraries support.  We urge you to upgrade GNU
6750 *** binutils to release 2.9.1 or newer.  Another option is to modify
6751 *** your PATH or compiler configuration so that the native linker is
6752 *** used, and then restart.
6753
6754 EOF
6755       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6756         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6757         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6758       else
6759         ld_shlibs=no
6760       fi
6761       ;;
6762
6763     sunos4*)
6764       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6765       wlarc=
6766       hardcode_direct=yes
6767       hardcode_shlibpath_var=no
6768       ;;
6769
6770   linux*)
6771     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6772         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6773         archive_cmds="$tmp_archive_cmds"
6774       supports_anon_versioning=no
6775       case `$LD -v 2>/dev/null` in
6776         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6777         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6778         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6779         *\ 2.11.*) ;; # other 2.11 versions
6780         *) supports_anon_versioning=yes ;;
6781       esac
6782       if test $supports_anon_versioning = yes; then
6783         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6784 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6785 $echo "local: *; };" >> $output_objdir/$libname.ver~
6786         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6787       else
6788         archive_expsym_cmds="$tmp_archive_cmds"
6789       fi
6790     else
6791       ld_shlibs=no
6792     fi
6793     ;;
6794
6795     *)
6796       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6797         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6798         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6799       else
6800         ld_shlibs=no
6801       fi
6802       ;;
6803     esac
6804
6805     if test "$ld_shlibs" = yes; then
6806       runpath_var=LD_RUN_PATH
6807       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6808       export_dynamic_flag_spec='${wl}--export-dynamic'
6809       # ancient GNU ld didn't support --whole-archive et. al.
6810       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6811         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6812       else
6813         whole_archive_flag_spec=
6814       fi
6815     fi
6816   else
6817     # PORTME fill in a description of your system's linker (not GNU ld)
6818     case $host_os in
6819     aix3*)
6820       allow_undefined_flag=unsupported
6821       always_export_symbols=yes
6822       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
6823       # Note: this linker hardcodes the directories in LIBPATH if there
6824       # are no directories specified by -L.
6825       hardcode_minus_L=yes
6826       if test "$GCC" = yes && test -z "$link_static_flag"; then
6827         # Neither direct hardcoding nor static linking is supported with a
6828         # broken collect2.
6829         hardcode_direct=unsupported
6830       fi
6831       ;;
6832
6833     aix4* | aix5*)
6834       if test "$host_cpu" = ia64; then
6835         # On IA64, the linker does run time linking by default, so we don't
6836         # have to do anything special.
6837         aix_use_runtimelinking=no
6838         exp_sym_flag='-Bexport'
6839         no_entry_flag=""
6840       else
6841         # If we're using GNU nm, then we don't want the "-C" option.
6842         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6843         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6844           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
6845         else
6846           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
6847         fi
6848         aix_use_runtimelinking=no
6849
6850         # Test if we are trying to use run time linking or normal
6851         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6852         # need to do runtime linking.
6853         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6854           for ld_flag in $LDFLAGS; do
6855           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6856             aix_use_runtimelinking=yes
6857             break
6858           fi
6859           done
6860         esac
6861
6862         exp_sym_flag='-bexport'
6863         no_entry_flag='-bnoentry'
6864       fi
6865
6866       # When large executables or shared objects are built, AIX ld can
6867       # have problems creating the table of contents.  If linking a library
6868       # or program results in "error TOC overflow" add -mminimal-toc to
6869       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6870       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6871
6872       archive_cmds=''
6873       hardcode_direct=yes
6874       hardcode_libdir_separator=':'
6875       link_all_deplibs=yes
6876
6877       if test "$GCC" = yes; then
6878         case $host_os in aix4.012|aix4.012.*)
6879         # We only want to do this on AIX 4.2 and lower, the check
6880         # below for broken collect2 doesn't work under 4.3+
6881           collect2name=`${CC} -print-prog-name=collect2`
6882           if test -f "$collect2name" && \
6883            strings "$collect2name" | grep resolve_lib_name >/dev/null
6884           then
6885           # We have reworked collect2
6886           hardcode_direct=yes
6887           else
6888           # We have old collect2
6889           hardcode_direct=unsupported
6890           # It fails to find uninstalled libraries when the uninstalled
6891           # path is not listed in the libpath.  Setting hardcode_minus_L
6892           # to unsupported forces relinking
6893           hardcode_minus_L=yes
6894           hardcode_libdir_flag_spec='-L$libdir'
6895           hardcode_libdir_separator=
6896           fi
6897         esac
6898         shared_flag='-shared'
6899       else
6900         # not using gcc
6901         if test "$host_cpu" = ia64; then
6902         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6903         # chokes on -Wl,-G. The following line is correct:
6904           shared_flag='-G'
6905         else
6906         if test "$aix_use_runtimelinking" = yes; then
6907             shared_flag='${wl}-G'
6908           else
6909             shared_flag='${wl}-bM:SRE'
6910         fi
6911         fi
6912       fi
6913
6914       # It seems that -bexpall does not export symbols beginning with
6915       # underscore (_), so it is better to generate a list of symbols to export.
6916       always_export_symbols=yes
6917       if test "$aix_use_runtimelinking" = yes; then
6918         # Warning - without using the other runtime loading flags (-brtl),
6919         # -berok will link without error, but may produce a broken library.
6920         allow_undefined_flag='-berok'
6921        # Determine the default libpath from the value encoded in an empty executable.
6922        cat >conftest.$ac_ext <<_ACEOF
6923 /* confdefs.h.  */
6924 _ACEOF
6925 cat confdefs.h >>conftest.$ac_ext
6926 cat >>conftest.$ac_ext <<_ACEOF
6927 /* end confdefs.h.  */
6928
6929 int
6930 main ()
6931 {
6932
6933   ;
6934   return 0;
6935 }
6936 _ACEOF
6937 rm -f conftest.$ac_objext conftest$ac_exeext
6938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6939   (eval $ac_link) 2>conftest.er1
6940   ac_status=$?
6941   grep -v '^ *+' conftest.er1 >conftest.err
6942   rm -f conftest.er1
6943   cat conftest.err >&5
6944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945   (exit $ac_status); } &&
6946          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6948   (eval $ac_try) 2>&5
6949   ac_status=$?
6950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951   (exit $ac_status); }; } &&
6952          { ac_try='test -s conftest$ac_exeext'
6953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6954   (eval $ac_try) 2>&5
6955   ac_status=$?
6956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957   (exit $ac_status); }; }; then
6958
6959 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6960 }'`
6961 # Check for a 64-bit object if we didn't find anything.
6962 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6963 }'`; fi
6964 else
6965   echo "$as_me: failed program was:" >&5
6966 sed 's/^/| /' conftest.$ac_ext >&5
6967
6968 fi
6969 rm -f conftest.err conftest.$ac_objext \
6970       conftest$ac_exeext conftest.$ac_ext
6971 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6972
6973        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6974         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6975        else
6976         if test "$host_cpu" = ia64; then
6977           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6978           allow_undefined_flag="-z nodefs"
6979           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6980         else
6981          # Determine the default libpath from the value encoded in an empty executable.
6982          cat >conftest.$ac_ext <<_ACEOF
6983 /* confdefs.h.  */
6984 _ACEOF
6985 cat confdefs.h >>conftest.$ac_ext
6986 cat >>conftest.$ac_ext <<_ACEOF
6987 /* end confdefs.h.  */
6988
6989 int
6990 main ()
6991 {
6992
6993   ;
6994   return 0;
6995 }
6996 _ACEOF
6997 rm -f conftest.$ac_objext conftest$ac_exeext
6998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6999   (eval $ac_link) 2>conftest.er1
7000   ac_status=$?
7001   grep -v '^ *+' conftest.er1 >conftest.err
7002   rm -f conftest.er1
7003   cat conftest.err >&5
7004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005   (exit $ac_status); } &&
7006          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7008   (eval $ac_try) 2>&5
7009   ac_status=$?
7010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011   (exit $ac_status); }; } &&
7012          { ac_try='test -s conftest$ac_exeext'
7013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7014   (eval $ac_try) 2>&5
7015   ac_status=$?
7016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017   (exit $ac_status); }; }; then
7018
7019 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7020 }'`
7021 # Check for a 64-bit object if we didn't find anything.
7022 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7023 }'`; fi
7024 else
7025   echo "$as_me: failed program was:" >&5
7026 sed 's/^/| /' conftest.$ac_ext >&5
7027
7028 fi
7029 rm -f conftest.err conftest.$ac_objext \
7030       conftest$ac_exeext conftest.$ac_ext
7031 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7032
7033          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7034           # Warning - without using the other run time loading flags,
7035           # -berok will link without error, but may produce a broken library.
7036           no_undefined_flag=' ${wl}-bernotok'
7037           allow_undefined_flag=' ${wl}-berok'
7038           # -bexpall does not export symbols beginning with underscore (_)
7039           always_export_symbols=yes
7040           # Exported symbols can be pulled into shared objects from archives
7041           whole_archive_flag_spec=' '
7042           archive_cmds_need_lc=yes
7043           # This is similar to how AIX traditionally builds it's shared libraries.
7044           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7045         fi
7046       fi
7047       ;;
7048
7049     amigaos*)
7050       archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7051       hardcode_libdir_flag_spec='-L$libdir'
7052       hardcode_minus_L=yes
7053       # see comment about different semantics on the GNU ld section
7054       ld_shlibs=no
7055       ;;
7056
7057     bsdi4*)
7058       export_dynamic_flag_spec=-rdynamic
7059       ;;
7060
7061     cygwin* | mingw* | pw32*)
7062       # When not using gcc, we currently assume that we are using
7063       # Microsoft Visual C++.
7064       # hardcode_libdir_flag_spec is actually meaningless, as there is
7065       # no search path for DLLs.
7066       hardcode_libdir_flag_spec=' '
7067       allow_undefined_flag=unsupported
7068       # Tell ltmain to make .lib files, not .a files.
7069       libext=lib
7070       # Tell ltmain to make .dll files, not .so files.
7071       shrext=".dll"
7072       # FIXME: Setting linknames here is a bad hack.
7073       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7074       # The linker will automatically build a .lib file if we build a DLL.
7075       old_archive_From_new_cmds='true'
7076       # FIXME: Should let the user specify the lib program.
7077       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7078       fix_srcfile_path='`cygpath -w "$srcfile"`'
7079       enable_shared_with_static_runtimes=yes
7080       ;;
7081
7082     darwin* | rhapsody*)
7083     if test "$GXX" = yes ; then
7084       archive_cmds_need_lc=no
7085       case "$host_os" in
7086       rhapsody* | darwin1.[012])
7087         allow_undefined_flag='-undefined suppress'
7088         ;;
7089       *) # Darwin 1.3 on
7090       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7091         allow_undefined_flag='-flat_namespace -undefined suppress'
7092       else
7093         case ${MACOSX_DEPLOYMENT_TARGET} in
7094           10.[012])
7095             allow_undefined_flag='-flat_namespace -undefined suppress'
7096             ;;
7097           10.*)
7098             allow_undefined_flag='-undefined dynamic_lookup'
7099             ;;
7100         esac
7101       fi
7102         ;;
7103       esac
7104         lt_int_apple_cc_single_mod=no
7105         output_verbose_link_cmd='echo'
7106         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7107           lt_int_apple_cc_single_mod=yes
7108         fi
7109         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7110           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7111         else
7112         archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7113       fi
7114       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7115       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7116         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7117           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7118         else
7119           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7120         fi
7121           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7122       hardcode_direct=no
7123       hardcode_automatic=yes
7124       hardcode_shlibpath_var=unsupported
7125       whole_archive_flag_spec='-all_load $convenience'
7126       link_all_deplibs=yes
7127     else
7128       ld_shlibs=no
7129     fi
7130       ;;
7131
7132     dgux*)
7133       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7134       hardcode_libdir_flag_spec='-L$libdir'
7135       hardcode_shlibpath_var=no
7136       ;;
7137
7138     freebsd1*)
7139       ld_shlibs=no
7140       ;;
7141
7142     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7143     # support.  Future versions do this automatically, but an explicit c++rt0.o
7144     # does not break anything, and helps significantly (at the cost of a little
7145     # extra space).
7146     freebsd2.2*)
7147       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7148       hardcode_libdir_flag_spec='-R$libdir'
7149       hardcode_direct=yes
7150       hardcode_shlibpath_var=no
7151       ;;
7152
7153     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7154     freebsd2*)
7155       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7156       hardcode_direct=yes
7157       hardcode_minus_L=yes
7158       hardcode_shlibpath_var=no
7159       ;;
7160
7161     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7162     freebsd* | kfreebsd*-gnu)
7163       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7164       hardcode_libdir_flag_spec='-R$libdir'
7165       hardcode_direct=yes
7166       hardcode_shlibpath_var=no
7167       ;;
7168
7169     hpux9*)
7170       if test "$GCC" = yes; then
7171         archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7172       else
7173         archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7174       fi
7175       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7176       hardcode_libdir_separator=:
7177       hardcode_direct=yes
7178
7179       # hardcode_minus_L: Not really in the search PATH,
7180       # but as the default location of the library.
7181       hardcode_minus_L=yes
7182       export_dynamic_flag_spec='${wl}-E'
7183       ;;
7184
7185     hpux10* | hpux11*)
7186       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7187         case "$host_cpu" in
7188         hppa*64*|ia64*)
7189           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7190           ;;
7191         *)
7192           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7193           ;;
7194         esac
7195       else
7196         case "$host_cpu" in
7197         hppa*64*|ia64*)
7198           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7199           ;;
7200         *)
7201           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7202           ;;
7203         esac
7204       fi
7205       if test "$with_gnu_ld" = no; then
7206         case "$host_cpu" in
7207         hppa*64*)
7208           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7209           hardcode_libdir_flag_spec_ld='+b $libdir'
7210           hardcode_libdir_separator=:
7211           hardcode_direct=no
7212           hardcode_shlibpath_var=no
7213           ;;
7214         ia64*)
7215           hardcode_libdir_flag_spec='-L$libdir'
7216           hardcode_direct=no
7217           hardcode_shlibpath_var=no
7218
7219           # hardcode_minus_L: Not really in the search PATH,
7220           # but as the default location of the library.
7221           hardcode_minus_L=yes
7222           ;;
7223         *)
7224           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7225           hardcode_libdir_separator=:
7226           hardcode_direct=yes
7227           export_dynamic_flag_spec='${wl}-E'
7228
7229           # hardcode_minus_L: Not really in the search PATH,
7230           # but as the default location of the library.
7231           hardcode_minus_L=yes
7232           ;;
7233         esac
7234       fi
7235       ;;
7236
7237     irix5* | irix6* | nonstopux*)
7238       if test "$GCC" = yes; then
7239         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7240       else
7241         archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7242         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7243       fi
7244       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7245       hardcode_libdir_separator=:
7246       link_all_deplibs=yes
7247       ;;
7248
7249     netbsd*)
7250       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7251         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7252       else
7253         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7254       fi
7255       hardcode_libdir_flag_spec='-R$libdir'
7256       hardcode_direct=yes
7257       hardcode_shlibpath_var=no
7258       ;;
7259
7260     newsos6)
7261       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7262       hardcode_direct=yes
7263       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7264       hardcode_libdir_separator=:
7265       hardcode_shlibpath_var=no
7266       ;;
7267
7268     openbsd*)
7269       hardcode_direct=yes
7270       hardcode_shlibpath_var=no
7271       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7272         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7273         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7274         export_dynamic_flag_spec='${wl}-E'
7275       else
7276        case $host_os in
7277          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7278            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7279            hardcode_libdir_flag_spec='-R$libdir'
7280            ;;
7281          *)
7282            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7283            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7284            ;;
7285        esac
7286       fi
7287       ;;
7288
7289     os2*)
7290       hardcode_libdir_flag_spec='-L$libdir'
7291       hardcode_minus_L=yes
7292       allow_undefined_flag=unsupported
7293       archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
7294       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7295       ;;
7296
7297     osf3*)
7298       if test "$GCC" = yes; then
7299         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7300         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7301       else
7302         allow_undefined_flag=' -expect_unresolved \*'
7303         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7304       fi
7305       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7306       hardcode_libdir_separator=:
7307       ;;
7308
7309     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7310       if test "$GCC" = yes; then
7311         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7312         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7313         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7314       else
7315         allow_undefined_flag=' -expect_unresolved \*'
7316         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7317         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7318         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7319
7320         # Both c and cxx compiler support -rpath directly
7321         hardcode_libdir_flag_spec='-rpath $libdir'
7322       fi
7323       hardcode_libdir_separator=:
7324       ;;
7325
7326     sco3.2v5*)
7327       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7328       hardcode_shlibpath_var=no
7329       export_dynamic_flag_spec='${wl}-Bexport'
7330       runpath_var=LD_RUN_PATH
7331       hardcode_runpath_var=yes
7332       ;;
7333
7334     solaris*)
7335       no_undefined_flag=' -z text'
7336       if test "$GCC" = yes; then
7337         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7338         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7339           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7340       else
7341         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7342         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7343         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7344       fi
7345       hardcode_libdir_flag_spec='-R$libdir'
7346       hardcode_shlibpath_var=no
7347       case $host_os in
7348       solaris2.[0-5] | solaris2.[0-5].*) ;;
7349       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7350         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7351       esac
7352       link_all_deplibs=yes
7353       ;;
7354
7355     sunos4*)
7356       if test "x$host_vendor" = xsequent; then
7357         # Use $CC to link under sequent, because it throws in some extra .o
7358         # files that make .init and .fini sections work.
7359         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7360       else
7361         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7362       fi
7363       hardcode_libdir_flag_spec='-L$libdir'
7364       hardcode_direct=yes
7365       hardcode_minus_L=yes
7366       hardcode_shlibpath_var=no
7367       ;;
7368
7369     sysv4)
7370       case $host_vendor in
7371         sni)
7372           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7373           hardcode_direct=yes # is this really true???
7374         ;;
7375         siemens)
7376           ## LD is ld it makes a PLAMLIB
7377           ## CC just makes a GrossModule.
7378           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7379           reload_cmds='$CC -r -o $output$reload_objs'
7380           hardcode_direct=no
7381         ;;
7382         motorola)
7383           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7384           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7385         ;;
7386       esac
7387       runpath_var='LD_RUN_PATH'
7388       hardcode_shlibpath_var=no
7389       ;;
7390
7391     sysv4.3*)
7392       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7393       hardcode_shlibpath_var=no
7394       export_dynamic_flag_spec='-Bexport'
7395       ;;
7396
7397     sysv4*MP*)
7398       if test -d /usr/nec; then
7399         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7400         hardcode_shlibpath_var=no
7401         runpath_var=LD_RUN_PATH
7402         hardcode_runpath_var=yes
7403         ld_shlibs=yes
7404       fi
7405       ;;
7406
7407     sysv4.2uw2*)
7408       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7409       hardcode_direct=yes
7410       hardcode_minus_L=no
7411       hardcode_shlibpath_var=no
7412       hardcode_runpath_var=yes
7413       runpath_var=LD_RUN_PATH
7414       ;;
7415
7416    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7417       no_undefined_flag='${wl}-z ${wl}text'
7418       if test "$GCC" = yes; then
7419         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7420       else
7421         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7422       fi
7423       runpath_var='LD_RUN_PATH'
7424       hardcode_shlibpath_var=no
7425       ;;
7426
7427     sysv5*)
7428       no_undefined_flag=' -z text'
7429       # $CC -shared without GNU ld will not create a library from C++
7430       # object files and a static libstdc++, better avoid it by now
7431       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7432       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7433                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7434       hardcode_libdir_flag_spec=
7435       hardcode_shlibpath_var=no
7436       runpath_var='LD_RUN_PATH'
7437       ;;
7438
7439     uts4*)
7440       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7441       hardcode_libdir_flag_spec='-L$libdir'
7442       hardcode_shlibpath_var=no
7443       ;;
7444
7445     *)
7446       ld_shlibs=no
7447       ;;
7448     esac
7449   fi
7450
7451 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7452 echo "${ECHO_T}$ld_shlibs" >&6
7453 test "$ld_shlibs" = no && can_build_shared=no
7454
7455 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7456 if test "$GCC" = yes; then
7457   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7458 fi
7459
7460 #
7461 # Do we need to explicitly link libc?
7462 #
7463 case "x$archive_cmds_need_lc" in
7464 x|xyes)
7465   # Assume -lc should be added
7466   archive_cmds_need_lc=yes
7467
7468   if test "$enable_shared" = yes && test "$GCC" = yes; then
7469     case $archive_cmds in
7470     *'~'*)
7471       # FIXME: we may have to deal with multi-command sequences.
7472       ;;
7473     '$CC '*)
7474       # Test whether the compiler implicitly links with -lc since on some
7475       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7476       # to ld, don't add -lc before -lgcc.
7477       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7478 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7479       $rm conftest*
7480       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7481
7482       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7483   (eval $ac_compile) 2>&5
7484   ac_status=$?
7485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486   (exit $ac_status); } 2>conftest.err; then
7487         soname=conftest
7488         lib=conftest
7489         libobjs=conftest.$ac_objext
7490         deplibs=
7491         wl=$lt_prog_compiler_wl
7492         compiler_flags=-v
7493         linker_flags=-v
7494         verstring=
7495         output_objdir=.
7496         libname=conftest
7497         lt_save_allow_undefined_flag=$allow_undefined_flag
7498         allow_undefined_flag=
7499         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7500   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7501   ac_status=$?
7502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503   (exit $ac_status); }
7504         then
7505           archive_cmds_need_lc=no
7506         else
7507           archive_cmds_need_lc=yes
7508         fi
7509         allow_undefined_flag=$lt_save_allow_undefined_flag
7510       else
7511         cat conftest.err 1>&5
7512       fi
7513       $rm conftest*
7514       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7515 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7516       ;;
7517     esac
7518   fi
7519   ;;
7520 esac
7521
7522 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7523 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7524 library_names_spec=
7525 libname_spec='lib$name'
7526 soname_spec=
7527 shrext=".so"
7528 postinstall_cmds=
7529 postuninstall_cmds=
7530 finish_cmds=
7531 finish_eval=
7532 shlibpath_var=
7533 shlibpath_overrides_runpath=unknown
7534 version_type=none
7535 dynamic_linker="$host_os ld.so"
7536 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7537 if test "$GCC" = yes; then
7538   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7539   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7540     # if the path contains ";" then we assume it to be the separator
7541     # otherwise default to the standard path separator (i.e. ":") - it is
7542     # assumed that no part of a normal pathname contains ";" but that should
7543     # okay in the real world where ";" in dirpaths is itself problematic.
7544     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7545   else
7546     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7547   fi
7548 else
7549   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7550 fi
7551 need_lib_prefix=unknown
7552 hardcode_into_libs=no
7553
7554 # when you set need_version to no, make sure it does not cause -set_version
7555 # flags to be left without arguments
7556 need_version=unknown
7557
7558 case $host_os in
7559 aix3*)
7560   version_type=linux
7561   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7562   shlibpath_var=LIBPATH
7563
7564   # AIX 3 has no versioning support, so we append a major version to the name.
7565   soname_spec='${libname}${release}${shared_ext}$major'
7566   ;;
7567
7568 aix4* | aix5*)
7569   version_type=linux
7570   need_lib_prefix=no
7571   need_version=no
7572   hardcode_into_libs=yes
7573   if test "$host_cpu" = ia64; then
7574     # AIX 5 supports IA64
7575     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7576     shlibpath_var=LD_LIBRARY_PATH
7577   else
7578     # With GCC up to 2.95.x, collect2 would create an import file
7579     # for dependence libraries.  The import file would start with
7580     # the line `#! .'.  This would cause the generated library to
7581     # depend on `.', always an invalid library.  This was fixed in
7582     # development snapshots of GCC prior to 3.0.
7583     case $host_os in
7584       aix4 | aix4.[01] | aix4.[01].*)
7585       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7586            echo ' yes '
7587            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7588         :
7589       else
7590         can_build_shared=no
7591       fi
7592       ;;
7593     esac
7594     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7595     # soname into executable. Probably we can add versioning support to
7596     # collect2, so additional links can be useful in future.
7597     if test "$aix_use_runtimelinking" = yes; then
7598       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7599       # instead of lib<name>.a to let people know that these are not
7600       # typical AIX shared libraries.
7601       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7602     else
7603       # We preserve .a as extension for shared libraries through AIX4.2
7604       # and later when we are not doing run time linking.
7605       library_names_spec='${libname}${release}.a $libname.a'
7606       soname_spec='${libname}${release}${shared_ext}$major'
7607     fi
7608     shlibpath_var=LIBPATH
7609   fi
7610   ;;
7611
7612 amigaos*)
7613   library_names_spec='$libname.ixlibrary $libname.a'
7614   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7615   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
7616   ;;
7617
7618 beos*)
7619   library_names_spec='${libname}${shared_ext}'
7620   dynamic_linker="$host_os ld.so"
7621   shlibpath_var=LIBRARY_PATH
7622   ;;
7623
7624 bsdi4*)
7625   version_type=linux
7626   need_version=no
7627   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7628   soname_spec='${libname}${release}${shared_ext}$major'
7629   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7630   shlibpath_var=LD_LIBRARY_PATH
7631   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7632   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7633   # the default ld.so.conf also contains /usr/contrib/lib and
7634   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7635   # libtool to hard-code these into programs
7636   ;;
7637
7638 cygwin* | mingw* | pw32*)
7639   version_type=windows
7640   shrext=".dll"
7641   need_version=no
7642   need_lib_prefix=no
7643
7644   case $GCC,$host_os in
7645   yes,cygwin* | yes,mingw* | yes,pw32*)
7646     library_names_spec='$libname.dll.a'
7647     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7648     postinstall_cmds='base_file=`basename \${file}`~
7649       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7650       dldir=$destdir/`dirname \$dlpath`~
7651       test -d \$dldir || mkdir -p \$dldir~
7652       $install_prog $dir/$dlname \$dldir/$dlname'
7653     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7654       dlpath=$dir/\$dldll~
7655        $rm \$dlpath'
7656     shlibpath_overrides_runpath=yes
7657
7658     case $host_os in
7659     cygwin*)
7660       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7661       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7662       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7663       ;;
7664     mingw*)
7665       # MinGW DLLs use traditional 'lib' prefix
7666       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7667       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7668       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7669         # It is most probably a Windows format PATH printed by
7670         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7671         # path with ; separators, and with drive letters. We can handle the
7672         # drive letters (cygwin fileutils understands them), so leave them,
7673         # especially as we might pass files found there to a mingw objdump,
7674         # which wouldn't understand a cygwinified path. Ahh.
7675         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7676       else
7677         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7678       fi
7679       ;;
7680     pw32*)
7681       # pw32 DLLs use 'pw' prefix rather than 'lib'
7682       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7683       ;;
7684     esac
7685     ;;
7686
7687   *)
7688     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7689     ;;
7690   esac
7691   dynamic_linker='Win32 ld.exe'
7692   # FIXME: first we should search . and the directory the executable is in
7693   shlibpath_var=PATH
7694   ;;
7695
7696 darwin* | rhapsody*)
7697   dynamic_linker="$host_os dyld"
7698   version_type=darwin
7699   need_lib_prefix=no
7700   need_version=no
7701   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7702   soname_spec='${libname}${release}${major}$shared_ext'
7703   shlibpath_overrides_runpath=yes
7704   shlibpath_var=DYLD_LIBRARY_PATH
7705   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7706   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7707   if test "$GCC" = yes; then
7708     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7709   else
7710     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7711   fi
7712   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7713   ;;
7714
7715 dgux*)
7716   version_type=linux
7717   need_lib_prefix=no
7718   need_version=no
7719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7720   soname_spec='${libname}${release}${shared_ext}$major'
7721   shlibpath_var=LD_LIBRARY_PATH
7722   ;;
7723
7724 freebsd1*)
7725   dynamic_linker=no
7726   ;;
7727
7728 kfreebsd*-gnu)
7729   version_type=linux
7730   need_lib_prefix=no
7731   need_version=no
7732   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7733   soname_spec='${libname}${release}${shared_ext}$major'
7734   shlibpath_var=LD_LIBRARY_PATH
7735   shlibpath_overrides_runpath=no
7736   hardcode_into_libs=yes
7737   dynamic_linker='GNU ld.so'
7738   ;;
7739
7740 freebsd*)
7741   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7742   version_type=freebsd-$objformat
7743   case $version_type in
7744     freebsd-elf*)
7745       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7746       need_version=no
7747       need_lib_prefix=no
7748       ;;
7749     freebsd-*)
7750       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7751       need_version=yes
7752       ;;
7753   esac
7754   shlibpath_var=LD_LIBRARY_PATH
7755   case $host_os in
7756   freebsd2*)
7757     shlibpath_overrides_runpath=yes
7758     ;;
7759   freebsd3.01* | freebsdelf3.01*)
7760     shlibpath_overrides_runpath=yes
7761     hardcode_into_libs=yes
7762     ;;
7763   *) # from 3.2 on
7764     shlibpath_overrides_runpath=no
7765     hardcode_into_libs=yes
7766     ;;
7767   esac
7768   ;;
7769
7770 gnu*)
7771   version_type=linux
7772   need_lib_prefix=no
7773   need_version=no
7774   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7775   soname_spec='${libname}${release}${shared_ext}$major'
7776   shlibpath_var=LD_LIBRARY_PATH
7777   hardcode_into_libs=yes
7778   ;;
7779
7780 hpux9* | hpux10* | hpux11*)
7781   # Give a soname corresponding to the major version so that dld.sl refuses to
7782   # link against other versions.
7783   version_type=sunos
7784   need_lib_prefix=no
7785   need_version=no
7786   case "$host_cpu" in
7787   ia64*)
7788     shrext='.so'
7789     hardcode_into_libs=yes
7790     dynamic_linker="$host_os dld.so"
7791     shlibpath_var=LD_LIBRARY_PATH
7792     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7793     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7794     soname_spec='${libname}${release}${shared_ext}$major'
7795     if test "X$HPUX_IA64_MODE" = X32; then
7796       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7797     else
7798       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7799     fi
7800     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7801     ;;
7802    hppa*64*)
7803      shrext='.sl'
7804      hardcode_into_libs=yes
7805      dynamic_linker="$host_os dld.sl"
7806      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7807      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7808      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7809      soname_spec='${libname}${release}${shared_ext}$major'
7810      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7811      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7812      ;;
7813    *)
7814     shrext='.sl'
7815     dynamic_linker="$host_os dld.sl"
7816     shlibpath_var=SHLIB_PATH
7817     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7818     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7819     soname_spec='${libname}${release}${shared_ext}$major'
7820     ;;
7821   esac
7822   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7823   postinstall_cmds='chmod 555 $lib'
7824   ;;
7825
7826 irix5* | irix6* | nonstopux*)
7827   case $host_os in
7828     nonstopux*) version_type=nonstopux ;;
7829     *)
7830         if test "$lt_cv_prog_gnu_ld" = yes; then
7831                 version_type=linux
7832         else
7833                 version_type=irix
7834         fi ;;
7835   esac
7836   need_lib_prefix=no
7837   need_version=no
7838   soname_spec='${libname}${release}${shared_ext}$major'
7839   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7840   case $host_os in
7841   irix5* | nonstopux*)
7842     libsuff= shlibsuff=
7843     ;;
7844   *)
7845     case $LD in # libtool.m4 will add one of these switches to LD
7846     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7847       libsuff= shlibsuff= libmagic=32-bit;;
7848     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7849       libsuff=32 shlibsuff=N32 libmagic=N32;;
7850     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7851       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7852     *) libsuff= shlibsuff= libmagic=never-match;;
7853     esac
7854     ;;
7855   esac
7856   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7857   shlibpath_overrides_runpath=no
7858   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7859   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7860   hardcode_into_libs=yes
7861   ;;
7862
7863 # No shared lib support for Linux oldld, aout, or coff.
7864 linux*oldld* | linux*aout* | linux*coff*)
7865   dynamic_linker=no
7866   ;;
7867
7868 # This must be Linux ELF.
7869 linux*)
7870   version_type=linux
7871   need_lib_prefix=no
7872   need_version=no
7873   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7874   soname_spec='${libname}${release}${shared_ext}$major'
7875   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7876   shlibpath_var=LD_LIBRARY_PATH
7877   shlibpath_overrides_runpath=no
7878   # This implies no fast_install, which is unacceptable.
7879   # Some rework will be needed to allow for fast_install
7880   # before this can be enabled.
7881   hardcode_into_libs=yes
7882
7883   # Append ld.so.conf contents to the search path
7884   if test -f /etc/ld.so.conf; then
7885     ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
7886     sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
7887   fi
7888
7889   # We used to test for /lib/ld.so.1 and disable shared libraries on
7890   # powerpc, because MkLinux only supported shared libraries with the
7891   # GNU dynamic linker.  Since this was broken with cross compilers,
7892   # most powerpc-linux boxes support dynamic linking these days and
7893   # people can always --disable-shared, the test was removed, and we
7894   # assume the GNU/Linux dynamic linker is in use.
7895   dynamic_linker='GNU/Linux ld.so'
7896   ;;
7897
7898 knetbsd*-gnu)
7899   version_type=linux
7900   need_lib_prefix=no
7901   need_version=no
7902   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7903   soname_spec='${libname}${release}${shared_ext}$major'
7904   shlibpath_var=LD_LIBRARY_PATH
7905   shlibpath_overrides_runpath=no
7906   hardcode_into_libs=yes
7907   dynamic_linker='GNU ld.so'
7908   ;;
7909
7910 netbsd*)
7911   version_type=sunos
7912   need_lib_prefix=no
7913   need_version=no
7914   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7915     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7916     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7917     dynamic_linker='NetBSD (a.out) ld.so'
7918   else
7919     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7920     soname_spec='${libname}${release}${shared_ext}$major'
7921     dynamic_linker='NetBSD ld.elf_so'
7922   fi
7923   shlibpath_var=LD_LIBRARY_PATH
7924   shlibpath_overrides_runpath=yes
7925   hardcode_into_libs=yes
7926   ;;
7927
7928 newsos6)
7929   version_type=linux
7930   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7931   shlibpath_var=LD_LIBRARY_PATH
7932   shlibpath_overrides_runpath=yes
7933   ;;
7934
7935 nto-qnx*)
7936   version_type=linux
7937   need_lib_prefix=no
7938   need_version=no
7939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7940   soname_spec='${libname}${release}${shared_ext}$major'
7941   shlibpath_var=LD_LIBRARY_PATH
7942   shlibpath_overrides_runpath=yes
7943   ;;
7944
7945 openbsd*)
7946   version_type=sunos
7947   need_lib_prefix=no
7948   need_version=yes
7949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7950   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7951   shlibpath_var=LD_LIBRARY_PATH
7952   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7953     case $host_os in
7954       openbsd2.[89] | openbsd2.[89].*)
7955         shlibpath_overrides_runpath=no
7956         ;;
7957       *)
7958         shlibpath_overrides_runpath=yes
7959         ;;
7960       esac
7961   else
7962     shlibpath_overrides_runpath=yes
7963   fi
7964   ;;
7965
7966 os2*)
7967   libname_spec='$name'
7968   shrext=".dll"
7969   need_lib_prefix=no
7970   library_names_spec='$libname${shared_ext} $libname.a'
7971   dynamic_linker='OS/2 ld.exe'
7972   shlibpath_var=LIBPATH
7973   ;;
7974
7975 osf3* | osf4* | osf5*)
7976   version_type=osf
7977   need_lib_prefix=no
7978   need_version=no
7979   soname_spec='${libname}${release}${shared_ext}$major'
7980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7981   shlibpath_var=LD_LIBRARY_PATH
7982   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7983   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7984   ;;
7985
7986 sco3.2v5*)
7987   version_type=osf
7988   soname_spec='${libname}${release}${shared_ext}$major'
7989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7990   shlibpath_var=LD_LIBRARY_PATH
7991   ;;
7992
7993 solaris*)
7994   version_type=linux
7995   need_lib_prefix=no
7996   need_version=no
7997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7998   soname_spec='${libname}${release}${shared_ext}$major'
7999   shlibpath_var=LD_LIBRARY_PATH
8000   shlibpath_overrides_runpath=yes
8001   hardcode_into_libs=yes
8002   # ldd complains unless libraries are executable
8003   postinstall_cmds='chmod +x $lib'
8004   ;;
8005
8006 sunos4*)
8007   version_type=sunos
8008   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8009   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8010   shlibpath_var=LD_LIBRARY_PATH
8011   shlibpath_overrides_runpath=yes
8012   if test "$with_gnu_ld" = yes; then
8013     need_lib_prefix=no
8014   fi
8015   need_version=yes
8016   ;;
8017
8018 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8019   version_type=linux
8020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8021   soname_spec='${libname}${release}${shared_ext}$major'
8022   shlibpath_var=LD_LIBRARY_PATH
8023   case $host_vendor in
8024     sni)
8025       shlibpath_overrides_runpath=no
8026       need_lib_prefix=no
8027       export_dynamic_flag_spec='${wl}-Blargedynsym'
8028       runpath_var=LD_RUN_PATH
8029       ;;
8030     siemens)
8031       need_lib_prefix=no
8032       ;;
8033     motorola)
8034       need_lib_prefix=no
8035       need_version=no
8036       shlibpath_overrides_runpath=no
8037       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8038       ;;
8039   esac
8040   ;;
8041
8042 sysv4*MP*)
8043   if test -d /usr/nec ;then
8044     version_type=linux
8045     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8046     soname_spec='$libname${shared_ext}.$major'
8047     shlibpath_var=LD_LIBRARY_PATH
8048   fi
8049   ;;
8050
8051 uts4*)
8052   version_type=linux
8053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8054   soname_spec='${libname}${release}${shared_ext}$major'
8055   shlibpath_var=LD_LIBRARY_PATH
8056   ;;
8057
8058 *)
8059   dynamic_linker=no
8060   ;;
8061 esac
8062 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8063 echo "${ECHO_T}$dynamic_linker" >&6
8064 test "$dynamic_linker" = no && can_build_shared=no
8065
8066 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8067 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8068 hardcode_action=
8069 if test -n "$hardcode_libdir_flag_spec" || \
8070    test -n "$runpath_var " || \
8071    test "X$hardcode_automatic"="Xyes" ; then
8072
8073   # We can hardcode non-existant directories.
8074   if test "$hardcode_direct" != no &&
8075      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8076      # have to relink, otherwise we might link with an installed library
8077      # when we should be linking with a yet-to-be-installed one
8078      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8079      test "$hardcode_minus_L" != no; then
8080     # Linking always hardcodes the temporary library directory.
8081     hardcode_action=relink
8082   else
8083     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8084     hardcode_action=immediate
8085   fi
8086 else
8087   # We cannot hardcode anything, or else we can only hardcode existing
8088   # directories.
8089   hardcode_action=unsupported
8090 fi
8091 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8092 echo "${ECHO_T}$hardcode_action" >&6
8093
8094 if test "$hardcode_action" = relink; then
8095   # Fast installation is not supported
8096   enable_fast_install=no
8097 elif test "$shlibpath_overrides_runpath" = yes ||
8098      test "$enable_shared" = no; then
8099   # Fast installation is not necessary
8100   enable_fast_install=needless
8101 fi
8102
8103 striplib=
8104 old_striplib=
8105 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8106 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8107 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8108   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8109   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8110   echo "$as_me:$LINENO: result: yes" >&5
8111 echo "${ECHO_T}yes" >&6
8112 else
8113 # FIXME - insert some real tests, host_os isn't really good enough
8114   case $host_os in
8115    darwin*)
8116        if test -n "$STRIP" ; then
8117          striplib="$STRIP -x"
8118          echo "$as_me:$LINENO: result: yes" >&5
8119 echo "${ECHO_T}yes" >&6
8120        else
8121   echo "$as_me:$LINENO: result: no" >&5
8122 echo "${ECHO_T}no" >&6
8123 fi
8124        ;;
8125    *)
8126   echo "$as_me:$LINENO: result: no" >&5
8127 echo "${ECHO_T}no" >&6
8128     ;;
8129   esac
8130 fi
8131
8132 if test "x$enable_dlopen" != xyes; then
8133   enable_dlopen=unknown
8134   enable_dlopen_self=unknown
8135   enable_dlopen_self_static=unknown
8136 else
8137   lt_cv_dlopen=no
8138   lt_cv_dlopen_libs=
8139
8140   case $host_os in
8141   beos*)
8142     lt_cv_dlopen="load_add_on"
8143     lt_cv_dlopen_libs=
8144     lt_cv_dlopen_self=yes
8145     ;;
8146
8147   mingw* | pw32*)
8148     lt_cv_dlopen="LoadLibrary"
8149     lt_cv_dlopen_libs=
8150    ;;
8151
8152   cygwin*)
8153     lt_cv_dlopen="dlopen"
8154     lt_cv_dlopen_libs=
8155    ;;
8156
8157   darwin*)
8158   # if libdl is installed we need to link against it
8159     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8160 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8161 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8162   echo $ECHO_N "(cached) $ECHO_C" >&6
8163 else
8164   ac_check_lib_save_LIBS=$LIBS
8165 LIBS="-ldl  $LIBS"
8166 cat >conftest.$ac_ext <<_ACEOF
8167 /* confdefs.h.  */
8168 _ACEOF
8169 cat confdefs.h >>conftest.$ac_ext
8170 cat >>conftest.$ac_ext <<_ACEOF
8171 /* end confdefs.h.  */
8172
8173 /* Override any gcc2 internal prototype to avoid an error.  */
8174 #ifdef __cplusplus
8175 extern "C"
8176 #endif
8177 /* We use char because int might match the return type of a gcc2
8178    builtin and then its argument prototype would still apply.  */
8179 char dlopen ();
8180 int
8181 main ()
8182 {
8183 dlopen ();
8184   ;
8185   return 0;
8186 }
8187 _ACEOF
8188 rm -f conftest.$ac_objext conftest$ac_exeext
8189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8190   (eval $ac_link) 2>conftest.er1
8191   ac_status=$?
8192   grep -v '^ *+' conftest.er1 >conftest.err
8193   rm -f conftest.er1
8194   cat conftest.err >&5
8195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196   (exit $ac_status); } &&
8197          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8199   (eval $ac_try) 2>&5
8200   ac_status=$?
8201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202   (exit $ac_status); }; } &&
8203          { ac_try='test -s conftest$ac_exeext'
8204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8205   (eval $ac_try) 2>&5
8206   ac_status=$?
8207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208   (exit $ac_status); }; }; then
8209   ac_cv_lib_dl_dlopen=yes
8210 else
8211   echo "$as_me: failed program was:" >&5
8212 sed 's/^/| /' conftest.$ac_ext >&5
8213
8214 ac_cv_lib_dl_dlopen=no
8215 fi
8216 rm -f conftest.err conftest.$ac_objext \
8217       conftest$ac_exeext conftest.$ac_ext
8218 LIBS=$ac_check_lib_save_LIBS
8219 fi
8220 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8221 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8222 if test $ac_cv_lib_dl_dlopen = yes; then
8223   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8224 else
8225
8226     lt_cv_dlopen="dyld"
8227     lt_cv_dlopen_libs=
8228     lt_cv_dlopen_self=yes
8229
8230 fi
8231
8232    ;;
8233
8234   *)
8235     echo "$as_me:$LINENO: checking for shl_load" >&5
8236 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8237 if test "${ac_cv_func_shl_load+set}" = set; then
8238   echo $ECHO_N "(cached) $ECHO_C" >&6
8239 else
8240   cat >conftest.$ac_ext <<_ACEOF
8241 /* confdefs.h.  */
8242 _ACEOF
8243 cat confdefs.h >>conftest.$ac_ext
8244 cat >>conftest.$ac_ext <<_ACEOF
8245 /* end confdefs.h.  */
8246 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8247    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8248 #define shl_load innocuous_shl_load
8249
8250 /* System header to define __stub macros and hopefully few prototypes,
8251     which can conflict with char shl_load (); below.
8252     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8253     <limits.h> exists even on freestanding compilers.  */
8254
8255 #ifdef __STDC__
8256 # include <limits.h>
8257 #else
8258 # include <assert.h>
8259 #endif
8260
8261 #undef shl_load
8262
8263 /* Override any gcc2 internal prototype to avoid an error.  */
8264 #ifdef __cplusplus
8265 extern "C"
8266 {
8267 #endif
8268 /* We use char because int might match the return type of a gcc2
8269    builtin and then its argument prototype would still apply.  */
8270 char shl_load ();
8271 /* The GNU C library defines this for functions which it implements
8272     to always fail with ENOSYS.  Some functions are actually named
8273     something starting with __ and the normal name is an alias.  */
8274 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8275 choke me
8276 #else
8277 char (*f) () = shl_load;
8278 #endif
8279 #ifdef __cplusplus
8280 }
8281 #endif
8282
8283 int
8284 main ()
8285 {
8286 return f != shl_load;
8287   ;
8288   return 0;
8289 }
8290 _ACEOF
8291 rm -f conftest.$ac_objext conftest$ac_exeext
8292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8293   (eval $ac_link) 2>conftest.er1
8294   ac_status=$?
8295   grep -v '^ *+' conftest.er1 >conftest.err
8296   rm -f conftest.er1
8297   cat conftest.err >&5
8298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299   (exit $ac_status); } &&
8300          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8302   (eval $ac_try) 2>&5
8303   ac_status=$?
8304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305   (exit $ac_status); }; } &&
8306          { ac_try='test -s conftest$ac_exeext'
8307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8308   (eval $ac_try) 2>&5
8309   ac_status=$?
8310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311   (exit $ac_status); }; }; then
8312   ac_cv_func_shl_load=yes
8313 else
8314   echo "$as_me: failed program was:" >&5
8315 sed 's/^/| /' conftest.$ac_ext >&5
8316
8317 ac_cv_func_shl_load=no
8318 fi
8319 rm -f conftest.err conftest.$ac_objext \
8320       conftest$ac_exeext conftest.$ac_ext
8321 fi
8322 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8323 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8324 if test $ac_cv_func_shl_load = yes; then
8325   lt_cv_dlopen="shl_load"
8326 else
8327   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8328 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8329 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8330   echo $ECHO_N "(cached) $ECHO_C" >&6
8331 else
8332   ac_check_lib_save_LIBS=$LIBS
8333 LIBS="-ldld  $LIBS"
8334 cat >conftest.$ac_ext <<_ACEOF
8335 /* confdefs.h.  */
8336 _ACEOF
8337 cat confdefs.h >>conftest.$ac_ext
8338 cat >>conftest.$ac_ext <<_ACEOF
8339 /* end confdefs.h.  */
8340
8341 /* Override any gcc2 internal prototype to avoid an error.  */
8342 #ifdef __cplusplus
8343 extern "C"
8344 #endif
8345 /* We use char because int might match the return type of a gcc2
8346    builtin and then its argument prototype would still apply.  */
8347 char shl_load ();
8348 int
8349 main ()
8350 {
8351 shl_load ();
8352   ;
8353   return 0;
8354 }
8355 _ACEOF
8356 rm -f conftest.$ac_objext conftest$ac_exeext
8357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8358   (eval $ac_link) 2>conftest.er1
8359   ac_status=$?
8360   grep -v '^ *+' conftest.er1 >conftest.err
8361   rm -f conftest.er1
8362   cat conftest.err >&5
8363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364   (exit $ac_status); } &&
8365          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8367   (eval $ac_try) 2>&5
8368   ac_status=$?
8369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370   (exit $ac_status); }; } &&
8371          { ac_try='test -s conftest$ac_exeext'
8372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8373   (eval $ac_try) 2>&5
8374   ac_status=$?
8375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376   (exit $ac_status); }; }; then
8377   ac_cv_lib_dld_shl_load=yes
8378 else
8379   echo "$as_me: failed program was:" >&5
8380 sed 's/^/| /' conftest.$ac_ext >&5
8381
8382 ac_cv_lib_dld_shl_load=no
8383 fi
8384 rm -f conftest.err conftest.$ac_objext \
8385       conftest$ac_exeext conftest.$ac_ext
8386 LIBS=$ac_check_lib_save_LIBS
8387 fi
8388 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8389 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8390 if test $ac_cv_lib_dld_shl_load = yes; then
8391   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8392 else
8393   echo "$as_me:$LINENO: checking for dlopen" >&5
8394 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8395 if test "${ac_cv_func_dlopen+set}" = set; then
8396   echo $ECHO_N "(cached) $ECHO_C" >&6
8397 else
8398   cat >conftest.$ac_ext <<_ACEOF
8399 /* confdefs.h.  */
8400 _ACEOF
8401 cat confdefs.h >>conftest.$ac_ext
8402 cat >>conftest.$ac_ext <<_ACEOF
8403 /* end confdefs.h.  */
8404 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8405    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8406 #define dlopen innocuous_dlopen
8407
8408 /* System header to define __stub macros and hopefully few prototypes,
8409     which can conflict with char dlopen (); below.
8410     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8411     <limits.h> exists even on freestanding compilers.  */
8412
8413 #ifdef __STDC__
8414 # include <limits.h>
8415 #else
8416 # include <assert.h>
8417 #endif
8418
8419 #undef dlopen
8420
8421 /* Override any gcc2 internal prototype to avoid an error.  */
8422 #ifdef __cplusplus
8423 extern "C"
8424 {
8425 #endif
8426 /* We use char because int might match the return type of a gcc2
8427    builtin and then its argument prototype would still apply.  */
8428 char dlopen ();
8429 /* The GNU C library defines this for functions which it implements
8430     to always fail with ENOSYS.  Some functions are actually named
8431     something starting with __ and the normal name is an alias.  */
8432 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8433 choke me
8434 #else
8435 char (*f) () = dlopen;
8436 #endif
8437 #ifdef __cplusplus
8438 }
8439 #endif
8440
8441 int
8442 main ()
8443 {
8444 return f != dlopen;
8445   ;
8446   return 0;
8447 }
8448 _ACEOF
8449 rm -f conftest.$ac_objext conftest$ac_exeext
8450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8451   (eval $ac_link) 2>conftest.er1
8452   ac_status=$?
8453   grep -v '^ *+' conftest.er1 >conftest.err
8454   rm -f conftest.er1
8455   cat conftest.err >&5
8456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457   (exit $ac_status); } &&
8458          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8460   (eval $ac_try) 2>&5
8461   ac_status=$?
8462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463   (exit $ac_status); }; } &&
8464          { ac_try='test -s conftest$ac_exeext'
8465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8466   (eval $ac_try) 2>&5
8467   ac_status=$?
8468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469   (exit $ac_status); }; }; then
8470   ac_cv_func_dlopen=yes
8471 else
8472   echo "$as_me: failed program was:" >&5
8473 sed 's/^/| /' conftest.$ac_ext >&5
8474
8475 ac_cv_func_dlopen=no
8476 fi
8477 rm -f conftest.err conftest.$ac_objext \
8478       conftest$ac_exeext conftest.$ac_ext
8479 fi
8480 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8481 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8482 if test $ac_cv_func_dlopen = yes; then
8483   lt_cv_dlopen="dlopen"
8484 else
8485   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8486 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8487 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8488   echo $ECHO_N "(cached) $ECHO_C" >&6
8489 else
8490   ac_check_lib_save_LIBS=$LIBS
8491 LIBS="-ldl  $LIBS"
8492 cat >conftest.$ac_ext <<_ACEOF
8493 /* confdefs.h.  */
8494 _ACEOF
8495 cat confdefs.h >>conftest.$ac_ext
8496 cat >>conftest.$ac_ext <<_ACEOF
8497 /* end confdefs.h.  */
8498
8499 /* Override any gcc2 internal prototype to avoid an error.  */
8500 #ifdef __cplusplus
8501 extern "C"
8502 #endif
8503 /* We use char because int might match the return type of a gcc2
8504    builtin and then its argument prototype would still apply.  */
8505 char dlopen ();
8506 int
8507 main ()
8508 {
8509 dlopen ();
8510   ;
8511   return 0;
8512 }
8513 _ACEOF
8514 rm -f conftest.$ac_objext conftest$ac_exeext
8515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8516   (eval $ac_link) 2>conftest.er1
8517   ac_status=$?
8518   grep -v '^ *+' conftest.er1 >conftest.err
8519   rm -f conftest.er1
8520   cat conftest.err >&5
8521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522   (exit $ac_status); } &&
8523          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8525   (eval $ac_try) 2>&5
8526   ac_status=$?
8527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528   (exit $ac_status); }; } &&
8529          { ac_try='test -s conftest$ac_exeext'
8530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8531   (eval $ac_try) 2>&5
8532   ac_status=$?
8533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534   (exit $ac_status); }; }; then
8535   ac_cv_lib_dl_dlopen=yes
8536 else
8537   echo "$as_me: failed program was:" >&5
8538 sed 's/^/| /' conftest.$ac_ext >&5
8539
8540 ac_cv_lib_dl_dlopen=no
8541 fi
8542 rm -f conftest.err conftest.$ac_objext \
8543       conftest$ac_exeext conftest.$ac_ext
8544 LIBS=$ac_check_lib_save_LIBS
8545 fi
8546 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8547 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8548 if test $ac_cv_lib_dl_dlopen = yes; then
8549   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8550 else
8551   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8552 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8553 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8554   echo $ECHO_N "(cached) $ECHO_C" >&6
8555 else
8556   ac_check_lib_save_LIBS=$LIBS
8557 LIBS="-lsvld  $LIBS"
8558 cat >conftest.$ac_ext <<_ACEOF
8559 /* confdefs.h.  */
8560 _ACEOF
8561 cat confdefs.h >>conftest.$ac_ext
8562 cat >>conftest.$ac_ext <<_ACEOF
8563 /* end confdefs.h.  */
8564
8565 /* Override any gcc2 internal prototype to avoid an error.  */
8566 #ifdef __cplusplus
8567 extern "C"
8568 #endif
8569 /* We use char because int might match the return type of a gcc2
8570    builtin and then its argument prototype would still apply.  */
8571 char dlopen ();
8572 int
8573 main ()
8574 {
8575 dlopen ();
8576   ;
8577   return 0;
8578 }
8579 _ACEOF
8580 rm -f conftest.$ac_objext conftest$ac_exeext
8581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8582   (eval $ac_link) 2>conftest.er1
8583   ac_status=$?
8584   grep -v '^ *+' conftest.er1 >conftest.err
8585   rm -f conftest.er1
8586   cat conftest.err >&5
8587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588   (exit $ac_status); } &&
8589          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8591   (eval $ac_try) 2>&5
8592   ac_status=$?
8593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594   (exit $ac_status); }; } &&
8595          { ac_try='test -s conftest$ac_exeext'
8596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8597   (eval $ac_try) 2>&5
8598   ac_status=$?
8599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600   (exit $ac_status); }; }; then
8601   ac_cv_lib_svld_dlopen=yes
8602 else
8603   echo "$as_me: failed program was:" >&5
8604 sed 's/^/| /' conftest.$ac_ext >&5
8605
8606 ac_cv_lib_svld_dlopen=no
8607 fi
8608 rm -f conftest.err conftest.$ac_objext \
8609       conftest$ac_exeext conftest.$ac_ext
8610 LIBS=$ac_check_lib_save_LIBS
8611 fi
8612 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8613 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8614 if test $ac_cv_lib_svld_dlopen = yes; then
8615   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8616 else
8617   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8618 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8619 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8620   echo $ECHO_N "(cached) $ECHO_C" >&6
8621 else
8622   ac_check_lib_save_LIBS=$LIBS
8623 LIBS="-ldld  $LIBS"
8624 cat >conftest.$ac_ext <<_ACEOF
8625 /* confdefs.h.  */
8626 _ACEOF
8627 cat confdefs.h >>conftest.$ac_ext
8628 cat >>conftest.$ac_ext <<_ACEOF
8629 /* end confdefs.h.  */
8630
8631 /* Override any gcc2 internal prototype to avoid an error.  */
8632 #ifdef __cplusplus
8633 extern "C"
8634 #endif
8635 /* We use char because int might match the return type of a gcc2
8636    builtin and then its argument prototype would still apply.  */
8637 char dld_link ();
8638 int
8639 main ()
8640 {
8641 dld_link ();
8642   ;
8643   return 0;
8644 }
8645 _ACEOF
8646 rm -f conftest.$ac_objext conftest$ac_exeext
8647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8648   (eval $ac_link) 2>conftest.er1
8649   ac_status=$?
8650   grep -v '^ *+' conftest.er1 >conftest.err
8651   rm -f conftest.er1
8652   cat conftest.err >&5
8653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654   (exit $ac_status); } &&
8655          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8657   (eval $ac_try) 2>&5
8658   ac_status=$?
8659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660   (exit $ac_status); }; } &&
8661          { ac_try='test -s conftest$ac_exeext'
8662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8663   (eval $ac_try) 2>&5
8664   ac_status=$?
8665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666   (exit $ac_status); }; }; then
8667   ac_cv_lib_dld_dld_link=yes
8668 else
8669   echo "$as_me: failed program was:" >&5
8670 sed 's/^/| /' conftest.$ac_ext >&5
8671
8672 ac_cv_lib_dld_dld_link=no
8673 fi
8674 rm -f conftest.err conftest.$ac_objext \
8675       conftest$ac_exeext conftest.$ac_ext
8676 LIBS=$ac_check_lib_save_LIBS
8677 fi
8678 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8679 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8680 if test $ac_cv_lib_dld_dld_link = yes; then
8681   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8682 fi
8683
8684
8685 fi
8686
8687
8688 fi
8689
8690
8691 fi
8692
8693
8694 fi
8695
8696
8697 fi
8698
8699     ;;
8700   esac
8701
8702   if test "x$lt_cv_dlopen" != xno; then
8703     enable_dlopen=yes
8704   else
8705     enable_dlopen=no
8706   fi
8707
8708   case $lt_cv_dlopen in
8709   dlopen)
8710     save_CPPFLAGS="$CPPFLAGS"
8711     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8712
8713     save_LDFLAGS="$LDFLAGS"
8714     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8715
8716     save_LIBS="$LIBS"
8717     LIBS="$lt_cv_dlopen_libs $LIBS"
8718
8719     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8720 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8721 if test "${lt_cv_dlopen_self+set}" = set; then
8722   echo $ECHO_N "(cached) $ECHO_C" >&6
8723 else
8724           if test "$cross_compiling" = yes; then :
8725   lt_cv_dlopen_self=cross
8726 else
8727   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8728   lt_status=$lt_dlunknown
8729   cat > conftest.$ac_ext <<EOF
8730 #line 8730 "configure"
8731 #include "confdefs.h"
8732
8733 #if HAVE_DLFCN_H
8734 #include <dlfcn.h>
8735 #endif
8736
8737 #include <stdio.h>
8738
8739 #ifdef RTLD_GLOBAL
8740 #  define LT_DLGLOBAL           RTLD_GLOBAL
8741 #else
8742 #  ifdef DL_GLOBAL
8743 #    define LT_DLGLOBAL         DL_GLOBAL
8744 #  else
8745 #    define LT_DLGLOBAL         0
8746 #  endif
8747 #endif
8748
8749 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8750    find out it does not work in some platform. */
8751 #ifndef LT_DLLAZY_OR_NOW
8752 #  ifdef RTLD_LAZY
8753 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8754 #  else
8755 #    ifdef DL_LAZY
8756 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8757 #    else
8758 #      ifdef RTLD_NOW
8759 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8760 #      else
8761 #        ifdef DL_NOW
8762 #          define LT_DLLAZY_OR_NOW      DL_NOW
8763 #        else
8764 #          define LT_DLLAZY_OR_NOW      0
8765 #        endif
8766 #      endif
8767 #    endif
8768 #  endif
8769 #endif
8770
8771 #ifdef __cplusplus
8772 extern "C" void exit (int);
8773 #endif
8774
8775 void fnord() { int i=42;}
8776 int main ()
8777 {
8778   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8779   int status = $lt_dlunknown;
8780
8781   if (self)
8782     {
8783       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8784       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8785       /* dlclose (self); */
8786     }
8787
8788     exit (status);
8789 }
8790 EOF
8791   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8792   (eval $ac_link) 2>&5
8793   ac_status=$?
8794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8796     (./conftest; exit; ) 2>/dev/null
8797     lt_status=$?
8798     case x$lt_status in
8799       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8800       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8801       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8802     esac
8803   else :
8804     # compilation failed
8805     lt_cv_dlopen_self=no
8806   fi
8807 fi
8808 rm -fr conftest*
8809
8810
8811 fi
8812 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8813 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8814
8815     if test "x$lt_cv_dlopen_self" = xyes; then
8816       LDFLAGS="$LDFLAGS $link_static_flag"
8817       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8818 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8819 if test "${lt_cv_dlopen_self_static+set}" = set; then
8820   echo $ECHO_N "(cached) $ECHO_C" >&6
8821 else
8822           if test "$cross_compiling" = yes; then :
8823   lt_cv_dlopen_self_static=cross
8824 else
8825   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8826   lt_status=$lt_dlunknown
8827   cat > conftest.$ac_ext <<EOF
8828 #line 8828 "configure"
8829 #include "confdefs.h"
8830
8831 #if HAVE_DLFCN_H
8832 #include <dlfcn.h>
8833 #endif
8834
8835 #include <stdio.h>
8836
8837 #ifdef RTLD_GLOBAL
8838 #  define LT_DLGLOBAL           RTLD_GLOBAL
8839 #else
8840 #  ifdef DL_GLOBAL
8841 #    define LT_DLGLOBAL         DL_GLOBAL
8842 #  else
8843 #    define LT_DLGLOBAL         0
8844 #  endif
8845 #endif
8846
8847 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8848    find out it does not work in some platform. */
8849 #ifndef LT_DLLAZY_OR_NOW
8850 #  ifdef RTLD_LAZY
8851 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8852 #  else
8853 #    ifdef DL_LAZY
8854 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8855 #    else
8856 #      ifdef RTLD_NOW
8857 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8858 #      else
8859 #        ifdef DL_NOW
8860 #          define LT_DLLAZY_OR_NOW      DL_NOW
8861 #        else
8862 #          define LT_DLLAZY_OR_NOW      0
8863 #        endif
8864 #      endif
8865 #    endif
8866 #  endif
8867 #endif
8868
8869 #ifdef __cplusplus
8870 extern "C" void exit (int);
8871 #endif
8872
8873 void fnord() { int i=42;}
8874 int main ()
8875 {
8876   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8877   int status = $lt_dlunknown;
8878
8879   if (self)
8880     {
8881       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8882       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8883       /* dlclose (self); */
8884     }
8885
8886     exit (status);
8887 }
8888 EOF
8889   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8890   (eval $ac_link) 2>&5
8891   ac_status=$?
8892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8894     (./conftest; exit; ) 2>/dev/null
8895     lt_status=$?
8896     case x$lt_status in
8897       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8898       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8899       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8900     esac
8901   else :
8902     # compilation failed
8903     lt_cv_dlopen_self_static=no
8904   fi
8905 fi
8906 rm -fr conftest*
8907
8908
8909 fi
8910 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8911 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8912     fi
8913
8914     CPPFLAGS="$save_CPPFLAGS"
8915     LDFLAGS="$save_LDFLAGS"
8916     LIBS="$save_LIBS"
8917     ;;
8918   esac
8919
8920   case $lt_cv_dlopen_self in
8921   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8922   *) enable_dlopen_self=unknown ;;
8923   esac
8924
8925   case $lt_cv_dlopen_self_static in
8926   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8927   *) enable_dlopen_self_static=unknown ;;
8928   esac
8929 fi
8930
8931
8932 # Report which librarie types wil actually be built
8933 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8934 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8935 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8936 echo "${ECHO_T}$can_build_shared" >&6
8937
8938 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8939 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8940 test "$can_build_shared" = "no" && enable_shared=no
8941
8942 # On AIX, shared libraries and static libraries use the same namespace, and
8943 # are all built from PIC.
8944 case "$host_os" in
8945 aix3*)
8946   test "$enable_shared" = yes && enable_static=no
8947   if test -n "$RANLIB"; then
8948     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8949     postinstall_cmds='$RANLIB $lib'
8950   fi
8951   ;;
8952
8953 aix4*)
8954   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8955     test "$enable_shared" = yes && enable_static=no
8956   fi
8957   ;;
8958   darwin* | rhapsody*)
8959   if test "$GCC" = yes; then
8960     archive_cmds_need_lc=no
8961     case "$host_os" in
8962     rhapsody* | darwin1.[012])
8963       allow_undefined_flag='-undefined suppress'
8964       ;;
8965     *) # Darwin 1.3 on
8966       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8967         allow_undefined_flag='-flat_namespace -undefined suppress'
8968       else
8969         case ${MACOSX_DEPLOYMENT_TARGET} in
8970           10.[012])
8971             allow_undefined_flag='-flat_namespace -undefined suppress'
8972             ;;
8973           10.*)
8974             allow_undefined_flag='-undefined dynamic_lookup'
8975             ;;
8976         esac
8977       fi
8978       ;;
8979     esac
8980     output_verbose_link_cmd='echo'
8981     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8982     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8983     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8984     archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8985     module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8986     hardcode_direct=no
8987     hardcode_automatic=yes
8988     hardcode_shlibpath_var=unsupported
8989     whole_archive_flag_spec='-all_load $convenience'
8990     link_all_deplibs=yes
8991   else
8992     ld_shlibs=no
8993   fi
8994     ;;
8995 esac
8996 echo "$as_me:$LINENO: result: $enable_shared" >&5
8997 echo "${ECHO_T}$enable_shared" >&6
8998
8999 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9000 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9001 # Make sure either enable_shared or enable_static is yes.
9002 test "$enable_shared" = yes || enable_static=yes
9003 echo "$as_me:$LINENO: result: $enable_static" >&5
9004 echo "${ECHO_T}$enable_static" >&6
9005
9006 # The else clause should only fire when bootstrapping the
9007 # libtool distribution, otherwise you forgot to ship ltmain.sh
9008 # with your package, and you will get complaints that there are
9009 # no rules to generate ltmain.sh.
9010 if test -f "$ltmain"; then
9011   # See if we are running on zsh, and set the options which allow our commands through
9012   # without removal of \ escapes.
9013   if test -n "${ZSH_VERSION+set}" ; then
9014     setopt NO_GLOB_SUBST
9015   fi
9016   # Now quote all the things that may contain metacharacters while being
9017   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9018   # variables and quote the copies for generation of the libtool script.
9019   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9020     SED SHELL STRIP \
9021     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9022     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9023     deplibs_check_method reload_flag reload_cmds need_locks \
9024     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9025     lt_cv_sys_global_symbol_to_c_name_address \
9026     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9027     old_postinstall_cmds old_postuninstall_cmds \
9028     compiler \
9029     CC \
9030     LD \
9031     lt_prog_compiler_wl \
9032     lt_prog_compiler_pic \
9033     lt_prog_compiler_static \
9034     lt_prog_compiler_no_builtin_flag \
9035     export_dynamic_flag_spec \
9036     thread_safe_flag_spec \
9037     whole_archive_flag_spec \
9038     enable_shared_with_static_runtimes \
9039     old_archive_cmds \
9040     old_archive_from_new_cmds \
9041     predep_objects \
9042     postdep_objects \
9043     predeps \
9044     postdeps \
9045     compiler_lib_search_path \
9046     archive_cmds \
9047     archive_expsym_cmds \
9048     postinstall_cmds \
9049     postuninstall_cmds \
9050     old_archive_from_expsyms_cmds \
9051     allow_undefined_flag \
9052     no_undefined_flag \
9053     export_symbols_cmds \
9054     hardcode_libdir_flag_spec \
9055     hardcode_libdir_flag_spec_ld \
9056     hardcode_libdir_separator \
9057     hardcode_automatic \
9058     module_cmds \
9059     module_expsym_cmds \
9060     lt_cv_prog_compiler_c_o \
9061     exclude_expsyms \
9062     include_expsyms; do
9063
9064     case $var in
9065     old_archive_cmds | \
9066     old_archive_from_new_cmds | \
9067     archive_cmds | \
9068     archive_expsym_cmds | \
9069     module_cmds | \
9070     module_expsym_cmds | \
9071     old_archive_from_expsyms_cmds | \
9072     export_symbols_cmds | \
9073     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9074     postinstall_cmds | postuninstall_cmds | \
9075     old_postinstall_cmds | old_postuninstall_cmds | \
9076     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9077       # Double-quote double-evaled strings.
9078       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9079       ;;
9080     *)
9081       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9082       ;;
9083     esac
9084   done
9085
9086   case $lt_echo in
9087   *'\$0 --fallback-echo"')
9088     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9089     ;;
9090   esac
9091
9092 cfgfile="${ofile}T"
9093   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9094   $rm -f "$cfgfile"
9095   { echo "$as_me:$LINENO: creating $ofile" >&5
9096 echo "$as_me: creating $ofile" >&6;}
9097
9098   cat <<__EOF__ >> "$cfgfile"
9099 #! $SHELL
9100
9101 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9102 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9103 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9104 #
9105 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9106 # Free Software Foundation, Inc.
9107 #
9108 # This file is part of GNU Libtool:
9109 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9110 #
9111 # This program is free software; you can redistribute it and/or modify
9112 # it under the terms of the GNU General Public License as published by
9113 # the Free Software Foundation; either version 2 of the License, or
9114 # (at your option) any later version.
9115 #
9116 # This program is distributed in the hope that it will be useful, but
9117 # WITHOUT ANY WARRANTY; without even the implied warranty of
9118 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9119 # General Public License for more details.
9120 #
9121 # You should have received a copy of the GNU General Public License
9122 # along with this program; if not, write to the Free Software
9123 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9124 #
9125 # As a special exception to the GNU General Public License, if you
9126 # distribute this file as part of a program that contains a
9127 # configuration script generated by Autoconf, you may include it under
9128 # the same distribution terms that you use for the rest of that program.
9129
9130 # A sed program that does not truncate output.
9131 SED=$lt_SED
9132
9133 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9134 Xsed="$SED -e s/^X//"
9135
9136 # The HP-UX ksh and POSIX shell print the target directory to stdout
9137 # if CDPATH is set.
9138 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9139
9140 # The names of the tagged configurations supported by this script.
9141 available_tags=
9142
9143 # ### BEGIN LIBTOOL CONFIG
9144
9145 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9146
9147 # Shell to use when invoking shell scripts.
9148 SHELL=$lt_SHELL
9149
9150 # Whether or not to build shared libraries.
9151 build_libtool_libs=$enable_shared
9152
9153 # Whether or not to build static libraries.
9154 build_old_libs=$enable_static
9155
9156 # Whether or not to add -lc for building shared libraries.
9157 build_libtool_need_lc=$archive_cmds_need_lc
9158
9159 # Whether or not to disallow shared libs when runtime libs are static
9160 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9161
9162 # Whether or not to optimize for fast installation.
9163 fast_install=$enable_fast_install
9164
9165 # The host system.
9166 host_alias=$host_alias
9167 host=$host
9168
9169 # An echo program that does not interpret backslashes.
9170 echo=$lt_echo
9171
9172 # The archiver.
9173 AR=$lt_AR
9174 AR_FLAGS=$lt_AR_FLAGS
9175
9176 # A C compiler.
9177 LTCC=$lt_LTCC
9178
9179 # A language-specific compiler.
9180 CC=$lt_compiler
9181
9182 # Is the compiler the GNU C compiler?
9183 with_gcc=$GCC
9184
9185 # An ERE matcher.
9186 EGREP=$lt_EGREP
9187
9188 # The linker used to build libraries.
9189 LD=$lt_LD
9190
9191 # Whether we need hard or soft links.
9192 LN_S=$lt_LN_S
9193
9194 # A BSD-compatible nm program.
9195 NM=$lt_NM
9196
9197 # A symbol stripping program
9198 STRIP=$lt_STRIP
9199
9200 # Used to examine libraries when file_magic_cmd begins "file"
9201 MAGIC_CMD=$MAGIC_CMD
9202
9203 # Used on cygwin: DLL creation program.
9204 DLLTOOL="$DLLTOOL"
9205
9206 # Used on cygwin: object dumper.
9207 OBJDUMP="$OBJDUMP"
9208
9209 # Used on cygwin: assembler.
9210 AS="$AS"
9211
9212 # The name of the directory that contains temporary libtool files.
9213 objdir=$objdir
9214
9215 # How to create reloadable object files.
9216 reload_flag=$lt_reload_flag
9217 reload_cmds=$lt_reload_cmds
9218
9219 # How to pass a linker flag through the compiler.
9220 wl=$lt_lt_prog_compiler_wl
9221
9222 # Object file suffix (normally "o").
9223 objext="$ac_objext"
9224
9225 # Old archive suffix (normally "a").
9226 libext="$libext"
9227
9228 # Shared library suffix (normally ".so").
9229 shrext='$shrext'
9230
9231 # Executable file suffix (normally "").
9232 exeext="$exeext"
9233
9234 # Additional compiler flags for building library objects.
9235 pic_flag=$lt_lt_prog_compiler_pic
9236 pic_mode=$pic_mode
9237
9238 # What is the maximum length of a command?
9239 max_cmd_len=$lt_cv_sys_max_cmd_len
9240
9241 # Does compiler simultaneously support -c and -o options?
9242 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9243
9244 # Must we lock files when doing compilation ?
9245 need_locks=$lt_need_locks
9246
9247 # Do we need the lib prefix for modules?
9248 need_lib_prefix=$need_lib_prefix
9249
9250 # Do we need a version for libraries?
9251 need_version=$need_version
9252
9253 # Whether dlopen is supported.
9254 dlopen_support=$enable_dlopen
9255
9256 # Whether dlopen of programs is supported.
9257 dlopen_self=$enable_dlopen_self
9258
9259 # Whether dlopen of statically linked programs is supported.
9260 dlopen_self_static=$enable_dlopen_self_static
9261
9262 # Compiler flag to prevent dynamic linking.
9263 link_static_flag=$lt_lt_prog_compiler_static
9264
9265 # Compiler flag to turn off builtin functions.
9266 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9267
9268 # Compiler flag to allow reflexive dlopens.
9269 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9270
9271 # Compiler flag to generate shared objects directly from archives.
9272 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9273
9274 # Compiler flag to generate thread-safe objects.
9275 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9276
9277 # Library versioning type.
9278 version_type=$version_type
9279
9280 # Format of library name prefix.
9281 libname_spec=$lt_libname_spec
9282
9283 # List of archive names.  First name is the real one, the rest are links.
9284 # The last name is the one that the linker finds with -lNAME.
9285 library_names_spec=$lt_library_names_spec
9286
9287 # The coded name of the library, if different from the real name.
9288 soname_spec=$lt_soname_spec
9289
9290 # Commands used to build and install an old-style archive.
9291 RANLIB=$lt_RANLIB
9292 old_archive_cmds=$lt_old_archive_cmds
9293 old_postinstall_cmds=$lt_old_postinstall_cmds
9294 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9295
9296 # Create an old-style archive from a shared archive.
9297 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9298
9299 # Create a temporary old-style archive to link instead of a shared archive.
9300 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9301
9302 # Commands used to build and install a shared archive.
9303 archive_cmds=$lt_archive_cmds
9304 archive_expsym_cmds=$lt_archive_expsym_cmds
9305 postinstall_cmds=$lt_postinstall_cmds
9306 postuninstall_cmds=$lt_postuninstall_cmds
9307
9308 # Commands used to build a loadable module (assumed same as above if empty)
9309 module_cmds=$lt_module_cmds
9310 module_expsym_cmds=$lt_module_expsym_cmds
9311
9312 # Commands to strip libraries.
9313 old_striplib=$lt_old_striplib
9314 striplib=$lt_striplib
9315
9316 # Dependencies to place before the objects being linked to create a
9317 # shared library.
9318 predep_objects=$lt_predep_objects
9319
9320 # Dependencies to place after the objects being linked to create a
9321 # shared library.
9322 postdep_objects=$lt_postdep_objects
9323
9324 # Dependencies to place before the objects being linked to create a
9325 # shared library.
9326 predeps=$lt_predeps
9327
9328 # Dependencies to place after the objects being linked to create a
9329 # shared library.
9330 postdeps=$lt_postdeps
9331
9332 # The library search path used internally by the compiler when linking
9333 # a shared library.
9334 compiler_lib_search_path=$lt_compiler_lib_search_path
9335
9336 # Method to check whether dependent libraries are shared objects.
9337 deplibs_check_method=$lt_deplibs_check_method
9338
9339 # Command to use when deplibs_check_method == file_magic.
9340 file_magic_cmd=$lt_file_magic_cmd
9341
9342 # Flag that allows shared libraries with undefined symbols to be built.
9343 allow_undefined_flag=$lt_allow_undefined_flag
9344
9345 # Flag that forces no undefined symbols.
9346 no_undefined_flag=$lt_no_undefined_flag
9347
9348 # Commands used to finish a libtool library installation in a directory.
9349 finish_cmds=$lt_finish_cmds
9350
9351 # Same as above, but a single script fragment to be evaled but not shown.
9352 finish_eval=$lt_finish_eval
9353
9354 # Take the output of nm and produce a listing of raw symbols and C names.
9355 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9356
9357 # Transform the output of nm in a proper C declaration
9358 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9359
9360 # Transform the output of nm in a C name address pair
9361 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9362
9363 # This is the shared library runtime path variable.
9364 runpath_var=$runpath_var
9365
9366 # This is the shared library path variable.
9367 shlibpath_var=$shlibpath_var
9368
9369 # Is shlibpath searched before the hard-coded library search path?
9370 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9371
9372 # How to hardcode a shared library path into an executable.
9373 hardcode_action=$hardcode_action
9374
9375 # Whether we should hardcode library paths into libraries.
9376 hardcode_into_libs=$hardcode_into_libs
9377
9378 # Flag to hardcode \$libdir into a binary during linking.
9379 # This must work even if \$libdir does not exist.
9380 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9381
9382 # If ld is used when linking, flag to hardcode \$libdir into
9383 # a binary during linking. This must work even if \$libdir does
9384 # not exist.
9385 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9386
9387 # Whether we need a single -rpath flag with a separated argument.
9388 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9389
9390 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9391 # resulting binary.
9392 hardcode_direct=$hardcode_direct
9393
9394 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9395 # resulting binary.
9396 hardcode_minus_L=$hardcode_minus_L
9397
9398 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9399 # the resulting binary.
9400 hardcode_shlibpath_var=$hardcode_shlibpath_var
9401
9402 # Set to yes if building a shared library automatically hardcodes DIR into the library
9403 # and all subsequent libraries and executables linked against it.
9404 hardcode_automatic=$hardcode_automatic
9405
9406 # Variables whose values should be saved in libtool wrapper scripts and
9407 # restored at relink time.
9408 variables_saved_for_relink="$variables_saved_for_relink"
9409
9410 # Whether libtool must link a program against all its dependency libraries.
9411 link_all_deplibs=$link_all_deplibs
9412
9413 # Compile-time system search path for libraries
9414 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9415
9416 # Run-time system search path for libraries
9417 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9418
9419 # Fix the shell variable \$srcfile for the compiler.
9420 fix_srcfile_path="$fix_srcfile_path"
9421
9422 # Set to yes if exported symbols are required.
9423 always_export_symbols=$always_export_symbols
9424
9425 # The commands to list exported symbols.
9426 export_symbols_cmds=$lt_export_symbols_cmds
9427
9428 # The commands to extract the exported symbol list from a shared archive.
9429 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9430
9431 # Symbols that should not be listed in the preloaded symbols.
9432 exclude_expsyms=$lt_exclude_expsyms
9433
9434 # Symbols that must always be exported.
9435 include_expsyms=$lt_include_expsyms
9436
9437 # ### END LIBTOOL CONFIG
9438
9439 __EOF__
9440
9441
9442   case $host_os in
9443   aix3*)
9444     cat <<\EOF >> "$cfgfile"
9445
9446 # AIX sometimes has problems with the GCC collect2 program.  For some
9447 # reason, if we set the COLLECT_NAMES environment variable, the problems
9448 # vanish in a puff of smoke.
9449 if test "X${COLLECT_NAMES+set}" != Xset; then
9450   COLLECT_NAMES=
9451   export COLLECT_NAMES
9452 fi
9453 EOF
9454     ;;
9455   esac
9456
9457   # We use sed instead of cat because bash on DJGPP gets confused if
9458   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9459   # text mode, it properly converts lines to CR/LF.  This bash problem
9460   # is reportedly fixed, but why not run on old versions too?
9461   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9462
9463   mv -f "$cfgfile" "$ofile" || \
9464     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9465   chmod +x "$ofile"
9466
9467 else
9468   # If there is no Makefile yet, we rely on a make rule to execute
9469   # `config.status --recheck' to rerun these tests and create the
9470   # libtool script then.
9471   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9472   if test -f "$ltmain_in"; then
9473     test -f Makefile && make "$ltmain"
9474   fi
9475 fi
9476
9477
9478 ac_ext=c
9479 ac_cpp='$CPP $CPPFLAGS'
9480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9483
9484 CC="$lt_save_CC"
9485
9486
9487 # Check whether --with-tags or --without-tags was given.
9488 if test "${with_tags+set}" = set; then
9489   withval="$with_tags"
9490   tagnames="$withval"
9491 fi;
9492
9493 if test -f "$ltmain" && test -n "$tagnames"; then
9494   if test ! -f "${ofile}"; then
9495     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9496 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9497   fi
9498
9499   if test -z "$LTCC"; then
9500     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9501     if test -z "$LTCC"; then
9502       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9503 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9504     else
9505       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9506 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9507     fi
9508   fi
9509
9510   # Extract list of available tagged configurations in $ofile.
9511   # Note that this assumes the entire list is on one line.
9512   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9513
9514   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9515   for tagname in $tagnames; do
9516     IFS="$lt_save_ifs"
9517     # Check whether tagname contains only valid characters
9518     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9519     "") ;;
9520     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9521 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9522    { (exit 1); exit 1; }; }
9523         ;;
9524     esac
9525
9526     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9527     then
9528       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9529 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9530    { (exit 1); exit 1; }; }
9531     fi
9532
9533     # Update the list of available tags.
9534     if test -n "$tagname"; then
9535       echo appending configuration tag \"$tagname\" to $ofile
9536
9537       case $tagname in
9538       CXX)
9539         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9540           ac_ext=cc
9541 ac_cpp='$CXXCPP $CPPFLAGS'
9542 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9543 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9544 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9545
9546
9547
9548
9549 archive_cmds_need_lc_CXX=no
9550 allow_undefined_flag_CXX=
9551 always_export_symbols_CXX=no
9552 archive_expsym_cmds_CXX=
9553 export_dynamic_flag_spec_CXX=
9554 hardcode_direct_CXX=no
9555 hardcode_libdir_flag_spec_CXX=
9556 hardcode_libdir_flag_spec_ld_CXX=
9557 hardcode_libdir_separator_CXX=
9558 hardcode_minus_L_CXX=no
9559 hardcode_automatic_CXX=no
9560 module_cmds_CXX=
9561 module_expsym_cmds_CXX=
9562 link_all_deplibs_CXX=unknown
9563 old_archive_cmds_CXX=$old_archive_cmds
9564 no_undefined_flag_CXX=
9565 whole_archive_flag_spec_CXX=
9566 enable_shared_with_static_runtimes_CXX=no
9567
9568 # Dependencies to place before and after the object being linked:
9569 predep_objects_CXX=
9570 postdep_objects_CXX=
9571 predeps_CXX=
9572 postdeps_CXX=
9573 compiler_lib_search_path_CXX=
9574
9575 # Source file extension for C++ test sources.
9576 ac_ext=cc
9577
9578 # Object file extension for compiled C++ test sources.
9579 objext=o
9580 objext_CXX=$objext
9581
9582 # Code to be used in simple compile tests
9583 lt_simple_compile_test_code="int some_variable = 0;\n"
9584
9585 # Code to be used in simple link tests
9586 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9587
9588 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9589
9590 # If no C compiler was specified, use CC.
9591 LTCC=${LTCC-"$CC"}
9592
9593 # Allow CC to be a program name with arguments.
9594 compiler=$CC
9595
9596
9597 # Allow CC to be a program name with arguments.
9598 lt_save_CC=$CC
9599 lt_save_LD=$LD
9600 lt_save_GCC=$GCC
9601 GCC=$GXX
9602 lt_save_with_gnu_ld=$with_gnu_ld
9603 lt_save_path_LD=$lt_cv_path_LD
9604 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9605   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9606 else
9607   unset lt_cv_prog_gnu_ld
9608 fi
9609 if test -n "${lt_cv_path_LDCXX+set}"; then
9610   lt_cv_path_LD=$lt_cv_path_LDCXX
9611 else
9612   unset lt_cv_path_LD
9613 fi
9614 test -z "${LDCXX+set}" || LD=$LDCXX
9615 CC=${CXX-"c++"}
9616 compiler=$CC
9617 compiler_CXX=$CC
9618 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9619
9620 # We don't want -fno-exception wen compiling C++ code, so set the
9621 # no_builtin_flag separately
9622 if test "$GXX" = yes; then
9623   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9624 else
9625   lt_prog_compiler_no_builtin_flag_CXX=
9626 fi
9627
9628 if test "$GXX" = yes; then
9629   # Set up default GNU C++ configuration
9630
9631
9632 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9633 if test "${with_gnu_ld+set}" = set; then
9634   withval="$with_gnu_ld"
9635   test "$withval" = no || with_gnu_ld=yes
9636 else
9637   with_gnu_ld=no
9638 fi;
9639 ac_prog=ld
9640 if test "$GCC" = yes; then
9641   # Check if gcc -print-prog-name=ld gives a path.
9642   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9643 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9644   case $host in
9645   *-*-mingw*)
9646     # gcc leaves a trailing carriage return which upsets mingw
9647     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9648   *)
9649     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9650   esac
9651   case $ac_prog in
9652     # Accept absolute paths.
9653     [\\/]* | ?:[\\/]*)
9654       re_direlt='/[^/][^/]*/\.\./'
9655       # Canonicalize the pathname of ld
9656       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9657       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9658         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9659       done
9660       test -z "$LD" && LD="$ac_prog"
9661       ;;
9662   "")
9663     # If it fails, then pretend we aren't using GCC.
9664     ac_prog=ld
9665     ;;
9666   *)
9667     # If it is relative, then search for the first ld in PATH.
9668     with_gnu_ld=unknown
9669     ;;
9670   esac
9671 elif test "$with_gnu_ld" = yes; then
9672   echo "$as_me:$LINENO: checking for GNU ld" >&5
9673 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9674 else
9675   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9676 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9677 fi
9678 if test "${lt_cv_path_LD+set}" = set; then
9679   echo $ECHO_N "(cached) $ECHO_C" >&6
9680 else
9681   if test -z "$LD"; then
9682   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9683   for ac_dir in $PATH; do
9684     IFS="$lt_save_ifs"
9685     test -z "$ac_dir" && ac_dir=.
9686     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9687       lt_cv_path_LD="$ac_dir/$ac_prog"
9688       # Check to see if the program is GNU ld.  I'd rather use --version,
9689       # but apparently some GNU ld's only accept -v.
9690       # Break only if it was the GNU/non-GNU ld that we prefer.
9691       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9692       *GNU* | *'with BFD'*)
9693         test "$with_gnu_ld" != no && break
9694         ;;
9695       *)
9696         test "$with_gnu_ld" != yes && break
9697         ;;
9698       esac
9699     fi
9700   done
9701   IFS="$lt_save_ifs"
9702 else
9703   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9704 fi
9705 fi
9706
9707 LD="$lt_cv_path_LD"
9708 if test -n "$LD"; then
9709   echo "$as_me:$LINENO: result: $LD" >&5
9710 echo "${ECHO_T}$LD" >&6
9711 else
9712   echo "$as_me:$LINENO: result: no" >&5
9713 echo "${ECHO_T}no" >&6
9714 fi
9715 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9716 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9717    { (exit 1); exit 1; }; }
9718 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9719 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9720 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9721   echo $ECHO_N "(cached) $ECHO_C" >&6
9722 else
9723   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9724 case `$LD -v 2>&1 </dev/null` in
9725 *GNU* | *'with BFD'*)
9726   lt_cv_prog_gnu_ld=yes
9727   ;;
9728 *)
9729   lt_cv_prog_gnu_ld=no
9730   ;;
9731 esac
9732 fi
9733 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9734 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9735 with_gnu_ld=$lt_cv_prog_gnu_ld
9736
9737
9738
9739   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9740   # archiving commands below assume that GNU ld is being used.
9741   if test "$with_gnu_ld" = yes; then
9742     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9743     archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9744
9745     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9746     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9747
9748     # If archive_cmds runs LD, not CC, wlarc should be empty
9749     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9750     #     investigate it a little bit more. (MM)
9751     wlarc='${wl}'
9752
9753     # ancient GNU ld didn't support --whole-archive et. al.
9754     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9755         grep 'no-whole-archive' > /dev/null; then
9756       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9757     else
9758       whole_archive_flag_spec_CXX=
9759     fi
9760   else
9761     with_gnu_ld=no
9762     wlarc=
9763
9764     # A generic and very simple default shared library creation
9765     # command for GNU C++ for the case where it uses the native
9766     # linker, instead of GNU ld.  If possible, this setting should
9767     # overridden to take advantage of the native linker features on
9768     # the platform it is being used on.
9769     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9770   fi
9771
9772   # Commands to make compiler produce verbose output that lists
9773   # what "hidden" libraries, object files and flags are used when
9774   # linking a shared library.
9775   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9776
9777 else
9778   GXX=no
9779   with_gnu_ld=no
9780   wlarc=
9781 fi
9782
9783 # PORTME: fill in a description of your system's C++ link characteristics
9784 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9785 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9786 ld_shlibs_CXX=yes
9787 case $host_os in
9788   aix3*)
9789     # FIXME: insert proper C++ library support
9790     ld_shlibs_CXX=no
9791     ;;
9792   aix4* | aix5*)
9793     if test "$host_cpu" = ia64; then
9794       # On IA64, the linker does run time linking by default, so we don't
9795       # have to do anything special.
9796       aix_use_runtimelinking=no
9797       exp_sym_flag='-Bexport'
9798       no_entry_flag=""
9799     else
9800       aix_use_runtimelinking=no
9801
9802       # Test if we are trying to use run time linking or normal
9803       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9804       # need to do runtime linking.
9805       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9806         for ld_flag in $LDFLAGS; do
9807           case $ld_flag in
9808           *-brtl*)
9809             aix_use_runtimelinking=yes
9810             break
9811             ;;
9812           esac
9813         done
9814       esac
9815
9816       exp_sym_flag='-bexport'
9817       no_entry_flag='-bnoentry'
9818     fi
9819
9820     # When large executables or shared objects are built, AIX ld can
9821     # have problems creating the table of contents.  If linking a library
9822     # or program results in "error TOC overflow" add -mminimal-toc to
9823     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9824     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9825
9826     archive_cmds_CXX=''
9827     hardcode_direct_CXX=yes
9828     hardcode_libdir_separator_CXX=':'
9829     link_all_deplibs_CXX=yes
9830
9831     if test "$GXX" = yes; then
9832       case $host_os in aix4.012|aix4.012.*)
9833       # We only want to do this on AIX 4.2 and lower, the check
9834       # below for broken collect2 doesn't work under 4.3+
9835         collect2name=`${CC} -print-prog-name=collect2`
9836         if test -f "$collect2name" && \
9837            strings "$collect2name" | grep resolve_lib_name >/dev/null
9838         then
9839           # We have reworked collect2
9840           hardcode_direct_CXX=yes
9841         else
9842           # We have old collect2
9843           hardcode_direct_CXX=unsupported
9844           # It fails to find uninstalled libraries when the uninstalled
9845           # path is not listed in the libpath.  Setting hardcode_minus_L
9846           # to unsupported forces relinking
9847           hardcode_minus_L_CXX=yes
9848           hardcode_libdir_flag_spec_CXX='-L$libdir'
9849           hardcode_libdir_separator_CXX=
9850         fi
9851       esac
9852       shared_flag='-shared'
9853     else
9854       # not using gcc
9855       if test "$host_cpu" = ia64; then
9856         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9857         # chokes on -Wl,-G. The following line is correct:
9858         shared_flag='-G'
9859       else
9860         if test "$aix_use_runtimelinking" = yes; then
9861           shared_flag='${wl}-G'
9862         else
9863           shared_flag='${wl}-bM:SRE'
9864         fi
9865       fi
9866     fi
9867
9868     # It seems that -bexpall does not export symbols beginning with
9869     # underscore (_), so it is better to generate a list of symbols to export.
9870     always_export_symbols_CXX=yes
9871     if test "$aix_use_runtimelinking" = yes; then
9872       # Warning - without using the other runtime loading flags (-brtl),
9873       # -berok will link without error, but may produce a broken library.
9874       allow_undefined_flag_CXX='-berok'
9875       # Determine the default libpath from the value encoded in an empty executable.
9876       cat >conftest.$ac_ext <<_ACEOF
9877 /* confdefs.h.  */
9878 _ACEOF
9879 cat confdefs.h >>conftest.$ac_ext
9880 cat >>conftest.$ac_ext <<_ACEOF
9881 /* end confdefs.h.  */
9882
9883 int
9884 main ()
9885 {
9886
9887   ;
9888   return 0;
9889 }
9890 _ACEOF
9891 rm -f conftest.$ac_objext conftest$ac_exeext
9892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9893   (eval $ac_link) 2>conftest.er1
9894   ac_status=$?
9895   grep -v '^ *+' conftest.er1 >conftest.err
9896   rm -f conftest.er1
9897   cat conftest.err >&5
9898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899   (exit $ac_status); } &&
9900          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
9901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9902   (eval $ac_try) 2>&5
9903   ac_status=$?
9904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905   (exit $ac_status); }; } &&
9906          { ac_try='test -s conftest$ac_exeext'
9907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9908   (eval $ac_try) 2>&5
9909   ac_status=$?
9910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911   (exit $ac_status); }; }; then
9912
9913 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9914 }'`
9915 # Check for a 64-bit object if we didn't find anything.
9916 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9917 }'`; fi
9918 else
9919   echo "$as_me: failed program was:" >&5
9920 sed 's/^/| /' conftest.$ac_ext >&5
9921
9922 fi
9923 rm -f conftest.err conftest.$ac_objext \
9924       conftest$ac_exeext conftest.$ac_ext
9925 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9926
9927       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9928
9929       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9930      else
9931       if test "$host_cpu" = ia64; then
9932         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9933         allow_undefined_flag_CXX="-z nodefs"
9934         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9935       else
9936         # Determine the default libpath from the value encoded in an empty executable.
9937         cat >conftest.$ac_ext <<_ACEOF
9938 /* confdefs.h.  */
9939 _ACEOF
9940 cat confdefs.h >>conftest.$ac_ext
9941 cat >>conftest.$ac_ext <<_ACEOF
9942 /* end confdefs.h.  */
9943
9944 int
9945 main ()
9946 {
9947
9948   ;
9949   return 0;
9950 }
9951 _ACEOF
9952 rm -f conftest.$ac_objext conftest$ac_exeext
9953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9954   (eval $ac_link) 2>conftest.er1
9955   ac_status=$?
9956   grep -v '^ *+' conftest.er1 >conftest.err
9957   rm -f conftest.er1
9958   cat conftest.err >&5
9959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960   (exit $ac_status); } &&
9961          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
9962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9963   (eval $ac_try) 2>&5
9964   ac_status=$?
9965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966   (exit $ac_status); }; } &&
9967          { ac_try='test -s conftest$ac_exeext'
9968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9969   (eval $ac_try) 2>&5
9970   ac_status=$?
9971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972   (exit $ac_status); }; }; then
9973
9974 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9975 }'`
9976 # Check for a 64-bit object if we didn't find anything.
9977 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9978 }'`; fi
9979 else
9980   echo "$as_me: failed program was:" >&5
9981 sed 's/^/| /' conftest.$ac_ext >&5
9982
9983 fi
9984 rm -f conftest.err conftest.$ac_objext \
9985       conftest$ac_exeext conftest.$ac_ext
9986 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9987
9988         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9989         # Warning - without using the other run time loading flags,
9990         # -berok will link without error, but may produce a broken library.
9991         no_undefined_flag_CXX=' ${wl}-bernotok'
9992         allow_undefined_flag_CXX=' ${wl}-berok'
9993         # -bexpall does not export symbols beginning with underscore (_)
9994         always_export_symbols_CXX=yes
9995         # Exported symbols can be pulled into shared objects from archives
9996         whole_archive_flag_spec_CXX=' '
9997         archive_cmds_need_lc_CXX=yes
9998         # This is similar to how AIX traditionally builds it's shared libraries.
9999         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10000       fi
10001     fi
10002     ;;
10003   chorus*)
10004     case $cc_basename in
10005       *)
10006         # FIXME: insert proper C++ library support
10007         ld_shlibs_CXX=no
10008         ;;
10009     esac
10010     ;;
10011
10012   cygwin* | mingw* | pw32*)
10013     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10014     # as there is no search path for DLLs.
10015     hardcode_libdir_flag_spec_CXX='-L$libdir'
10016     allow_undefined_flag_CXX=unsupported
10017     always_export_symbols_CXX=no
10018     enable_shared_with_static_runtimes_CXX=yes
10019
10020     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10021       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10022       # If the export-symbols file already is a .def file (1st line
10023       # is EXPORTS), use it as is; otherwise, prepend...
10024       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10025         cp $export_symbols $output_objdir/$soname.def;
10026       else
10027         echo EXPORTS > $output_objdir/$soname.def;
10028         cat $export_symbols >> $output_objdir/$soname.def;
10029       fi~
10030       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10031     else
10032       ld_shlibs_CXX=no
10033     fi
10034   ;;
10035
10036   darwin* | rhapsody*)
10037   if test "$GXX" = yes; then
10038     archive_cmds_need_lc_CXX=no
10039     case "$host_os" in
10040     rhapsody* | darwin1.[012])
10041       allow_undefined_flag_CXX='-undefined suppress'
10042       ;;
10043     *) # Darwin 1.3 on
10044       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10045         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10046       else
10047         case ${MACOSX_DEPLOYMENT_TARGET} in
10048           10.[012])
10049             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10050             ;;
10051           10.*)
10052             allow_undefined_flag_CXX='-undefined dynamic_lookup'
10053             ;;
10054         esac
10055       fi
10056       ;;
10057     esac
10058     lt_int_apple_cc_single_mod=no
10059     output_verbose_link_cmd='echo'
10060     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10061       lt_int_apple_cc_single_mod=yes
10062     fi
10063     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10064       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10065     else
10066       archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10067     fi
10068     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10069
10070     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10071     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10072       archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10073     else
10074       archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10075     fi
10076     module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10077     hardcode_direct_CXX=no
10078     hardcode_automatic_CXX=yes
10079     hardcode_shlibpath_var_CXX=unsupported
10080     whole_archive_flag_spec_CXX='-all_load $convenience'
10081     link_all_deplibs_CXX=yes
10082   else
10083     ld_shlibs_CXX=no
10084   fi
10085     ;;
10086
10087   dgux*)
10088     case $cc_basename in
10089       ec++)
10090         # FIXME: insert proper C++ library support
10091         ld_shlibs_CXX=no
10092         ;;
10093       ghcx)
10094         # Green Hills C++ Compiler
10095         # FIXME: insert proper C++ library support
10096         ld_shlibs_CXX=no
10097         ;;
10098       *)
10099         # FIXME: insert proper C++ library support
10100         ld_shlibs_CXX=no
10101         ;;
10102     esac
10103     ;;
10104   freebsd12*)
10105     # C++ shared libraries reported to be fairly broken before switch to ELF
10106     ld_shlibs_CXX=no
10107     ;;
10108   freebsd-elf*)
10109     archive_cmds_need_lc_CXX=no
10110     ;;
10111   freebsd* | kfreebsd*-gnu)
10112     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10113     # conventions
10114     ld_shlibs_CXX=yes
10115     ;;
10116   gnu*)
10117     ;;
10118   hpux9*)
10119     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10120     hardcode_libdir_separator_CXX=:
10121     export_dynamic_flag_spec_CXX='${wl}-E'
10122     hardcode_direct_CXX=yes
10123     hardcode_minus_L_CXX=yes # Not in the search PATH,
10124                                 # but as the default
10125                                 # location of the library.
10126
10127     case $cc_basename in
10128     CC)
10129       # FIXME: insert proper C++ library support
10130       ld_shlibs_CXX=no
10131       ;;
10132     aCC)
10133       archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10134       # Commands to make compiler produce verbose output that lists
10135       # what "hidden" libraries, object files and flags are used when
10136       # linking a shared library.
10137       #
10138       # There doesn't appear to be a way to prevent this compiler from
10139       # explicitly linking system object files so we need to strip them
10140       # from the output so that they don't get included in the library
10141       # dependencies.
10142       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10143       ;;
10144     *)
10145       if test "$GXX" = yes; then
10146         archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10147       else
10148         # FIXME: insert proper C++ library support
10149         ld_shlibs_CXX=no
10150       fi
10151       ;;
10152     esac
10153     ;;
10154   hpux10*|hpux11*)
10155     if test $with_gnu_ld = no; then
10156       case "$host_cpu" in
10157       hppa*64*)
10158         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10159         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10160         hardcode_libdir_separator_CXX=:
10161         ;;
10162       ia64*)
10163         hardcode_libdir_flag_spec_CXX='-L$libdir'
10164         ;;
10165       *)
10166         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10167         hardcode_libdir_separator_CXX=:
10168         export_dynamic_flag_spec_CXX='${wl}-E'
10169         ;;
10170       esac
10171     fi
10172     case "$host_cpu" in
10173     hppa*64*)
10174       hardcode_direct_CXX=no
10175       hardcode_shlibpath_var_CXX=no
10176       ;;
10177     ia64*)
10178       hardcode_direct_CXX=no
10179       hardcode_shlibpath_var_CXX=no
10180       hardcode_minus_L_CXX=yes # Not in the search PATH,
10181                                               # but as the default
10182                                               # location of the library.
10183       ;;
10184     *)
10185       hardcode_direct_CXX=yes
10186       hardcode_minus_L_CXX=yes # Not in the search PATH,
10187                                               # but as the default
10188                                               # location of the library.
10189       ;;
10190     esac
10191
10192     case $cc_basename in
10193       CC)
10194         # FIXME: insert proper C++ library support
10195         ld_shlibs_CXX=no
10196         ;;
10197       aCC)
10198         case "$host_cpu" in
10199         hppa*64*|ia64*)
10200           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10201           ;;
10202         *)
10203           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10204           ;;
10205         esac
10206         # Commands to make compiler produce verbose output that lists
10207         # what "hidden" libraries, object files and flags are used when
10208         # linking a shared library.
10209         #
10210         # There doesn't appear to be a way to prevent this compiler from
10211         # explicitly linking system object files so we need to strip them
10212         # from the output so that they don't get included in the library
10213         # dependencies.
10214         output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10215         ;;
10216       *)
10217         if test "$GXX" = yes; then
10218           if test $with_gnu_ld = no; then
10219             case "$host_cpu" in
10220             ia64*|hppa*64*)
10221               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10222               ;;
10223             *)
10224               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10225               ;;
10226             esac
10227           fi
10228         else
10229           # FIXME: insert proper C++ library support
10230           ld_shlibs_CXX=no
10231         fi
10232         ;;
10233     esac
10234     ;;
10235   irix5* | irix6*)
10236     case $cc_basename in
10237       CC)
10238         # SGI C++
10239         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10240
10241         # Archives containing C++ object files must be created using
10242         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10243         # necessary to make sure instantiated templates are included
10244         # in the archive.
10245         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10246         ;;
10247       *)
10248         if test "$GXX" = yes; then
10249           if test "$with_gnu_ld" = no; then
10250             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10251           else
10252             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10253           fi
10254         fi
10255         link_all_deplibs_CXX=yes
10256         ;;
10257     esac
10258     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10259     hardcode_libdir_separator_CXX=:
10260     ;;
10261   linux*)
10262     case $cc_basename in
10263       KCC)
10264         # Kuck and Associates, Inc. (KAI) C++ Compiler
10265
10266         # KCC will only create a shared library if the output file
10267         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10268         # to its proper name (with version) after linking.
10269         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10270         archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
10271         # Commands to make compiler produce verbose output that lists
10272         # what "hidden" libraries, object files and flags are used when
10273         # linking a shared library.
10274         #
10275         # There doesn't appear to be a way to prevent this compiler from
10276         # explicitly linking system object files so we need to strip them
10277         # from the output so that they don't get included in the library
10278         # dependencies.
10279         output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10280
10281         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10282         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10283
10284         # Archives containing C++ object files must be created using
10285         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10286         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10287         ;;
10288       icpc)
10289         # Intel C++
10290         with_gnu_ld=yes
10291         archive_cmds_need_lc_CXX=no
10292         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10293         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10294         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10295         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10296         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10297         ;;
10298       cxx)
10299         # Compaq C++
10300         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10301         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
10302
10303         runpath_var=LD_RUN_PATH
10304         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10305         hardcode_libdir_separator_CXX=:
10306
10307         # Commands to make compiler produce verbose output that lists
10308         # what "hidden" libraries, object files and flags are used when
10309         # linking a shared library.
10310         #
10311         # There doesn't appear to be a way to prevent this compiler from
10312         # explicitly linking system object files so we need to strip them
10313         # from the output so that they don't get included in the library
10314         # dependencies.
10315         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10316         ;;
10317     esac
10318     ;;
10319   lynxos*)
10320     # FIXME: insert proper C++ library support
10321     ld_shlibs_CXX=no
10322     ;;
10323   m88k*)
10324     # FIXME: insert proper C++ library support
10325     ld_shlibs_CXX=no
10326     ;;
10327   mvs*)
10328     case $cc_basename in
10329       cxx)
10330         # FIXME: insert proper C++ library support
10331         ld_shlibs_CXX=no
10332         ;;
10333       *)
10334         # FIXME: insert proper C++ library support
10335         ld_shlibs_CXX=no
10336         ;;
10337     esac
10338     ;;
10339   netbsd*)
10340     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10341       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10342       wlarc=
10343       hardcode_libdir_flag_spec_CXX='-R$libdir'
10344       hardcode_direct_CXX=yes
10345       hardcode_shlibpath_var_CXX=no
10346     fi
10347     # Workaround some broken pre-1.5 toolchains
10348     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10349     ;;
10350   osf3*)
10351     case $cc_basename in
10352       KCC)
10353         # Kuck and Associates, Inc. (KAI) C++ Compiler
10354
10355         # KCC will only create a shared library if the output file
10356         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10357         # to its proper name (with version) after linking.
10358         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10359
10360         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10361         hardcode_libdir_separator_CXX=:
10362
10363         # Archives containing C++ object files must be created using
10364         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10365         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10366
10367         ;;
10368       RCC)
10369         # Rational C++ 2.4.1
10370         # FIXME: insert proper C++ library support
10371         ld_shlibs_CXX=no
10372         ;;
10373       cxx)
10374         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10375         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10376
10377         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10378         hardcode_libdir_separator_CXX=:
10379
10380         # Commands to make compiler produce verbose output that lists
10381         # what "hidden" libraries, object files and flags are used when
10382         # linking a shared library.
10383         #
10384         # There doesn't appear to be a way to prevent this compiler from
10385         # explicitly linking system object files so we need to strip them
10386         # from the output so that they don't get included in the library
10387         # dependencies.
10388         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10389         ;;
10390       *)
10391         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10392           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10393           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10394
10395           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10396           hardcode_libdir_separator_CXX=:
10397
10398           # Commands to make compiler produce verbose output that lists
10399           # what "hidden" libraries, object files and flags are used when
10400           # linking a shared library.
10401           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10402
10403         else
10404           # FIXME: insert proper C++ library support
10405           ld_shlibs_CXX=no
10406         fi
10407         ;;
10408     esac
10409     ;;
10410   osf4* | osf5*)
10411     case $cc_basename in
10412       KCC)
10413         # Kuck and Associates, Inc. (KAI) C++ Compiler
10414
10415         # KCC will only create a shared library if the output file
10416         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10417         # to its proper name (with version) after linking.
10418         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10419
10420         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10421         hardcode_libdir_separator_CXX=:
10422
10423         # Archives containing C++ object files must be created using
10424         # the KAI C++ compiler.
10425         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10426         ;;
10427       RCC)
10428         # Rational C++ 2.4.1
10429         # FIXME: insert proper C++ library support
10430         ld_shlibs_CXX=no
10431         ;;
10432       cxx)
10433         allow_undefined_flag_CXX=' -expect_unresolved \*'
10434         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10435         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10436           echo "-hidden">> $lib.exp~
10437           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10438           $rm $lib.exp'
10439
10440         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10441         hardcode_libdir_separator_CXX=:
10442
10443         # Commands to make compiler produce verbose output that lists
10444         # what "hidden" libraries, object files and flags are used when
10445         # linking a shared library.
10446         #
10447         # There doesn't appear to be a way to prevent this compiler from
10448         # explicitly linking system object files so we need to strip them
10449         # from the output so that they don't get included in the library
10450         # dependencies.
10451         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10452         ;;
10453       *)
10454         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10455           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10456          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10457
10458           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10459           hardcode_libdir_separator_CXX=:
10460
10461           # Commands to make compiler produce verbose output that lists
10462           # what "hidden" libraries, object files and flags are used when
10463           # linking a shared library.
10464           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10465
10466         else
10467           # FIXME: insert proper C++ library support
10468           ld_shlibs_CXX=no
10469         fi
10470         ;;
10471     esac
10472     ;;
10473   psos*)
10474     # FIXME: insert proper C++ library support
10475     ld_shlibs_CXX=no
10476     ;;
10477   sco*)
10478     archive_cmds_need_lc_CXX=no
10479     case $cc_basename in
10480       CC)
10481         # FIXME: insert proper C++ library support
10482         ld_shlibs_CXX=no
10483         ;;
10484       *)
10485         # FIXME: insert proper C++ library support
10486         ld_shlibs_CXX=no
10487         ;;
10488     esac
10489     ;;
10490   sunos4*)
10491     case $cc_basename in
10492       CC)
10493         # Sun C++ 4.x
10494         # FIXME: insert proper C++ library support
10495         ld_shlibs_CXX=no
10496         ;;
10497       lcc)
10498         # Lucid
10499         # FIXME: insert proper C++ library support
10500         ld_shlibs_CXX=no
10501         ;;
10502       *)
10503         # FIXME: insert proper C++ library support
10504         ld_shlibs_CXX=no
10505         ;;
10506     esac
10507     ;;
10508   solaris*)
10509     case $cc_basename in
10510       CC)
10511         # Sun C++ 4.2, 5.x and Centerline C++
10512         no_undefined_flag_CXX=' -zdefs'
10513         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10514         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10515         $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10516
10517         hardcode_libdir_flag_spec_CXX='-R$libdir'
10518         hardcode_shlibpath_var_CXX=no
10519         case $host_os in
10520           solaris2.0-5 | solaris2.0-5.*) ;;
10521           *)
10522             # The C++ compiler is used as linker so we must use $wl
10523             # flag to pass the commands to the underlying system
10524             # linker.
10525             # Supported since Solaris 2.6 (maybe 2.5.1?)
10526             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10527             ;;
10528         esac
10529         link_all_deplibs_CXX=yes
10530
10531         # Commands to make compiler produce verbose output that lists
10532         # what "hidden" libraries, object files and flags are used when
10533         # linking a shared library.
10534         #
10535         # There doesn't appear to be a way to prevent this compiler from
10536         # explicitly linking system object files so we need to strip them
10537         # from the output so that they don't get included in the library
10538         # dependencies.
10539         output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10540
10541         # Archives containing C++ object files must be created using
10542         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10543         # necessary to make sure instantiated templates are included
10544         # in the archive.
10545         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10546         ;;
10547       gcx)
10548         # Green Hills C++ Compiler
10549         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10550
10551         # The C++ compiler must be used to create the archive.
10552         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10553         ;;
10554       *)
10555         # GNU C++ compiler with Solaris linker
10556         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10557           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10558           if $CC --version | grep -v '^2\.7' > /dev/null; then
10559             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10560             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10561                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10562
10563             # Commands to make compiler produce verbose output that lists
10564             # what "hidden" libraries, object files and flags are used when
10565             # linking a shared library.
10566             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10567           else
10568             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10569             # platform.
10570             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10571             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10572                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10573
10574             # Commands to make compiler produce verbose output that lists
10575             # what "hidden" libraries, object files and flags are used when
10576             # linking a shared library.
10577             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10578           fi
10579
10580           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10581         fi
10582         ;;
10583     esac
10584     ;;
10585   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10586     archive_cmds_need_lc_CXX=no
10587     ;;
10588   tandem*)
10589     case $cc_basename in
10590       NCC)
10591         # NonStop-UX NCC 3.20
10592         # FIXME: insert proper C++ library support
10593         ld_shlibs_CXX=no
10594         ;;
10595       *)
10596         # FIXME: insert proper C++ library support
10597         ld_shlibs_CXX=no
10598         ;;
10599     esac
10600     ;;
10601   vxworks*)
10602     # FIXME: insert proper C++ library support
10603     ld_shlibs_CXX=no
10604     ;;
10605   *)
10606     # FIXME: insert proper C++ library support
10607     ld_shlibs_CXX=no
10608     ;;
10609 esac
10610 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10611 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10612 test "$ld_shlibs_CXX" = no && can_build_shared=no
10613
10614 GCC_CXX="$GXX"
10615 LD_CXX="$LD"
10616
10617
10618 cat > conftest.$ac_ext <<EOF
10619 class Foo
10620 {
10621 public:
10622   Foo (void) { a = 0; }
10623 private:
10624   int a;
10625 };
10626 EOF
10627
10628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10629   (eval $ac_compile) 2>&5
10630   ac_status=$?
10631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632   (exit $ac_status); }; then
10633   # Parse the compiler output and extract the necessary
10634   # objects, libraries and library flags.
10635
10636   # Sentinel used to keep track of whether or not we are before
10637   # the conftest object file.
10638   pre_test_object_deps_done=no
10639
10640   # The `*' in the case matches for architectures that use `case' in
10641   # $output_verbose_cmd can trigger glob expansion during the loop
10642   # eval without this substitution.
10643   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10644
10645   for p in `eval $output_verbose_link_cmd`; do
10646     case $p in
10647
10648     -L* | -R* | -l*)
10649        # Some compilers place space between "-{L,R}" and the path.
10650        # Remove the space.
10651        if test $p = "-L" \
10652           || test $p = "-R"; then
10653          prev=$p
10654          continue
10655        else
10656          prev=
10657        fi
10658
10659        if test "$pre_test_object_deps_done" = no; then
10660          case $p in
10661          -L* | -R*)
10662            # Internal compiler library paths should come after those
10663            # provided the user.  The postdeps already come after the
10664            # user supplied libs so there is no need to process them.
10665            if test -z "$compiler_lib_search_path_CXX"; then
10666              compiler_lib_search_path_CXX="${prev}${p}"
10667            else
10668              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10669            fi
10670            ;;
10671          # The "-l" case would never come before the object being
10672          # linked, so don't bother handling this case.
10673          esac
10674        else
10675          if test -z "$postdeps_CXX"; then
10676            postdeps_CXX="${prev}${p}"
10677          else
10678            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10679          fi
10680        fi
10681        ;;
10682
10683     *.$objext)
10684        # This assumes that the test object file only shows up
10685        # once in the compiler output.
10686        if test "$p" = "conftest.$objext"; then
10687          pre_test_object_deps_done=yes
10688          continue
10689        fi
10690
10691        if test "$pre_test_object_deps_done" = no; then
10692          if test -z "$predep_objects_CXX"; then
10693            predep_objects_CXX="$p"
10694          else
10695            predep_objects_CXX="$predep_objects_CXX $p"
10696          fi
10697        else
10698          if test -z "$postdep_objects_CXX"; then
10699            postdep_objects_CXX="$p"
10700          else
10701            postdep_objects_CXX="$postdep_objects_CXX $p"
10702          fi
10703        fi
10704        ;;
10705
10706     *) ;; # Ignore the rest.
10707
10708     esac
10709   done
10710
10711   # Clean up.
10712   rm -f a.out a.exe
10713 else
10714   echo "libtool.m4: error: problem compiling CXX test program"
10715 fi
10716
10717 $rm -f confest.$objext
10718
10719 case " $postdeps_CXX " in
10720 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10721 esac
10722
10723 lt_prog_compiler_wl_CXX=
10724 lt_prog_compiler_pic_CXX=
10725 lt_prog_compiler_static_CXX=
10726
10727 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10728 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10729
10730   # C++ specific cases for pic, static, wl, etc.
10731   if test "$GXX" = yes; then
10732     lt_prog_compiler_wl_CXX='-Wl,'
10733     lt_prog_compiler_static_CXX='-static'
10734
10735     case $host_os in
10736     aix*)
10737       # All AIX code is PIC.
10738       if test "$host_cpu" = ia64; then
10739         # AIX 5 now supports IA64 processor
10740         lt_prog_compiler_static_CXX='-Bstatic'
10741       fi
10742       ;;
10743     amigaos*)
10744       # FIXME: we need at least 68020 code to build shared libraries, but
10745       # adding the `-m68020' flag to GCC prevents building anything better,
10746       # like `-m68040'.
10747       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10748       ;;
10749     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10750       # PIC is the default for these OSes.
10751       ;;
10752     mingw* | os2* | pw32*)
10753       # This hack is so that the source file can tell whether it is being
10754       # built for inclusion in a dll (and should export symbols for example).
10755       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10756       ;;
10757     darwin* | rhapsody*)
10758       # PIC is the default on this platform
10759       # Common symbols not allowed in MH_DYLIB files
10760       lt_prog_compiler_pic_CXX='-fno-common'
10761       ;;
10762     *djgpp*)
10763       # DJGPP does not support shared libraries at all
10764       lt_prog_compiler_pic_CXX=
10765       ;;
10766     sysv4*MP*)
10767       if test -d /usr/nec; then
10768         lt_prog_compiler_pic_CXX=-Kconform_pic
10769       fi
10770       ;;
10771     hpux*)
10772       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10773       # not for PA HP-UX.
10774       case "$host_cpu" in
10775       hppa*64*|ia64*)
10776         ;;
10777       *)
10778         lt_prog_compiler_pic_CXX='-fPIC'
10779         ;;
10780       esac
10781       ;;
10782     *)
10783       lt_prog_compiler_pic_CXX='-fPIC'
10784       ;;
10785     esac
10786   else
10787     case $host_os in
10788       aix4* | aix5*)
10789         # All AIX code is PIC.
10790         if test "$host_cpu" = ia64; then
10791           # AIX 5 now supports IA64 processor
10792           lt_prog_compiler_static_CXX='-Bstatic'
10793         else
10794           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10795         fi
10796         ;;
10797       chorus*)
10798         case $cc_basename in
10799         cxch68)
10800           # Green Hills C++ Compiler
10801           # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
10802           ;;
10803         esac
10804         ;;
10805       dgux*)
10806         case $cc_basename in
10807           ec++)
10808             lt_prog_compiler_pic_CXX='-KPIC'
10809             ;;
10810           ghcx)
10811             # Green Hills C++ Compiler
10812             lt_prog_compiler_pic_CXX='-pic'
10813             ;;
10814           *)
10815             ;;
10816         esac
10817         ;;
10818       freebsd* | kfreebsd*-gnu)
10819         # FreeBSD uses GNU C++
10820         ;;
10821       hpux9* | hpux10* | hpux11*)
10822         case $cc_basename in
10823           CC)
10824             lt_prog_compiler_wl_CXX='-Wl,'
10825             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10826             if test "$host_cpu" != ia64; then
10827               lt_prog_compiler_pic_CXX='+Z'
10828             fi
10829             ;;
10830           aCC)
10831             lt_prog_compiler_wl_CXX='-Wl,'
10832             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10833             case "$host_cpu" in
10834             hppa*64*|ia64*)
10835               # +Z the default
10836               ;;
10837             *)
10838               lt_prog_compiler_pic_CXX='+Z'
10839               ;;
10840             esac
10841             ;;
10842           *)
10843             ;;
10844         esac
10845         ;;
10846       irix5* | irix6* | nonstopux*)
10847         case $cc_basename in
10848           CC)
10849             lt_prog_compiler_wl_CXX='-Wl,'
10850             lt_prog_compiler_static_CXX='-non_shared'
10851             # CC pic flag -KPIC is the default.
10852             ;;
10853           *)
10854             ;;
10855         esac
10856         ;;
10857       linux*)
10858         case $cc_basename in
10859           KCC)
10860             # KAI C++ Compiler
10861             lt_prog_compiler_wl_CXX='--backend -Wl,'
10862             lt_prog_compiler_pic_CXX='-fPIC'
10863             ;;
10864           icpc)
10865             # Intel C++
10866             lt_prog_compiler_wl_CXX='-Wl,'
10867             lt_prog_compiler_pic_CXX='-KPIC'
10868             lt_prog_compiler_static_CXX='-static'
10869             ;;
10870           cxx)
10871             # Compaq C++
10872             # Make sure the PIC flag is empty.  It appears that all Alpha
10873             # Linux and Compaq Tru64 Unix objects are PIC.
10874             lt_prog_compiler_pic_CXX=
10875             lt_prog_compiler_static_CXX='-non_shared'
10876             ;;
10877           *)
10878             ;;
10879         esac
10880         ;;
10881       lynxos*)
10882         ;;
10883       m88k*)
10884         ;;
10885       mvs*)
10886         case $cc_basename in
10887           cxx)
10888             lt_prog_compiler_pic_CXX='-W c,exportall'
10889             ;;
10890           *)
10891             ;;
10892         esac
10893         ;;
10894       netbsd*)
10895         ;;
10896       osf3* | osf4* | osf5*)
10897         case $cc_basename in
10898           KCC)
10899             lt_prog_compiler_wl_CXX='--backend -Wl,'
10900             ;;
10901           RCC)
10902             # Rational C++ 2.4.1
10903             lt_prog_compiler_pic_CXX='-pic'
10904             ;;
10905           cxx)
10906             # Digital/Compaq C++
10907             lt_prog_compiler_wl_CXX='-Wl,'
10908             # Make sure the PIC flag is empty.  It appears that all Alpha
10909             # Linux and Compaq Tru64 Unix objects are PIC.
10910             lt_prog_compiler_pic_CXX=
10911             lt_prog_compiler_static_CXX='-non_shared'
10912             ;;
10913           *)
10914             ;;
10915         esac
10916         ;;
10917       psos*)
10918         ;;
10919       sco*)
10920         case $cc_basename in
10921           CC)
10922             lt_prog_compiler_pic_CXX='-fPIC'
10923             ;;
10924           *)
10925             ;;
10926         esac
10927         ;;
10928       solaris*)
10929         case $cc_basename in
10930           CC)
10931             # Sun C++ 4.2, 5.x and Centerline C++
10932             lt_prog_compiler_pic_CXX='-KPIC'
10933             lt_prog_compiler_static_CXX='-Bstatic'
10934             lt_prog_compiler_wl_CXX='-Qoption ld '
10935             ;;
10936           gcx)
10937             # Green Hills C++ Compiler
10938             lt_prog_compiler_pic_CXX='-PIC'
10939             ;;
10940           *)
10941             ;;
10942         esac
10943         ;;
10944       sunos4*)
10945         case $cc_basename in
10946           CC)
10947             # Sun C++ 4.x
10948             lt_prog_compiler_pic_CXX='-pic'
10949             lt_prog_compiler_static_CXX='-Bstatic'
10950             ;;
10951           lcc)
10952             # Lucid
10953             lt_prog_compiler_pic_CXX='-pic'
10954             ;;
10955           *)
10956             ;;
10957         esac
10958         ;;
10959       tandem*)
10960         case $cc_basename in
10961           NCC)
10962             # NonStop-UX NCC 3.20
10963             lt_prog_compiler_pic_CXX='-KPIC'
10964             ;;
10965           *)
10966             ;;
10967         esac
10968         ;;
10969       unixware*)
10970         ;;
10971       vxworks*)
10972         ;;
10973       *)
10974         lt_prog_compiler_can_build_shared_CXX=no
10975         ;;
10976     esac
10977   fi
10978
10979 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10980 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10981
10982 #
10983 # Check to make sure the PIC flag actually works.
10984 #
10985 if test -n "$lt_prog_compiler_pic_CXX"; then
10986
10987 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10988 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10989 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10990   echo $ECHO_N "(cached) $ECHO_C" >&6
10991 else
10992   lt_prog_compiler_pic_works_CXX=no
10993   ac_outfile=conftest.$ac_objext
10994    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10995    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10996    # Insert the option either (1) after the last *FLAGS variable, or
10997    # (2) before a word containing "conftest.", or (3) at the end.
10998    # Note that $ac_compile itself does not contain backslashes and begins
10999    # with a dollar sign (not a hyphen), so the echo should work correctly.
11000    # The option is referenced via a variable to avoid confusing sed.
11001    lt_compile=`echo "$ac_compile" | $SED \
11002    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11003    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11004    -e 's:$: $lt_compiler_flag:'`
11005    (eval echo "\"\$as_me:11005: $lt_compile\"" >&5)
11006    (eval "$lt_compile" 2>conftest.err)
11007    ac_status=$?
11008    cat conftest.err >&5
11009    echo "$as_me:11009: \$? = $ac_status" >&5
11010    if (exit $ac_status) && test -s "$ac_outfile"; then
11011      # The compiler can only warn and ignore the option if not recognized
11012      # So say no if there are warnings
11013      if test ! -s conftest.err; then
11014        lt_prog_compiler_pic_works_CXX=yes
11015      fi
11016    fi
11017    $rm conftest*
11018
11019 fi
11020 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11021 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11022
11023 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11024     case $lt_prog_compiler_pic_CXX in
11025      "" | " "*) ;;
11026      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11027      esac
11028 else
11029     lt_prog_compiler_pic_CXX=
11030      lt_prog_compiler_can_build_shared_CXX=no
11031 fi
11032
11033 fi
11034 case "$host_os" in
11035   # For platforms which do not support PIC, -DPIC is meaningless:
11036   *djgpp*)
11037     lt_prog_compiler_pic_CXX=
11038     ;;
11039   *)
11040     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11041     ;;
11042 esac
11043
11044 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11045 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11046 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11047   echo $ECHO_N "(cached) $ECHO_C" >&6
11048 else
11049   lt_cv_prog_compiler_c_o_CXX=no
11050    $rm -r conftest 2>/dev/null
11051    mkdir conftest
11052    cd conftest
11053    mkdir out
11054    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11055
11056    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
11057    # that will create temporary files in the current directory regardless of
11058    # the output directory.  Thus, making CWD read-only will cause this test
11059    # to fail, enabling locking or at least warning the user not to do parallel
11060    # builds.
11061    chmod -w .
11062
11063    lt_compiler_flag="-o out/conftest2.$ac_objext"
11064    # Insert the option either (1) after the last *FLAGS variable, or
11065    # (2) before a word containing "conftest.", or (3) at the end.
11066    # Note that $ac_compile itself does not contain backslashes and begins
11067    # with a dollar sign (not a hyphen), so the echo should work correctly.
11068    lt_compile=`echo "$ac_compile" | $SED \
11069    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11070    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11071    -e 's:$: $lt_compiler_flag:'`
11072    (eval echo "\"\$as_me:11072: $lt_compile\"" >&5)
11073    (eval "$lt_compile" 2>out/conftest.err)
11074    ac_status=$?
11075    cat out/conftest.err >&5
11076    echo "$as_me:11076: \$? = $ac_status" >&5
11077    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11078    then
11079      # The compiler can only warn and ignore the option if not recognized
11080      # So say no if there are warnings
11081      if test ! -s out/conftest.err; then
11082        lt_cv_prog_compiler_c_o_CXX=yes
11083      fi
11084    fi
11085    chmod u+w .
11086    $rm conftest*
11087    # SGI C++ compiler will create directory out/ii_files/ for
11088    # template instantiation
11089    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11090    $rm out/* && rmdir out
11091    cd ..
11092    rmdir conftest
11093    $rm conftest*
11094
11095 fi
11096 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11097 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11098
11099
11100 hard_links="nottested"
11101 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11102   # do not overwrite the value of need_locks provided by the user
11103   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11104 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11105   hard_links=yes
11106   $rm conftest*
11107   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11108   touch conftest.a
11109   ln conftest.a conftest.b 2>&5 || hard_links=no
11110   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11111   echo "$as_me:$LINENO: result: $hard_links" >&5
11112 echo "${ECHO_T}$hard_links" >&6
11113   if test "$hard_links" = no; then
11114     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11115 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11116     need_locks=warn
11117   fi
11118 else
11119   need_locks=no
11120 fi
11121
11122 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11123 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11124
11125   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11126   case $host_os in
11127   aix4* | aix5*)
11128     # If we're using GNU nm, then we don't want the "-C" option.
11129     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11130     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11131       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11132     else
11133       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11134     fi
11135     ;;
11136   pw32*)
11137     export_symbols_cmds_CXX="$ltdll_cmds"
11138   ;;
11139   cygwin* | mingw*)
11140     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11141   ;;
11142   *)
11143     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11144   ;;
11145   esac
11146
11147 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11148 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11149 test "$ld_shlibs_CXX" = no && can_build_shared=no
11150
11151 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11152 if test "$GCC" = yes; then
11153   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11154 fi
11155
11156 #
11157 # Do we need to explicitly link libc?
11158 #
11159 case "x$archive_cmds_need_lc_CXX" in
11160 x|xyes)
11161   # Assume -lc should be added
11162   archive_cmds_need_lc_CXX=yes
11163
11164   if test "$enable_shared" = yes && test "$GCC" = yes; then
11165     case $archive_cmds_CXX in
11166     *'~'*)
11167       # FIXME: we may have to deal with multi-command sequences.
11168       ;;
11169     '$CC '*)
11170       # Test whether the compiler implicitly links with -lc since on some
11171       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11172       # to ld, don't add -lc before -lgcc.
11173       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11174 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11175       $rm conftest*
11176       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11177
11178       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11179   (eval $ac_compile) 2>&5
11180   ac_status=$?
11181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182   (exit $ac_status); } 2>conftest.err; then
11183         soname=conftest
11184         lib=conftest
11185         libobjs=conftest.$ac_objext
11186         deplibs=
11187         wl=$lt_prog_compiler_wl_CXX
11188         compiler_flags=-v
11189         linker_flags=-v
11190         verstring=
11191         output_objdir=.
11192         libname=conftest
11193         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11194         allow_undefined_flag_CXX=
11195         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11196   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11197   ac_status=$?
11198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199   (exit $ac_status); }
11200         then
11201           archive_cmds_need_lc_CXX=no
11202         else
11203           archive_cmds_need_lc_CXX=yes
11204         fi
11205         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11206       else
11207         cat conftest.err 1>&5
11208       fi
11209       $rm conftest*
11210       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11211 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11212       ;;
11213     esac
11214   fi
11215   ;;
11216 esac
11217
11218 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11219 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11220 library_names_spec=
11221 libname_spec='lib$name'
11222 soname_spec=
11223 shrext=".so"
11224 postinstall_cmds=
11225 postuninstall_cmds=
11226 finish_cmds=
11227 finish_eval=
11228 shlibpath_var=
11229 shlibpath_overrides_runpath=unknown
11230 version_type=none
11231 dynamic_linker="$host_os ld.so"
11232 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11233 if test "$GCC" = yes; then
11234   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11235   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11236     # if the path contains ";" then we assume it to be the separator
11237     # otherwise default to the standard path separator (i.e. ":") - it is
11238     # assumed that no part of a normal pathname contains ";" but that should
11239     # okay in the real world where ";" in dirpaths is itself problematic.
11240     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11241   else
11242     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11243   fi
11244 else
11245   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11246 fi
11247 need_lib_prefix=unknown
11248 hardcode_into_libs=no
11249
11250 # when you set need_version to no, make sure it does not cause -set_version
11251 # flags to be left without arguments
11252 need_version=unknown
11253
11254 case $host_os in
11255 aix3*)
11256   version_type=linux
11257   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11258   shlibpath_var=LIBPATH
11259
11260   # AIX 3 has no versioning support, so we append a major version to the name.
11261   soname_spec='${libname}${release}${shared_ext}$major'
11262   ;;
11263
11264 aix4* | aix5*)
11265   version_type=linux
11266   need_lib_prefix=no
11267   need_version=no
11268   hardcode_into_libs=yes
11269   if test "$host_cpu" = ia64; then
11270     # AIX 5 supports IA64
11271     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11272     shlibpath_var=LD_LIBRARY_PATH
11273   else
11274     # With GCC up to 2.95.x, collect2 would create an import file
11275     # for dependence libraries.  The import file would start with
11276     # the line `#! .'.  This would cause the generated library to
11277     # depend on `.', always an invalid library.  This was fixed in
11278     # development snapshots of GCC prior to 3.0.
11279     case $host_os in
11280       aix4 | aix4.[01] | aix4.[01].*)
11281       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11282            echo ' yes '
11283            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11284         :
11285       else
11286         can_build_shared=no
11287       fi
11288       ;;
11289     esac
11290     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11291     # soname into executable. Probably we can add versioning support to
11292     # collect2, so additional links can be useful in future.
11293     if test "$aix_use_runtimelinking" = yes; then
11294       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11295       # instead of lib<name>.a to let people know that these are not
11296       # typical AIX shared libraries.
11297       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11298     else
11299       # We preserve .a as extension for shared libraries through AIX4.2
11300       # and later when we are not doing run time linking.
11301       library_names_spec='${libname}${release}.a $libname.a'
11302       soname_spec='${libname}${release}${shared_ext}$major'
11303     fi
11304     shlibpath_var=LIBPATH
11305   fi
11306   ;;
11307
11308 amigaos*)
11309   library_names_spec='$libname.ixlibrary $libname.a'
11310   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11311   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11312   ;;
11313
11314 beos*)
11315   library_names_spec='${libname}${shared_ext}'
11316   dynamic_linker="$host_os ld.so"
11317   shlibpath_var=LIBRARY_PATH
11318   ;;
11319
11320 bsdi4*)
11321   version_type=linux
11322   need_version=no
11323   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11324   soname_spec='${libname}${release}${shared_ext}$major'
11325   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11326   shlibpath_var=LD_LIBRARY_PATH
11327   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11328   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11329   # the default ld.so.conf also contains /usr/contrib/lib and
11330   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11331   # libtool to hard-code these into programs
11332   ;;
11333
11334 cygwin* | mingw* | pw32*)
11335   version_type=windows
11336   shrext=".dll"
11337   need_version=no
11338   need_lib_prefix=no
11339
11340   case $GCC,$host_os in
11341   yes,cygwin* | yes,mingw* | yes,pw32*)
11342     library_names_spec='$libname.dll.a'
11343     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11344     postinstall_cmds='base_file=`basename \${file}`~
11345       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11346       dldir=$destdir/`dirname \$dlpath`~
11347       test -d \$dldir || mkdir -p \$dldir~
11348       $install_prog $dir/$dlname \$dldir/$dlname'
11349     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11350       dlpath=$dir/\$dldll~
11351        $rm \$dlpath'
11352     shlibpath_overrides_runpath=yes
11353
11354     case $host_os in
11355     cygwin*)
11356       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11357       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11358       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11359       ;;
11360     mingw*)
11361       # MinGW DLLs use traditional 'lib' prefix
11362       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11363       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11364       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11365         # It is most probably a Windows format PATH printed by
11366         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11367         # path with ; separators, and with drive letters. We can handle the
11368         # drive letters (cygwin fileutils understands them), so leave them,
11369         # especially as we might pass files found there to a mingw objdump,
11370         # which wouldn't understand a cygwinified path. Ahh.
11371         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11372       else
11373         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11374       fi
11375       ;;
11376     pw32*)
11377       # pw32 DLLs use 'pw' prefix rather than 'lib'
11378       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11379       ;;
11380     esac
11381     ;;
11382
11383   *)
11384     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11385     ;;
11386   esac
11387   dynamic_linker='Win32 ld.exe'
11388   # FIXME: first we should search . and the directory the executable is in
11389   shlibpath_var=PATH
11390   ;;
11391
11392 darwin* | rhapsody*)
11393   dynamic_linker="$host_os dyld"
11394   version_type=darwin
11395   need_lib_prefix=no
11396   need_version=no
11397   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11398   soname_spec='${libname}${release}${major}$shared_ext'
11399   shlibpath_overrides_runpath=yes
11400   shlibpath_var=DYLD_LIBRARY_PATH
11401   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11402   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11403   if test "$GCC" = yes; then
11404     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11405   else
11406     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11407   fi
11408   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11409   ;;
11410
11411 dgux*)
11412   version_type=linux
11413   need_lib_prefix=no
11414   need_version=no
11415   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11416   soname_spec='${libname}${release}${shared_ext}$major'
11417   shlibpath_var=LD_LIBRARY_PATH
11418   ;;
11419
11420 freebsd1*)
11421   dynamic_linker=no
11422   ;;
11423
11424 kfreebsd*-gnu)
11425   version_type=linux
11426   need_lib_prefix=no
11427   need_version=no
11428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11429   soname_spec='${libname}${release}${shared_ext}$major'
11430   shlibpath_var=LD_LIBRARY_PATH
11431   shlibpath_overrides_runpath=no
11432   hardcode_into_libs=yes
11433   dynamic_linker='GNU ld.so'
11434   ;;
11435
11436 freebsd*)
11437   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11438   version_type=freebsd-$objformat
11439   case $version_type in
11440     freebsd-elf*)
11441       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11442       need_version=no
11443       need_lib_prefix=no
11444       ;;
11445     freebsd-*)
11446       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11447       need_version=yes
11448       ;;
11449   esac
11450   shlibpath_var=LD_LIBRARY_PATH
11451   case $host_os in
11452   freebsd2*)
11453     shlibpath_overrides_runpath=yes
11454     ;;
11455   freebsd3.01* | freebsdelf3.01*)
11456     shlibpath_overrides_runpath=yes
11457     hardcode_into_libs=yes
11458     ;;
11459   *) # from 3.2 on
11460     shlibpath_overrides_runpath=no
11461     hardcode_into_libs=yes
11462     ;;
11463   esac
11464   ;;
11465
11466 gnu*)
11467   version_type=linux
11468   need_lib_prefix=no
11469   need_version=no
11470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11471   soname_spec='${libname}${release}${shared_ext}$major'
11472   shlibpath_var=LD_LIBRARY_PATH
11473   hardcode_into_libs=yes
11474   ;;
11475
11476 hpux9* | hpux10* | hpux11*)
11477   # Give a soname corresponding to the major version so that dld.sl refuses to
11478   # link against other versions.
11479   version_type=sunos
11480   need_lib_prefix=no
11481   need_version=no
11482   case "$host_cpu" in
11483   ia64*)
11484     shrext='.so'
11485     hardcode_into_libs=yes
11486     dynamic_linker="$host_os dld.so"
11487     shlibpath_var=LD_LIBRARY_PATH
11488     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11489     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11490     soname_spec='${libname}${release}${shared_ext}$major'
11491     if test "X$HPUX_IA64_MODE" = X32; then
11492       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11493     else
11494       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11495     fi
11496     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11497     ;;
11498    hppa*64*)
11499      shrext='.sl'
11500      hardcode_into_libs=yes
11501      dynamic_linker="$host_os dld.sl"
11502      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11503      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11504      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11505      soname_spec='${libname}${release}${shared_ext}$major'
11506      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11507      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11508      ;;
11509    *)
11510     shrext='.sl'
11511     dynamic_linker="$host_os dld.sl"
11512     shlibpath_var=SHLIB_PATH
11513     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11514     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11515     soname_spec='${libname}${release}${shared_ext}$major'
11516     ;;
11517   esac
11518   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11519   postinstall_cmds='chmod 555 $lib'
11520   ;;
11521
11522 irix5* | irix6* | nonstopux*)
11523   case $host_os in
11524     nonstopux*) version_type=nonstopux ;;
11525     *)
11526         if test "$lt_cv_prog_gnu_ld" = yes; then
11527                 version_type=linux
11528         else
11529                 version_type=irix
11530         fi ;;
11531   esac
11532   need_lib_prefix=no
11533   need_version=no
11534   soname_spec='${libname}${release}${shared_ext}$major'
11535   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11536   case $host_os in
11537   irix5* | nonstopux*)
11538     libsuff= shlibsuff=
11539     ;;
11540   *)
11541     case $LD in # libtool.m4 will add one of these switches to LD
11542     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11543       libsuff= shlibsuff= libmagic=32-bit;;
11544     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11545       libsuff=32 shlibsuff=N32 libmagic=N32;;
11546     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11547       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11548     *) libsuff= shlibsuff= libmagic=never-match;;
11549     esac
11550     ;;
11551   esac
11552   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11553   shlibpath_overrides_runpath=no
11554   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11555   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11556   hardcode_into_libs=yes
11557   ;;
11558
11559 # No shared lib support for Linux oldld, aout, or coff.
11560 linux*oldld* | linux*aout* | linux*coff*)
11561   dynamic_linker=no
11562   ;;
11563
11564 # This must be Linux ELF.
11565 linux*)
11566   version_type=linux
11567   need_lib_prefix=no
11568   need_version=no
11569   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11570   soname_spec='${libname}${release}${shared_ext}$major'
11571   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11572   shlibpath_var=LD_LIBRARY_PATH
11573   shlibpath_overrides_runpath=no
11574   # This implies no fast_install, which is unacceptable.
11575   # Some rework will be needed to allow for fast_install
11576   # before this can be enabled.
11577   hardcode_into_libs=yes
11578
11579   # Append ld.so.conf contents to the search path
11580   if test -f /etc/ld.so.conf; then
11581     ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
11582     sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
11583   fi
11584
11585   # We used to test for /lib/ld.so.1 and disable shared libraries on
11586   # powerpc, because MkLinux only supported shared libraries with the
11587   # GNU dynamic linker.  Since this was broken with cross compilers,
11588   # most powerpc-linux boxes support dynamic linking these days and
11589   # people can always --disable-shared, the test was removed, and we
11590   # assume the GNU/Linux dynamic linker is in use.
11591   dynamic_linker='GNU/Linux ld.so'
11592   ;;
11593
11594 knetbsd*-gnu)
11595   version_type=linux
11596   need_lib_prefix=no
11597   need_version=no
11598   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11599   soname_spec='${libname}${release}${shared_ext}$major'
11600   shlibpath_var=LD_LIBRARY_PATH
11601   shlibpath_overrides_runpath=no
11602   hardcode_into_libs=yes
11603   dynamic_linker='GNU ld.so'
11604   ;;
11605
11606 netbsd*)
11607   version_type=sunos
11608   need_lib_prefix=no
11609   need_version=no
11610   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11611     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11612     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11613     dynamic_linker='NetBSD (a.out) ld.so'
11614   else
11615     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11616     soname_spec='${libname}${release}${shared_ext}$major'
11617     dynamic_linker='NetBSD ld.elf_so'
11618   fi
11619   shlibpath_var=LD_LIBRARY_PATH
11620   shlibpath_overrides_runpath=yes
11621   hardcode_into_libs=yes
11622   ;;
11623
11624 newsos6)
11625   version_type=linux
11626   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11627   shlibpath_var=LD_LIBRARY_PATH
11628   shlibpath_overrides_runpath=yes
11629   ;;
11630
11631 nto-qnx*)
11632   version_type=linux
11633   need_lib_prefix=no
11634   need_version=no
11635   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11636   soname_spec='${libname}${release}${shared_ext}$major'
11637   shlibpath_var=LD_LIBRARY_PATH
11638   shlibpath_overrides_runpath=yes
11639   ;;
11640
11641 openbsd*)
11642   version_type=sunos
11643   need_lib_prefix=no
11644   need_version=yes
11645   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11646   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11647   shlibpath_var=LD_LIBRARY_PATH
11648   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11649     case $host_os in
11650       openbsd2.[89] | openbsd2.[89].*)
11651         shlibpath_overrides_runpath=no
11652         ;;
11653       *)
11654         shlibpath_overrides_runpath=yes
11655         ;;
11656       esac
11657   else
11658     shlibpath_overrides_runpath=yes
11659   fi
11660   ;;
11661
11662 os2*)
11663   libname_spec='$name'
11664   shrext=".dll"
11665   need_lib_prefix=no
11666   library_names_spec='$libname${shared_ext} $libname.a'
11667   dynamic_linker='OS/2 ld.exe'
11668   shlibpath_var=LIBPATH
11669   ;;
11670
11671 osf3* | osf4* | osf5*)
11672   version_type=osf
11673   need_lib_prefix=no
11674   need_version=no
11675   soname_spec='${libname}${release}${shared_ext}$major'
11676   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11677   shlibpath_var=LD_LIBRARY_PATH
11678   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11679   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11680   ;;
11681
11682 sco3.2v5*)
11683   version_type=osf
11684   soname_spec='${libname}${release}${shared_ext}$major'
11685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11686   shlibpath_var=LD_LIBRARY_PATH
11687   ;;
11688
11689 solaris*)
11690   version_type=linux
11691   need_lib_prefix=no
11692   need_version=no
11693   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11694   soname_spec='${libname}${release}${shared_ext}$major'
11695   shlibpath_var=LD_LIBRARY_PATH
11696   shlibpath_overrides_runpath=yes
11697   hardcode_into_libs=yes
11698   # ldd complains unless libraries are executable
11699   postinstall_cmds='chmod +x $lib'
11700   ;;
11701
11702 sunos4*)
11703   version_type=sunos
11704   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11705   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11706   shlibpath_var=LD_LIBRARY_PATH
11707   shlibpath_overrides_runpath=yes
11708   if test "$with_gnu_ld" = yes; then
11709     need_lib_prefix=no
11710   fi
11711   need_version=yes
11712   ;;
11713
11714 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11715   version_type=linux
11716   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11717   soname_spec='${libname}${release}${shared_ext}$major'
11718   shlibpath_var=LD_LIBRARY_PATH
11719   case $host_vendor in
11720     sni)
11721       shlibpath_overrides_runpath=no
11722       need_lib_prefix=no
11723       export_dynamic_flag_spec='${wl}-Blargedynsym'
11724       runpath_var=LD_RUN_PATH
11725       ;;
11726     siemens)
11727       need_lib_prefix=no
11728       ;;
11729     motorola)
11730       need_lib_prefix=no
11731       need_version=no
11732       shlibpath_overrides_runpath=no
11733       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11734       ;;
11735   esac
11736   ;;
11737
11738 sysv4*MP*)
11739   if test -d /usr/nec ;then
11740     version_type=linux
11741     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11742     soname_spec='$libname${shared_ext}.$major'
11743     shlibpath_var=LD_LIBRARY_PATH
11744   fi
11745   ;;
11746
11747 uts4*)
11748   version_type=linux
11749   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11750   soname_spec='${libname}${release}${shared_ext}$major'
11751   shlibpath_var=LD_LIBRARY_PATH
11752   ;;
11753
11754 *)
11755   dynamic_linker=no
11756   ;;
11757 esac
11758 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11759 echo "${ECHO_T}$dynamic_linker" >&6
11760 test "$dynamic_linker" = no && can_build_shared=no
11761
11762 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11763 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11764 hardcode_action_CXX=
11765 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11766    test -n "$runpath_var CXX" || \
11767    test "X$hardcode_automatic_CXX"="Xyes" ; then
11768
11769   # We can hardcode non-existant directories.
11770   if test "$hardcode_direct_CXX" != no &&
11771      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11772      # have to relink, otherwise we might link with an installed library
11773      # when we should be linking with a yet-to-be-installed one
11774      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11775      test "$hardcode_minus_L_CXX" != no; then
11776     # Linking always hardcodes the temporary library directory.
11777     hardcode_action_CXX=relink
11778   else
11779     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11780     hardcode_action_CXX=immediate
11781   fi
11782 else
11783   # We cannot hardcode anything, or else we can only hardcode existing
11784   # directories.
11785   hardcode_action_CXX=unsupported
11786 fi
11787 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11788 echo "${ECHO_T}$hardcode_action_CXX" >&6
11789
11790 if test "$hardcode_action_CXX" = relink; then
11791   # Fast installation is not supported
11792   enable_fast_install=no
11793 elif test "$shlibpath_overrides_runpath" = yes ||
11794      test "$enable_shared" = no; then
11795   # Fast installation is not necessary
11796   enable_fast_install=needless
11797 fi
11798
11799 striplib=
11800 old_striplib=
11801 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11802 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11803 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11804   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11805   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11806   echo "$as_me:$LINENO: result: yes" >&5
11807 echo "${ECHO_T}yes" >&6
11808 else
11809 # FIXME - insert some real tests, host_os isn't really good enough
11810   case $host_os in
11811    darwin*)
11812        if test -n "$STRIP" ; then
11813          striplib="$STRIP -x"
11814          echo "$as_me:$LINENO: result: yes" >&5
11815 echo "${ECHO_T}yes" >&6
11816        else
11817   echo "$as_me:$LINENO: result: no" >&5
11818 echo "${ECHO_T}no" >&6
11819 fi
11820        ;;
11821    *)
11822   echo "$as_me:$LINENO: result: no" >&5
11823 echo "${ECHO_T}no" >&6
11824     ;;
11825   esac
11826 fi
11827
11828 if test "x$enable_dlopen" != xyes; then
11829   enable_dlopen=unknown
11830   enable_dlopen_self=unknown
11831   enable_dlopen_self_static=unknown
11832 else
11833   lt_cv_dlopen=no
11834   lt_cv_dlopen_libs=
11835
11836   case $host_os in
11837   beos*)
11838     lt_cv_dlopen="load_add_on"
11839     lt_cv_dlopen_libs=
11840     lt_cv_dlopen_self=yes
11841     ;;
11842
11843   mingw* | pw32*)
11844     lt_cv_dlopen="LoadLibrary"
11845     lt_cv_dlopen_libs=
11846    ;;
11847
11848   cygwin*)
11849     lt_cv_dlopen="dlopen"
11850     lt_cv_dlopen_libs=
11851    ;;
11852
11853   darwin*)
11854   # if libdl is installed we need to link against it
11855     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11856 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11857 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11858   echo $ECHO_N "(cached) $ECHO_C" >&6
11859 else
11860   ac_check_lib_save_LIBS=$LIBS
11861 LIBS="-ldl  $LIBS"
11862 cat >conftest.$ac_ext <<_ACEOF
11863 /* confdefs.h.  */
11864 _ACEOF
11865 cat confdefs.h >>conftest.$ac_ext
11866 cat >>conftest.$ac_ext <<_ACEOF
11867 /* end confdefs.h.  */
11868
11869 /* Override any gcc2 internal prototype to avoid an error.  */
11870 #ifdef __cplusplus
11871 extern "C"
11872 #endif
11873 /* We use char because int might match the return type of a gcc2
11874    builtin and then its argument prototype would still apply.  */
11875 char dlopen ();
11876 int
11877 main ()
11878 {
11879 dlopen ();
11880   ;
11881   return 0;
11882 }
11883 _ACEOF
11884 rm -f conftest.$ac_objext conftest$ac_exeext
11885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11886   (eval $ac_link) 2>conftest.er1
11887   ac_status=$?
11888   grep -v '^ *+' conftest.er1 >conftest.err
11889   rm -f conftest.er1
11890   cat conftest.err >&5
11891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892   (exit $ac_status); } &&
11893          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11895   (eval $ac_try) 2>&5
11896   ac_status=$?
11897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898   (exit $ac_status); }; } &&
11899          { ac_try='test -s conftest$ac_exeext'
11900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11901   (eval $ac_try) 2>&5
11902   ac_status=$?
11903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904   (exit $ac_status); }; }; then
11905   ac_cv_lib_dl_dlopen=yes
11906 else
11907   echo "$as_me: failed program was:" >&5
11908 sed 's/^/| /' conftest.$ac_ext >&5
11909
11910 ac_cv_lib_dl_dlopen=no
11911 fi
11912 rm -f conftest.err conftest.$ac_objext \
11913       conftest$ac_exeext conftest.$ac_ext
11914 LIBS=$ac_check_lib_save_LIBS
11915 fi
11916 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11917 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11918 if test $ac_cv_lib_dl_dlopen = yes; then
11919   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11920 else
11921
11922     lt_cv_dlopen="dyld"
11923     lt_cv_dlopen_libs=
11924     lt_cv_dlopen_self=yes
11925
11926 fi
11927
11928    ;;
11929
11930   *)
11931     echo "$as_me:$LINENO: checking for shl_load" >&5
11932 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11933 if test "${ac_cv_func_shl_load+set}" = set; then
11934   echo $ECHO_N "(cached) $ECHO_C" >&6
11935 else
11936   cat >conftest.$ac_ext <<_ACEOF
11937 /* confdefs.h.  */
11938 _ACEOF
11939 cat confdefs.h >>conftest.$ac_ext
11940 cat >>conftest.$ac_ext <<_ACEOF
11941 /* end confdefs.h.  */
11942 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11943    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11944 #define shl_load innocuous_shl_load
11945
11946 /* System header to define __stub macros and hopefully few prototypes,
11947     which can conflict with char shl_load (); below.
11948     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11949     <limits.h> exists even on freestanding compilers.  */
11950
11951 #ifdef __STDC__
11952 # include <limits.h>
11953 #else
11954 # include <assert.h>
11955 #endif
11956
11957 #undef shl_load
11958
11959 /* Override any gcc2 internal prototype to avoid an error.  */
11960 #ifdef __cplusplus
11961 extern "C"
11962 {
11963 #endif
11964 /* We use char because int might match the return type of a gcc2
11965    builtin and then its argument prototype would still apply.  */
11966 char shl_load ();
11967 /* The GNU C library defines this for functions which it implements
11968     to always fail with ENOSYS.  Some functions are actually named
11969     something starting with __ and the normal name is an alias.  */
11970 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11971 choke me
11972 #else
11973 char (*f) () = shl_load;
11974 #endif
11975 #ifdef __cplusplus
11976 }
11977 #endif
11978
11979 int
11980 main ()
11981 {
11982 return f != shl_load;
11983   ;
11984   return 0;
11985 }
11986 _ACEOF
11987 rm -f conftest.$ac_objext conftest$ac_exeext
11988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11989   (eval $ac_link) 2>conftest.er1
11990   ac_status=$?
11991   grep -v '^ *+' conftest.er1 >conftest.err
11992   rm -f conftest.er1
11993   cat conftest.err >&5
11994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995   (exit $ac_status); } &&
11996          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11998   (eval $ac_try) 2>&5
11999   ac_status=$?
12000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001   (exit $ac_status); }; } &&
12002          { ac_try='test -s conftest$ac_exeext'
12003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12004   (eval $ac_try) 2>&5
12005   ac_status=$?
12006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007   (exit $ac_status); }; }; then
12008   ac_cv_func_shl_load=yes
12009 else
12010   echo "$as_me: failed program was:" >&5
12011 sed 's/^/| /' conftest.$ac_ext >&5
12012
12013 ac_cv_func_shl_load=no
12014 fi
12015 rm -f conftest.err conftest.$ac_objext \
12016       conftest$ac_exeext conftest.$ac_ext
12017 fi
12018 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12019 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12020 if test $ac_cv_func_shl_load = yes; then
12021   lt_cv_dlopen="shl_load"
12022 else
12023   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12024 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12025 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12026   echo $ECHO_N "(cached) $ECHO_C" >&6
12027 else
12028   ac_check_lib_save_LIBS=$LIBS
12029 LIBS="-ldld  $LIBS"
12030 cat >conftest.$ac_ext <<_ACEOF
12031 /* confdefs.h.  */
12032 _ACEOF
12033 cat confdefs.h >>conftest.$ac_ext
12034 cat >>conftest.$ac_ext <<_ACEOF
12035 /* end confdefs.h.  */
12036
12037 /* Override any gcc2 internal prototype to avoid an error.  */
12038 #ifdef __cplusplus
12039 extern "C"
12040 #endif
12041 /* We use char because int might match the return type of a gcc2
12042    builtin and then its argument prototype would still apply.  */
12043 char shl_load ();
12044 int
12045 main ()
12046 {
12047 shl_load ();
12048   ;
12049   return 0;
12050 }
12051 _ACEOF
12052 rm -f conftest.$ac_objext conftest$ac_exeext
12053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12054   (eval $ac_link) 2>conftest.er1
12055   ac_status=$?
12056   grep -v '^ *+' conftest.er1 >conftest.err
12057   rm -f conftest.er1
12058   cat conftest.err >&5
12059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060   (exit $ac_status); } &&
12061          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12063   (eval $ac_try) 2>&5
12064   ac_status=$?
12065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066   (exit $ac_status); }; } &&
12067          { ac_try='test -s conftest$ac_exeext'
12068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12069   (eval $ac_try) 2>&5
12070   ac_status=$?
12071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072   (exit $ac_status); }; }; then
12073   ac_cv_lib_dld_shl_load=yes
12074 else
12075   echo "$as_me: failed program was:" >&5
12076 sed 's/^/| /' conftest.$ac_ext >&5
12077
12078 ac_cv_lib_dld_shl_load=no
12079 fi
12080 rm -f conftest.err conftest.$ac_objext \
12081       conftest$ac_exeext conftest.$ac_ext
12082 LIBS=$ac_check_lib_save_LIBS
12083 fi
12084 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12085 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12086 if test $ac_cv_lib_dld_shl_load = yes; then
12087   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12088 else
12089   echo "$as_me:$LINENO: checking for dlopen" >&5
12090 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12091 if test "${ac_cv_func_dlopen+set}" = set; then
12092   echo $ECHO_N "(cached) $ECHO_C" >&6
12093 else
12094   cat >conftest.$ac_ext <<_ACEOF
12095 /* confdefs.h.  */
12096 _ACEOF
12097 cat confdefs.h >>conftest.$ac_ext
12098 cat >>conftest.$ac_ext <<_ACEOF
12099 /* end confdefs.h.  */
12100 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12101    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12102 #define dlopen innocuous_dlopen
12103
12104 /* System header to define __stub macros and hopefully few prototypes,
12105     which can conflict with char dlopen (); below.
12106     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12107     <limits.h> exists even on freestanding compilers.  */
12108
12109 #ifdef __STDC__
12110 # include <limits.h>
12111 #else
12112 # include <assert.h>
12113 #endif
12114
12115 #undef dlopen
12116
12117 /* Override any gcc2 internal prototype to avoid an error.  */
12118 #ifdef __cplusplus
12119 extern "C"
12120 {
12121 #endif
12122 /* We use char because int might match the return type of a gcc2
12123    builtin and then its argument prototype would still apply.  */
12124 char dlopen ();
12125 /* The GNU C library defines this for functions which it implements
12126     to always fail with ENOSYS.  Some functions are actually named
12127     something starting with __ and the normal name is an alias.  */
12128 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12129 choke me
12130 #else
12131 char (*f) () = dlopen;
12132 #endif
12133 #ifdef __cplusplus
12134 }
12135 #endif
12136
12137 int
12138 main ()
12139 {
12140 return f != dlopen;
12141   ;
12142   return 0;
12143 }
12144 _ACEOF
12145 rm -f conftest.$ac_objext conftest$ac_exeext
12146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12147   (eval $ac_link) 2>conftest.er1
12148   ac_status=$?
12149   grep -v '^ *+' conftest.er1 >conftest.err
12150   rm -f conftest.er1
12151   cat conftest.err >&5
12152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153   (exit $ac_status); } &&
12154          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12156   (eval $ac_try) 2>&5
12157   ac_status=$?
12158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159   (exit $ac_status); }; } &&
12160          { ac_try='test -s conftest$ac_exeext'
12161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12162   (eval $ac_try) 2>&5
12163   ac_status=$?
12164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165   (exit $ac_status); }; }; then
12166   ac_cv_func_dlopen=yes
12167 else
12168   echo "$as_me: failed program was:" >&5
12169 sed 's/^/| /' conftest.$ac_ext >&5
12170
12171 ac_cv_func_dlopen=no
12172 fi
12173 rm -f conftest.err conftest.$ac_objext \
12174       conftest$ac_exeext conftest.$ac_ext
12175 fi
12176 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12177 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12178 if test $ac_cv_func_dlopen = yes; then
12179   lt_cv_dlopen="dlopen"
12180 else
12181   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12182 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12183 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12184   echo $ECHO_N "(cached) $ECHO_C" >&6
12185 else
12186   ac_check_lib_save_LIBS=$LIBS
12187 LIBS="-ldl  $LIBS"
12188 cat >conftest.$ac_ext <<_ACEOF
12189 /* confdefs.h.  */
12190 _ACEOF
12191 cat confdefs.h >>conftest.$ac_ext
12192 cat >>conftest.$ac_ext <<_ACEOF
12193 /* end confdefs.h.  */
12194
12195 /* Override any gcc2 internal prototype to avoid an error.  */
12196 #ifdef __cplusplus
12197 extern "C"
12198 #endif
12199 /* We use char because int might match the return type of a gcc2
12200    builtin and then its argument prototype would still apply.  */
12201 char dlopen ();
12202 int
12203 main ()
12204 {
12205 dlopen ();
12206   ;
12207   return 0;
12208 }
12209 _ACEOF
12210 rm -f conftest.$ac_objext conftest$ac_exeext
12211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12212   (eval $ac_link) 2>conftest.er1
12213   ac_status=$?
12214   grep -v '^ *+' conftest.er1 >conftest.err
12215   rm -f conftest.er1
12216   cat conftest.err >&5
12217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218   (exit $ac_status); } &&
12219          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12221   (eval $ac_try) 2>&5
12222   ac_status=$?
12223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224   (exit $ac_status); }; } &&
12225          { ac_try='test -s conftest$ac_exeext'
12226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12227   (eval $ac_try) 2>&5
12228   ac_status=$?
12229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230   (exit $ac_status); }; }; then
12231   ac_cv_lib_dl_dlopen=yes
12232 else
12233   echo "$as_me: failed program was:" >&5
12234 sed 's/^/| /' conftest.$ac_ext >&5
12235
12236 ac_cv_lib_dl_dlopen=no
12237 fi
12238 rm -f conftest.err conftest.$ac_objext \
12239       conftest$ac_exeext conftest.$ac_ext
12240 LIBS=$ac_check_lib_save_LIBS
12241 fi
12242 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12243 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12244 if test $ac_cv_lib_dl_dlopen = yes; then
12245   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12246 else
12247   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12248 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12249 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12250   echo $ECHO_N "(cached) $ECHO_C" >&6
12251 else
12252   ac_check_lib_save_LIBS=$LIBS
12253 LIBS="-lsvld  $LIBS"
12254 cat >conftest.$ac_ext <<_ACEOF
12255 /* confdefs.h.  */
12256 _ACEOF
12257 cat confdefs.h >>conftest.$ac_ext
12258 cat >>conftest.$ac_ext <<_ACEOF
12259 /* end confdefs.h.  */
12260
12261 /* Override any gcc2 internal prototype to avoid an error.  */
12262 #ifdef __cplusplus
12263 extern "C"
12264 #endif
12265 /* We use char because int might match the return type of a gcc2
12266    builtin and then its argument prototype would still apply.  */
12267 char dlopen ();
12268 int
12269 main ()
12270 {
12271 dlopen ();
12272   ;
12273   return 0;
12274 }
12275 _ACEOF
12276 rm -f conftest.$ac_objext conftest$ac_exeext
12277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12278   (eval $ac_link) 2>conftest.er1
12279   ac_status=$?
12280   grep -v '^ *+' conftest.er1 >conftest.err
12281   rm -f conftest.er1
12282   cat conftest.err >&5
12283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284   (exit $ac_status); } &&
12285          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12287   (eval $ac_try) 2>&5
12288   ac_status=$?
12289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290   (exit $ac_status); }; } &&
12291          { ac_try='test -s conftest$ac_exeext'
12292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12293   (eval $ac_try) 2>&5
12294   ac_status=$?
12295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296   (exit $ac_status); }; }; then
12297   ac_cv_lib_svld_dlopen=yes
12298 else
12299   echo "$as_me: failed program was:" >&5
12300 sed 's/^/| /' conftest.$ac_ext >&5
12301
12302 ac_cv_lib_svld_dlopen=no
12303 fi
12304 rm -f conftest.err conftest.$ac_objext \
12305       conftest$ac_exeext conftest.$ac_ext
12306 LIBS=$ac_check_lib_save_LIBS
12307 fi
12308 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12309 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12310 if test $ac_cv_lib_svld_dlopen = yes; then
12311   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12312 else
12313   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12314 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12315 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12316   echo $ECHO_N "(cached) $ECHO_C" >&6
12317 else
12318   ac_check_lib_save_LIBS=$LIBS
12319 LIBS="-ldld  $LIBS"
12320 cat >conftest.$ac_ext <<_ACEOF
12321 /* confdefs.h.  */
12322 _ACEOF
12323 cat confdefs.h >>conftest.$ac_ext
12324 cat >>conftest.$ac_ext <<_ACEOF
12325 /* end confdefs.h.  */
12326
12327 /* Override any gcc2 internal prototype to avoid an error.  */
12328 #ifdef __cplusplus
12329 extern "C"
12330 #endif
12331 /* We use char because int might match the return type of a gcc2
12332    builtin and then its argument prototype would still apply.  */
12333 char dld_link ();
12334 int
12335 main ()
12336 {
12337 dld_link ();
12338   ;
12339   return 0;
12340 }
12341 _ACEOF
12342 rm -f conftest.$ac_objext conftest$ac_exeext
12343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12344   (eval $ac_link) 2>conftest.er1
12345   ac_status=$?
12346   grep -v '^ *+' conftest.er1 >conftest.err
12347   rm -f conftest.er1
12348   cat conftest.err >&5
12349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350   (exit $ac_status); } &&
12351          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12353   (eval $ac_try) 2>&5
12354   ac_status=$?
12355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356   (exit $ac_status); }; } &&
12357          { ac_try='test -s conftest$ac_exeext'
12358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12359   (eval $ac_try) 2>&5
12360   ac_status=$?
12361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362   (exit $ac_status); }; }; then
12363   ac_cv_lib_dld_dld_link=yes
12364 else
12365   echo "$as_me: failed program was:" >&5
12366 sed 's/^/| /' conftest.$ac_ext >&5
12367
12368 ac_cv_lib_dld_dld_link=no
12369 fi
12370 rm -f conftest.err conftest.$ac_objext \
12371       conftest$ac_exeext conftest.$ac_ext
12372 LIBS=$ac_check_lib_save_LIBS
12373 fi
12374 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12375 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12376 if test $ac_cv_lib_dld_dld_link = yes; then
12377   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12378 fi
12379
12380
12381 fi
12382
12383
12384 fi
12385
12386
12387 fi
12388
12389
12390 fi
12391
12392
12393 fi
12394
12395     ;;
12396   esac
12397
12398   if test "x$lt_cv_dlopen" != xno; then
12399     enable_dlopen=yes
12400   else
12401     enable_dlopen=no
12402   fi
12403
12404   case $lt_cv_dlopen in
12405   dlopen)
12406     save_CPPFLAGS="$CPPFLAGS"
12407     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12408
12409     save_LDFLAGS="$LDFLAGS"
12410     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12411
12412     save_LIBS="$LIBS"
12413     LIBS="$lt_cv_dlopen_libs $LIBS"
12414
12415     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12416 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12417 if test "${lt_cv_dlopen_self+set}" = set; then
12418   echo $ECHO_N "(cached) $ECHO_C" >&6
12419 else
12420           if test "$cross_compiling" = yes; then :
12421   lt_cv_dlopen_self=cross
12422 else
12423   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12424   lt_status=$lt_dlunknown
12425   cat > conftest.$ac_ext <<EOF
12426 #line 12426 "configure"
12427 #include "confdefs.h"
12428
12429 #if HAVE_DLFCN_H
12430 #include <dlfcn.h>
12431 #endif
12432
12433 #include <stdio.h>
12434
12435 #ifdef RTLD_GLOBAL
12436 #  define LT_DLGLOBAL           RTLD_GLOBAL
12437 #else
12438 #  ifdef DL_GLOBAL
12439 #    define LT_DLGLOBAL         DL_GLOBAL
12440 #  else
12441 #    define LT_DLGLOBAL         0
12442 #  endif
12443 #endif
12444
12445 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12446    find out it does not work in some platform. */
12447 #ifndef LT_DLLAZY_OR_NOW
12448 #  ifdef RTLD_LAZY
12449 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12450 #  else
12451 #    ifdef DL_LAZY
12452 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12453 #    else
12454 #      ifdef RTLD_NOW
12455 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12456 #      else
12457 #        ifdef DL_NOW
12458 #          define LT_DLLAZY_OR_NOW      DL_NOW
12459 #        else
12460 #          define LT_DLLAZY_OR_NOW      0
12461 #        endif
12462 #      endif
12463 #    endif
12464 #  endif
12465 #endif
12466
12467 #ifdef __cplusplus
12468 extern "C" void exit (int);
12469 #endif
12470
12471 void fnord() { int i=42;}
12472 int main ()
12473 {
12474   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12475   int status = $lt_dlunknown;
12476
12477   if (self)
12478     {
12479       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12480       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12481       /* dlclose (self); */
12482     }
12483
12484     exit (status);
12485 }
12486 EOF
12487   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12488   (eval $ac_link) 2>&5
12489   ac_status=$?
12490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12492     (./conftest; exit; ) 2>/dev/null
12493     lt_status=$?
12494     case x$lt_status in
12495       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12496       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12497       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12498     esac
12499   else :
12500     # compilation failed
12501     lt_cv_dlopen_self=no
12502   fi
12503 fi
12504 rm -fr conftest*
12505
12506
12507 fi
12508 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12509 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12510
12511     if test "x$lt_cv_dlopen_self" = xyes; then
12512       LDFLAGS="$LDFLAGS $link_static_flag"
12513       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12514 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12515 if test "${lt_cv_dlopen_self_static+set}" = set; then
12516   echo $ECHO_N "(cached) $ECHO_C" >&6
12517 else
12518           if test "$cross_compiling" = yes; then :
12519   lt_cv_dlopen_self_static=cross
12520 else
12521   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12522   lt_status=$lt_dlunknown
12523   cat > conftest.$ac_ext <<EOF
12524 #line 12524 "configure"
12525 #include "confdefs.h"
12526
12527 #if HAVE_DLFCN_H
12528 #include <dlfcn.h>
12529 #endif
12530
12531 #include <stdio.h>
12532
12533 #ifdef RTLD_GLOBAL
12534 #  define LT_DLGLOBAL           RTLD_GLOBAL
12535 #else
12536 #  ifdef DL_GLOBAL
12537 #    define LT_DLGLOBAL         DL_GLOBAL
12538 #  else
12539 #    define LT_DLGLOBAL         0
12540 #  endif
12541 #endif
12542
12543 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12544    find out it does not work in some platform. */
12545 #ifndef LT_DLLAZY_OR_NOW
12546 #  ifdef RTLD_LAZY
12547 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12548 #  else
12549 #    ifdef DL_LAZY
12550 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12551 #    else
12552 #      ifdef RTLD_NOW
12553 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12554 #      else
12555 #        ifdef DL_NOW
12556 #          define LT_DLLAZY_OR_NOW      DL_NOW
12557 #        else
12558 #          define LT_DLLAZY_OR_NOW      0
12559 #        endif
12560 #      endif
12561 #    endif
12562 #  endif
12563 #endif
12564
12565 #ifdef __cplusplus
12566 extern "C" void exit (int);
12567 #endif
12568
12569 void fnord() { int i=42;}
12570 int main ()
12571 {
12572   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12573   int status = $lt_dlunknown;
12574
12575   if (self)
12576     {
12577       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12578       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12579       /* dlclose (self); */
12580     }
12581
12582     exit (status);
12583 }
12584 EOF
12585   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12586   (eval $ac_link) 2>&5
12587   ac_status=$?
12588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12590     (./conftest; exit; ) 2>/dev/null
12591     lt_status=$?
12592     case x$lt_status in
12593       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12594       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12595       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12596     esac
12597   else :
12598     # compilation failed
12599     lt_cv_dlopen_self_static=no
12600   fi
12601 fi
12602 rm -fr conftest*
12603
12604
12605 fi
12606 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12607 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12608     fi
12609
12610     CPPFLAGS="$save_CPPFLAGS"
12611     LDFLAGS="$save_LDFLAGS"
12612     LIBS="$save_LIBS"
12613     ;;
12614   esac
12615
12616   case $lt_cv_dlopen_self in
12617   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12618   *) enable_dlopen_self=unknown ;;
12619   esac
12620
12621   case $lt_cv_dlopen_self_static in
12622   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12623   *) enable_dlopen_self_static=unknown ;;
12624   esac
12625 fi
12626
12627
12628 # The else clause should only fire when bootstrapping the
12629 # libtool distribution, otherwise you forgot to ship ltmain.sh
12630 # with your package, and you will get complaints that there are
12631 # no rules to generate ltmain.sh.
12632 if test -f "$ltmain"; then
12633   # See if we are running on zsh, and set the options which allow our commands through
12634   # without removal of \ escapes.
12635   if test -n "${ZSH_VERSION+set}" ; then
12636     setopt NO_GLOB_SUBST
12637   fi
12638   # Now quote all the things that may contain metacharacters while being
12639   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12640   # variables and quote the copies for generation of the libtool script.
12641   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12642     SED SHELL STRIP \
12643     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12644     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12645     deplibs_check_method reload_flag reload_cmds need_locks \
12646     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12647     lt_cv_sys_global_symbol_to_c_name_address \
12648     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12649     old_postinstall_cmds old_postuninstall_cmds \
12650     compiler_CXX \
12651     CC_CXX \
12652     LD_CXX \
12653     lt_prog_compiler_wl_CXX \
12654     lt_prog_compiler_pic_CXX \
12655     lt_prog_compiler_static_CXX \
12656     lt_prog_compiler_no_builtin_flag_CXX \
12657     export_dynamic_flag_spec_CXX \
12658     thread_safe_flag_spec_CXX \
12659     whole_archive_flag_spec_CXX \
12660     enable_shared_with_static_runtimes_CXX \
12661     old_archive_cmds_CXX \
12662     old_archive_from_new_cmds_CXX \
12663     predep_objects_CXX \
12664     postdep_objects_CXX \
12665     predeps_CXX \
12666     postdeps_CXX \
12667     compiler_lib_search_path_CXX \
12668     archive_cmds_CXX \
12669     archive_expsym_cmds_CXX \
12670     postinstall_cmds_CXX \
12671     postuninstall_cmds_CXX \
12672     old_archive_from_expsyms_cmds_CXX \
12673     allow_undefined_flag_CXX \
12674     no_undefined_flag_CXX \
12675     export_symbols_cmds_CXX \
12676     hardcode_libdir_flag_spec_CXX \
12677     hardcode_libdir_flag_spec_ld_CXX \
12678     hardcode_libdir_separator_CXX \
12679     hardcode_automatic_CXX \
12680     module_cmds_CXX \
12681     module_expsym_cmds_CXX \
12682     lt_cv_prog_compiler_c_o_CXX \
12683     exclude_expsyms_CXX \
12684     include_expsyms_CXX; do
12685
12686     case $var in
12687     old_archive_cmds_CXX | \
12688     old_archive_from_new_cmds_CXX | \
12689     archive_cmds_CXX | \
12690     archive_expsym_cmds_CXX | \
12691     module_cmds_CXX | \
12692     module_expsym_cmds_CXX | \
12693     old_archive_from_expsyms_cmds_CXX | \
12694     export_symbols_cmds_CXX | \
12695     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12696     postinstall_cmds | postuninstall_cmds | \
12697     old_postinstall_cmds | old_postuninstall_cmds | \
12698     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12699       # Double-quote double-evaled strings.
12700       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12701       ;;
12702     *)
12703       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12704       ;;
12705     esac
12706   done
12707
12708   case $lt_echo in
12709   *'\$0 --fallback-echo"')
12710     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12711     ;;
12712   esac
12713
12714 cfgfile="$ofile"
12715
12716   cat <<__EOF__ >> "$cfgfile"
12717 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12718
12719 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12720
12721 # Shell to use when invoking shell scripts.
12722 SHELL=$lt_SHELL
12723
12724 # Whether or not to build shared libraries.
12725 build_libtool_libs=$enable_shared
12726
12727 # Whether or not to build static libraries.
12728 build_old_libs=$enable_static
12729
12730 # Whether or not to add -lc for building shared libraries.
12731 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12732
12733 # Whether or not to disallow shared libs when runtime libs are static
12734 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12735
12736 # Whether or not to optimize for fast installation.
12737 fast_install=$enable_fast_install
12738
12739 # The host system.
12740 host_alias=$host_alias
12741 host=$host
12742
12743 # An echo program that does not interpret backslashes.
12744 echo=$lt_echo
12745
12746 # The archiver.
12747 AR=$lt_AR
12748 AR_FLAGS=$lt_AR_FLAGS
12749
12750 # A C compiler.
12751 LTCC=$lt_LTCC
12752
12753 # A language-specific compiler.
12754 CC=$lt_compiler_CXX
12755
12756 # Is the compiler the GNU C compiler?
12757 with_gcc=$GCC_CXX
12758
12759 # An ERE matcher.
12760 EGREP=$lt_EGREP
12761
12762 # The linker used to build libraries.
12763 LD=$lt_LD_CXX
12764
12765 # Whether we need hard or soft links.
12766 LN_S=$lt_LN_S
12767
12768 # A BSD-compatible nm program.
12769 NM=$lt_NM
12770
12771 # A symbol stripping program
12772 STRIP=$lt_STRIP
12773
12774 # Used to examine libraries when file_magic_cmd begins "file"
12775 MAGIC_CMD=$MAGIC_CMD
12776
12777 # Used on cygwin: DLL creation program.
12778 DLLTOOL="$DLLTOOL"
12779
12780 # Used on cygwin: object dumper.
12781 OBJDUMP="$OBJDUMP"
12782
12783 # Used on cygwin: assembler.
12784 AS="$AS"
12785
12786 # The name of the directory that contains temporary libtool files.
12787 objdir=$objdir
12788
12789 # How to create reloadable object files.
12790 reload_flag=$lt_reload_flag
12791 reload_cmds=$lt_reload_cmds
12792
12793 # How to pass a linker flag through the compiler.
12794 wl=$lt_lt_prog_compiler_wl_CXX
12795
12796 # Object file suffix (normally "o").
12797 objext="$ac_objext"
12798
12799 # Old archive suffix (normally "a").
12800 libext="$libext"
12801
12802 # Shared library suffix (normally ".so").
12803 shrext='$shrext'
12804
12805 # Executable file suffix (normally "").
12806 exeext="$exeext"
12807
12808 # Additional compiler flags for building library objects.
12809 pic_flag=$lt_lt_prog_compiler_pic_CXX
12810 pic_mode=$pic_mode
12811
12812 # What is the maximum length of a command?
12813 max_cmd_len=$lt_cv_sys_max_cmd_len
12814
12815 # Does compiler simultaneously support -c and -o options?
12816 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12817
12818 # Must we lock files when doing compilation ?
12819 need_locks=$lt_need_locks
12820
12821 # Do we need the lib prefix for modules?
12822 need_lib_prefix=$need_lib_prefix
12823
12824 # Do we need a version for libraries?
12825 need_version=$need_version
12826
12827 # Whether dlopen is supported.
12828 dlopen_support=$enable_dlopen
12829
12830 # Whether dlopen of programs is supported.
12831 dlopen_self=$enable_dlopen_self
12832
12833 # Whether dlopen of statically linked programs is supported.
12834 dlopen_self_static=$enable_dlopen_self_static
12835
12836 # Compiler flag to prevent dynamic linking.
12837 link_static_flag=$lt_lt_prog_compiler_static_CXX
12838
12839 # Compiler flag to turn off builtin functions.
12840 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12841
12842 # Compiler flag to allow reflexive dlopens.
12843 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12844
12845 # Compiler flag to generate shared objects directly from archives.
12846 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12847
12848 # Compiler flag to generate thread-safe objects.
12849 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12850
12851 # Library versioning type.
12852 version_type=$version_type
12853
12854 # Format of library name prefix.
12855 libname_spec=$lt_libname_spec
12856
12857 # List of archive names.  First name is the real one, the rest are links.
12858 # The last name is the one that the linker finds with -lNAME.
12859 library_names_spec=$lt_library_names_spec
12860
12861 # The coded name of the library, if different from the real name.
12862 soname_spec=$lt_soname_spec
12863
12864 # Commands used to build and install an old-style archive.
12865 RANLIB=$lt_RANLIB
12866 old_archive_cmds=$lt_old_archive_cmds_CXX
12867 old_postinstall_cmds=$lt_old_postinstall_cmds
12868 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12869
12870 # Create an old-style archive from a shared archive.
12871 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12872
12873 # Create a temporary old-style archive to link instead of a shared archive.
12874 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12875
12876 # Commands used to build and install a shared archive.
12877 archive_cmds=$lt_archive_cmds_CXX
12878 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12879 postinstall_cmds=$lt_postinstall_cmds
12880 postuninstall_cmds=$lt_postuninstall_cmds
12881
12882 # Commands used to build a loadable module (assumed same as above if empty)
12883 module_cmds=$lt_module_cmds_CXX
12884 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12885
12886 # Commands to strip libraries.
12887 old_striplib=$lt_old_striplib
12888 striplib=$lt_striplib
12889
12890 # Dependencies to place before the objects being linked to create a
12891 # shared library.
12892 predep_objects=$lt_predep_objects_CXX
12893
12894 # Dependencies to place after the objects being linked to create a
12895 # shared library.
12896 postdep_objects=$lt_postdep_objects_CXX
12897
12898 # Dependencies to place before the objects being linked to create a
12899 # shared library.
12900 predeps=$lt_predeps_CXX
12901
12902 # Dependencies to place after the objects being linked to create a
12903 # shared library.
12904 postdeps=$lt_postdeps_CXX
12905
12906 # The library search path used internally by the compiler when linking
12907 # a shared library.
12908 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12909
12910 # Method to check whether dependent libraries are shared objects.
12911 deplibs_check_method=$lt_deplibs_check_method
12912
12913 # Command to use when deplibs_check_method == file_magic.
12914 file_magic_cmd=$lt_file_magic_cmd
12915
12916 # Flag that allows shared libraries with undefined symbols to be built.
12917 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12918
12919 # Flag that forces no undefined symbols.
12920 no_undefined_flag=$lt_no_undefined_flag_CXX
12921
12922 # Commands used to finish a libtool library installation in a directory.
12923 finish_cmds=$lt_finish_cmds
12924
12925 # Same as above, but a single script fragment to be evaled but not shown.
12926 finish_eval=$lt_finish_eval
12927
12928 # Take the output of nm and produce a listing of raw symbols and C names.
12929 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12930
12931 # Transform the output of nm in a proper C declaration
12932 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12933
12934 # Transform the output of nm in a C name address pair
12935 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12936
12937 # This is the shared library runtime path variable.
12938 runpath_var=$runpath_var
12939
12940 # This is the shared library path variable.
12941 shlibpath_var=$shlibpath_var
12942
12943 # Is shlibpath searched before the hard-coded library search path?
12944 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12945
12946 # How to hardcode a shared library path into an executable.
12947 hardcode_action=$hardcode_action_CXX
12948
12949 # Whether we should hardcode library paths into libraries.
12950 hardcode_into_libs=$hardcode_into_libs
12951
12952 # Flag to hardcode \$libdir into a binary during linking.
12953 # This must work even if \$libdir does not exist.
12954 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12955
12956 # If ld is used when linking, flag to hardcode \$libdir into
12957 # a binary during linking. This must work even if \$libdir does
12958 # not exist.
12959 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12960
12961 # Whether we need a single -rpath flag with a separated argument.
12962 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12963
12964 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12965 # resulting binary.
12966 hardcode_direct=$hardcode_direct_CXX
12967
12968 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12969 # resulting binary.
12970 hardcode_minus_L=$hardcode_minus_L_CXX
12971
12972 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12973 # the resulting binary.
12974 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12975
12976 # Set to yes if building a shared library automatically hardcodes DIR into the library
12977 # and all subsequent libraries and executables linked against it.
12978 hardcode_automatic=$hardcode_automatic_CXX
12979
12980 # Variables whose values should be saved in libtool wrapper scripts and
12981 # restored at relink time.
12982 variables_saved_for_relink="$variables_saved_for_relink"
12983
12984 # Whether libtool must link a program against all its dependency libraries.
12985 link_all_deplibs=$link_all_deplibs_CXX
12986
12987 # Compile-time system search path for libraries
12988 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12989
12990 # Run-time system search path for libraries
12991 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12992
12993 # Fix the shell variable \$srcfile for the compiler.
12994 fix_srcfile_path="$fix_srcfile_path_CXX"
12995
12996 # Set to yes if exported symbols are required.
12997 always_export_symbols=$always_export_symbols_CXX
12998
12999 # The commands to list exported symbols.
13000 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13001
13002 # The commands to extract the exported symbol list from a shared archive.
13003 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13004
13005 # Symbols that should not be listed in the preloaded symbols.
13006 exclude_expsyms=$lt_exclude_expsyms_CXX
13007
13008 # Symbols that must always be exported.
13009 include_expsyms=$lt_include_expsyms_CXX
13010
13011 # ### END LIBTOOL TAG CONFIG: $tagname
13012
13013 __EOF__
13014
13015
13016 else
13017   # If there is no Makefile yet, we rely on a make rule to execute
13018   # `config.status --recheck' to rerun these tests and create the
13019   # libtool script then.
13020   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13021   if test -f "$ltmain_in"; then
13022     test -f Makefile && make "$ltmain"
13023   fi
13024 fi
13025
13026
13027 ac_ext=c
13028 ac_cpp='$CPP $CPPFLAGS'
13029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13032
13033 CC=$lt_save_CC
13034 LDCXX=$LD
13035 LD=$lt_save_LD
13036 GCC=$lt_save_GCC
13037 with_gnu_ldcxx=$with_gnu_ld
13038 with_gnu_ld=$lt_save_with_gnu_ld
13039 lt_cv_path_LDCXX=$lt_cv_path_LD
13040 lt_cv_path_LD=$lt_save_path_LD
13041 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13042 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13043
13044         else
13045           tagname=""
13046         fi
13047         ;;
13048
13049       F77)
13050         if test -n "$F77" && test "X$F77" != "Xno"; then
13051
13052 ac_ext=f
13053 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13054 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13055 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13056
13057
13058 archive_cmds_need_lc_F77=no
13059 allow_undefined_flag_F77=
13060 always_export_symbols_F77=no
13061 archive_expsym_cmds_F77=
13062 export_dynamic_flag_spec_F77=
13063 hardcode_direct_F77=no
13064 hardcode_libdir_flag_spec_F77=
13065 hardcode_libdir_flag_spec_ld_F77=
13066 hardcode_libdir_separator_F77=
13067 hardcode_minus_L_F77=no
13068 hardcode_automatic_F77=no
13069 module_cmds_F77=
13070 module_expsym_cmds_F77=
13071 link_all_deplibs_F77=unknown
13072 old_archive_cmds_F77=$old_archive_cmds
13073 no_undefined_flag_F77=
13074 whole_archive_flag_spec_F77=
13075 enable_shared_with_static_runtimes_F77=no
13076
13077 # Source file extension for f77 test sources.
13078 ac_ext=f
13079
13080 # Object file extension for compiled f77 test sources.
13081 objext=o
13082 objext_F77=$objext
13083
13084 # Code to be used in simple compile tests
13085 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13086
13087 # Code to be used in simple link tests
13088 lt_simple_link_test_code="      program t\n      end\n"
13089
13090 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13091
13092 # If no C compiler was specified, use CC.
13093 LTCC=${LTCC-"$CC"}
13094
13095 # Allow CC to be a program name with arguments.
13096 compiler=$CC
13097
13098
13099 # Allow CC to be a program name with arguments.
13100 lt_save_CC="$CC"
13101 CC=${F77-"f77"}
13102 compiler=$CC
13103 compiler_F77=$CC
13104 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13105
13106 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13107 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13108 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13109 echo "${ECHO_T}$can_build_shared" >&6
13110
13111 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13112 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13113 test "$can_build_shared" = "no" && enable_shared=no
13114
13115 # On AIX, shared libraries and static libraries use the same namespace, and
13116 # are all built from PIC.
13117 case "$host_os" in
13118 aix3*)
13119   test "$enable_shared" = yes && enable_static=no
13120   if test -n "$RANLIB"; then
13121     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13122     postinstall_cmds='$RANLIB $lib'
13123   fi
13124   ;;
13125 aix4*)
13126   test "$enable_shared" = yes && enable_static=no
13127   ;;
13128 esac
13129 echo "$as_me:$LINENO: result: $enable_shared" >&5
13130 echo "${ECHO_T}$enable_shared" >&6
13131
13132 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13133 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13134 # Make sure either enable_shared or enable_static is yes.
13135 test "$enable_shared" = yes || enable_static=yes
13136 echo "$as_me:$LINENO: result: $enable_static" >&5
13137 echo "${ECHO_T}$enable_static" >&6
13138
13139 test "$ld_shlibs_F77" = no && can_build_shared=no
13140
13141 GCC_F77="$G77"
13142 LD_F77="$LD"
13143
13144 lt_prog_compiler_wl_F77=
13145 lt_prog_compiler_pic_F77=
13146 lt_prog_compiler_static_F77=
13147
13148 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13149 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13150
13151   if test "$GCC" = yes; then
13152     lt_prog_compiler_wl_F77='-Wl,'
13153     lt_prog_compiler_static_F77='-static'
13154
13155     case $host_os in
13156       aix*)
13157       # All AIX code is PIC.
13158       if test "$host_cpu" = ia64; then
13159         # AIX 5 now supports IA64 processor
13160         lt_prog_compiler_static_F77='-Bstatic'
13161       fi
13162       ;;
13163
13164     amigaos*)
13165       # FIXME: we need at least 68020 code to build shared libraries, but
13166       # adding the `-m68020' flag to GCC prevents building anything better,
13167       # like `-m68040'.
13168       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13169       ;;
13170
13171     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13172       # PIC is the default for these OSes.
13173       ;;
13174
13175     mingw* | pw32* | os2*)
13176       # This hack is so that the source file can tell whether it is being
13177       # built for inclusion in a dll (and should export symbols for example).
13178       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13179       ;;
13180
13181     darwin* | rhapsody*)
13182       # PIC is the default on this platform
13183       # Common symbols not allowed in MH_DYLIB files
13184       lt_prog_compiler_pic_F77='-fno-common'
13185       ;;
13186
13187     msdosdjgpp*)
13188       # Just because we use GCC doesn't mean we suddenly get shared libraries
13189       # on systems that don't support them.
13190       lt_prog_compiler_can_build_shared_F77=no
13191       enable_shared=no
13192       ;;
13193
13194     sysv4*MP*)
13195       if test -d /usr/nec; then
13196         lt_prog_compiler_pic_F77=-Kconform_pic
13197       fi
13198       ;;
13199
13200     hpux*)
13201       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13202       # not for PA HP-UX.
13203       case "$host_cpu" in
13204       hppa*64*|ia64*)
13205         # +Z the default
13206         ;;
13207       *)
13208         lt_prog_compiler_pic_F77='-fPIC'
13209         ;;
13210       esac
13211       ;;
13212
13213     *)
13214       lt_prog_compiler_pic_F77='-fPIC'
13215       ;;
13216     esac
13217   else
13218     # PORTME Check for flag to pass linker flags through the system compiler.
13219     case $host_os in
13220     aix*)
13221       lt_prog_compiler_wl_F77='-Wl,'
13222       if test "$host_cpu" = ia64; then
13223         # AIX 5 now supports IA64 processor
13224         lt_prog_compiler_static_F77='-Bstatic'
13225       else
13226         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13227       fi
13228       ;;
13229
13230     mingw* | pw32* | os2*)
13231       # This hack is so that the source file can tell whether it is being
13232       # built for inclusion in a dll (and should export symbols for example).
13233       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13234       ;;
13235
13236     hpux9* | hpux10* | hpux11*)
13237       lt_prog_compiler_wl_F77='-Wl,'
13238       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13239       # not for PA HP-UX.
13240       case "$host_cpu" in
13241       hppa*64*|ia64*)
13242         # +Z the default
13243         ;;
13244       *)
13245         lt_prog_compiler_pic_F77='+Z'
13246         ;;
13247       esac
13248       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13249       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13250       ;;
13251
13252     irix5* | irix6* | nonstopux*)
13253       lt_prog_compiler_wl_F77='-Wl,'
13254       # PIC (with -KPIC) is the default.
13255       lt_prog_compiler_static_F77='-non_shared'
13256       ;;
13257
13258     newsos6)
13259       lt_prog_compiler_pic_F77='-KPIC'
13260       lt_prog_compiler_static_F77='-Bstatic'
13261       ;;
13262
13263     linux*)
13264       case $CC in
13265       icc* | ecc*)
13266         lt_prog_compiler_wl_F77='-Wl,'
13267         lt_prog_compiler_pic_F77='-KPIC'
13268         lt_prog_compiler_static_F77='-static'
13269         ;;
13270       ccc*)
13271         lt_prog_compiler_wl_F77='-Wl,'
13272         # All Alpha code is PIC.
13273         lt_prog_compiler_static_F77='-non_shared'
13274         ;;
13275       esac
13276       ;;
13277
13278     osf3* | osf4* | osf5*)
13279       lt_prog_compiler_wl_F77='-Wl,'
13280       # All OSF/1 code is PIC.
13281       lt_prog_compiler_static_F77='-non_shared'
13282       ;;
13283
13284     sco3.2v5*)
13285       lt_prog_compiler_pic_F77='-Kpic'
13286       lt_prog_compiler_static_F77='-dn'
13287       ;;
13288
13289     solaris*)
13290       lt_prog_compiler_wl_F77='-Wl,'
13291       lt_prog_compiler_pic_F77='-KPIC'
13292       lt_prog_compiler_static_F77='-Bstatic'
13293       ;;
13294
13295     sunos4*)
13296       lt_prog_compiler_wl_F77='-Qoption ld '
13297       lt_prog_compiler_pic_F77='-PIC'
13298       lt_prog_compiler_static_F77='-Bstatic'
13299       ;;
13300
13301     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13302       lt_prog_compiler_wl_F77='-Wl,'
13303       lt_prog_compiler_pic_F77='-KPIC'
13304       lt_prog_compiler_static_F77='-Bstatic'
13305       ;;
13306
13307     sysv4*MP*)
13308       if test -d /usr/nec ;then
13309         lt_prog_compiler_pic_F77='-Kconform_pic'
13310         lt_prog_compiler_static_F77='-Bstatic'
13311       fi
13312       ;;
13313
13314     uts4*)
13315       lt_prog_compiler_pic_F77='-pic'
13316       lt_prog_compiler_static_F77='-Bstatic'
13317       ;;
13318
13319     *)
13320       lt_prog_compiler_can_build_shared_F77=no
13321       ;;
13322     esac
13323   fi
13324
13325 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13326 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13327
13328 #
13329 # Check to make sure the PIC flag actually works.
13330 #
13331 if test -n "$lt_prog_compiler_pic_F77"; then
13332
13333 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13334 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13335 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13336   echo $ECHO_N "(cached) $ECHO_C" >&6
13337 else
13338   lt_prog_compiler_pic_works_F77=no
13339   ac_outfile=conftest.$ac_objext
13340    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13341    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13342    # Insert the option either (1) after the last *FLAGS variable, or
13343    # (2) before a word containing "conftest.", or (3) at the end.
13344    # Note that $ac_compile itself does not contain backslashes and begins
13345    # with a dollar sign (not a hyphen), so the echo should work correctly.
13346    # The option is referenced via a variable to avoid confusing sed.
13347    lt_compile=`echo "$ac_compile" | $SED \
13348    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13349    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13350    -e 's:$: $lt_compiler_flag:'`
13351    (eval echo "\"\$as_me:13351: $lt_compile\"" >&5)
13352    (eval "$lt_compile" 2>conftest.err)
13353    ac_status=$?
13354    cat conftest.err >&5
13355    echo "$as_me:13355: \$? = $ac_status" >&5
13356    if (exit $ac_status) && test -s "$ac_outfile"; then
13357      # The compiler can only warn and ignore the option if not recognized
13358      # So say no if there are warnings
13359      if test ! -s conftest.err; then
13360        lt_prog_compiler_pic_works_F77=yes
13361      fi
13362    fi
13363    $rm conftest*
13364
13365 fi
13366 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13367 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13368
13369 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13370     case $lt_prog_compiler_pic_F77 in
13371      "" | " "*) ;;
13372      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13373      esac
13374 else
13375     lt_prog_compiler_pic_F77=
13376      lt_prog_compiler_can_build_shared_F77=no
13377 fi
13378
13379 fi
13380 case "$host_os" in
13381   # For platforms which do not support PIC, -DPIC is meaningless:
13382   *djgpp*)
13383     lt_prog_compiler_pic_F77=
13384     ;;
13385   *)
13386     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13387     ;;
13388 esac
13389
13390 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13391 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13392 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13393   echo $ECHO_N "(cached) $ECHO_C" >&6
13394 else
13395   lt_cv_prog_compiler_c_o_F77=no
13396    $rm -r conftest 2>/dev/null
13397    mkdir conftest
13398    cd conftest
13399    mkdir out
13400    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13401
13402    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13403    # that will create temporary files in the current directory regardless of
13404    # the output directory.  Thus, making CWD read-only will cause this test
13405    # to fail, enabling locking or at least warning the user not to do parallel
13406    # builds.
13407    chmod -w .
13408
13409    lt_compiler_flag="-o out/conftest2.$ac_objext"
13410    # Insert the option either (1) after the last *FLAGS variable, or
13411    # (2) before a word containing "conftest.", or (3) at the end.
13412    # Note that $ac_compile itself does not contain backslashes and begins
13413    # with a dollar sign (not a hyphen), so the echo should work correctly.
13414    lt_compile=`echo "$ac_compile" | $SED \
13415    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13416    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13417    -e 's:$: $lt_compiler_flag:'`
13418    (eval echo "\"\$as_me:13418: $lt_compile\"" >&5)
13419    (eval "$lt_compile" 2>out/conftest.err)
13420    ac_status=$?
13421    cat out/conftest.err >&5
13422    echo "$as_me:13422: \$? = $ac_status" >&5
13423    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13424    then
13425      # The compiler can only warn and ignore the option if not recognized
13426      # So say no if there are warnings
13427      if test ! -s out/conftest.err; then
13428        lt_cv_prog_compiler_c_o_F77=yes
13429      fi
13430    fi
13431    chmod u+w .
13432    $rm conftest*
13433    # SGI C++ compiler will create directory out/ii_files/ for
13434    # template instantiation
13435    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13436    $rm out/* && rmdir out
13437    cd ..
13438    rmdir conftest
13439    $rm conftest*
13440
13441 fi
13442 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13443 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13444
13445
13446 hard_links="nottested"
13447 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13448   # do not overwrite the value of need_locks provided by the user
13449   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13450 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13451   hard_links=yes
13452   $rm conftest*
13453   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13454   touch conftest.a
13455   ln conftest.a conftest.b 2>&5 || hard_links=no
13456   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13457   echo "$as_me:$LINENO: result: $hard_links" >&5
13458 echo "${ECHO_T}$hard_links" >&6
13459   if test "$hard_links" = no; then
13460     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13461 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13462     need_locks=warn
13463   fi
13464 else
13465   need_locks=no
13466 fi
13467
13468 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13469 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13470
13471   runpath_var=
13472   allow_undefined_flag_F77=
13473   enable_shared_with_static_runtimes_F77=no
13474   archive_cmds_F77=
13475   archive_expsym_cmds_F77=
13476   old_archive_From_new_cmds_F77=
13477   old_archive_from_expsyms_cmds_F77=
13478   export_dynamic_flag_spec_F77=
13479   whole_archive_flag_spec_F77=
13480   thread_safe_flag_spec_F77=
13481   hardcode_libdir_flag_spec_F77=
13482   hardcode_libdir_flag_spec_ld_F77=
13483   hardcode_libdir_separator_F77=
13484   hardcode_direct_F77=no
13485   hardcode_minus_L_F77=no
13486   hardcode_shlibpath_var_F77=unsupported
13487   link_all_deplibs_F77=unknown
13488   hardcode_automatic_F77=no
13489   module_cmds_F77=
13490   module_expsym_cmds_F77=
13491   always_export_symbols_F77=no
13492   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13493   # include_expsyms should be a list of space-separated symbols to be *always*
13494   # included in the symbol list
13495   include_expsyms_F77=
13496   # exclude_expsyms can be an extended regexp of symbols to exclude
13497   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13498   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13499   # as well as any symbol that contains `d'.
13500   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13501   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13502   # platforms (ab)use it in PIC code, but their linkers get confused if
13503   # the symbol is explicitly referenced.  Since portable code cannot
13504   # rely on this symbol name, it's probably fine to never include it in
13505   # preloaded symbol tables.
13506   extract_expsyms_cmds=
13507
13508   case $host_os in
13509   cygwin* | mingw* | pw32*)
13510     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13511     # When not using gcc, we currently assume that we are using
13512     # Microsoft Visual C++.
13513     if test "$GCC" != yes; then
13514       with_gnu_ld=no
13515     fi
13516     ;;
13517   openbsd*)
13518     with_gnu_ld=no
13519     ;;
13520   esac
13521
13522   ld_shlibs_F77=yes
13523   if test "$with_gnu_ld" = yes; then
13524     # If archive_cmds runs LD, not CC, wlarc should be empty
13525     wlarc='${wl}'
13526
13527     # See if GNU ld supports shared libraries.
13528     case $host_os in
13529     aix3* | aix4* | aix5*)
13530       # On AIX/PPC, the GNU linker is very broken
13531       if test "$host_cpu" != ia64; then
13532         ld_shlibs_F77=no
13533         cat <<EOF 1>&2
13534
13535 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13536 *** to be unable to reliably create shared libraries on AIX.
13537 *** Therefore, libtool is disabling shared libraries support.  If you
13538 *** really care for shared libraries, you may want to modify your PATH
13539 *** so that a non-GNU linker is found, and then restart.
13540
13541 EOF
13542       fi
13543       ;;
13544
13545     amigaos*)
13546       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13547       hardcode_libdir_flag_spec_F77='-L$libdir'
13548       hardcode_minus_L_F77=yes
13549
13550       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13551       # that the semantics of dynamic libraries on AmigaOS, at least up
13552       # to version 4, is to share data among multiple programs linked
13553       # with the same dynamic library.  Since this doesn't match the
13554       # behavior of shared libraries on other platforms, we can't use
13555       # them.
13556       ld_shlibs_F77=no
13557       ;;
13558
13559     beos*)
13560       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13561         allow_undefined_flag_F77=unsupported
13562         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13563         # support --undefined.  This deserves some investigation.  FIXME
13564         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13565       else
13566         ld_shlibs_F77=no
13567       fi
13568       ;;
13569
13570     cygwin* | mingw* | pw32*)
13571       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13572       # as there is no search path for DLLs.
13573       hardcode_libdir_flag_spec_F77='-L$libdir'
13574       allow_undefined_flag_F77=unsupported
13575       always_export_symbols_F77=no
13576       enable_shared_with_static_runtimes_F77=yes
13577       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13578
13579       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13580         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13581         # If the export-symbols file already is a .def file (1st line
13582         # is EXPORTS), use it as is; otherwise, prepend...
13583         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13584           cp $export_symbols $output_objdir/$soname.def;
13585         else
13586           echo EXPORTS > $output_objdir/$soname.def;
13587           cat $export_symbols >> $output_objdir/$soname.def;
13588         fi~
13589         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13590       else
13591         ld_shlibs=no
13592       fi
13593       ;;
13594
13595     netbsd*)
13596       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13597         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13598         wlarc=
13599       else
13600         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13601         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13602       fi
13603       ;;
13604
13605     solaris* | sysv5*)
13606       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13607         ld_shlibs_F77=no
13608         cat <<EOF 1>&2
13609
13610 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13611 *** create shared libraries on Solaris systems.  Therefore, libtool
13612 *** is disabling shared libraries support.  We urge you to upgrade GNU
13613 *** binutils to release 2.9.1 or newer.  Another option is to modify
13614 *** your PATH or compiler configuration so that the native linker is
13615 *** used, and then restart.
13616
13617 EOF
13618       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13619         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13620         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13621       else
13622         ld_shlibs_F77=no
13623       fi
13624       ;;
13625
13626     sunos4*)
13627       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13628       wlarc=
13629       hardcode_direct_F77=yes
13630       hardcode_shlibpath_var_F77=no
13631       ;;
13632
13633   linux*)
13634     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13635         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13636         archive_cmds_F77="$tmp_archive_cmds"
13637       supports_anon_versioning=no
13638       case `$LD -v 2>/dev/null` in
13639         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13640         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13641         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13642         *\ 2.11.*) ;; # other 2.11 versions
13643         *) supports_anon_versioning=yes ;;
13644       esac
13645       if test $supports_anon_versioning = yes; then
13646         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13647 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13648 $echo "local: *; };" >> $output_objdir/$libname.ver~
13649         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13650       else
13651         archive_expsym_cmds_F77="$tmp_archive_cmds"
13652       fi
13653     else
13654       ld_shlibs_F77=no
13655     fi
13656     ;;
13657
13658     *)
13659       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13660         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13661         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13662       else
13663         ld_shlibs_F77=no
13664       fi
13665       ;;
13666     esac
13667
13668     if test "$ld_shlibs_F77" = yes; then
13669       runpath_var=LD_RUN_PATH
13670       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13671       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13672       # ancient GNU ld didn't support --whole-archive et. al.
13673       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13674         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13675       else
13676         whole_archive_flag_spec_F77=
13677       fi
13678     fi
13679   else
13680     # PORTME fill in a description of your system's linker (not GNU ld)
13681     case $host_os in
13682     aix3*)
13683       allow_undefined_flag_F77=unsupported
13684       always_export_symbols_F77=yes
13685       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13686       # Note: this linker hardcodes the directories in LIBPATH if there
13687       # are no directories specified by -L.
13688       hardcode_minus_L_F77=yes
13689       if test "$GCC" = yes && test -z "$link_static_flag"; then
13690         # Neither direct hardcoding nor static linking is supported with a
13691         # broken collect2.
13692         hardcode_direct_F77=unsupported
13693       fi
13694       ;;
13695
13696     aix4* | aix5*)
13697       if test "$host_cpu" = ia64; then
13698         # On IA64, the linker does run time linking by default, so we don't
13699         # have to do anything special.
13700         aix_use_runtimelinking=no
13701         exp_sym_flag='-Bexport'
13702         no_entry_flag=""
13703       else
13704         # If we're using GNU nm, then we don't want the "-C" option.
13705         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13706         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13707           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13708         else
13709           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13710         fi
13711         aix_use_runtimelinking=no
13712
13713         # Test if we are trying to use run time linking or normal
13714         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13715         # need to do runtime linking.
13716         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13717           for ld_flag in $LDFLAGS; do
13718           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13719             aix_use_runtimelinking=yes
13720             break
13721           fi
13722           done
13723         esac
13724
13725         exp_sym_flag='-bexport'
13726         no_entry_flag='-bnoentry'
13727       fi
13728
13729       # When large executables or shared objects are built, AIX ld can
13730       # have problems creating the table of contents.  If linking a library
13731       # or program results in "error TOC overflow" add -mminimal-toc to
13732       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13733       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13734
13735       archive_cmds_F77=''
13736       hardcode_direct_F77=yes
13737       hardcode_libdir_separator_F77=':'
13738       link_all_deplibs_F77=yes
13739
13740       if test "$GCC" = yes; then
13741         case $host_os in aix4.012|aix4.012.*)
13742         # We only want to do this on AIX 4.2 and lower, the check
13743         # below for broken collect2 doesn't work under 4.3+
13744           collect2name=`${CC} -print-prog-name=collect2`
13745           if test -f "$collect2name" && \
13746            strings "$collect2name" | grep resolve_lib_name >/dev/null
13747           then
13748           # We have reworked collect2
13749           hardcode_direct_F77=yes
13750           else
13751           # We have old collect2
13752           hardcode_direct_F77=unsupported
13753           # It fails to find uninstalled libraries when the uninstalled
13754           # path is not listed in the libpath.  Setting hardcode_minus_L
13755           # to unsupported forces relinking
13756           hardcode_minus_L_F77=yes
13757           hardcode_libdir_flag_spec_F77='-L$libdir'
13758           hardcode_libdir_separator_F77=
13759           fi
13760         esac
13761         shared_flag='-shared'
13762       else
13763         # not using gcc
13764         if test "$host_cpu" = ia64; then
13765         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13766         # chokes on -Wl,-G. The following line is correct:
13767           shared_flag='-G'
13768         else
13769         if test "$aix_use_runtimelinking" = yes; then
13770             shared_flag='${wl}-G'
13771           else
13772             shared_flag='${wl}-bM:SRE'
13773         fi
13774         fi
13775       fi
13776
13777       # It seems that -bexpall does not export symbols beginning with
13778       # underscore (_), so it is better to generate a list of symbols to export.
13779       always_export_symbols_F77=yes
13780       if test "$aix_use_runtimelinking" = yes; then
13781         # Warning - without using the other runtime loading flags (-brtl),
13782         # -berok will link without error, but may produce a broken library.
13783         allow_undefined_flag_F77='-berok'
13784        # Determine the default libpath from the value encoded in an empty executable.
13785        cat >conftest.$ac_ext <<_ACEOF
13786       program main
13787
13788       end
13789 _ACEOF
13790 rm -f conftest.$ac_objext conftest$ac_exeext
13791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13792   (eval $ac_link) 2>conftest.er1
13793   ac_status=$?
13794   grep -v '^ *+' conftest.er1 >conftest.err
13795   rm -f conftest.er1
13796   cat conftest.err >&5
13797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798   (exit $ac_status); } &&
13799          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
13800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13801   (eval $ac_try) 2>&5
13802   ac_status=$?
13803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804   (exit $ac_status); }; } &&
13805          { ac_try='test -s conftest$ac_exeext'
13806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13807   (eval $ac_try) 2>&5
13808   ac_status=$?
13809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810   (exit $ac_status); }; }; then
13811
13812 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13813 }'`
13814 # Check for a 64-bit object if we didn't find anything.
13815 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13816 }'`; fi
13817 else
13818   echo "$as_me: failed program was:" >&5
13819 sed 's/^/| /' conftest.$ac_ext >&5
13820
13821 fi
13822 rm -f conftest.err conftest.$ac_objext \
13823       conftest$ac_exeext conftest.$ac_ext
13824 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13825
13826        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13827         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13828        else
13829         if test "$host_cpu" = ia64; then
13830           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13831           allow_undefined_flag_F77="-z nodefs"
13832           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13833         else
13834          # Determine the default libpath from the value encoded in an empty executable.
13835          cat >conftest.$ac_ext <<_ACEOF
13836       program main
13837
13838       end
13839 _ACEOF
13840 rm -f conftest.$ac_objext conftest$ac_exeext
13841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13842   (eval $ac_link) 2>conftest.er1
13843   ac_status=$?
13844   grep -v '^ *+' conftest.er1 >conftest.err
13845   rm -f conftest.er1
13846   cat conftest.err >&5
13847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848   (exit $ac_status); } &&
13849          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
13850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13851   (eval $ac_try) 2>&5
13852   ac_status=$?
13853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854   (exit $ac_status); }; } &&
13855          { ac_try='test -s conftest$ac_exeext'
13856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13857   (eval $ac_try) 2>&5
13858   ac_status=$?
13859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860   (exit $ac_status); }; }; then
13861
13862 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13863 }'`
13864 # Check for a 64-bit object if we didn't find anything.
13865 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13866 }'`; fi
13867 else
13868   echo "$as_me: failed program was:" >&5
13869 sed 's/^/| /' conftest.$ac_ext >&5
13870
13871 fi
13872 rm -f conftest.err conftest.$ac_objext \
13873       conftest$ac_exeext conftest.$ac_ext
13874 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13875
13876          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13877           # Warning - without using the other run time loading flags,
13878           # -berok will link without error, but may produce a broken library.
13879           no_undefined_flag_F77=' ${wl}-bernotok'
13880           allow_undefined_flag_F77=' ${wl}-berok'
13881           # -bexpall does not export symbols beginning with underscore (_)
13882           always_export_symbols_F77=yes
13883           # Exported symbols can be pulled into shared objects from archives
13884           whole_archive_flag_spec_F77=' '
13885           archive_cmds_need_lc_F77=yes
13886           # This is similar to how AIX traditionally builds it's shared libraries.
13887           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13888         fi
13889       fi
13890       ;;
13891
13892     amigaos*)
13893       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13894       hardcode_libdir_flag_spec_F77='-L$libdir'
13895       hardcode_minus_L_F77=yes
13896       # see comment about different semantics on the GNU ld section
13897       ld_shlibs_F77=no
13898       ;;
13899
13900     bsdi4*)
13901       export_dynamic_flag_spec_F77=-rdynamic
13902       ;;
13903
13904     cygwin* | mingw* | pw32*)
13905       # When not using gcc, we currently assume that we are using
13906       # Microsoft Visual C++.
13907       # hardcode_libdir_flag_spec is actually meaningless, as there is
13908       # no search path for DLLs.
13909       hardcode_libdir_flag_spec_F77=' '
13910       allow_undefined_flag_F77=unsupported
13911       # Tell ltmain to make .lib files, not .a files.
13912       libext=lib
13913       # Tell ltmain to make .dll files, not .so files.
13914       shrext=".dll"
13915       # FIXME: Setting linknames here is a bad hack.
13916       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13917       # The linker will automatically build a .lib file if we build a DLL.
13918       old_archive_From_new_cmds_F77='true'
13919       # FIXME: Should let the user specify the lib program.
13920       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13921       fix_srcfile_path='`cygpath -w "$srcfile"`'
13922       enable_shared_with_static_runtimes_F77=yes
13923       ;;
13924
13925     darwin* | rhapsody*)
13926     if test "$GXX" = yes ; then
13927       archive_cmds_need_lc_F77=no
13928       case "$host_os" in
13929       rhapsody* | darwin1.[012])
13930         allow_undefined_flag_F77='-undefined suppress'
13931         ;;
13932       *) # Darwin 1.3 on
13933       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13934         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13935       else
13936         case ${MACOSX_DEPLOYMENT_TARGET} in
13937           10.[012])
13938             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13939             ;;
13940           10.*)
13941             allow_undefined_flag_F77='-undefined dynamic_lookup'
13942             ;;
13943         esac
13944       fi
13945         ;;
13946       esac
13947         lt_int_apple_cc_single_mod=no
13948         output_verbose_link_cmd='echo'
13949         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13950           lt_int_apple_cc_single_mod=yes
13951         fi
13952         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13953           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13954         else
13955         archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13956       fi
13957       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13958       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13959         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13960           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13961         else
13962           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13963         fi
13964           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13965       hardcode_direct_F77=no
13966       hardcode_automatic_F77=yes
13967       hardcode_shlibpath_var_F77=unsupported
13968       whole_archive_flag_spec_F77='-all_load $convenience'
13969       link_all_deplibs_F77=yes
13970     else
13971       ld_shlibs_F77=no
13972     fi
13973       ;;
13974
13975     dgux*)
13976       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13977       hardcode_libdir_flag_spec_F77='-L$libdir'
13978       hardcode_shlibpath_var_F77=no
13979       ;;
13980
13981     freebsd1*)
13982       ld_shlibs_F77=no
13983       ;;
13984
13985     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13986     # support.  Future versions do this automatically, but an explicit c++rt0.o
13987     # does not break anything, and helps significantly (at the cost of a little
13988     # extra space).
13989     freebsd2.2*)
13990       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13991       hardcode_libdir_flag_spec_F77='-R$libdir'
13992       hardcode_direct_F77=yes
13993       hardcode_shlibpath_var_F77=no
13994       ;;
13995
13996     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13997     freebsd2*)
13998       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13999       hardcode_direct_F77=yes
14000       hardcode_minus_L_F77=yes
14001       hardcode_shlibpath_var_F77=no
14002       ;;
14003
14004     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14005     freebsd* | kfreebsd*-gnu)
14006       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14007       hardcode_libdir_flag_spec_F77='-R$libdir'
14008       hardcode_direct_F77=yes
14009       hardcode_shlibpath_var_F77=no
14010       ;;
14011
14012     hpux9*)
14013       if test "$GCC" = yes; then
14014         archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14015       else
14016         archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14017       fi
14018       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14019       hardcode_libdir_separator_F77=:
14020       hardcode_direct_F77=yes
14021
14022       # hardcode_minus_L: Not really in the search PATH,
14023       # but as the default location of the library.
14024       hardcode_minus_L_F77=yes
14025       export_dynamic_flag_spec_F77='${wl}-E'
14026       ;;
14027
14028     hpux10* | hpux11*)
14029       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14030         case "$host_cpu" in
14031         hppa*64*|ia64*)
14032           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14033           ;;
14034         *)
14035           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14036           ;;
14037         esac
14038       else
14039         case "$host_cpu" in
14040         hppa*64*|ia64*)
14041           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14042           ;;
14043         *)
14044           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14045           ;;
14046         esac
14047       fi
14048       if test "$with_gnu_ld" = no; then
14049         case "$host_cpu" in
14050         hppa*64*)
14051           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14052           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14053           hardcode_libdir_separator_F77=:
14054           hardcode_direct_F77=no
14055           hardcode_shlibpath_var_F77=no
14056           ;;
14057         ia64*)
14058           hardcode_libdir_flag_spec_F77='-L$libdir'
14059           hardcode_direct_F77=no
14060           hardcode_shlibpath_var_F77=no
14061
14062           # hardcode_minus_L: Not really in the search PATH,
14063           # but as the default location of the library.
14064           hardcode_minus_L_F77=yes
14065           ;;
14066         *)
14067           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14068           hardcode_libdir_separator_F77=:
14069           hardcode_direct_F77=yes
14070           export_dynamic_flag_spec_F77='${wl}-E'
14071
14072           # hardcode_minus_L: Not really in the search PATH,
14073           # but as the default location of the library.
14074           hardcode_minus_L_F77=yes
14075           ;;
14076         esac
14077       fi
14078       ;;
14079
14080     irix5* | irix6* | nonstopux*)
14081       if test "$GCC" = yes; then
14082         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14083       else
14084         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14085         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14086       fi
14087       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14088       hardcode_libdir_separator_F77=:
14089       link_all_deplibs_F77=yes
14090       ;;
14091
14092     netbsd*)
14093       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14094         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14095       else
14096         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14097       fi
14098       hardcode_libdir_flag_spec_F77='-R$libdir'
14099       hardcode_direct_F77=yes
14100       hardcode_shlibpath_var_F77=no
14101       ;;
14102
14103     newsos6)
14104       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14105       hardcode_direct_F77=yes
14106       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14107       hardcode_libdir_separator_F77=:
14108       hardcode_shlibpath_var_F77=no
14109       ;;
14110
14111     openbsd*)
14112       hardcode_direct_F77=yes
14113       hardcode_shlibpath_var_F77=no
14114       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14115         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14116         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14117         export_dynamic_flag_spec_F77='${wl}-E'
14118       else
14119        case $host_os in
14120          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14121            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14122            hardcode_libdir_flag_spec_F77='-R$libdir'
14123            ;;
14124          *)
14125            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14126            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14127            ;;
14128        esac
14129       fi
14130       ;;
14131
14132     os2*)
14133       hardcode_libdir_flag_spec_F77='-L$libdir'
14134       hardcode_minus_L_F77=yes
14135       allow_undefined_flag_F77=unsupported
14136       archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
14137       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14138       ;;
14139
14140     osf3*)
14141       if test "$GCC" = yes; then
14142         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14143         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14144       else
14145         allow_undefined_flag_F77=' -expect_unresolved \*'
14146         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14147       fi
14148       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14149       hardcode_libdir_separator_F77=:
14150       ;;
14151
14152     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14153       if test "$GCC" = yes; then
14154         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14155         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14156         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14157       else
14158         allow_undefined_flag_F77=' -expect_unresolved \*'
14159         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14160         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14161         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14162
14163         # Both c and cxx compiler support -rpath directly
14164         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14165       fi
14166       hardcode_libdir_separator_F77=:
14167       ;;
14168
14169     sco3.2v5*)
14170       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14171       hardcode_shlibpath_var_F77=no
14172       export_dynamic_flag_spec_F77='${wl}-Bexport'
14173       runpath_var=LD_RUN_PATH
14174       hardcode_runpath_var=yes
14175       ;;
14176
14177     solaris*)
14178       no_undefined_flag_F77=' -z text'
14179       if test "$GCC" = yes; then
14180         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14181         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14182           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14183       else
14184         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14185         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14186         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14187       fi
14188       hardcode_libdir_flag_spec_F77='-R$libdir'
14189       hardcode_shlibpath_var_F77=no
14190       case $host_os in
14191       solaris2.[0-5] | solaris2.[0-5].*) ;;
14192       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14193         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14194       esac
14195       link_all_deplibs_F77=yes
14196       ;;
14197
14198     sunos4*)
14199       if test "x$host_vendor" = xsequent; then
14200         # Use $CC to link under sequent, because it throws in some extra .o
14201         # files that make .init and .fini sections work.
14202         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14203       else
14204         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14205       fi
14206       hardcode_libdir_flag_spec_F77='-L$libdir'
14207       hardcode_direct_F77=yes
14208       hardcode_minus_L_F77=yes
14209       hardcode_shlibpath_var_F77=no
14210       ;;
14211
14212     sysv4)
14213       case $host_vendor in
14214         sni)
14215           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14216           hardcode_direct_F77=yes # is this really true???
14217         ;;
14218         siemens)
14219           ## LD is ld it makes a PLAMLIB
14220           ## CC just makes a GrossModule.
14221           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14222           reload_cmds_F77='$CC -r -o $output$reload_objs'
14223           hardcode_direct_F77=no
14224         ;;
14225         motorola)
14226           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14227           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14228         ;;
14229       esac
14230       runpath_var='LD_RUN_PATH'
14231       hardcode_shlibpath_var_F77=no
14232       ;;
14233
14234     sysv4.3*)
14235       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14236       hardcode_shlibpath_var_F77=no
14237       export_dynamic_flag_spec_F77='-Bexport'
14238       ;;
14239
14240     sysv4*MP*)
14241       if test -d /usr/nec; then
14242         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14243         hardcode_shlibpath_var_F77=no
14244         runpath_var=LD_RUN_PATH
14245         hardcode_runpath_var=yes
14246         ld_shlibs_F77=yes
14247       fi
14248       ;;
14249
14250     sysv4.2uw2*)
14251       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14252       hardcode_direct_F77=yes
14253       hardcode_minus_L_F77=no
14254       hardcode_shlibpath_var_F77=no
14255       hardcode_runpath_var=yes
14256       runpath_var=LD_RUN_PATH
14257       ;;
14258
14259    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14260       no_undefined_flag_F77='${wl}-z ${wl}text'
14261       if test "$GCC" = yes; then
14262         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14263       else
14264         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14265       fi
14266       runpath_var='LD_RUN_PATH'
14267       hardcode_shlibpath_var_F77=no
14268       ;;
14269
14270     sysv5*)
14271       no_undefined_flag_F77=' -z text'
14272       # $CC -shared without GNU ld will not create a library from C++
14273       # object files and a static libstdc++, better avoid it by now
14274       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14275       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14276                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14277       hardcode_libdir_flag_spec_F77=
14278       hardcode_shlibpath_var_F77=no
14279       runpath_var='LD_RUN_PATH'
14280       ;;
14281
14282     uts4*)
14283       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14284       hardcode_libdir_flag_spec_F77='-L$libdir'
14285       hardcode_shlibpath_var_F77=no
14286       ;;
14287
14288     *)
14289       ld_shlibs_F77=no
14290       ;;
14291     esac
14292   fi
14293
14294 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14295 echo "${ECHO_T}$ld_shlibs_F77" >&6
14296 test "$ld_shlibs_F77" = no && can_build_shared=no
14297
14298 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14299 if test "$GCC" = yes; then
14300   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14301 fi
14302
14303 #
14304 # Do we need to explicitly link libc?
14305 #
14306 case "x$archive_cmds_need_lc_F77" in
14307 x|xyes)
14308   # Assume -lc should be added
14309   archive_cmds_need_lc_F77=yes
14310
14311   if test "$enable_shared" = yes && test "$GCC" = yes; then
14312     case $archive_cmds_F77 in
14313     *'~'*)
14314       # FIXME: we may have to deal with multi-command sequences.
14315       ;;
14316     '$CC '*)
14317       # Test whether the compiler implicitly links with -lc since on some
14318       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14319       # to ld, don't add -lc before -lgcc.
14320       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14321 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14322       $rm conftest*
14323       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14324
14325       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14326   (eval $ac_compile) 2>&5
14327   ac_status=$?
14328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329   (exit $ac_status); } 2>conftest.err; then
14330         soname=conftest
14331         lib=conftest
14332         libobjs=conftest.$ac_objext
14333         deplibs=
14334         wl=$lt_prog_compiler_wl_F77
14335         compiler_flags=-v
14336         linker_flags=-v
14337         verstring=
14338         output_objdir=.
14339         libname=conftest
14340         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14341         allow_undefined_flag_F77=
14342         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14343   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14344   ac_status=$?
14345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346   (exit $ac_status); }
14347         then
14348           archive_cmds_need_lc_F77=no
14349         else
14350           archive_cmds_need_lc_F77=yes
14351         fi
14352         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14353       else
14354         cat conftest.err 1>&5
14355       fi
14356       $rm conftest*
14357       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14358 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14359       ;;
14360     esac
14361   fi
14362   ;;
14363 esac
14364
14365 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14366 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14367 library_names_spec=
14368 libname_spec='lib$name'
14369 soname_spec=
14370 shrext=".so"
14371 postinstall_cmds=
14372 postuninstall_cmds=
14373 finish_cmds=
14374 finish_eval=
14375 shlibpath_var=
14376 shlibpath_overrides_runpath=unknown
14377 version_type=none
14378 dynamic_linker="$host_os ld.so"
14379 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14380 if test "$GCC" = yes; then
14381   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14382   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14383     # if the path contains ";" then we assume it to be the separator
14384     # otherwise default to the standard path separator (i.e. ":") - it is
14385     # assumed that no part of a normal pathname contains ";" but that should
14386     # okay in the real world where ";" in dirpaths is itself problematic.
14387     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14388   else
14389     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14390   fi
14391 else
14392   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14393 fi
14394 need_lib_prefix=unknown
14395 hardcode_into_libs=no
14396
14397 # when you set need_version to no, make sure it does not cause -set_version
14398 # flags to be left without arguments
14399 need_version=unknown
14400
14401 case $host_os in
14402 aix3*)
14403   version_type=linux
14404   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14405   shlibpath_var=LIBPATH
14406
14407   # AIX 3 has no versioning support, so we append a major version to the name.
14408   soname_spec='${libname}${release}${shared_ext}$major'
14409   ;;
14410
14411 aix4* | aix5*)
14412   version_type=linux
14413   need_lib_prefix=no
14414   need_version=no
14415   hardcode_into_libs=yes
14416   if test "$host_cpu" = ia64; then
14417     # AIX 5 supports IA64
14418     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14419     shlibpath_var=LD_LIBRARY_PATH
14420   else
14421     # With GCC up to 2.95.x, collect2 would create an import file
14422     # for dependence libraries.  The import file would start with
14423     # the line `#! .'.  This would cause the generated library to
14424     # depend on `.', always an invalid library.  This was fixed in
14425     # development snapshots of GCC prior to 3.0.
14426     case $host_os in
14427       aix4 | aix4.[01] | aix4.[01].*)
14428       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14429            echo ' yes '
14430            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14431         :
14432       else
14433         can_build_shared=no
14434       fi
14435       ;;
14436     esac
14437     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14438     # soname into executable. Probably we can add versioning support to
14439     # collect2, so additional links can be useful in future.
14440     if test "$aix_use_runtimelinking" = yes; then
14441       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14442       # instead of lib<name>.a to let people know that these are not
14443       # typical AIX shared libraries.
14444       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14445     else
14446       # We preserve .a as extension for shared libraries through AIX4.2
14447       # and later when we are not doing run time linking.
14448       library_names_spec='${libname}${release}.a $libname.a'
14449       soname_spec='${libname}${release}${shared_ext}$major'
14450     fi
14451     shlibpath_var=LIBPATH
14452   fi
14453   ;;
14454
14455 amigaos*)
14456   library_names_spec='$libname.ixlibrary $libname.a'
14457   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14458   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14459   ;;
14460
14461 beos*)
14462   library_names_spec='${libname}${shared_ext}'
14463   dynamic_linker="$host_os ld.so"
14464   shlibpath_var=LIBRARY_PATH
14465   ;;
14466
14467 bsdi4*)
14468   version_type=linux
14469   need_version=no
14470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14471   soname_spec='${libname}${release}${shared_ext}$major'
14472   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14473   shlibpath_var=LD_LIBRARY_PATH
14474   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14475   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14476   # the default ld.so.conf also contains /usr/contrib/lib and
14477   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14478   # libtool to hard-code these into programs
14479   ;;
14480
14481 cygwin* | mingw* | pw32*)
14482   version_type=windows
14483   shrext=".dll"
14484   need_version=no
14485   need_lib_prefix=no
14486
14487   case $GCC,$host_os in
14488   yes,cygwin* | yes,mingw* | yes,pw32*)
14489     library_names_spec='$libname.dll.a'
14490     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14491     postinstall_cmds='base_file=`basename \${file}`~
14492       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14493       dldir=$destdir/`dirname \$dlpath`~
14494       test -d \$dldir || mkdir -p \$dldir~
14495       $install_prog $dir/$dlname \$dldir/$dlname'
14496     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14497       dlpath=$dir/\$dldll~
14498        $rm \$dlpath'
14499     shlibpath_overrides_runpath=yes
14500
14501     case $host_os in
14502     cygwin*)
14503       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14504       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14505       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14506       ;;
14507     mingw*)
14508       # MinGW DLLs use traditional 'lib' prefix
14509       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14510       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14511       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14512         # It is most probably a Windows format PATH printed by
14513         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14514         # path with ; separators, and with drive letters. We can handle the
14515         # drive letters (cygwin fileutils understands them), so leave them,
14516         # especially as we might pass files found there to a mingw objdump,
14517         # which wouldn't understand a cygwinified path. Ahh.
14518         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14519       else
14520         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14521       fi
14522       ;;
14523     pw32*)
14524       # pw32 DLLs use 'pw' prefix rather than 'lib'
14525       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14526       ;;
14527     esac
14528     ;;
14529
14530   *)
14531     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14532     ;;
14533   esac
14534   dynamic_linker='Win32 ld.exe'
14535   # FIXME: first we should search . and the directory the executable is in
14536   shlibpath_var=PATH
14537   ;;
14538
14539 darwin* | rhapsody*)
14540   dynamic_linker="$host_os dyld"
14541   version_type=darwin
14542   need_lib_prefix=no
14543   need_version=no
14544   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14545   soname_spec='${libname}${release}${major}$shared_ext'
14546   shlibpath_overrides_runpath=yes
14547   shlibpath_var=DYLD_LIBRARY_PATH
14548   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14549   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14550   if test "$GCC" = yes; then
14551     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14552   else
14553     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14554   fi
14555   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14556   ;;
14557
14558 dgux*)
14559   version_type=linux
14560   need_lib_prefix=no
14561   need_version=no
14562   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14563   soname_spec='${libname}${release}${shared_ext}$major'
14564   shlibpath_var=LD_LIBRARY_PATH
14565   ;;
14566
14567 freebsd1*)
14568   dynamic_linker=no
14569   ;;
14570
14571 kfreebsd*-gnu)
14572   version_type=linux
14573   need_lib_prefix=no
14574   need_version=no
14575   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14576   soname_spec='${libname}${release}${shared_ext}$major'
14577   shlibpath_var=LD_LIBRARY_PATH
14578   shlibpath_overrides_runpath=no
14579   hardcode_into_libs=yes
14580   dynamic_linker='GNU ld.so'
14581   ;;
14582
14583 freebsd*)
14584   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14585   version_type=freebsd-$objformat
14586   case $version_type in
14587     freebsd-elf*)
14588       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14589       need_version=no
14590       need_lib_prefix=no
14591       ;;
14592     freebsd-*)
14593       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14594       need_version=yes
14595       ;;
14596   esac
14597   shlibpath_var=LD_LIBRARY_PATH
14598   case $host_os in
14599   freebsd2*)
14600     shlibpath_overrides_runpath=yes
14601     ;;
14602   freebsd3.01* | freebsdelf3.01*)
14603     shlibpath_overrides_runpath=yes
14604     hardcode_into_libs=yes
14605     ;;
14606   *) # from 3.2 on
14607     shlibpath_overrides_runpath=no
14608     hardcode_into_libs=yes
14609     ;;
14610   esac
14611   ;;
14612
14613 gnu*)
14614   version_type=linux
14615   need_lib_prefix=no
14616   need_version=no
14617   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14618   soname_spec='${libname}${release}${shared_ext}$major'
14619   shlibpath_var=LD_LIBRARY_PATH
14620   hardcode_into_libs=yes
14621   ;;
14622
14623 hpux9* | hpux10* | hpux11*)
14624   # Give a soname corresponding to the major version so that dld.sl refuses to
14625   # link against other versions.
14626   version_type=sunos
14627   need_lib_prefix=no
14628   need_version=no
14629   case "$host_cpu" in
14630   ia64*)
14631     shrext='.so'
14632     hardcode_into_libs=yes
14633     dynamic_linker="$host_os dld.so"
14634     shlibpath_var=LD_LIBRARY_PATH
14635     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14636     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14637     soname_spec='${libname}${release}${shared_ext}$major'
14638     if test "X$HPUX_IA64_MODE" = X32; then
14639       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14640     else
14641       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14642     fi
14643     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14644     ;;
14645    hppa*64*)
14646      shrext='.sl'
14647      hardcode_into_libs=yes
14648      dynamic_linker="$host_os dld.sl"
14649      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14650      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14651      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14652      soname_spec='${libname}${release}${shared_ext}$major'
14653      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14654      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14655      ;;
14656    *)
14657     shrext='.sl'
14658     dynamic_linker="$host_os dld.sl"
14659     shlibpath_var=SHLIB_PATH
14660     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14661     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14662     soname_spec='${libname}${release}${shared_ext}$major'
14663     ;;
14664   esac
14665   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14666   postinstall_cmds='chmod 555 $lib'
14667   ;;
14668
14669 irix5* | irix6* | nonstopux*)
14670   case $host_os in
14671     nonstopux*) version_type=nonstopux ;;
14672     *)
14673         if test "$lt_cv_prog_gnu_ld" = yes; then
14674                 version_type=linux
14675         else
14676                 version_type=irix
14677         fi ;;
14678   esac
14679   need_lib_prefix=no
14680   need_version=no
14681   soname_spec='${libname}${release}${shared_ext}$major'
14682   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14683   case $host_os in
14684   irix5* | nonstopux*)
14685     libsuff= shlibsuff=
14686     ;;
14687   *)
14688     case $LD in # libtool.m4 will add one of these switches to LD
14689     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14690       libsuff= shlibsuff= libmagic=32-bit;;
14691     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14692       libsuff=32 shlibsuff=N32 libmagic=N32;;
14693     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14694       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14695     *) libsuff= shlibsuff= libmagic=never-match;;
14696     esac
14697     ;;
14698   esac
14699   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14700   shlibpath_overrides_runpath=no
14701   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14702   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14703   hardcode_into_libs=yes
14704   ;;
14705
14706 # No shared lib support for Linux oldld, aout, or coff.
14707 linux*oldld* | linux*aout* | linux*coff*)
14708   dynamic_linker=no
14709   ;;
14710
14711 # This must be Linux ELF.
14712 linux*)
14713   version_type=linux
14714   need_lib_prefix=no
14715   need_version=no
14716   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14717   soname_spec='${libname}${release}${shared_ext}$major'
14718   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14719   shlibpath_var=LD_LIBRARY_PATH
14720   shlibpath_overrides_runpath=no
14721   # This implies no fast_install, which is unacceptable.
14722   # Some rework will be needed to allow for fast_install
14723   # before this can be enabled.
14724   hardcode_into_libs=yes
14725
14726   # Append ld.so.conf contents to the search path
14727   if test -f /etc/ld.so.conf; then
14728     ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
14729     sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
14730   fi
14731
14732   # We used to test for /lib/ld.so.1 and disable shared libraries on
14733   # powerpc, because MkLinux only supported shared libraries with the
14734   # GNU dynamic linker.  Since this was broken with cross compilers,
14735   # most powerpc-linux boxes support dynamic linking these days and
14736   # people can always --disable-shared, the test was removed, and we
14737   # assume the GNU/Linux dynamic linker is in use.
14738   dynamic_linker='GNU/Linux ld.so'
14739   ;;
14740
14741 knetbsd*-gnu)
14742   version_type=linux
14743   need_lib_prefix=no
14744   need_version=no
14745   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14746   soname_spec='${libname}${release}${shared_ext}$major'
14747   shlibpath_var=LD_LIBRARY_PATH
14748   shlibpath_overrides_runpath=no
14749   hardcode_into_libs=yes
14750   dynamic_linker='GNU ld.so'
14751   ;;
14752
14753 netbsd*)
14754   version_type=sunos
14755   need_lib_prefix=no
14756   need_version=no
14757   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14758     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14759     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14760     dynamic_linker='NetBSD (a.out) ld.so'
14761   else
14762     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14763     soname_spec='${libname}${release}${shared_ext}$major'
14764     dynamic_linker='NetBSD ld.elf_so'
14765   fi
14766   shlibpath_var=LD_LIBRARY_PATH
14767   shlibpath_overrides_runpath=yes
14768   hardcode_into_libs=yes
14769   ;;
14770
14771 newsos6)
14772   version_type=linux
14773   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14774   shlibpath_var=LD_LIBRARY_PATH
14775   shlibpath_overrides_runpath=yes
14776   ;;
14777
14778 nto-qnx*)
14779   version_type=linux
14780   need_lib_prefix=no
14781   need_version=no
14782   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14783   soname_spec='${libname}${release}${shared_ext}$major'
14784   shlibpath_var=LD_LIBRARY_PATH
14785   shlibpath_overrides_runpath=yes
14786   ;;
14787
14788 openbsd*)
14789   version_type=sunos
14790   need_lib_prefix=no
14791   need_version=yes
14792   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14793   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14794   shlibpath_var=LD_LIBRARY_PATH
14795   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14796     case $host_os in
14797       openbsd2.[89] | openbsd2.[89].*)
14798         shlibpath_overrides_runpath=no
14799         ;;
14800       *)
14801         shlibpath_overrides_runpath=yes
14802         ;;
14803       esac
14804   else
14805     shlibpath_overrides_runpath=yes
14806   fi
14807   ;;
14808
14809 os2*)
14810   libname_spec='$name'
14811   shrext=".dll"
14812   need_lib_prefix=no
14813   library_names_spec='$libname${shared_ext} $libname.a'
14814   dynamic_linker='OS/2 ld.exe'
14815   shlibpath_var=LIBPATH
14816   ;;
14817
14818 osf3* | osf4* | osf5*)
14819   version_type=osf
14820   need_lib_prefix=no
14821   need_version=no
14822   soname_spec='${libname}${release}${shared_ext}$major'
14823   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14824   shlibpath_var=LD_LIBRARY_PATH
14825   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14826   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14827   ;;
14828
14829 sco3.2v5*)
14830   version_type=osf
14831   soname_spec='${libname}${release}${shared_ext}$major'
14832   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14833   shlibpath_var=LD_LIBRARY_PATH
14834   ;;
14835
14836 solaris*)
14837   version_type=linux
14838   need_lib_prefix=no
14839   need_version=no
14840   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14841   soname_spec='${libname}${release}${shared_ext}$major'
14842   shlibpath_var=LD_LIBRARY_PATH
14843   shlibpath_overrides_runpath=yes
14844   hardcode_into_libs=yes
14845   # ldd complains unless libraries are executable
14846   postinstall_cmds='chmod +x $lib'
14847   ;;
14848
14849 sunos4*)
14850   version_type=sunos
14851   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14852   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14853   shlibpath_var=LD_LIBRARY_PATH
14854   shlibpath_overrides_runpath=yes
14855   if test "$with_gnu_ld" = yes; then
14856     need_lib_prefix=no
14857   fi
14858   need_version=yes
14859   ;;
14860
14861 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14862   version_type=linux
14863   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14864   soname_spec='${libname}${release}${shared_ext}$major'
14865   shlibpath_var=LD_LIBRARY_PATH
14866   case $host_vendor in
14867     sni)
14868       shlibpath_overrides_runpath=no
14869       need_lib_prefix=no
14870       export_dynamic_flag_spec='${wl}-Blargedynsym'
14871       runpath_var=LD_RUN_PATH
14872       ;;
14873     siemens)
14874       need_lib_prefix=no
14875       ;;
14876     motorola)
14877       need_lib_prefix=no
14878       need_version=no
14879       shlibpath_overrides_runpath=no
14880       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14881       ;;
14882   esac
14883   ;;
14884
14885 sysv4*MP*)
14886   if test -d /usr/nec ;then
14887     version_type=linux
14888     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14889     soname_spec='$libname${shared_ext}.$major'
14890     shlibpath_var=LD_LIBRARY_PATH
14891   fi
14892   ;;
14893
14894 uts4*)
14895   version_type=linux
14896   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14897   soname_spec='${libname}${release}${shared_ext}$major'
14898   shlibpath_var=LD_LIBRARY_PATH
14899   ;;
14900
14901 *)
14902   dynamic_linker=no
14903   ;;
14904 esac
14905 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14906 echo "${ECHO_T}$dynamic_linker" >&6
14907 test "$dynamic_linker" = no && can_build_shared=no
14908
14909 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14910 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14911 hardcode_action_F77=
14912 if test -n "$hardcode_libdir_flag_spec_F77" || \
14913    test -n "$runpath_var F77" || \
14914    test "X$hardcode_automatic_F77"="Xyes" ; then
14915
14916   # We can hardcode non-existant directories.
14917   if test "$hardcode_direct_F77" != no &&
14918      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14919      # have to relink, otherwise we might link with an installed library
14920      # when we should be linking with a yet-to-be-installed one
14921      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14922      test "$hardcode_minus_L_F77" != no; then
14923     # Linking always hardcodes the temporary library directory.
14924     hardcode_action_F77=relink
14925   else
14926     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14927     hardcode_action_F77=immediate
14928   fi
14929 else
14930   # We cannot hardcode anything, or else we can only hardcode existing
14931   # directories.
14932   hardcode_action_F77=unsupported
14933 fi
14934 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14935 echo "${ECHO_T}$hardcode_action_F77" >&6
14936
14937 if test "$hardcode_action_F77" = relink; then
14938   # Fast installation is not supported
14939   enable_fast_install=no
14940 elif test "$shlibpath_overrides_runpath" = yes ||
14941      test "$enable_shared" = no; then
14942   # Fast installation is not necessary
14943   enable_fast_install=needless
14944 fi
14945
14946 striplib=
14947 old_striplib=
14948 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14949 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14950 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14951   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14952   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14953   echo "$as_me:$LINENO: result: yes" >&5
14954 echo "${ECHO_T}yes" >&6
14955 else
14956 # FIXME - insert some real tests, host_os isn't really good enough
14957   case $host_os in
14958    darwin*)
14959        if test -n "$STRIP" ; then
14960          striplib="$STRIP -x"
14961          echo "$as_me:$LINENO: result: yes" >&5
14962 echo "${ECHO_T}yes" >&6
14963        else
14964   echo "$as_me:$LINENO: result: no" >&5
14965 echo "${ECHO_T}no" >&6
14966 fi
14967        ;;
14968    *)
14969   echo "$as_me:$LINENO: result: no" >&5
14970 echo "${ECHO_T}no" >&6
14971     ;;
14972   esac
14973 fi
14974
14975
14976
14977 # The else clause should only fire when bootstrapping the
14978 # libtool distribution, otherwise you forgot to ship ltmain.sh
14979 # with your package, and you will get complaints that there are
14980 # no rules to generate ltmain.sh.
14981 if test -f "$ltmain"; then
14982   # See if we are running on zsh, and set the options which allow our commands through
14983   # without removal of \ escapes.
14984   if test -n "${ZSH_VERSION+set}" ; then
14985     setopt NO_GLOB_SUBST
14986   fi
14987   # Now quote all the things that may contain metacharacters while being
14988   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14989   # variables and quote the copies for generation of the libtool script.
14990   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14991     SED SHELL STRIP \
14992     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14993     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14994     deplibs_check_method reload_flag reload_cmds need_locks \
14995     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14996     lt_cv_sys_global_symbol_to_c_name_address \
14997     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14998     old_postinstall_cmds old_postuninstall_cmds \
14999     compiler_F77 \
15000     CC_F77 \
15001     LD_F77 \
15002     lt_prog_compiler_wl_F77 \
15003     lt_prog_compiler_pic_F77 \
15004     lt_prog_compiler_static_F77 \
15005     lt_prog_compiler_no_builtin_flag_F77 \
15006     export_dynamic_flag_spec_F77 \
15007     thread_safe_flag_spec_F77 \
15008     whole_archive_flag_spec_F77 \
15009     enable_shared_with_static_runtimes_F77 \
15010     old_archive_cmds_F77 \
15011     old_archive_from_new_cmds_F77 \
15012     predep_objects_F77 \
15013     postdep_objects_F77 \
15014     predeps_F77 \
15015     postdeps_F77 \
15016     compiler_lib_search_path_F77 \
15017     archive_cmds_F77 \
15018     archive_expsym_cmds_F77 \
15019     postinstall_cmds_F77 \
15020     postuninstall_cmds_F77 \
15021     old_archive_from_expsyms_cmds_F77 \
15022     allow_undefined_flag_F77 \
15023     no_undefined_flag_F77 \
15024     export_symbols_cmds_F77 \
15025     hardcode_libdir_flag_spec_F77 \
15026     hardcode_libdir_flag_spec_ld_F77 \
15027     hardcode_libdir_separator_F77 \
15028     hardcode_automatic_F77 \
15029     module_cmds_F77 \
15030     module_expsym_cmds_F77 \
15031     lt_cv_prog_compiler_c_o_F77 \
15032     exclude_expsyms_F77 \
15033     include_expsyms_F77; do
15034
15035     case $var in
15036     old_archive_cmds_F77 | \
15037     old_archive_from_new_cmds_F77 | \
15038     archive_cmds_F77 | \
15039     archive_expsym_cmds_F77 | \
15040     module_cmds_F77 | \
15041     module_expsym_cmds_F77 | \
15042     old_archive_from_expsyms_cmds_F77 | \
15043     export_symbols_cmds_F77 | \
15044     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15045     postinstall_cmds | postuninstall_cmds | \
15046     old_postinstall_cmds | old_postuninstall_cmds | \
15047     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15048       # Double-quote double-evaled strings.
15049       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15050       ;;
15051     *)
15052       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15053       ;;
15054     esac
15055   done
15056
15057   case $lt_echo in
15058   *'\$0 --fallback-echo"')
15059     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15060     ;;
15061   esac
15062
15063 cfgfile="$ofile"
15064
15065   cat <<__EOF__ >> "$cfgfile"
15066 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15067
15068 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15069
15070 # Shell to use when invoking shell scripts.
15071 SHELL=$lt_SHELL
15072
15073 # Whether or not to build shared libraries.
15074 build_libtool_libs=$enable_shared
15075
15076 # Whether or not to build static libraries.
15077 build_old_libs=$enable_static
15078
15079 # Whether or not to add -lc for building shared libraries.
15080 build_libtool_need_lc=$archive_cmds_need_lc_F77
15081
15082 # Whether or not to disallow shared libs when runtime libs are static
15083 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15084
15085 # Whether or not to optimize for fast installation.
15086 fast_install=$enable_fast_install
15087
15088 # The host system.
15089 host_alias=$host_alias
15090 host=$host
15091
15092 # An echo program that does not interpret backslashes.
15093 echo=$lt_echo
15094
15095 # The archiver.
15096 AR=$lt_AR
15097 AR_FLAGS=$lt_AR_FLAGS
15098
15099 # A C compiler.
15100 LTCC=$lt_LTCC
15101
15102 # A language-specific compiler.
15103 CC=$lt_compiler_F77
15104
15105 # Is the compiler the GNU C compiler?
15106 with_gcc=$GCC_F77
15107
15108 # An ERE matcher.
15109 EGREP=$lt_EGREP
15110
15111 # The linker used to build libraries.
15112 LD=$lt_LD_F77
15113
15114 # Whether we need hard or soft links.
15115 LN_S=$lt_LN_S
15116
15117 # A BSD-compatible nm program.
15118 NM=$lt_NM
15119
15120 # A symbol stripping program
15121 STRIP=$lt_STRIP
15122
15123 # Used to examine libraries when file_magic_cmd begins "file"
15124 MAGIC_CMD=$MAGIC_CMD
15125
15126 # Used on cygwin: DLL creation program.
15127 DLLTOOL="$DLLTOOL"
15128
15129 # Used on cygwin: object dumper.
15130 OBJDUMP="$OBJDUMP"
15131
15132 # Used on cygwin: assembler.
15133 AS="$AS"
15134
15135 # The name of the directory that contains temporary libtool files.
15136 objdir=$objdir
15137
15138 # How to create reloadable object files.
15139 reload_flag=$lt_reload_flag
15140 reload_cmds=$lt_reload_cmds
15141
15142 # How to pass a linker flag through the compiler.
15143 wl=$lt_lt_prog_compiler_wl_F77
15144
15145 # Object file suffix (normally "o").
15146 objext="$ac_objext"
15147
15148 # Old archive suffix (normally "a").
15149 libext="$libext"
15150
15151 # Shared library suffix (normally ".so").
15152 shrext='$shrext'
15153
15154 # Executable file suffix (normally "").
15155 exeext="$exeext"
15156
15157 # Additional compiler flags for building library objects.
15158 pic_flag=$lt_lt_prog_compiler_pic_F77
15159 pic_mode=$pic_mode
15160
15161 # What is the maximum length of a command?
15162 max_cmd_len=$lt_cv_sys_max_cmd_len
15163
15164 # Does compiler simultaneously support -c and -o options?
15165 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15166
15167 # Must we lock files when doing compilation ?
15168 need_locks=$lt_need_locks
15169
15170 # Do we need the lib prefix for modules?
15171 need_lib_prefix=$need_lib_prefix
15172
15173 # Do we need a version for libraries?
15174 need_version=$need_version
15175
15176 # Whether dlopen is supported.
15177 dlopen_support=$enable_dlopen
15178
15179 # Whether dlopen of programs is supported.
15180 dlopen_self=$enable_dlopen_self
15181
15182 # Whether dlopen of statically linked programs is supported.
15183 dlopen_self_static=$enable_dlopen_self_static
15184
15185 # Compiler flag to prevent dynamic linking.
15186 link_static_flag=$lt_lt_prog_compiler_static_F77
15187
15188 # Compiler flag to turn off builtin functions.
15189 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15190
15191 # Compiler flag to allow reflexive dlopens.
15192 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15193
15194 # Compiler flag to generate shared objects directly from archives.
15195 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15196
15197 # Compiler flag to generate thread-safe objects.
15198 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15199
15200 # Library versioning type.
15201 version_type=$version_type
15202
15203 # Format of library name prefix.
15204 libname_spec=$lt_libname_spec
15205
15206 # List of archive names.  First name is the real one, the rest are links.
15207 # The last name is the one that the linker finds with -lNAME.
15208 library_names_spec=$lt_library_names_spec
15209
15210 # The coded name of the library, if different from the real name.
15211 soname_spec=$lt_soname_spec
15212
15213 # Commands used to build and install an old-style archive.
15214 RANLIB=$lt_RANLIB
15215 old_archive_cmds=$lt_old_archive_cmds_F77
15216 old_postinstall_cmds=$lt_old_postinstall_cmds
15217 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15218
15219 # Create an old-style archive from a shared archive.
15220 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15221
15222 # Create a temporary old-style archive to link instead of a shared archive.
15223 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15224
15225 # Commands used to build and install a shared archive.
15226 archive_cmds=$lt_archive_cmds_F77
15227 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15228 postinstall_cmds=$lt_postinstall_cmds
15229 postuninstall_cmds=$lt_postuninstall_cmds
15230
15231 # Commands used to build a loadable module (assumed same as above if empty)
15232 module_cmds=$lt_module_cmds_F77
15233 module_expsym_cmds=$lt_module_expsym_cmds_F77
15234
15235 # Commands to strip libraries.
15236 old_striplib=$lt_old_striplib
15237 striplib=$lt_striplib
15238
15239 # Dependencies to place before the objects being linked to create a
15240 # shared library.
15241 predep_objects=$lt_predep_objects_F77
15242
15243 # Dependencies to place after the objects being linked to create a
15244 # shared library.
15245 postdep_objects=$lt_postdep_objects_F77
15246
15247 # Dependencies to place before the objects being linked to create a
15248 # shared library.
15249 predeps=$lt_predeps_F77
15250
15251 # Dependencies to place after the objects being linked to create a
15252 # shared library.
15253 postdeps=$lt_postdeps_F77
15254
15255 # The library search path used internally by the compiler when linking
15256 # a shared library.
15257 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15258
15259 # Method to check whether dependent libraries are shared objects.
15260 deplibs_check_method=$lt_deplibs_check_method
15261
15262 # Command to use when deplibs_check_method == file_magic.
15263 file_magic_cmd=$lt_file_magic_cmd
15264
15265 # Flag that allows shared libraries with undefined symbols to be built.
15266 allow_undefined_flag=$lt_allow_undefined_flag_F77
15267
15268 # Flag that forces no undefined symbols.
15269 no_undefined_flag=$lt_no_undefined_flag_F77
15270
15271 # Commands used to finish a libtool library installation in a directory.
15272 finish_cmds=$lt_finish_cmds
15273
15274 # Same as above, but a single script fragment to be evaled but not shown.
15275 finish_eval=$lt_finish_eval
15276
15277 # Take the output of nm and produce a listing of raw symbols and C names.
15278 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15279
15280 # Transform the output of nm in a proper C declaration
15281 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15282
15283 # Transform the output of nm in a C name address pair
15284 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15285
15286 # This is the shared library runtime path variable.
15287 runpath_var=$runpath_var
15288
15289 # This is the shared library path variable.
15290 shlibpath_var=$shlibpath_var
15291
15292 # Is shlibpath searched before the hard-coded library search path?
15293 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15294
15295 # How to hardcode a shared library path into an executable.
15296 hardcode_action=$hardcode_action_F77
15297
15298 # Whether we should hardcode library paths into libraries.
15299 hardcode_into_libs=$hardcode_into_libs
15300
15301 # Flag to hardcode \$libdir into a binary during linking.
15302 # This must work even if \$libdir does not exist.
15303 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15304
15305 # If ld is used when linking, flag to hardcode \$libdir into
15306 # a binary during linking. This must work even if \$libdir does
15307 # not exist.
15308 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15309
15310 # Whether we need a single -rpath flag with a separated argument.
15311 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15312
15313 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15314 # resulting binary.
15315 hardcode_direct=$hardcode_direct_F77
15316
15317 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15318 # resulting binary.
15319 hardcode_minus_L=$hardcode_minus_L_F77
15320
15321 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15322 # the resulting binary.
15323 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15324
15325 # Set to yes if building a shared library automatically hardcodes DIR into the library
15326 # and all subsequent libraries and executables linked against it.
15327 hardcode_automatic=$hardcode_automatic_F77
15328
15329 # Variables whose values should be saved in libtool wrapper scripts and
15330 # restored at relink time.
15331 variables_saved_for_relink="$variables_saved_for_relink"
15332
15333 # Whether libtool must link a program against all its dependency libraries.
15334 link_all_deplibs=$link_all_deplibs_F77
15335
15336 # Compile-time system search path for libraries
15337 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15338
15339 # Run-time system search path for libraries
15340 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15341
15342 # Fix the shell variable \$srcfile for the compiler.
15343 fix_srcfile_path="$fix_srcfile_path_F77"
15344
15345 # Set to yes if exported symbols are required.
15346 always_export_symbols=$always_export_symbols_F77
15347
15348 # The commands to list exported symbols.
15349 export_symbols_cmds=$lt_export_symbols_cmds_F77
15350
15351 # The commands to extract the exported symbol list from a shared archive.
15352 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15353
15354 # Symbols that should not be listed in the preloaded symbols.
15355 exclude_expsyms=$lt_exclude_expsyms_F77
15356
15357 # Symbols that must always be exported.
15358 include_expsyms=$lt_include_expsyms_F77
15359
15360 # ### END LIBTOOL TAG CONFIG: $tagname
15361
15362 __EOF__
15363
15364
15365 else
15366   # If there is no Makefile yet, we rely on a make rule to execute
15367   # `config.status --recheck' to rerun these tests and create the
15368   # libtool script then.
15369   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15370   if test -f "$ltmain_in"; then
15371     test -f Makefile && make "$ltmain"
15372   fi
15373 fi
15374
15375
15376 ac_ext=c
15377 ac_cpp='$CPP $CPPFLAGS'
15378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15381
15382 CC="$lt_save_CC"
15383
15384         else
15385           tagname=""
15386         fi
15387         ;;
15388
15389       GCJ)
15390         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15391
15392
15393
15394 # Source file extension for Java test sources.
15395 ac_ext=java
15396
15397 # Object file extension for compiled Java test sources.
15398 objext=o
15399 objext_GCJ=$objext
15400
15401 # Code to be used in simple compile tests
15402 lt_simple_compile_test_code="class foo {}\n"
15403
15404 # Code to be used in simple link tests
15405 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15406
15407 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15408
15409 # If no C compiler was specified, use CC.
15410 LTCC=${LTCC-"$CC"}
15411
15412 # Allow CC to be a program name with arguments.
15413 compiler=$CC
15414
15415
15416 # Allow CC to be a program name with arguments.
15417 lt_save_CC="$CC"
15418 CC=${GCJ-"gcj"}
15419 compiler=$CC
15420 compiler_GCJ=$CC
15421
15422 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15423 archive_cmds_need_lc_GCJ=no
15424
15425
15426 lt_prog_compiler_no_builtin_flag_GCJ=
15427
15428 if test "$GCC" = yes; then
15429   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15430
15431
15432 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15433 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15434 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15435   echo $ECHO_N "(cached) $ECHO_C" >&6
15436 else
15437   lt_cv_prog_compiler_rtti_exceptions=no
15438   ac_outfile=conftest.$ac_objext
15439    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15440    lt_compiler_flag="-fno-rtti -fno-exceptions"
15441    # Insert the option either (1) after the last *FLAGS variable, or
15442    # (2) before a word containing "conftest.", or (3) at the end.
15443    # Note that $ac_compile itself does not contain backslashes and begins
15444    # with a dollar sign (not a hyphen), so the echo should work correctly.
15445    # The option is referenced via a variable to avoid confusing sed.
15446    lt_compile=`echo "$ac_compile" | $SED \
15447    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15448    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15449    -e 's:$: $lt_compiler_flag:'`
15450    (eval echo "\"\$as_me:15450: $lt_compile\"" >&5)
15451    (eval "$lt_compile" 2>conftest.err)
15452    ac_status=$?
15453    cat conftest.err >&5
15454    echo "$as_me:15454: \$? = $ac_status" >&5
15455    if (exit $ac_status) && test -s "$ac_outfile"; then
15456      # The compiler can only warn and ignore the option if not recognized
15457      # So say no if there are warnings
15458      if test ! -s conftest.err; then
15459        lt_cv_prog_compiler_rtti_exceptions=yes
15460      fi
15461    fi
15462    $rm conftest*
15463
15464 fi
15465 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15466 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15467
15468 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15469     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15470 else
15471     :
15472 fi
15473
15474 fi
15475
15476 lt_prog_compiler_wl_GCJ=
15477 lt_prog_compiler_pic_GCJ=
15478 lt_prog_compiler_static_GCJ=
15479
15480 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15481 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15482
15483   if test "$GCC" = yes; then
15484     lt_prog_compiler_wl_GCJ='-Wl,'
15485     lt_prog_compiler_static_GCJ='-static'
15486
15487     case $host_os in
15488       aix*)
15489       # All AIX code is PIC.
15490       if test "$host_cpu" = ia64; then
15491         # AIX 5 now supports IA64 processor
15492         lt_prog_compiler_static_GCJ='-Bstatic'
15493       fi
15494       ;;
15495
15496     amigaos*)
15497       # FIXME: we need at least 68020 code to build shared libraries, but
15498       # adding the `-m68020' flag to GCC prevents building anything better,
15499       # like `-m68040'.
15500       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15501       ;;
15502
15503     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15504       # PIC is the default for these OSes.
15505       ;;
15506
15507     mingw* | pw32* | os2*)
15508       # This hack is so that the source file can tell whether it is being
15509       # built for inclusion in a dll (and should export symbols for example).
15510       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15511       ;;
15512
15513     darwin* | rhapsody*)
15514       # PIC is the default on this platform
15515       # Common symbols not allowed in MH_DYLIB files
15516       lt_prog_compiler_pic_GCJ='-fno-common'
15517       ;;
15518
15519     msdosdjgpp*)
15520       # Just because we use GCC doesn't mean we suddenly get shared libraries
15521       # on systems that don't support them.
15522       lt_prog_compiler_can_build_shared_GCJ=no
15523       enable_shared=no
15524       ;;
15525
15526     sysv4*MP*)
15527       if test -d /usr/nec; then
15528         lt_prog_compiler_pic_GCJ=-Kconform_pic
15529       fi
15530       ;;
15531
15532     hpux*)
15533       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15534       # not for PA HP-UX.
15535       case "$host_cpu" in
15536       hppa*64*|ia64*)
15537         # +Z the default
15538         ;;
15539       *)
15540         lt_prog_compiler_pic_GCJ='-fPIC'
15541         ;;
15542       esac
15543       ;;
15544
15545     *)
15546       lt_prog_compiler_pic_GCJ='-fPIC'
15547       ;;
15548     esac
15549   else
15550     # PORTME Check for flag to pass linker flags through the system compiler.
15551     case $host_os in
15552     aix*)
15553       lt_prog_compiler_wl_GCJ='-Wl,'
15554       if test "$host_cpu" = ia64; then
15555         # AIX 5 now supports IA64 processor
15556         lt_prog_compiler_static_GCJ='-Bstatic'
15557       else
15558         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15559       fi
15560       ;;
15561
15562     mingw* | pw32* | os2*)
15563       # This hack is so that the source file can tell whether it is being
15564       # built for inclusion in a dll (and should export symbols for example).
15565       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15566       ;;
15567
15568     hpux9* | hpux10* | hpux11*)
15569       lt_prog_compiler_wl_GCJ='-Wl,'
15570       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15571       # not for PA HP-UX.
15572       case "$host_cpu" in
15573       hppa*64*|ia64*)
15574         # +Z the default
15575         ;;
15576       *)
15577         lt_prog_compiler_pic_GCJ='+Z'
15578         ;;
15579       esac
15580       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15581       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15582       ;;
15583
15584     irix5* | irix6* | nonstopux*)
15585       lt_prog_compiler_wl_GCJ='-Wl,'
15586       # PIC (with -KPIC) is the default.
15587       lt_prog_compiler_static_GCJ='-non_shared'
15588       ;;
15589
15590     newsos6)
15591       lt_prog_compiler_pic_GCJ='-KPIC'
15592       lt_prog_compiler_static_GCJ='-Bstatic'
15593       ;;
15594
15595     linux*)
15596       case $CC in
15597       icc* | ecc*)
15598         lt_prog_compiler_wl_GCJ='-Wl,'
15599         lt_prog_compiler_pic_GCJ='-KPIC'
15600         lt_prog_compiler_static_GCJ='-static'
15601         ;;
15602       ccc*)
15603         lt_prog_compiler_wl_GCJ='-Wl,'
15604         # All Alpha code is PIC.
15605         lt_prog_compiler_static_GCJ='-non_shared'
15606         ;;
15607       esac
15608       ;;
15609
15610     osf3* | osf4* | osf5*)
15611       lt_prog_compiler_wl_GCJ='-Wl,'
15612       # All OSF/1 code is PIC.
15613       lt_prog_compiler_static_GCJ='-non_shared'
15614       ;;
15615
15616     sco3.2v5*)
15617       lt_prog_compiler_pic_GCJ='-Kpic'
15618       lt_prog_compiler_static_GCJ='-dn'
15619       ;;
15620
15621     solaris*)
15622       lt_prog_compiler_wl_GCJ='-Wl,'
15623       lt_prog_compiler_pic_GCJ='-KPIC'
15624       lt_prog_compiler_static_GCJ='-Bstatic'
15625       ;;
15626
15627     sunos4*)
15628       lt_prog_compiler_wl_GCJ='-Qoption ld '
15629       lt_prog_compiler_pic_GCJ='-PIC'
15630       lt_prog_compiler_static_GCJ='-Bstatic'
15631       ;;
15632
15633     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15634       lt_prog_compiler_wl_GCJ='-Wl,'
15635       lt_prog_compiler_pic_GCJ='-KPIC'
15636       lt_prog_compiler_static_GCJ='-Bstatic'
15637       ;;
15638
15639     sysv4*MP*)
15640       if test -d /usr/nec ;then
15641         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15642         lt_prog_compiler_static_GCJ='-Bstatic'
15643       fi
15644       ;;
15645
15646     uts4*)
15647       lt_prog_compiler_pic_GCJ='-pic'
15648       lt_prog_compiler_static_GCJ='-Bstatic'
15649       ;;
15650
15651     *)
15652       lt_prog_compiler_can_build_shared_GCJ=no
15653       ;;
15654     esac
15655   fi
15656
15657 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15658 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15659
15660 #
15661 # Check to make sure the PIC flag actually works.
15662 #
15663 if test -n "$lt_prog_compiler_pic_GCJ"; then
15664
15665 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15666 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15667 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15668   echo $ECHO_N "(cached) $ECHO_C" >&6
15669 else
15670   lt_prog_compiler_pic_works_GCJ=no
15671   ac_outfile=conftest.$ac_objext
15672    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15673    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15674    # Insert the option either (1) after the last *FLAGS variable, or
15675    # (2) before a word containing "conftest.", or (3) at the end.
15676    # Note that $ac_compile itself does not contain backslashes and begins
15677    # with a dollar sign (not a hyphen), so the echo should work correctly.
15678    # The option is referenced via a variable to avoid confusing sed.
15679    lt_compile=`echo "$ac_compile" | $SED \
15680    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15681    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15682    -e 's:$: $lt_compiler_flag:'`
15683    (eval echo "\"\$as_me:15683: $lt_compile\"" >&5)
15684    (eval "$lt_compile" 2>conftest.err)
15685    ac_status=$?
15686    cat conftest.err >&5
15687    echo "$as_me:15687: \$? = $ac_status" >&5
15688    if (exit $ac_status) && test -s "$ac_outfile"; then
15689      # The compiler can only warn and ignore the option if not recognized
15690      # So say no if there are warnings
15691      if test ! -s conftest.err; then
15692        lt_prog_compiler_pic_works_GCJ=yes
15693      fi
15694    fi
15695    $rm conftest*
15696
15697 fi
15698 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15699 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15700
15701 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15702     case $lt_prog_compiler_pic_GCJ in
15703      "" | " "*) ;;
15704      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15705      esac
15706 else
15707     lt_prog_compiler_pic_GCJ=
15708      lt_prog_compiler_can_build_shared_GCJ=no
15709 fi
15710
15711 fi
15712 case "$host_os" in
15713   # For platforms which do not support PIC, -DPIC is meaningless:
15714   *djgpp*)
15715     lt_prog_compiler_pic_GCJ=
15716     ;;
15717   *)
15718     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15719     ;;
15720 esac
15721
15722 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15723 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15724 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15725   echo $ECHO_N "(cached) $ECHO_C" >&6
15726 else
15727   lt_cv_prog_compiler_c_o_GCJ=no
15728    $rm -r conftest 2>/dev/null
15729    mkdir conftest
15730    cd conftest
15731    mkdir out
15732    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15733
15734    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15735    # that will create temporary files in the current directory regardless of
15736    # the output directory.  Thus, making CWD read-only will cause this test
15737    # to fail, enabling locking or at least warning the user not to do parallel
15738    # builds.
15739    chmod -w .
15740
15741    lt_compiler_flag="-o out/conftest2.$ac_objext"
15742    # Insert the option either (1) after the last *FLAGS variable, or
15743    # (2) before a word containing "conftest.", or (3) at the end.
15744    # Note that $ac_compile itself does not contain backslashes and begins
15745    # with a dollar sign (not a hyphen), so the echo should work correctly.
15746    lt_compile=`echo "$ac_compile" | $SED \
15747    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15748    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15749    -e 's:$: $lt_compiler_flag:'`
15750    (eval echo "\"\$as_me:15750: $lt_compile\"" >&5)
15751    (eval "$lt_compile" 2>out/conftest.err)
15752    ac_status=$?
15753    cat out/conftest.err >&5
15754    echo "$as_me:15754: \$? = $ac_status" >&5
15755    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15756    then
15757      # The compiler can only warn and ignore the option if not recognized
15758      # So say no if there are warnings
15759      if test ! -s out/conftest.err; then
15760        lt_cv_prog_compiler_c_o_GCJ=yes
15761      fi
15762    fi
15763    chmod u+w .
15764    $rm conftest*
15765    # SGI C++ compiler will create directory out/ii_files/ for
15766    # template instantiation
15767    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15768    $rm out/* && rmdir out
15769    cd ..
15770    rmdir conftest
15771    $rm conftest*
15772
15773 fi
15774 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15775 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15776
15777
15778 hard_links="nottested"
15779 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15780   # do not overwrite the value of need_locks provided by the user
15781   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15782 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15783   hard_links=yes
15784   $rm conftest*
15785   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15786   touch conftest.a
15787   ln conftest.a conftest.b 2>&5 || hard_links=no
15788   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15789   echo "$as_me:$LINENO: result: $hard_links" >&5
15790 echo "${ECHO_T}$hard_links" >&6
15791   if test "$hard_links" = no; then
15792     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15793 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15794     need_locks=warn
15795   fi
15796 else
15797   need_locks=no
15798 fi
15799
15800 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15801 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15802
15803   runpath_var=
15804   allow_undefined_flag_GCJ=
15805   enable_shared_with_static_runtimes_GCJ=no
15806   archive_cmds_GCJ=
15807   archive_expsym_cmds_GCJ=
15808   old_archive_From_new_cmds_GCJ=
15809   old_archive_from_expsyms_cmds_GCJ=
15810   export_dynamic_flag_spec_GCJ=
15811   whole_archive_flag_spec_GCJ=
15812   thread_safe_flag_spec_GCJ=
15813   hardcode_libdir_flag_spec_GCJ=
15814   hardcode_libdir_flag_spec_ld_GCJ=
15815   hardcode_libdir_separator_GCJ=
15816   hardcode_direct_GCJ=no
15817   hardcode_minus_L_GCJ=no
15818   hardcode_shlibpath_var_GCJ=unsupported
15819   link_all_deplibs_GCJ=unknown
15820   hardcode_automatic_GCJ=no
15821   module_cmds_GCJ=
15822   module_expsym_cmds_GCJ=
15823   always_export_symbols_GCJ=no
15824   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15825   # include_expsyms should be a list of space-separated symbols to be *always*
15826   # included in the symbol list
15827   include_expsyms_GCJ=
15828   # exclude_expsyms can be an extended regexp of symbols to exclude
15829   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15830   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15831   # as well as any symbol that contains `d'.
15832   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15833   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15834   # platforms (ab)use it in PIC code, but their linkers get confused if
15835   # the symbol is explicitly referenced.  Since portable code cannot
15836   # rely on this symbol name, it's probably fine to never include it in
15837   # preloaded symbol tables.
15838   extract_expsyms_cmds=
15839
15840   case $host_os in
15841   cygwin* | mingw* | pw32*)
15842     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15843     # When not using gcc, we currently assume that we are using
15844     # Microsoft Visual C++.
15845     if test "$GCC" != yes; then
15846       with_gnu_ld=no
15847     fi
15848     ;;
15849   openbsd*)
15850     with_gnu_ld=no
15851     ;;
15852   esac
15853
15854   ld_shlibs_GCJ=yes
15855   if test "$with_gnu_ld" = yes; then
15856     # If archive_cmds runs LD, not CC, wlarc should be empty
15857     wlarc='${wl}'
15858
15859     # See if GNU ld supports shared libraries.
15860     case $host_os in
15861     aix3* | aix4* | aix5*)
15862       # On AIX/PPC, the GNU linker is very broken
15863       if test "$host_cpu" != ia64; then
15864         ld_shlibs_GCJ=no
15865         cat <<EOF 1>&2
15866
15867 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15868 *** to be unable to reliably create shared libraries on AIX.
15869 *** Therefore, libtool is disabling shared libraries support.  If you
15870 *** really care for shared libraries, you may want to modify your PATH
15871 *** so that a non-GNU linker is found, and then restart.
15872
15873 EOF
15874       fi
15875       ;;
15876
15877     amigaos*)
15878       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15879       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15880       hardcode_minus_L_GCJ=yes
15881
15882       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15883       # that the semantics of dynamic libraries on AmigaOS, at least up
15884       # to version 4, is to share data among multiple programs linked
15885       # with the same dynamic library.  Since this doesn't match the
15886       # behavior of shared libraries on other platforms, we can't use
15887       # them.
15888       ld_shlibs_GCJ=no
15889       ;;
15890
15891     beos*)
15892       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15893         allow_undefined_flag_GCJ=unsupported
15894         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15895         # support --undefined.  This deserves some investigation.  FIXME
15896         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15897       else
15898         ld_shlibs_GCJ=no
15899       fi
15900       ;;
15901
15902     cygwin* | mingw* | pw32*)
15903       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15904       # as there is no search path for DLLs.
15905       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15906       allow_undefined_flag_GCJ=unsupported
15907       always_export_symbols_GCJ=no
15908       enable_shared_with_static_runtimes_GCJ=yes
15909       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15910
15911       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15912         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15913         # If the export-symbols file already is a .def file (1st line
15914         # is EXPORTS), use it as is; otherwise, prepend...
15915         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15916           cp $export_symbols $output_objdir/$soname.def;
15917         else
15918           echo EXPORTS > $output_objdir/$soname.def;
15919           cat $export_symbols >> $output_objdir/$soname.def;
15920         fi~
15921         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15922       else
15923         ld_shlibs=no
15924       fi
15925       ;;
15926
15927     netbsd*)
15928       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15929         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15930         wlarc=
15931       else
15932         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15933         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15934       fi
15935       ;;
15936
15937     solaris* | sysv5*)
15938       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15939         ld_shlibs_GCJ=no
15940         cat <<EOF 1>&2
15941
15942 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15943 *** create shared libraries on Solaris systems.  Therefore, libtool
15944 *** is disabling shared libraries support.  We urge you to upgrade GNU
15945 *** binutils to release 2.9.1 or newer.  Another option is to modify
15946 *** your PATH or compiler configuration so that the native linker is
15947 *** used, and then restart.
15948
15949 EOF
15950       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15951         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15952         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15953       else
15954         ld_shlibs_GCJ=no
15955       fi
15956       ;;
15957
15958     sunos4*)
15959       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15960       wlarc=
15961       hardcode_direct_GCJ=yes
15962       hardcode_shlibpath_var_GCJ=no
15963       ;;
15964
15965   linux*)
15966     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15967         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15968         archive_cmds_GCJ="$tmp_archive_cmds"
15969       supports_anon_versioning=no
15970       case `$LD -v 2>/dev/null` in
15971         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15972         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15973         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15974         *\ 2.11.*) ;; # other 2.11 versions
15975         *) supports_anon_versioning=yes ;;
15976       esac
15977       if test $supports_anon_versioning = yes; then
15978         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15979 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15980 $echo "local: *; };" >> $output_objdir/$libname.ver~
15981         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15982       else
15983         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15984       fi
15985     else
15986       ld_shlibs_GCJ=no
15987     fi
15988     ;;
15989
15990     *)
15991       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15992         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15993         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15994       else
15995         ld_shlibs_GCJ=no
15996       fi
15997       ;;
15998     esac
15999
16000     if test "$ld_shlibs_GCJ" = yes; then
16001       runpath_var=LD_RUN_PATH
16002       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16003       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16004       # ancient GNU ld didn't support --whole-archive et. al.
16005       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16006         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16007       else
16008         whole_archive_flag_spec_GCJ=
16009       fi
16010     fi
16011   else
16012     # PORTME fill in a description of your system's linker (not GNU ld)
16013     case $host_os in
16014     aix3*)
16015       allow_undefined_flag_GCJ=unsupported
16016       always_export_symbols_GCJ=yes
16017       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16018       # Note: this linker hardcodes the directories in LIBPATH if there
16019       # are no directories specified by -L.
16020       hardcode_minus_L_GCJ=yes
16021       if test "$GCC" = yes && test -z "$link_static_flag"; then
16022         # Neither direct hardcoding nor static linking is supported with a
16023         # broken collect2.
16024         hardcode_direct_GCJ=unsupported
16025       fi
16026       ;;
16027
16028     aix4* | aix5*)
16029       if test "$host_cpu" = ia64; then
16030         # On IA64, the linker does run time linking by default, so we don't
16031         # have to do anything special.
16032         aix_use_runtimelinking=no
16033         exp_sym_flag='-Bexport'
16034         no_entry_flag=""
16035       else
16036         # If we're using GNU nm, then we don't want the "-C" option.
16037         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16038         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16039           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16040         else
16041           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16042         fi
16043         aix_use_runtimelinking=no
16044
16045         # Test if we are trying to use run time linking or normal
16046         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16047         # need to do runtime linking.
16048         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16049           for ld_flag in $LDFLAGS; do
16050           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16051             aix_use_runtimelinking=yes
16052             break
16053           fi
16054           done
16055         esac
16056
16057         exp_sym_flag='-bexport'
16058         no_entry_flag='-bnoentry'
16059       fi
16060
16061       # When large executables or shared objects are built, AIX ld can
16062       # have problems creating the table of contents.  If linking a library
16063       # or program results in "error TOC overflow" add -mminimal-toc to
16064       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16065       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16066
16067       archive_cmds_GCJ=''
16068       hardcode_direct_GCJ=yes
16069       hardcode_libdir_separator_GCJ=':'
16070       link_all_deplibs_GCJ=yes
16071
16072       if test "$GCC" = yes; then
16073         case $host_os in aix4.012|aix4.012.*)
16074         # We only want to do this on AIX 4.2 and lower, the check
16075         # below for broken collect2 doesn't work under 4.3+
16076           collect2name=`${CC} -print-prog-name=collect2`
16077           if test -f "$collect2name" && \
16078            strings "$collect2name" | grep resolve_lib_name >/dev/null
16079           then
16080           # We have reworked collect2
16081           hardcode_direct_GCJ=yes
16082           else
16083           # We have old collect2
16084           hardcode_direct_GCJ=unsupported
16085           # It fails to find uninstalled libraries when the uninstalled
16086           # path is not listed in the libpath.  Setting hardcode_minus_L
16087           # to unsupported forces relinking
16088           hardcode_minus_L_GCJ=yes
16089           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16090           hardcode_libdir_separator_GCJ=
16091           fi
16092         esac
16093         shared_flag='-shared'
16094       else
16095         # not using gcc
16096         if test "$host_cpu" = ia64; then
16097         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16098         # chokes on -Wl,-G. The following line is correct:
16099           shared_flag='-G'
16100         else
16101         if test "$aix_use_runtimelinking" = yes; then
16102             shared_flag='${wl}-G'
16103           else
16104             shared_flag='${wl}-bM:SRE'
16105         fi
16106         fi
16107       fi
16108
16109       # It seems that -bexpall does not export symbols beginning with
16110       # underscore (_), so it is better to generate a list of symbols to export.
16111       always_export_symbols_GCJ=yes
16112       if test "$aix_use_runtimelinking" = yes; then
16113         # Warning - without using the other runtime loading flags (-brtl),
16114         # -berok will link without error, but may produce a broken library.
16115         allow_undefined_flag_GCJ='-berok'
16116        # Determine the default libpath from the value encoded in an empty executable.
16117        cat >conftest.$ac_ext <<_ACEOF
16118 /* confdefs.h.  */
16119 _ACEOF
16120 cat confdefs.h >>conftest.$ac_ext
16121 cat >>conftest.$ac_ext <<_ACEOF
16122 /* end confdefs.h.  */
16123
16124 int
16125 main ()
16126 {
16127
16128   ;
16129   return 0;
16130 }
16131 _ACEOF
16132 rm -f conftest.$ac_objext conftest$ac_exeext
16133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16134   (eval $ac_link) 2>conftest.er1
16135   ac_status=$?
16136   grep -v '^ *+' conftest.er1 >conftest.err
16137   rm -f conftest.er1
16138   cat conftest.err >&5
16139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140   (exit $ac_status); } &&
16141          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16143   (eval $ac_try) 2>&5
16144   ac_status=$?
16145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146   (exit $ac_status); }; } &&
16147          { ac_try='test -s conftest$ac_exeext'
16148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16149   (eval $ac_try) 2>&5
16150   ac_status=$?
16151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152   (exit $ac_status); }; }; then
16153
16154 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16155 }'`
16156 # Check for a 64-bit object if we didn't find anything.
16157 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16158 }'`; fi
16159 else
16160   echo "$as_me: failed program was:" >&5
16161 sed 's/^/| /' conftest.$ac_ext >&5
16162
16163 fi
16164 rm -f conftest.err conftest.$ac_objext \
16165       conftest$ac_exeext conftest.$ac_ext
16166 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16167
16168        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16169         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16170        else
16171         if test "$host_cpu" = ia64; then
16172           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16173           allow_undefined_flag_GCJ="-z nodefs"
16174           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16175         else
16176          # Determine the default libpath from the value encoded in an empty executable.
16177          cat >conftest.$ac_ext <<_ACEOF
16178 /* confdefs.h.  */
16179 _ACEOF
16180 cat confdefs.h >>conftest.$ac_ext
16181 cat >>conftest.$ac_ext <<_ACEOF
16182 /* end confdefs.h.  */
16183
16184 int
16185 main ()
16186 {
16187
16188   ;
16189   return 0;
16190 }
16191 _ACEOF
16192 rm -f conftest.$ac_objext conftest$ac_exeext
16193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16194   (eval $ac_link) 2>conftest.er1
16195   ac_status=$?
16196   grep -v '^ *+' conftest.er1 >conftest.err
16197   rm -f conftest.er1
16198   cat conftest.err >&5
16199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200   (exit $ac_status); } &&
16201          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16203   (eval $ac_try) 2>&5
16204   ac_status=$?
16205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206   (exit $ac_status); }; } &&
16207          { ac_try='test -s conftest$ac_exeext'
16208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16209   (eval $ac_try) 2>&5
16210   ac_status=$?
16211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212   (exit $ac_status); }; }; then
16213
16214 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16215 }'`
16216 # Check for a 64-bit object if we didn't find anything.
16217 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16218 }'`; fi
16219 else
16220   echo "$as_me: failed program was:" >&5
16221 sed 's/^/| /' conftest.$ac_ext >&5
16222
16223 fi
16224 rm -f conftest.err conftest.$ac_objext \
16225       conftest$ac_exeext conftest.$ac_ext
16226 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16227
16228          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16229           # Warning - without using the other run time loading flags,
16230           # -berok will link without error, but may produce a broken library.
16231           no_undefined_flag_GCJ=' ${wl}-bernotok'
16232           allow_undefined_flag_GCJ=' ${wl}-berok'
16233           # -bexpall does not export symbols beginning with underscore (_)
16234           always_export_symbols_GCJ=yes
16235           # Exported symbols can be pulled into shared objects from archives
16236           whole_archive_flag_spec_GCJ=' '
16237           archive_cmds_need_lc_GCJ=yes
16238           # This is similar to how AIX traditionally builds it's shared libraries.
16239           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16240         fi
16241       fi
16242       ;;
16243
16244     amigaos*)
16245       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16246       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16247       hardcode_minus_L_GCJ=yes
16248       # see comment about different semantics on the GNU ld section
16249       ld_shlibs_GCJ=no
16250       ;;
16251
16252     bsdi4*)
16253       export_dynamic_flag_spec_GCJ=-rdynamic
16254       ;;
16255
16256     cygwin* | mingw* | pw32*)
16257       # When not using gcc, we currently assume that we are using
16258       # Microsoft Visual C++.
16259       # hardcode_libdir_flag_spec is actually meaningless, as there is
16260       # no search path for DLLs.
16261       hardcode_libdir_flag_spec_GCJ=' '
16262       allow_undefined_flag_GCJ=unsupported
16263       # Tell ltmain to make .lib files, not .a files.
16264       libext=lib
16265       # Tell ltmain to make .dll files, not .so files.
16266       shrext=".dll"
16267       # FIXME: Setting linknames here is a bad hack.
16268       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16269       # The linker will automatically build a .lib file if we build a DLL.
16270       old_archive_From_new_cmds_GCJ='true'
16271       # FIXME: Should let the user specify the lib program.
16272       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16273       fix_srcfile_path='`cygpath -w "$srcfile"`'
16274       enable_shared_with_static_runtimes_GCJ=yes
16275       ;;
16276
16277     darwin* | rhapsody*)
16278     if test "$GXX" = yes ; then
16279       archive_cmds_need_lc_GCJ=no
16280       case "$host_os" in
16281       rhapsody* | darwin1.[012])
16282         allow_undefined_flag_GCJ='-undefined suppress'
16283         ;;
16284       *) # Darwin 1.3 on
16285       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16286         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16287       else
16288         case ${MACOSX_DEPLOYMENT_TARGET} in
16289           10.[012])
16290             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16291             ;;
16292           10.*)
16293             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16294             ;;
16295         esac
16296       fi
16297         ;;
16298       esac
16299         lt_int_apple_cc_single_mod=no
16300         output_verbose_link_cmd='echo'
16301         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16302           lt_int_apple_cc_single_mod=yes
16303         fi
16304         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16305           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16306         else
16307         archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16308       fi
16309       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16310       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16311         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16312           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16313         else
16314           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16315         fi
16316           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16317       hardcode_direct_GCJ=no
16318       hardcode_automatic_GCJ=yes
16319       hardcode_shlibpath_var_GCJ=unsupported
16320       whole_archive_flag_spec_GCJ='-all_load $convenience'
16321       link_all_deplibs_GCJ=yes
16322     else
16323       ld_shlibs_GCJ=no
16324     fi
16325       ;;
16326
16327     dgux*)
16328       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16329       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16330       hardcode_shlibpath_var_GCJ=no
16331       ;;
16332
16333     freebsd1*)
16334       ld_shlibs_GCJ=no
16335       ;;
16336
16337     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16338     # support.  Future versions do this automatically, but an explicit c++rt0.o
16339     # does not break anything, and helps significantly (at the cost of a little
16340     # extra space).
16341     freebsd2.2*)
16342       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16343       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16344       hardcode_direct_GCJ=yes
16345       hardcode_shlibpath_var_GCJ=no
16346       ;;
16347
16348     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16349     freebsd2*)
16350       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16351       hardcode_direct_GCJ=yes
16352       hardcode_minus_L_GCJ=yes
16353       hardcode_shlibpath_var_GCJ=no
16354       ;;
16355
16356     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16357     freebsd* | kfreebsd*-gnu)
16358       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16359       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16360       hardcode_direct_GCJ=yes
16361       hardcode_shlibpath_var_GCJ=no
16362       ;;
16363
16364     hpux9*)
16365       if test "$GCC" = yes; then
16366         archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16367       else
16368         archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16369       fi
16370       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16371       hardcode_libdir_separator_GCJ=:
16372       hardcode_direct_GCJ=yes
16373
16374       # hardcode_minus_L: Not really in the search PATH,
16375       # but as the default location of the library.
16376       hardcode_minus_L_GCJ=yes
16377       export_dynamic_flag_spec_GCJ='${wl}-E'
16378       ;;
16379
16380     hpux10* | hpux11*)
16381       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16382         case "$host_cpu" in
16383         hppa*64*|ia64*)
16384           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16385           ;;
16386         *)
16387           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16388           ;;
16389         esac
16390       else
16391         case "$host_cpu" in
16392         hppa*64*|ia64*)
16393           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16394           ;;
16395         *)
16396           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16397           ;;
16398         esac
16399       fi
16400       if test "$with_gnu_ld" = no; then
16401         case "$host_cpu" in
16402         hppa*64*)
16403           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16404           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16405           hardcode_libdir_separator_GCJ=:
16406           hardcode_direct_GCJ=no
16407           hardcode_shlibpath_var_GCJ=no
16408           ;;
16409         ia64*)
16410           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16411           hardcode_direct_GCJ=no
16412           hardcode_shlibpath_var_GCJ=no
16413
16414           # hardcode_minus_L: Not really in the search PATH,
16415           # but as the default location of the library.
16416           hardcode_minus_L_GCJ=yes
16417           ;;
16418         *)
16419           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16420           hardcode_libdir_separator_GCJ=:
16421           hardcode_direct_GCJ=yes
16422           export_dynamic_flag_spec_GCJ='${wl}-E'
16423
16424           # hardcode_minus_L: Not really in the search PATH,
16425           # but as the default location of the library.
16426           hardcode_minus_L_GCJ=yes
16427           ;;
16428         esac
16429       fi
16430       ;;
16431
16432     irix5* | irix6* | nonstopux*)
16433       if test "$GCC" = yes; then
16434         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16435       else
16436         archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16437         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16438       fi
16439       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16440       hardcode_libdir_separator_GCJ=:
16441       link_all_deplibs_GCJ=yes
16442       ;;
16443
16444     netbsd*)
16445       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16446         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16447       else
16448         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16449       fi
16450       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16451       hardcode_direct_GCJ=yes
16452       hardcode_shlibpath_var_GCJ=no
16453       ;;
16454
16455     newsos6)
16456       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16457       hardcode_direct_GCJ=yes
16458       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16459       hardcode_libdir_separator_GCJ=:
16460       hardcode_shlibpath_var_GCJ=no
16461       ;;
16462
16463     openbsd*)
16464       hardcode_direct_GCJ=yes
16465       hardcode_shlibpath_var_GCJ=no
16466       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16467         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16468         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16469         export_dynamic_flag_spec_GCJ='${wl}-E'
16470       else
16471        case $host_os in
16472          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16473            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16474            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16475            ;;
16476          *)
16477            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16478            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16479            ;;
16480        esac
16481       fi
16482       ;;
16483
16484     os2*)
16485       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16486       hardcode_minus_L_GCJ=yes
16487       allow_undefined_flag_GCJ=unsupported
16488       archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
16489       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16490       ;;
16491
16492     osf3*)
16493       if test "$GCC" = yes; then
16494         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16495         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16496       else
16497         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16498         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16499       fi
16500       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16501       hardcode_libdir_separator_GCJ=:
16502       ;;
16503
16504     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16505       if test "$GCC" = yes; then
16506         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16507         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16508         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16509       else
16510         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16511         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16512         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16513         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16514
16515         # Both c and cxx compiler support -rpath directly
16516         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16517       fi
16518       hardcode_libdir_separator_GCJ=:
16519       ;;
16520
16521     sco3.2v5*)
16522       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16523       hardcode_shlibpath_var_GCJ=no
16524       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16525       runpath_var=LD_RUN_PATH
16526       hardcode_runpath_var=yes
16527       ;;
16528
16529     solaris*)
16530       no_undefined_flag_GCJ=' -z text'
16531       if test "$GCC" = yes; then
16532         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16533         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16534           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16535       else
16536         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16537         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16538         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16539       fi
16540       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16541       hardcode_shlibpath_var_GCJ=no
16542       case $host_os in
16543       solaris2.[0-5] | solaris2.[0-5].*) ;;
16544       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16545         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16546       esac
16547       link_all_deplibs_GCJ=yes
16548       ;;
16549
16550     sunos4*)
16551       if test "x$host_vendor" = xsequent; then
16552         # Use $CC to link under sequent, because it throws in some extra .o
16553         # files that make .init and .fini sections work.
16554         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16555       else
16556         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16557       fi
16558       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16559       hardcode_direct_GCJ=yes
16560       hardcode_minus_L_GCJ=yes
16561       hardcode_shlibpath_var_GCJ=no
16562       ;;
16563
16564     sysv4)
16565       case $host_vendor in
16566         sni)
16567           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16568           hardcode_direct_GCJ=yes # is this really true???
16569         ;;
16570         siemens)
16571           ## LD is ld it makes a PLAMLIB
16572           ## CC just makes a GrossModule.
16573           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16574           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16575           hardcode_direct_GCJ=no
16576         ;;
16577         motorola)
16578           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16579           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16580         ;;
16581       esac
16582       runpath_var='LD_RUN_PATH'
16583       hardcode_shlibpath_var_GCJ=no
16584       ;;
16585
16586     sysv4.3*)
16587       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16588       hardcode_shlibpath_var_GCJ=no
16589       export_dynamic_flag_spec_GCJ='-Bexport'
16590       ;;
16591
16592     sysv4*MP*)
16593       if test -d /usr/nec; then
16594         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16595         hardcode_shlibpath_var_GCJ=no
16596         runpath_var=LD_RUN_PATH
16597         hardcode_runpath_var=yes
16598         ld_shlibs_GCJ=yes
16599       fi
16600       ;;
16601
16602     sysv4.2uw2*)
16603       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16604       hardcode_direct_GCJ=yes
16605       hardcode_minus_L_GCJ=no
16606       hardcode_shlibpath_var_GCJ=no
16607       hardcode_runpath_var=yes
16608       runpath_var=LD_RUN_PATH
16609       ;;
16610
16611    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16612       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16613       if test "$GCC" = yes; then
16614         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16615       else
16616         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16617       fi
16618       runpath_var='LD_RUN_PATH'
16619       hardcode_shlibpath_var_GCJ=no
16620       ;;
16621
16622     sysv5*)
16623       no_undefined_flag_GCJ=' -z text'
16624       # $CC -shared without GNU ld will not create a library from C++
16625       # object files and a static libstdc++, better avoid it by now
16626       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16627       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16628                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16629       hardcode_libdir_flag_spec_GCJ=
16630       hardcode_shlibpath_var_GCJ=no
16631       runpath_var='LD_RUN_PATH'
16632       ;;
16633
16634     uts4*)
16635       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16636       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16637       hardcode_shlibpath_var_GCJ=no
16638       ;;
16639
16640     *)
16641       ld_shlibs_GCJ=no
16642       ;;
16643     esac
16644   fi
16645
16646 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16647 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16648 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16649
16650 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16651 if test "$GCC" = yes; then
16652   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16653 fi
16654
16655 #
16656 # Do we need to explicitly link libc?
16657 #
16658 case "x$archive_cmds_need_lc_GCJ" in
16659 x|xyes)
16660   # Assume -lc should be added
16661   archive_cmds_need_lc_GCJ=yes
16662
16663   if test "$enable_shared" = yes && test "$GCC" = yes; then
16664     case $archive_cmds_GCJ in
16665     *'~'*)
16666       # FIXME: we may have to deal with multi-command sequences.
16667       ;;
16668     '$CC '*)
16669       # Test whether the compiler implicitly links with -lc since on some
16670       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16671       # to ld, don't add -lc before -lgcc.
16672       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16673 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16674       $rm conftest*
16675       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16676
16677       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16678   (eval $ac_compile) 2>&5
16679   ac_status=$?
16680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681   (exit $ac_status); } 2>conftest.err; then
16682         soname=conftest
16683         lib=conftest
16684         libobjs=conftest.$ac_objext
16685         deplibs=
16686         wl=$lt_prog_compiler_wl_GCJ
16687         compiler_flags=-v
16688         linker_flags=-v
16689         verstring=
16690         output_objdir=.
16691         libname=conftest
16692         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16693         allow_undefined_flag_GCJ=
16694         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16695   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16696   ac_status=$?
16697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698   (exit $ac_status); }
16699         then
16700           archive_cmds_need_lc_GCJ=no
16701         else
16702           archive_cmds_need_lc_GCJ=yes
16703         fi
16704         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16705       else
16706         cat conftest.err 1>&5
16707       fi
16708       $rm conftest*
16709       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16710 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16711       ;;
16712     esac
16713   fi
16714   ;;
16715 esac
16716
16717 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16718 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16719 library_names_spec=
16720 libname_spec='lib$name'
16721 soname_spec=
16722 shrext=".so"
16723 postinstall_cmds=
16724 postuninstall_cmds=
16725 finish_cmds=
16726 finish_eval=
16727 shlibpath_var=
16728 shlibpath_overrides_runpath=unknown
16729 version_type=none
16730 dynamic_linker="$host_os ld.so"
16731 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16732 if test "$GCC" = yes; then
16733   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16734   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16735     # if the path contains ";" then we assume it to be the separator
16736     # otherwise default to the standard path separator (i.e. ":") - it is
16737     # assumed that no part of a normal pathname contains ";" but that should
16738     # okay in the real world where ";" in dirpaths is itself problematic.
16739     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16740   else
16741     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16742   fi
16743 else
16744   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16745 fi
16746 need_lib_prefix=unknown
16747 hardcode_into_libs=no
16748
16749 # when you set need_version to no, make sure it does not cause -set_version
16750 # flags to be left without arguments
16751 need_version=unknown
16752
16753 case $host_os in
16754 aix3*)
16755   version_type=linux
16756   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16757   shlibpath_var=LIBPATH
16758
16759   # AIX 3 has no versioning support, so we append a major version to the name.
16760   soname_spec='${libname}${release}${shared_ext}$major'
16761   ;;
16762
16763 aix4* | aix5*)
16764   version_type=linux
16765   need_lib_prefix=no
16766   need_version=no
16767   hardcode_into_libs=yes
16768   if test "$host_cpu" = ia64; then
16769     # AIX 5 supports IA64
16770     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16771     shlibpath_var=LD_LIBRARY_PATH
16772   else
16773     # With GCC up to 2.95.x, collect2 would create an import file
16774     # for dependence libraries.  The import file would start with
16775     # the line `#! .'.  This would cause the generated library to
16776     # depend on `.', always an invalid library.  This was fixed in
16777     # development snapshots of GCC prior to 3.0.
16778     case $host_os in
16779       aix4 | aix4.[01] | aix4.[01].*)
16780       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16781            echo ' yes '
16782            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16783         :
16784       else
16785         can_build_shared=no
16786       fi
16787       ;;
16788     esac
16789     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16790     # soname into executable. Probably we can add versioning support to
16791     # collect2, so additional links can be useful in future.
16792     if test "$aix_use_runtimelinking" = yes; then
16793       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16794       # instead of lib<name>.a to let people know that these are not
16795       # typical AIX shared libraries.
16796       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16797     else
16798       # We preserve .a as extension for shared libraries through AIX4.2
16799       # and later when we are not doing run time linking.
16800       library_names_spec='${libname}${release}.a $libname.a'
16801       soname_spec='${libname}${release}${shared_ext}$major'
16802     fi
16803     shlibpath_var=LIBPATH
16804   fi
16805   ;;
16806
16807 amigaos*)
16808   library_names_spec='$libname.ixlibrary $libname.a'
16809   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16810   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16811   ;;
16812
16813 beos*)
16814   library_names_spec='${libname}${shared_ext}'
16815   dynamic_linker="$host_os ld.so"
16816   shlibpath_var=LIBRARY_PATH
16817   ;;
16818
16819 bsdi4*)
16820   version_type=linux
16821   need_version=no
16822   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16823   soname_spec='${libname}${release}${shared_ext}$major'
16824   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16825   shlibpath_var=LD_LIBRARY_PATH
16826   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16827   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16828   # the default ld.so.conf also contains /usr/contrib/lib and
16829   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16830   # libtool to hard-code these into programs
16831   ;;
16832
16833 cygwin* | mingw* | pw32*)
16834   version_type=windows
16835   shrext=".dll"
16836   need_version=no
16837   need_lib_prefix=no
16838
16839   case $GCC,$host_os in
16840   yes,cygwin* | yes,mingw* | yes,pw32*)
16841     library_names_spec='$libname.dll.a'
16842     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16843     postinstall_cmds='base_file=`basename \${file}`~
16844       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16845       dldir=$destdir/`dirname \$dlpath`~
16846       test -d \$dldir || mkdir -p \$dldir~
16847       $install_prog $dir/$dlname \$dldir/$dlname'
16848     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16849       dlpath=$dir/\$dldll~
16850        $rm \$dlpath'
16851     shlibpath_overrides_runpath=yes
16852
16853     case $host_os in
16854     cygwin*)
16855       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16856       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16857       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16858       ;;
16859     mingw*)
16860       # MinGW DLLs use traditional 'lib' prefix
16861       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16862       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16863       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16864         # It is most probably a Windows format PATH printed by
16865         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16866         # path with ; separators, and with drive letters. We can handle the
16867         # drive letters (cygwin fileutils understands them), so leave them,
16868         # especially as we might pass files found there to a mingw objdump,
16869         # which wouldn't understand a cygwinified path. Ahh.
16870         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16871       else
16872         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16873       fi
16874       ;;
16875     pw32*)
16876       # pw32 DLLs use 'pw' prefix rather than 'lib'
16877       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16878       ;;
16879     esac
16880     ;;
16881
16882   *)
16883     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16884     ;;
16885   esac
16886   dynamic_linker='Win32 ld.exe'
16887   # FIXME: first we should search . and the directory the executable is in
16888   shlibpath_var=PATH
16889   ;;
16890
16891 darwin* | rhapsody*)
16892   dynamic_linker="$host_os dyld"
16893   version_type=darwin
16894   need_lib_prefix=no
16895   need_version=no
16896   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16897   soname_spec='${libname}${release}${major}$shared_ext'
16898   shlibpath_overrides_runpath=yes
16899   shlibpath_var=DYLD_LIBRARY_PATH
16900   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16901   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16902   if test "$GCC" = yes; then
16903     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16904   else
16905     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16906   fi
16907   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16908   ;;
16909
16910 dgux*)
16911   version_type=linux
16912   need_lib_prefix=no
16913   need_version=no
16914   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16915   soname_spec='${libname}${release}${shared_ext}$major'
16916   shlibpath_var=LD_LIBRARY_PATH
16917   ;;
16918
16919 freebsd1*)
16920   dynamic_linker=no
16921   ;;
16922
16923 kfreebsd*-gnu)
16924   version_type=linux
16925   need_lib_prefix=no
16926   need_version=no
16927   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16928   soname_spec='${libname}${release}${shared_ext}$major'
16929   shlibpath_var=LD_LIBRARY_PATH
16930   shlibpath_overrides_runpath=no
16931   hardcode_into_libs=yes
16932   dynamic_linker='GNU ld.so'
16933   ;;
16934
16935 freebsd*)
16936   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16937   version_type=freebsd-$objformat
16938   case $version_type in
16939     freebsd-elf*)
16940       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16941       need_version=no
16942       need_lib_prefix=no
16943       ;;
16944     freebsd-*)
16945       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16946       need_version=yes
16947       ;;
16948   esac
16949   shlibpath_var=LD_LIBRARY_PATH
16950   case $host_os in
16951   freebsd2*)
16952     shlibpath_overrides_runpath=yes
16953     ;;
16954   freebsd3.01* | freebsdelf3.01*)
16955     shlibpath_overrides_runpath=yes
16956     hardcode_into_libs=yes
16957     ;;
16958   *) # from 3.2 on
16959     shlibpath_overrides_runpath=no
16960     hardcode_into_libs=yes
16961     ;;
16962   esac
16963   ;;
16964
16965 gnu*)
16966   version_type=linux
16967   need_lib_prefix=no
16968   need_version=no
16969   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16970   soname_spec='${libname}${release}${shared_ext}$major'
16971   shlibpath_var=LD_LIBRARY_PATH
16972   hardcode_into_libs=yes
16973   ;;
16974
16975 hpux9* | hpux10* | hpux11*)
16976   # Give a soname corresponding to the major version so that dld.sl refuses to
16977   # link against other versions.
16978   version_type=sunos
16979   need_lib_prefix=no
16980   need_version=no
16981   case "$host_cpu" in
16982   ia64*)
16983     shrext='.so'
16984     hardcode_into_libs=yes
16985     dynamic_linker="$host_os dld.so"
16986     shlibpath_var=LD_LIBRARY_PATH
16987     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16988     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16989     soname_spec='${libname}${release}${shared_ext}$major'
16990     if test "X$HPUX_IA64_MODE" = X32; then
16991       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16992     else
16993       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16994     fi
16995     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16996     ;;
16997    hppa*64*)
16998      shrext='.sl'
16999      hardcode_into_libs=yes
17000      dynamic_linker="$host_os dld.sl"
17001      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17002      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17003      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17004      soname_spec='${libname}${release}${shared_ext}$major'
17005      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17006      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17007      ;;
17008    *)
17009     shrext='.sl'
17010     dynamic_linker="$host_os dld.sl"
17011     shlibpath_var=SHLIB_PATH
17012     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17013     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17014     soname_spec='${libname}${release}${shared_ext}$major'
17015     ;;
17016   esac
17017   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17018   postinstall_cmds='chmod 555 $lib'
17019   ;;
17020
17021 irix5* | irix6* | nonstopux*)
17022   case $host_os in
17023     nonstopux*) version_type=nonstopux ;;
17024     *)
17025         if test "$lt_cv_prog_gnu_ld" = yes; then
17026                 version_type=linux
17027         else
17028                 version_type=irix
17029         fi ;;
17030   esac
17031   need_lib_prefix=no
17032   need_version=no
17033   soname_spec='${libname}${release}${shared_ext}$major'
17034   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17035   case $host_os in
17036   irix5* | nonstopux*)
17037     libsuff= shlibsuff=
17038     ;;
17039   *)
17040     case $LD in # libtool.m4 will add one of these switches to LD
17041     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17042       libsuff= shlibsuff= libmagic=32-bit;;
17043     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17044       libsuff=32 shlibsuff=N32 libmagic=N32;;
17045     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17046       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17047     *) libsuff= shlibsuff= libmagic=never-match;;
17048     esac
17049     ;;
17050   esac
17051   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17052   shlibpath_overrides_runpath=no
17053   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17054   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17055   hardcode_into_libs=yes
17056   ;;
17057
17058 # No shared lib support for Linux oldld, aout, or coff.
17059 linux*oldld* | linux*aout* | linux*coff*)
17060   dynamic_linker=no
17061   ;;
17062
17063 # This must be Linux ELF.
17064 linux*)
17065   version_type=linux
17066   need_lib_prefix=no
17067   need_version=no
17068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17069   soname_spec='${libname}${release}${shared_ext}$major'
17070   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17071   shlibpath_var=LD_LIBRARY_PATH
17072   shlibpath_overrides_runpath=no
17073   # This implies no fast_install, which is unacceptable.
17074   # Some rework will be needed to allow for fast_install
17075   # before this can be enabled.
17076   hardcode_into_libs=yes
17077
17078   # Append ld.so.conf contents to the search path
17079   if test -f /etc/ld.so.conf; then
17080     ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
17081     sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
17082   fi
17083
17084   # We used to test for /lib/ld.so.1 and disable shared libraries on
17085   # powerpc, because MkLinux only supported shared libraries with the
17086   # GNU dynamic linker.  Since this was broken with cross compilers,
17087   # most powerpc-linux boxes support dynamic linking these days and
17088   # people can always --disable-shared, the test was removed, and we
17089   # assume the GNU/Linux dynamic linker is in use.
17090   dynamic_linker='GNU/Linux ld.so'
17091   ;;
17092
17093 knetbsd*-gnu)
17094   version_type=linux
17095   need_lib_prefix=no
17096   need_version=no
17097   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17098   soname_spec='${libname}${release}${shared_ext}$major'
17099   shlibpath_var=LD_LIBRARY_PATH
17100   shlibpath_overrides_runpath=no
17101   hardcode_into_libs=yes
17102   dynamic_linker='GNU ld.so'
17103   ;;
17104
17105 netbsd*)
17106   version_type=sunos
17107   need_lib_prefix=no
17108   need_version=no
17109   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17110     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17111     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17112     dynamic_linker='NetBSD (a.out) ld.so'
17113   else
17114     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
17115     soname_spec='${libname}${release}${shared_ext}$major'
17116     dynamic_linker='NetBSD ld.elf_so'
17117   fi
17118   shlibpath_var=LD_LIBRARY_PATH
17119   shlibpath_overrides_runpath=yes
17120   hardcode_into_libs=yes
17121   ;;
17122
17123 newsos6)
17124   version_type=linux
17125   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17126   shlibpath_var=LD_LIBRARY_PATH
17127   shlibpath_overrides_runpath=yes
17128   ;;
17129
17130 nto-qnx*)
17131   version_type=linux
17132   need_lib_prefix=no
17133   need_version=no
17134   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17135   soname_spec='${libname}${release}${shared_ext}$major'
17136   shlibpath_var=LD_LIBRARY_PATH
17137   shlibpath_overrides_runpath=yes
17138   ;;
17139
17140 openbsd*)
17141   version_type=sunos
17142   need_lib_prefix=no
17143   need_version=yes
17144   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17145   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17146   shlibpath_var=LD_LIBRARY_PATH
17147   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17148     case $host_os in
17149       openbsd2.[89] | openbsd2.[89].*)
17150         shlibpath_overrides_runpath=no
17151         ;;
17152       *)
17153         shlibpath_overrides_runpath=yes
17154         ;;
17155       esac
17156   else
17157     shlibpath_overrides_runpath=yes
17158   fi
17159   ;;
17160
17161 os2*)
17162   libname_spec='$name'
17163   shrext=".dll"
17164   need_lib_prefix=no
17165   library_names_spec='$libname${shared_ext} $libname.a'
17166   dynamic_linker='OS/2 ld.exe'
17167   shlibpath_var=LIBPATH
17168   ;;
17169
17170 osf3* | osf4* | osf5*)
17171   version_type=osf
17172   need_lib_prefix=no
17173   need_version=no
17174   soname_spec='${libname}${release}${shared_ext}$major'
17175   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17176   shlibpath_var=LD_LIBRARY_PATH
17177   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17178   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17179   ;;
17180
17181 sco3.2v5*)
17182   version_type=osf
17183   soname_spec='${libname}${release}${shared_ext}$major'
17184   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17185   shlibpath_var=LD_LIBRARY_PATH
17186   ;;
17187
17188 solaris*)
17189   version_type=linux
17190   need_lib_prefix=no
17191   need_version=no
17192   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17193   soname_spec='${libname}${release}${shared_ext}$major'
17194   shlibpath_var=LD_LIBRARY_PATH
17195   shlibpath_overrides_runpath=yes
17196   hardcode_into_libs=yes
17197   # ldd complains unless libraries are executable
17198   postinstall_cmds='chmod +x $lib'
17199   ;;
17200
17201 sunos4*)
17202   version_type=sunos
17203   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17204   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17205   shlibpath_var=LD_LIBRARY_PATH
17206   shlibpath_overrides_runpath=yes
17207   if test "$with_gnu_ld" = yes; then
17208     need_lib_prefix=no
17209   fi
17210   need_version=yes
17211   ;;
17212
17213 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17214   version_type=linux
17215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17216   soname_spec='${libname}${release}${shared_ext}$major'
17217   shlibpath_var=LD_LIBRARY_PATH
17218   case $host_vendor in
17219     sni)
17220       shlibpath_overrides_runpath=no
17221       need_lib_prefix=no
17222       export_dynamic_flag_spec='${wl}-Blargedynsym'
17223       runpath_var=LD_RUN_PATH
17224       ;;
17225     siemens)
17226       need_lib_prefix=no
17227       ;;
17228     motorola)
17229       need_lib_prefix=no
17230       need_version=no
17231       shlibpath_overrides_runpath=no
17232       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17233       ;;
17234   esac
17235   ;;
17236
17237 sysv4*MP*)
17238   if test -d /usr/nec ;then
17239     version_type=linux
17240     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17241     soname_spec='$libname${shared_ext}.$major'
17242     shlibpath_var=LD_LIBRARY_PATH
17243   fi
17244   ;;
17245
17246 uts4*)
17247   version_type=linux
17248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17249   soname_spec='${libname}${release}${shared_ext}$major'
17250   shlibpath_var=LD_LIBRARY_PATH
17251   ;;
17252
17253 *)
17254   dynamic_linker=no
17255   ;;
17256 esac
17257 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17258 echo "${ECHO_T}$dynamic_linker" >&6
17259 test "$dynamic_linker" = no && can_build_shared=no
17260
17261 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17262 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17263 hardcode_action_GCJ=
17264 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17265    test -n "$runpath_var GCJ" || \
17266    test "X$hardcode_automatic_GCJ"="Xyes" ; then
17267
17268   # We can hardcode non-existant directories.
17269   if test "$hardcode_direct_GCJ" != no &&
17270      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17271      # have to relink, otherwise we might link with an installed library
17272      # when we should be linking with a yet-to-be-installed one
17273      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17274      test "$hardcode_minus_L_GCJ" != no; then
17275     # Linking always hardcodes the temporary library directory.
17276     hardcode_action_GCJ=relink
17277   else
17278     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17279     hardcode_action_GCJ=immediate
17280   fi
17281 else
17282   # We cannot hardcode anything, or else we can only hardcode existing
17283   # directories.
17284   hardcode_action_GCJ=unsupported
17285 fi
17286 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17287 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17288
17289 if test "$hardcode_action_GCJ" = relink; then
17290   # Fast installation is not supported
17291   enable_fast_install=no
17292 elif test "$shlibpath_overrides_runpath" = yes ||
17293      test "$enable_shared" = no; then
17294   # Fast installation is not necessary
17295   enable_fast_install=needless
17296 fi
17297
17298 striplib=
17299 old_striplib=
17300 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17301 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17302 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17303   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17304   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17305   echo "$as_me:$LINENO: result: yes" >&5
17306 echo "${ECHO_T}yes" >&6
17307 else
17308 # FIXME - insert some real tests, host_os isn't really good enough
17309   case $host_os in
17310    darwin*)
17311        if test -n "$STRIP" ; then
17312          striplib="$STRIP -x"
17313          echo "$as_me:$LINENO: result: yes" >&5
17314 echo "${ECHO_T}yes" >&6
17315        else
17316   echo "$as_me:$LINENO: result: no" >&5
17317 echo "${ECHO_T}no" >&6
17318 fi
17319        ;;
17320    *)
17321   echo "$as_me:$LINENO: result: no" >&5
17322 echo "${ECHO_T}no" >&6
17323     ;;
17324   esac
17325 fi
17326
17327 if test "x$enable_dlopen" != xyes; then
17328   enable_dlopen=unknown
17329   enable_dlopen_self=unknown
17330   enable_dlopen_self_static=unknown
17331 else
17332   lt_cv_dlopen=no
17333   lt_cv_dlopen_libs=
17334
17335   case $host_os in
17336   beos*)
17337     lt_cv_dlopen="load_add_on"
17338     lt_cv_dlopen_libs=
17339     lt_cv_dlopen_self=yes
17340     ;;
17341
17342   mingw* | pw32*)
17343     lt_cv_dlopen="LoadLibrary"
17344     lt_cv_dlopen_libs=
17345    ;;
17346
17347   cygwin*)
17348     lt_cv_dlopen="dlopen"
17349     lt_cv_dlopen_libs=
17350    ;;
17351
17352   darwin*)
17353   # if libdl is installed we need to link against it
17354     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17355 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17356 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17357   echo $ECHO_N "(cached) $ECHO_C" >&6
17358 else
17359   ac_check_lib_save_LIBS=$LIBS
17360 LIBS="-ldl  $LIBS"
17361 cat >conftest.$ac_ext <<_ACEOF
17362 /* confdefs.h.  */
17363 _ACEOF
17364 cat confdefs.h >>conftest.$ac_ext
17365 cat >>conftest.$ac_ext <<_ACEOF
17366 /* end confdefs.h.  */
17367
17368 /* Override any gcc2 internal prototype to avoid an error.  */
17369 #ifdef __cplusplus
17370 extern "C"
17371 #endif
17372 /* We use char because int might match the return type of a gcc2
17373    builtin and then its argument prototype would still apply.  */
17374 char dlopen ();
17375 int
17376 main ()
17377 {
17378 dlopen ();
17379   ;
17380   return 0;
17381 }
17382 _ACEOF
17383 rm -f conftest.$ac_objext conftest$ac_exeext
17384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17385   (eval $ac_link) 2>conftest.er1
17386   ac_status=$?
17387   grep -v '^ *+' conftest.er1 >conftest.err
17388   rm -f conftest.er1
17389   cat conftest.err >&5
17390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391   (exit $ac_status); } &&
17392          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17394   (eval $ac_try) 2>&5
17395   ac_status=$?
17396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397   (exit $ac_status); }; } &&
17398          { ac_try='test -s conftest$ac_exeext'
17399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17400   (eval $ac_try) 2>&5
17401   ac_status=$?
17402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403   (exit $ac_status); }; }; then
17404   ac_cv_lib_dl_dlopen=yes
17405 else
17406   echo "$as_me: failed program was:" >&5
17407 sed 's/^/| /' conftest.$ac_ext >&5
17408
17409 ac_cv_lib_dl_dlopen=no
17410 fi
17411 rm -f conftest.err conftest.$ac_objext \
17412       conftest$ac_exeext conftest.$ac_ext
17413 LIBS=$ac_check_lib_save_LIBS
17414 fi
17415 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17416 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17417 if test $ac_cv_lib_dl_dlopen = yes; then
17418   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17419 else
17420
17421     lt_cv_dlopen="dyld"
17422     lt_cv_dlopen_libs=
17423     lt_cv_dlopen_self=yes
17424
17425 fi
17426
17427    ;;
17428
17429   *)
17430     echo "$as_me:$LINENO: checking for shl_load" >&5
17431 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17432 if test "${ac_cv_func_shl_load+set}" = set; then
17433   echo $ECHO_N "(cached) $ECHO_C" >&6
17434 else
17435   cat >conftest.$ac_ext <<_ACEOF
17436 /* confdefs.h.  */
17437 _ACEOF
17438 cat confdefs.h >>conftest.$ac_ext
17439 cat >>conftest.$ac_ext <<_ACEOF
17440 /* end confdefs.h.  */
17441 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17442    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17443 #define shl_load innocuous_shl_load
17444
17445 /* System header to define __stub macros and hopefully few prototypes,
17446     which can conflict with char shl_load (); below.
17447     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17448     <limits.h> exists even on freestanding compilers.  */
17449
17450 #ifdef __STDC__
17451 # include <limits.h>
17452 #else
17453 # include <assert.h>
17454 #endif
17455
17456 #undef shl_load
17457
17458 /* Override any gcc2 internal prototype to avoid an error.  */
17459 #ifdef __cplusplus
17460 extern "C"
17461 {
17462 #endif
17463 /* We use char because int might match the return type of a gcc2
17464    builtin and then its argument prototype would still apply.  */
17465 char shl_load ();
17466 /* The GNU C library defines this for functions which it implements
17467     to always fail with ENOSYS.  Some functions are actually named
17468     something starting with __ and the normal name is an alias.  */
17469 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17470 choke me
17471 #else
17472 char (*f) () = shl_load;
17473 #endif
17474 #ifdef __cplusplus
17475 }
17476 #endif
17477
17478 int
17479 main ()
17480 {
17481 return f != shl_load;
17482   ;
17483   return 0;
17484 }
17485 _ACEOF
17486 rm -f conftest.$ac_objext conftest$ac_exeext
17487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17488   (eval $ac_link) 2>conftest.er1
17489   ac_status=$?
17490   grep -v '^ *+' conftest.er1 >conftest.err
17491   rm -f conftest.er1
17492   cat conftest.err >&5
17493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494   (exit $ac_status); } &&
17495          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17497   (eval $ac_try) 2>&5
17498   ac_status=$?
17499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500   (exit $ac_status); }; } &&
17501          { ac_try='test -s conftest$ac_exeext'
17502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17503   (eval $ac_try) 2>&5
17504   ac_status=$?
17505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506   (exit $ac_status); }; }; then
17507   ac_cv_func_shl_load=yes
17508 else
17509   echo "$as_me: failed program was:" >&5
17510 sed 's/^/| /' conftest.$ac_ext >&5
17511
17512 ac_cv_func_shl_load=no
17513 fi
17514 rm -f conftest.err conftest.$ac_objext \
17515       conftest$ac_exeext conftest.$ac_ext
17516 fi
17517 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17518 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17519 if test $ac_cv_func_shl_load = yes; then
17520   lt_cv_dlopen="shl_load"
17521 else
17522   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17523 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17524 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17525   echo $ECHO_N "(cached) $ECHO_C" >&6
17526 else
17527   ac_check_lib_save_LIBS=$LIBS
17528 LIBS="-ldld  $LIBS"
17529 cat >conftest.$ac_ext <<_ACEOF
17530 /* confdefs.h.  */
17531 _ACEOF
17532 cat confdefs.h >>conftest.$ac_ext
17533 cat >>conftest.$ac_ext <<_ACEOF
17534 /* end confdefs.h.  */
17535
17536 /* Override any gcc2 internal prototype to avoid an error.  */
17537 #ifdef __cplusplus
17538 extern "C"
17539 #endif
17540 /* We use char because int might match the return type of a gcc2
17541    builtin and then its argument prototype would still apply.  */
17542 char shl_load ();
17543 int
17544 main ()
17545 {
17546 shl_load ();
17547   ;
17548   return 0;
17549 }
17550 _ACEOF
17551 rm -f conftest.$ac_objext conftest$ac_exeext
17552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17553   (eval $ac_link) 2>conftest.er1
17554   ac_status=$?
17555   grep -v '^ *+' conftest.er1 >conftest.err
17556   rm -f conftest.er1
17557   cat conftest.err >&5
17558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559   (exit $ac_status); } &&
17560          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17562   (eval $ac_try) 2>&5
17563   ac_status=$?
17564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565   (exit $ac_status); }; } &&
17566          { ac_try='test -s conftest$ac_exeext'
17567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17568   (eval $ac_try) 2>&5
17569   ac_status=$?
17570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571   (exit $ac_status); }; }; then
17572   ac_cv_lib_dld_shl_load=yes
17573 else
17574   echo "$as_me: failed program was:" >&5
17575 sed 's/^/| /' conftest.$ac_ext >&5
17576
17577 ac_cv_lib_dld_shl_load=no
17578 fi
17579 rm -f conftest.err conftest.$ac_objext \
17580       conftest$ac_exeext conftest.$ac_ext
17581 LIBS=$ac_check_lib_save_LIBS
17582 fi
17583 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17584 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17585 if test $ac_cv_lib_dld_shl_load = yes; then
17586   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17587 else
17588   echo "$as_me:$LINENO: checking for dlopen" >&5
17589 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17590 if test "${ac_cv_func_dlopen+set}" = set; then
17591   echo $ECHO_N "(cached) $ECHO_C" >&6
17592 else
17593   cat >conftest.$ac_ext <<_ACEOF
17594 /* confdefs.h.  */
17595 _ACEOF
17596 cat confdefs.h >>conftest.$ac_ext
17597 cat >>conftest.$ac_ext <<_ACEOF
17598 /* end confdefs.h.  */
17599 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17600    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17601 #define dlopen innocuous_dlopen
17602
17603 /* System header to define __stub macros and hopefully few prototypes,
17604     which can conflict with char dlopen (); below.
17605     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17606     <limits.h> exists even on freestanding compilers.  */
17607
17608 #ifdef __STDC__
17609 # include <limits.h>
17610 #else
17611 # include <assert.h>
17612 #endif
17613
17614 #undef dlopen
17615
17616 /* Override any gcc2 internal prototype to avoid an error.  */
17617 #ifdef __cplusplus
17618 extern "C"
17619 {
17620 #endif
17621 /* We use char because int might match the return type of a gcc2
17622    builtin and then its argument prototype would still apply.  */
17623 char dlopen ();
17624 /* The GNU C library defines this for functions which it implements
17625     to always fail with ENOSYS.  Some functions are actually named
17626     something starting with __ and the normal name is an alias.  */
17627 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17628 choke me
17629 #else
17630 char (*f) () = dlopen;
17631 #endif
17632 #ifdef __cplusplus
17633 }
17634 #endif
17635
17636 int
17637 main ()
17638 {
17639 return f != dlopen;
17640   ;
17641   return 0;
17642 }
17643 _ACEOF
17644 rm -f conftest.$ac_objext conftest$ac_exeext
17645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17646   (eval $ac_link) 2>conftest.er1
17647   ac_status=$?
17648   grep -v '^ *+' conftest.er1 >conftest.err
17649   rm -f conftest.er1
17650   cat conftest.err >&5
17651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652   (exit $ac_status); } &&
17653          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17655   (eval $ac_try) 2>&5
17656   ac_status=$?
17657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658   (exit $ac_status); }; } &&
17659          { ac_try='test -s conftest$ac_exeext'
17660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17661   (eval $ac_try) 2>&5
17662   ac_status=$?
17663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664   (exit $ac_status); }; }; then
17665   ac_cv_func_dlopen=yes
17666 else
17667   echo "$as_me: failed program was:" >&5
17668 sed 's/^/| /' conftest.$ac_ext >&5
17669
17670 ac_cv_func_dlopen=no
17671 fi
17672 rm -f conftest.err conftest.$ac_objext \
17673       conftest$ac_exeext conftest.$ac_ext
17674 fi
17675 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17676 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17677 if test $ac_cv_func_dlopen = yes; then
17678   lt_cv_dlopen="dlopen"
17679 else
17680   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17681 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17682 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17683   echo $ECHO_N "(cached) $ECHO_C" >&6
17684 else
17685   ac_check_lib_save_LIBS=$LIBS
17686 LIBS="-ldl  $LIBS"
17687 cat >conftest.$ac_ext <<_ACEOF
17688 /* confdefs.h.  */
17689 _ACEOF
17690 cat confdefs.h >>conftest.$ac_ext
17691 cat >>conftest.$ac_ext <<_ACEOF
17692 /* end confdefs.h.  */
17693
17694 /* Override any gcc2 internal prototype to avoid an error.  */
17695 #ifdef __cplusplus
17696 extern "C"
17697 #endif
17698 /* We use char because int might match the return type of a gcc2
17699    builtin and then its argument prototype would still apply.  */
17700 char dlopen ();
17701 int
17702 main ()
17703 {
17704 dlopen ();
17705   ;
17706   return 0;
17707 }
17708 _ACEOF
17709 rm -f conftest.$ac_objext conftest$ac_exeext
17710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17711   (eval $ac_link) 2>conftest.er1
17712   ac_status=$?
17713   grep -v '^ *+' conftest.er1 >conftest.err
17714   rm -f conftest.er1
17715   cat conftest.err >&5
17716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17717   (exit $ac_status); } &&
17718          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17720   (eval $ac_try) 2>&5
17721   ac_status=$?
17722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723   (exit $ac_status); }; } &&
17724          { ac_try='test -s conftest$ac_exeext'
17725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17726   (eval $ac_try) 2>&5
17727   ac_status=$?
17728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17729   (exit $ac_status); }; }; then
17730   ac_cv_lib_dl_dlopen=yes
17731 else
17732   echo "$as_me: failed program was:" >&5
17733 sed 's/^/| /' conftest.$ac_ext >&5
17734
17735 ac_cv_lib_dl_dlopen=no
17736 fi
17737 rm -f conftest.err conftest.$ac_objext \
17738       conftest$ac_exeext conftest.$ac_ext
17739 LIBS=$ac_check_lib_save_LIBS
17740 fi
17741 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17742 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17743 if test $ac_cv_lib_dl_dlopen = yes; then
17744   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17745 else
17746   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17747 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17748 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17749   echo $ECHO_N "(cached) $ECHO_C" >&6
17750 else
17751   ac_check_lib_save_LIBS=$LIBS
17752 LIBS="-lsvld  $LIBS"
17753 cat >conftest.$ac_ext <<_ACEOF
17754 /* confdefs.h.  */
17755 _ACEOF
17756 cat confdefs.h >>conftest.$ac_ext
17757 cat >>conftest.$ac_ext <<_ACEOF
17758 /* end confdefs.h.  */
17759
17760 /* Override any gcc2 internal prototype to avoid an error.  */
17761 #ifdef __cplusplus
17762 extern "C"
17763 #endif
17764 /* We use char because int might match the return type of a gcc2
17765    builtin and then its argument prototype would still apply.  */
17766 char dlopen ();
17767 int
17768 main ()
17769 {
17770 dlopen ();
17771   ;
17772   return 0;
17773 }
17774 _ACEOF
17775 rm -f conftest.$ac_objext conftest$ac_exeext
17776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17777   (eval $ac_link) 2>conftest.er1
17778   ac_status=$?
17779   grep -v '^ *+' conftest.er1 >conftest.err
17780   rm -f conftest.er1
17781   cat conftest.err >&5
17782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783   (exit $ac_status); } &&
17784          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17786   (eval $ac_try) 2>&5
17787   ac_status=$?
17788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789   (exit $ac_status); }; } &&
17790          { ac_try='test -s conftest$ac_exeext'
17791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17792   (eval $ac_try) 2>&5
17793   ac_status=$?
17794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795   (exit $ac_status); }; }; then
17796   ac_cv_lib_svld_dlopen=yes
17797 else
17798   echo "$as_me: failed program was:" >&5
17799 sed 's/^/| /' conftest.$ac_ext >&5
17800
17801 ac_cv_lib_svld_dlopen=no
17802 fi
17803 rm -f conftest.err conftest.$ac_objext \
17804       conftest$ac_exeext conftest.$ac_ext
17805 LIBS=$ac_check_lib_save_LIBS
17806 fi
17807 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17808 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17809 if test $ac_cv_lib_svld_dlopen = yes; then
17810   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17811 else
17812   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17813 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17814 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17815   echo $ECHO_N "(cached) $ECHO_C" >&6
17816 else
17817   ac_check_lib_save_LIBS=$LIBS
17818 LIBS="-ldld  $LIBS"
17819 cat >conftest.$ac_ext <<_ACEOF
17820 /* confdefs.h.  */
17821 _ACEOF
17822 cat confdefs.h >>conftest.$ac_ext
17823 cat >>conftest.$ac_ext <<_ACEOF
17824 /* end confdefs.h.  */
17825
17826 /* Override any gcc2 internal prototype to avoid an error.  */
17827 #ifdef __cplusplus
17828 extern "C"
17829 #endif
17830 /* We use char because int might match the return type of a gcc2
17831    builtin and then its argument prototype would still apply.  */
17832 char dld_link ();
17833 int
17834 main ()
17835 {
17836 dld_link ();
17837   ;
17838   return 0;
17839 }
17840 _ACEOF
17841 rm -f conftest.$ac_objext conftest$ac_exeext
17842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17843   (eval $ac_link) 2>conftest.er1
17844   ac_status=$?
17845   grep -v '^ *+' conftest.er1 >conftest.err
17846   rm -f conftest.er1
17847   cat conftest.err >&5
17848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849   (exit $ac_status); } &&
17850          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17852   (eval $ac_try) 2>&5
17853   ac_status=$?
17854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855   (exit $ac_status); }; } &&
17856          { ac_try='test -s conftest$ac_exeext'
17857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17858   (eval $ac_try) 2>&5
17859   ac_status=$?
17860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861   (exit $ac_status); }; }; then
17862   ac_cv_lib_dld_dld_link=yes
17863 else
17864   echo "$as_me: failed program was:" >&5
17865 sed 's/^/| /' conftest.$ac_ext >&5
17866
17867 ac_cv_lib_dld_dld_link=no
17868 fi
17869 rm -f conftest.err conftest.$ac_objext \
17870       conftest$ac_exeext conftest.$ac_ext
17871 LIBS=$ac_check_lib_save_LIBS
17872 fi
17873 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17874 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17875 if test $ac_cv_lib_dld_dld_link = yes; then
17876   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17877 fi
17878
17879
17880 fi
17881
17882
17883 fi
17884
17885
17886 fi
17887
17888
17889 fi
17890
17891
17892 fi
17893
17894     ;;
17895   esac
17896
17897   if test "x$lt_cv_dlopen" != xno; then
17898     enable_dlopen=yes
17899   else
17900     enable_dlopen=no
17901   fi
17902
17903   case $lt_cv_dlopen in
17904   dlopen)
17905     save_CPPFLAGS="$CPPFLAGS"
17906     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17907
17908     save_LDFLAGS="$LDFLAGS"
17909     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17910
17911     save_LIBS="$LIBS"
17912     LIBS="$lt_cv_dlopen_libs $LIBS"
17913
17914     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17915 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17916 if test "${lt_cv_dlopen_self+set}" = set; then
17917   echo $ECHO_N "(cached) $ECHO_C" >&6
17918 else
17919           if test "$cross_compiling" = yes; then :
17920   lt_cv_dlopen_self=cross
17921 else
17922   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17923   lt_status=$lt_dlunknown
17924   cat > conftest.$ac_ext <<EOF
17925 #line 17925 "configure"
17926 #include "confdefs.h"
17927
17928 #if HAVE_DLFCN_H
17929 #include <dlfcn.h>
17930 #endif
17931
17932 #include <stdio.h>
17933
17934 #ifdef RTLD_GLOBAL
17935 #  define LT_DLGLOBAL           RTLD_GLOBAL
17936 #else
17937 #  ifdef DL_GLOBAL
17938 #    define LT_DLGLOBAL         DL_GLOBAL
17939 #  else
17940 #    define LT_DLGLOBAL         0
17941 #  endif
17942 #endif
17943
17944 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17945    find out it does not work in some platform. */
17946 #ifndef LT_DLLAZY_OR_NOW
17947 #  ifdef RTLD_LAZY
17948 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17949 #  else
17950 #    ifdef DL_LAZY
17951 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17952 #    else
17953 #      ifdef RTLD_NOW
17954 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17955 #      else
17956 #        ifdef DL_NOW
17957 #          define LT_DLLAZY_OR_NOW      DL_NOW
17958 #        else
17959 #          define LT_DLLAZY_OR_NOW      0
17960 #        endif
17961 #      endif
17962 #    endif
17963 #  endif
17964 #endif
17965
17966 #ifdef __cplusplus
17967 extern "C" void exit (int);
17968 #endif
17969
17970 void fnord() { int i=42;}
17971 int main ()
17972 {
17973   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17974   int status = $lt_dlunknown;
17975
17976   if (self)
17977     {
17978       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17979       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17980       /* dlclose (self); */
17981     }
17982
17983     exit (status);
17984 }
17985 EOF
17986   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17987   (eval $ac_link) 2>&5
17988   ac_status=$?
17989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17991     (./conftest; exit; ) 2>/dev/null
17992     lt_status=$?
17993     case x$lt_status in
17994       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17995       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17996       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17997     esac
17998   else :
17999     # compilation failed
18000     lt_cv_dlopen_self=no
18001   fi
18002 fi
18003 rm -fr conftest*
18004
18005
18006 fi
18007 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18008 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18009
18010     if test "x$lt_cv_dlopen_self" = xyes; then
18011       LDFLAGS="$LDFLAGS $link_static_flag"
18012       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18013 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18014 if test "${lt_cv_dlopen_self_static+set}" = set; then
18015   echo $ECHO_N "(cached) $ECHO_C" >&6
18016 else
18017           if test "$cross_compiling" = yes; then :
18018   lt_cv_dlopen_self_static=cross
18019 else
18020   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18021   lt_status=$lt_dlunknown
18022   cat > conftest.$ac_ext <<EOF
18023 #line 18023 "configure"
18024 #include "confdefs.h"
18025
18026 #if HAVE_DLFCN_H
18027 #include <dlfcn.h>
18028 #endif
18029
18030 #include <stdio.h>
18031
18032 #ifdef RTLD_GLOBAL
18033 #  define LT_DLGLOBAL           RTLD_GLOBAL
18034 #else
18035 #  ifdef DL_GLOBAL
18036 #    define LT_DLGLOBAL         DL_GLOBAL
18037 #  else
18038 #    define LT_DLGLOBAL         0
18039 #  endif
18040 #endif
18041
18042 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18043    find out it does not work in some platform. */
18044 #ifndef LT_DLLAZY_OR_NOW
18045 #  ifdef RTLD_LAZY
18046 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18047 #  else
18048 #    ifdef DL_LAZY
18049 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18050 #    else
18051 #      ifdef RTLD_NOW
18052 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18053 #      else
18054 #        ifdef DL_NOW
18055 #          define LT_DLLAZY_OR_NOW      DL_NOW
18056 #        else
18057 #          define LT_DLLAZY_OR_NOW      0
18058 #        endif
18059 #      endif
18060 #    endif
18061 #  endif
18062 #endif
18063
18064 #ifdef __cplusplus
18065 extern "C" void exit (int);
18066 #endif
18067
18068 void fnord() { int i=42;}
18069 int main ()
18070 {
18071   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18072   int status = $lt_dlunknown;
18073
18074   if (self)
18075     {
18076       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18077       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18078       /* dlclose (self); */
18079     }
18080
18081     exit (status);
18082 }
18083 EOF
18084   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18085   (eval $ac_link) 2>&5
18086   ac_status=$?
18087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18089     (./conftest; exit; ) 2>/dev/null
18090     lt_status=$?
18091     case x$lt_status in
18092       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18093       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18094       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18095     esac
18096   else :
18097     # compilation failed
18098     lt_cv_dlopen_self_static=no
18099   fi
18100 fi
18101 rm -fr conftest*
18102
18103
18104 fi
18105 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18106 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18107     fi
18108
18109     CPPFLAGS="$save_CPPFLAGS"
18110     LDFLAGS="$save_LDFLAGS"
18111     LIBS="$save_LIBS"
18112     ;;
18113   esac
18114
18115   case $lt_cv_dlopen_self in
18116   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18117   *) enable_dlopen_self=unknown ;;
18118   esac
18119
18120   case $lt_cv_dlopen_self_static in
18121   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18122   *) enable_dlopen_self_static=unknown ;;
18123   esac
18124 fi
18125
18126
18127 # The else clause should only fire when bootstrapping the
18128 # libtool distribution, otherwise you forgot to ship ltmain.sh
18129 # with your package, and you will get complaints that there are
18130 # no rules to generate ltmain.sh.
18131 if test -f "$ltmain"; then
18132   # See if we are running on zsh, and set the options which allow our commands through
18133   # without removal of \ escapes.
18134   if test -n "${ZSH_VERSION+set}" ; then
18135     setopt NO_GLOB_SUBST
18136   fi
18137   # Now quote all the things that may contain metacharacters while being
18138   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18139   # variables and quote the copies for generation of the libtool script.
18140   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18141     SED SHELL STRIP \
18142     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18143     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18144     deplibs_check_method reload_flag reload_cmds need_locks \
18145     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18146     lt_cv_sys_global_symbol_to_c_name_address \
18147     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18148     old_postinstall_cmds old_postuninstall_cmds \
18149     compiler_GCJ \
18150     CC_GCJ \
18151     LD_GCJ \
18152     lt_prog_compiler_wl_GCJ \
18153     lt_prog_compiler_pic_GCJ \
18154     lt_prog_compiler_static_GCJ \
18155     lt_prog_compiler_no_builtin_flag_GCJ \
18156     export_dynamic_flag_spec_GCJ \
18157     thread_safe_flag_spec_GCJ \
18158     whole_archive_flag_spec_GCJ \
18159     enable_shared_with_static_runtimes_GCJ \
18160     old_archive_cmds_GCJ \
18161     old_archive_from_new_cmds_GCJ \
18162     predep_objects_GCJ \
18163     postdep_objects_GCJ \
18164     predeps_GCJ \
18165     postdeps_GCJ \
18166     compiler_lib_search_path_GCJ \
18167     archive_cmds_GCJ \
18168     archive_expsym_cmds_GCJ \
18169     postinstall_cmds_GCJ \
18170     postuninstall_cmds_GCJ \
18171     old_archive_from_expsyms_cmds_GCJ \
18172     allow_undefined_flag_GCJ \
18173     no_undefined_flag_GCJ \
18174     export_symbols_cmds_GCJ \
18175     hardcode_libdir_flag_spec_GCJ \
18176     hardcode_libdir_flag_spec_ld_GCJ \
18177     hardcode_libdir_separator_GCJ \
18178     hardcode_automatic_GCJ \
18179     module_cmds_GCJ \
18180     module_expsym_cmds_GCJ \
18181     lt_cv_prog_compiler_c_o_GCJ \
18182     exclude_expsyms_GCJ \
18183     include_expsyms_GCJ; do
18184
18185     case $var in
18186     old_archive_cmds_GCJ | \
18187     old_archive_from_new_cmds_GCJ | \
18188     archive_cmds_GCJ | \
18189     archive_expsym_cmds_GCJ | \
18190     module_cmds_GCJ | \
18191     module_expsym_cmds_GCJ | \
18192     old_archive_from_expsyms_cmds_GCJ | \
18193     export_symbols_cmds_GCJ | \
18194     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18195     postinstall_cmds | postuninstall_cmds | \
18196     old_postinstall_cmds | old_postuninstall_cmds | \
18197     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18198       # Double-quote double-evaled strings.
18199       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18200       ;;
18201     *)
18202       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18203       ;;
18204     esac
18205   done
18206
18207   case $lt_echo in
18208   *'\$0 --fallback-echo"')
18209     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18210     ;;
18211   esac
18212
18213 cfgfile="$ofile"
18214
18215   cat <<__EOF__ >> "$cfgfile"
18216 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18217
18218 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18219
18220 # Shell to use when invoking shell scripts.
18221 SHELL=$lt_SHELL
18222
18223 # Whether or not to build shared libraries.
18224 build_libtool_libs=$enable_shared
18225
18226 # Whether or not to build static libraries.
18227 build_old_libs=$enable_static
18228
18229 # Whether or not to add -lc for building shared libraries.
18230 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18231
18232 # Whether or not to disallow shared libs when runtime libs are static
18233 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18234
18235 # Whether or not to optimize for fast installation.
18236 fast_install=$enable_fast_install
18237
18238 # The host system.
18239 host_alias=$host_alias
18240 host=$host
18241
18242 # An echo program that does not interpret backslashes.
18243 echo=$lt_echo
18244
18245 # The archiver.
18246 AR=$lt_AR
18247 AR_FLAGS=$lt_AR_FLAGS
18248
18249 # A C compiler.
18250 LTCC=$lt_LTCC
18251
18252 # A language-specific compiler.
18253 CC=$lt_compiler_GCJ
18254
18255 # Is the compiler the GNU C compiler?
18256 with_gcc=$GCC_GCJ
18257
18258 # An ERE matcher.
18259 EGREP=$lt_EGREP
18260
18261 # The linker used to build libraries.
18262 LD=$lt_LD_GCJ
18263
18264 # Whether we need hard or soft links.
18265 LN_S=$lt_LN_S
18266
18267 # A BSD-compatible nm program.
18268 NM=$lt_NM
18269
18270 # A symbol stripping program
18271 STRIP=$lt_STRIP
18272
18273 # Used to examine libraries when file_magic_cmd begins "file"
18274 MAGIC_CMD=$MAGIC_CMD
18275
18276 # Used on cygwin: DLL creation program.
18277 DLLTOOL="$DLLTOOL"
18278
18279 # Used on cygwin: object dumper.
18280 OBJDUMP="$OBJDUMP"
18281
18282 # Used on cygwin: assembler.
18283 AS="$AS"
18284
18285 # The name of the directory that contains temporary libtool files.
18286 objdir=$objdir
18287
18288 # How to create reloadable object files.
18289 reload_flag=$lt_reload_flag
18290 reload_cmds=$lt_reload_cmds
18291
18292 # How to pass a linker flag through the compiler.
18293 wl=$lt_lt_prog_compiler_wl_GCJ
18294
18295 # Object file suffix (normally "o").
18296 objext="$ac_objext"
18297
18298 # Old archive suffix (normally "a").
18299 libext="$libext"
18300
18301 # Shared library suffix (normally ".so").
18302 shrext='$shrext'
18303
18304 # Executable file suffix (normally "").
18305 exeext="$exeext"
18306
18307 # Additional compiler flags for building library objects.
18308 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18309 pic_mode=$pic_mode
18310
18311 # What is the maximum length of a command?
18312 max_cmd_len=$lt_cv_sys_max_cmd_len
18313
18314 # Does compiler simultaneously support -c and -o options?
18315 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18316
18317 # Must we lock files when doing compilation ?
18318 need_locks=$lt_need_locks
18319
18320 # Do we need the lib prefix for modules?
18321 need_lib_prefix=$need_lib_prefix
18322
18323 # Do we need a version for libraries?
18324 need_version=$need_version
18325
18326 # Whether dlopen is supported.
18327 dlopen_support=$enable_dlopen
18328
18329 # Whether dlopen of programs is supported.
18330 dlopen_self=$enable_dlopen_self
18331
18332 # Whether dlopen of statically linked programs is supported.
18333 dlopen_self_static=$enable_dlopen_self_static
18334
18335 # Compiler flag to prevent dynamic linking.
18336 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18337
18338 # Compiler flag to turn off builtin functions.
18339 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18340
18341 # Compiler flag to allow reflexive dlopens.
18342 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18343
18344 # Compiler flag to generate shared objects directly from archives.
18345 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18346
18347 # Compiler flag to generate thread-safe objects.
18348 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18349
18350 # Library versioning type.
18351 version_type=$version_type
18352
18353 # Format of library name prefix.
18354 libname_spec=$lt_libname_spec
18355
18356 # List of archive names.  First name is the real one, the rest are links.
18357 # The last name is the one that the linker finds with -lNAME.
18358 library_names_spec=$lt_library_names_spec
18359
18360 # The coded name of the library, if different from the real name.
18361 soname_spec=$lt_soname_spec
18362
18363 # Commands used to build and install an old-style archive.
18364 RANLIB=$lt_RANLIB
18365 old_archive_cmds=$lt_old_archive_cmds_GCJ
18366 old_postinstall_cmds=$lt_old_postinstall_cmds
18367 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18368
18369 # Create an old-style archive from a shared archive.
18370 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18371
18372 # Create a temporary old-style archive to link instead of a shared archive.
18373 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18374
18375 # Commands used to build and install a shared archive.
18376 archive_cmds=$lt_archive_cmds_GCJ
18377 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18378 postinstall_cmds=$lt_postinstall_cmds
18379 postuninstall_cmds=$lt_postuninstall_cmds
18380
18381 # Commands used to build a loadable module (assumed same as above if empty)
18382 module_cmds=$lt_module_cmds_GCJ
18383 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18384
18385 # Commands to strip libraries.
18386 old_striplib=$lt_old_striplib
18387 striplib=$lt_striplib
18388
18389 # Dependencies to place before the objects being linked to create a
18390 # shared library.
18391 predep_objects=$lt_predep_objects_GCJ
18392
18393 # Dependencies to place after the objects being linked to create a
18394 # shared library.
18395 postdep_objects=$lt_postdep_objects_GCJ
18396
18397 # Dependencies to place before the objects being linked to create a
18398 # shared library.
18399 predeps=$lt_predeps_GCJ
18400
18401 # Dependencies to place after the objects being linked to create a
18402 # shared library.
18403 postdeps=$lt_postdeps_GCJ
18404
18405 # The library search path used internally by the compiler when linking
18406 # a shared library.
18407 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18408
18409 # Method to check whether dependent libraries are shared objects.
18410 deplibs_check_method=$lt_deplibs_check_method
18411
18412 # Command to use when deplibs_check_method == file_magic.
18413 file_magic_cmd=$lt_file_magic_cmd
18414
18415 # Flag that allows shared libraries with undefined symbols to be built.
18416 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18417
18418 # Flag that forces no undefined symbols.
18419 no_undefined_flag=$lt_no_undefined_flag_GCJ
18420
18421 # Commands used to finish a libtool library installation in a directory.
18422 finish_cmds=$lt_finish_cmds
18423
18424 # Same as above, but a single script fragment to be evaled but not shown.
18425 finish_eval=$lt_finish_eval
18426
18427 # Take the output of nm and produce a listing of raw symbols and C names.
18428 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18429
18430 # Transform the output of nm in a proper C declaration
18431 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18432
18433 # Transform the output of nm in a C name address pair
18434 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18435
18436 # This is the shared library runtime path variable.
18437 runpath_var=$runpath_var
18438
18439 # This is the shared library path variable.
18440 shlibpath_var=$shlibpath_var
18441
18442 # Is shlibpath searched before the hard-coded library search path?
18443 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18444
18445 # How to hardcode a shared library path into an executable.
18446 hardcode_action=$hardcode_action_GCJ
18447
18448 # Whether we should hardcode library paths into libraries.
18449 hardcode_into_libs=$hardcode_into_libs
18450
18451 # Flag to hardcode \$libdir into a binary during linking.
18452 # This must work even if \$libdir does not exist.
18453 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18454
18455 # If ld is used when linking, flag to hardcode \$libdir into
18456 # a binary during linking. This must work even if \$libdir does
18457 # not exist.
18458 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18459
18460 # Whether we need a single -rpath flag with a separated argument.
18461 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18462
18463 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18464 # resulting binary.
18465 hardcode_direct=$hardcode_direct_GCJ
18466
18467 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18468 # resulting binary.
18469 hardcode_minus_L=$hardcode_minus_L_GCJ
18470
18471 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18472 # the resulting binary.
18473 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18474
18475 # Set to yes if building a shared library automatically hardcodes DIR into the library
18476 # and all subsequent libraries and executables linked against it.
18477 hardcode_automatic=$hardcode_automatic_GCJ
18478
18479 # Variables whose values should be saved in libtool wrapper scripts and
18480 # restored at relink time.
18481 variables_saved_for_relink="$variables_saved_for_relink"
18482
18483 # Whether libtool must link a program against all its dependency libraries.
18484 link_all_deplibs=$link_all_deplibs_GCJ
18485
18486 # Compile-time system search path for libraries
18487 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18488
18489 # Run-time system search path for libraries
18490 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18491
18492 # Fix the shell variable \$srcfile for the compiler.
18493 fix_srcfile_path="$fix_srcfile_path_GCJ"
18494
18495 # Set to yes if exported symbols are required.
18496 always_export_symbols=$always_export_symbols_GCJ
18497
18498 # The commands to list exported symbols.
18499 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18500
18501 # The commands to extract the exported symbol list from a shared archive.
18502 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18503
18504 # Symbols that should not be listed in the preloaded symbols.
18505 exclude_expsyms=$lt_exclude_expsyms_GCJ
18506
18507 # Symbols that must always be exported.
18508 include_expsyms=$lt_include_expsyms_GCJ
18509
18510 # ### END LIBTOOL TAG CONFIG: $tagname
18511
18512 __EOF__
18513
18514
18515 else
18516   # If there is no Makefile yet, we rely on a make rule to execute
18517   # `config.status --recheck' to rerun these tests and create the
18518   # libtool script then.
18519   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18520   if test -f "$ltmain_in"; then
18521     test -f Makefile && make "$ltmain"
18522   fi
18523 fi
18524
18525
18526 ac_ext=c
18527 ac_cpp='$CPP $CPPFLAGS'
18528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18531
18532 CC="$lt_save_CC"
18533
18534         else
18535           tagname=""
18536         fi
18537         ;;
18538
18539       RC)
18540
18541
18542
18543 # Source file extension for RC test sources.
18544 ac_ext=rc
18545
18546 # Object file extension for compiled RC test sources.
18547 objext=o
18548 objext_RC=$objext
18549
18550 # Code to be used in simple compile tests
18551 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18552
18553 # Code to be used in simple link tests
18554 lt_simple_link_test_code="$lt_simple_compile_test_code"
18555
18556 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18557
18558 # If no C compiler was specified, use CC.
18559 LTCC=${LTCC-"$CC"}
18560
18561 # Allow CC to be a program name with arguments.
18562 compiler=$CC
18563
18564
18565 # Allow CC to be a program name with arguments.
18566 lt_save_CC="$CC"
18567 CC=${RC-"windres"}
18568 compiler=$CC
18569 compiler_RC=$CC
18570 lt_cv_prog_compiler_c_o_RC=yes
18571
18572 # The else clause should only fire when bootstrapping the
18573 # libtool distribution, otherwise you forgot to ship ltmain.sh
18574 # with your package, and you will get complaints that there are
18575 # no rules to generate ltmain.sh.
18576 if test -f "$ltmain"; then
18577   # See if we are running on zsh, and set the options which allow our commands through
18578   # without removal of \ escapes.
18579   if test -n "${ZSH_VERSION+set}" ; then
18580     setopt NO_GLOB_SUBST
18581   fi
18582   # Now quote all the things that may contain metacharacters while being
18583   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18584   # variables and quote the copies for generation of the libtool script.
18585   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18586     SED SHELL STRIP \
18587     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18588     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18589     deplibs_check_method reload_flag reload_cmds need_locks \
18590     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18591     lt_cv_sys_global_symbol_to_c_name_address \
18592     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18593     old_postinstall_cmds old_postuninstall_cmds \
18594     compiler_RC \
18595     CC_RC \
18596     LD_RC \
18597     lt_prog_compiler_wl_RC \
18598     lt_prog_compiler_pic_RC \
18599     lt_prog_compiler_static_RC \
18600     lt_prog_compiler_no_builtin_flag_RC \
18601     export_dynamic_flag_spec_RC \
18602     thread_safe_flag_spec_RC \
18603     whole_archive_flag_spec_RC \
18604     enable_shared_with_static_runtimes_RC \
18605     old_archive_cmds_RC \
18606     old_archive_from_new_cmds_RC \
18607     predep_objects_RC \
18608     postdep_objects_RC \
18609     predeps_RC \
18610     postdeps_RC \
18611     compiler_lib_search_path_RC \
18612     archive_cmds_RC \
18613     archive_expsym_cmds_RC \
18614     postinstall_cmds_RC \
18615     postuninstall_cmds_RC \
18616     old_archive_from_expsyms_cmds_RC \
18617     allow_undefined_flag_RC \
18618     no_undefined_flag_RC \
18619     export_symbols_cmds_RC \
18620     hardcode_libdir_flag_spec_RC \
18621     hardcode_libdir_flag_spec_ld_RC \
18622     hardcode_libdir_separator_RC \
18623     hardcode_automatic_RC \
18624     module_cmds_RC \
18625     module_expsym_cmds_RC \
18626     lt_cv_prog_compiler_c_o_RC \
18627     exclude_expsyms_RC \
18628     include_expsyms_RC; do
18629
18630     case $var in
18631     old_archive_cmds_RC | \
18632     old_archive_from_new_cmds_RC | \
18633     archive_cmds_RC | \
18634     archive_expsym_cmds_RC | \
18635     module_cmds_RC | \
18636     module_expsym_cmds_RC | \
18637     old_archive_from_expsyms_cmds_RC | \
18638     export_symbols_cmds_RC | \
18639     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18640     postinstall_cmds | postuninstall_cmds | \
18641     old_postinstall_cmds | old_postuninstall_cmds | \
18642     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18643       # Double-quote double-evaled strings.
18644       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18645       ;;
18646     *)
18647       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18648       ;;
18649     esac
18650   done
18651
18652   case $lt_echo in
18653   *'\$0 --fallback-echo"')
18654     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18655     ;;
18656   esac
18657
18658 cfgfile="$ofile"
18659
18660   cat <<__EOF__ >> "$cfgfile"
18661 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18662
18663 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18664
18665 # Shell to use when invoking shell scripts.
18666 SHELL=$lt_SHELL
18667
18668 # Whether or not to build shared libraries.
18669 build_libtool_libs=$enable_shared
18670
18671 # Whether or not to build static libraries.
18672 build_old_libs=$enable_static
18673
18674 # Whether or not to add -lc for building shared libraries.
18675 build_libtool_need_lc=$archive_cmds_need_lc_RC
18676
18677 # Whether or not to disallow shared libs when runtime libs are static
18678 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18679
18680 # Whether or not to optimize for fast installation.
18681 fast_install=$enable_fast_install
18682
18683 # The host system.
18684 host_alias=$host_alias
18685 host=$host
18686
18687 # An echo program that does not interpret backslashes.
18688 echo=$lt_echo
18689
18690 # The archiver.
18691 AR=$lt_AR
18692 AR_FLAGS=$lt_AR_FLAGS
18693
18694 # A C compiler.
18695 LTCC=$lt_LTCC
18696
18697 # A language-specific compiler.
18698 CC=$lt_compiler_RC
18699
18700 # Is the compiler the GNU C compiler?
18701 with_gcc=$GCC_RC
18702
18703 # An ERE matcher.
18704 EGREP=$lt_EGREP
18705
18706 # The linker used to build libraries.
18707 LD=$lt_LD_RC
18708
18709 # Whether we need hard or soft links.
18710 LN_S=$lt_LN_S
18711
18712 # A BSD-compatible nm program.
18713 NM=$lt_NM
18714
18715 # A symbol stripping program
18716 STRIP=$lt_STRIP
18717
18718 # Used to examine libraries when file_magic_cmd begins "file"
18719 MAGIC_CMD=$MAGIC_CMD
18720
18721 # Used on cygwin: DLL creation program.
18722 DLLTOOL="$DLLTOOL"
18723
18724 # Used on cygwin: object dumper.
18725 OBJDUMP="$OBJDUMP"
18726
18727 # Used on cygwin: assembler.
18728 AS="$AS"
18729
18730 # The name of the directory that contains temporary libtool files.
18731 objdir=$objdir
18732
18733 # How to create reloadable object files.
18734 reload_flag=$lt_reload_flag
18735 reload_cmds=$lt_reload_cmds
18736
18737 # How to pass a linker flag through the compiler.
18738 wl=$lt_lt_prog_compiler_wl_RC
18739
18740 # Object file suffix (normally "o").
18741 objext="$ac_objext"
18742
18743 # Old archive suffix (normally "a").
18744 libext="$libext"
18745
18746 # Shared library suffix (normally ".so").
18747 shrext='$shrext'
18748
18749 # Executable file suffix (normally "").
18750 exeext="$exeext"
18751
18752 # Additional compiler flags for building library objects.
18753 pic_flag=$lt_lt_prog_compiler_pic_RC
18754 pic_mode=$pic_mode
18755
18756 # What is the maximum length of a command?
18757 max_cmd_len=$lt_cv_sys_max_cmd_len
18758
18759 # Does compiler simultaneously support -c and -o options?
18760 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18761
18762 # Must we lock files when doing compilation ?
18763 need_locks=$lt_need_locks
18764
18765 # Do we need the lib prefix for modules?
18766 need_lib_prefix=$need_lib_prefix
18767
18768 # Do we need a version for libraries?
18769 need_version=$need_version
18770
18771 # Whether dlopen is supported.
18772 dlopen_support=$enable_dlopen
18773
18774 # Whether dlopen of programs is supported.
18775 dlopen_self=$enable_dlopen_self
18776
18777 # Whether dlopen of statically linked programs is supported.
18778 dlopen_self_static=$enable_dlopen_self_static
18779
18780 # Compiler flag to prevent dynamic linking.
18781 link_static_flag=$lt_lt_prog_compiler_static_RC
18782
18783 # Compiler flag to turn off builtin functions.
18784 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18785
18786 # Compiler flag to allow reflexive dlopens.
18787 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18788
18789 # Compiler flag to generate shared objects directly from archives.
18790 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18791
18792 # Compiler flag to generate thread-safe objects.
18793 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18794
18795 # Library versioning type.
18796 version_type=$version_type
18797
18798 # Format of library name prefix.
18799 libname_spec=$lt_libname_spec
18800
18801 # List of archive names.  First name is the real one, the rest are links.
18802 # The last name is the one that the linker finds with -lNAME.
18803 library_names_spec=$lt_library_names_spec
18804
18805 # The coded name of the library, if different from the real name.
18806 soname_spec=$lt_soname_spec
18807
18808 # Commands used to build and install an old-style archive.
18809 RANLIB=$lt_RANLIB
18810 old_archive_cmds=$lt_old_archive_cmds_RC
18811 old_postinstall_cmds=$lt_old_postinstall_cmds
18812 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18813
18814 # Create an old-style archive from a shared archive.
18815 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18816
18817 # Create a temporary old-style archive to link instead of a shared archive.
18818 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18819
18820 # Commands used to build and install a shared archive.
18821 archive_cmds=$lt_archive_cmds_RC
18822 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18823 postinstall_cmds=$lt_postinstall_cmds
18824 postuninstall_cmds=$lt_postuninstall_cmds
18825
18826 # Commands used to build a loadable module (assumed same as above if empty)
18827 module_cmds=$lt_module_cmds_RC
18828 module_expsym_cmds=$lt_module_expsym_cmds_RC
18829
18830 # Commands to strip libraries.
18831 old_striplib=$lt_old_striplib
18832 striplib=$lt_striplib
18833
18834 # Dependencies to place before the objects being linked to create a
18835 # shared library.
18836 predep_objects=$lt_predep_objects_RC
18837
18838 # Dependencies to place after the objects being linked to create a
18839 # shared library.
18840 postdep_objects=$lt_postdep_objects_RC
18841
18842 # Dependencies to place before the objects being linked to create a
18843 # shared library.
18844 predeps=$lt_predeps_RC
18845
18846 # Dependencies to place after the objects being linked to create a
18847 # shared library.
18848 postdeps=$lt_postdeps_RC
18849
18850 # The library search path used internally by the compiler when linking
18851 # a shared library.
18852 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18853
18854 # Method to check whether dependent libraries are shared objects.
18855 deplibs_check_method=$lt_deplibs_check_method
18856
18857 # Command to use when deplibs_check_method == file_magic.
18858 file_magic_cmd=$lt_file_magic_cmd
18859
18860 # Flag that allows shared libraries with undefined symbols to be built.
18861 allow_undefined_flag=$lt_allow_undefined_flag_RC
18862
18863 # Flag that forces no undefined symbols.
18864 no_undefined_flag=$lt_no_undefined_flag_RC
18865
18866 # Commands used to finish a libtool library installation in a directory.
18867 finish_cmds=$lt_finish_cmds
18868
18869 # Same as above, but a single script fragment to be evaled but not shown.
18870 finish_eval=$lt_finish_eval
18871
18872 # Take the output of nm and produce a listing of raw symbols and C names.
18873 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18874
18875 # Transform the output of nm in a proper C declaration
18876 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18877
18878 # Transform the output of nm in a C name address pair
18879 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18880
18881 # This is the shared library runtime path variable.
18882 runpath_var=$runpath_var
18883
18884 # This is the shared library path variable.
18885 shlibpath_var=$shlibpath_var
18886
18887 # Is shlibpath searched before the hard-coded library search path?
18888 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18889
18890 # How to hardcode a shared library path into an executable.
18891 hardcode_action=$hardcode_action_RC
18892
18893 # Whether we should hardcode library paths into libraries.
18894 hardcode_into_libs=$hardcode_into_libs
18895
18896 # Flag to hardcode \$libdir into a binary during linking.
18897 # This must work even if \$libdir does not exist.
18898 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18899
18900 # If ld is used when linking, flag to hardcode \$libdir into
18901 # a binary during linking. This must work even if \$libdir does
18902 # not exist.
18903 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18904
18905 # Whether we need a single -rpath flag with a separated argument.
18906 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18907
18908 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18909 # resulting binary.
18910 hardcode_direct=$hardcode_direct_RC
18911
18912 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18913 # resulting binary.
18914 hardcode_minus_L=$hardcode_minus_L_RC
18915
18916 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18917 # the resulting binary.
18918 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18919
18920 # Set to yes if building a shared library automatically hardcodes DIR into the library
18921 # and all subsequent libraries and executables linked against it.
18922 hardcode_automatic=$hardcode_automatic_RC
18923
18924 # Variables whose values should be saved in libtool wrapper scripts and
18925 # restored at relink time.
18926 variables_saved_for_relink="$variables_saved_for_relink"
18927
18928 # Whether libtool must link a program against all its dependency libraries.
18929 link_all_deplibs=$link_all_deplibs_RC
18930
18931 # Compile-time system search path for libraries
18932 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18933
18934 # Run-time system search path for libraries
18935 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18936
18937 # Fix the shell variable \$srcfile for the compiler.
18938 fix_srcfile_path="$fix_srcfile_path_RC"
18939
18940 # Set to yes if exported symbols are required.
18941 always_export_symbols=$always_export_symbols_RC
18942
18943 # The commands to list exported symbols.
18944 export_symbols_cmds=$lt_export_symbols_cmds_RC
18945
18946 # The commands to extract the exported symbol list from a shared archive.
18947 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18948
18949 # Symbols that should not be listed in the preloaded symbols.
18950 exclude_expsyms=$lt_exclude_expsyms_RC
18951
18952 # Symbols that must always be exported.
18953 include_expsyms=$lt_include_expsyms_RC
18954
18955 # ### END LIBTOOL TAG CONFIG: $tagname
18956
18957 __EOF__
18958
18959
18960 else
18961   # If there is no Makefile yet, we rely on a make rule to execute
18962   # `config.status --recheck' to rerun these tests and create the
18963   # libtool script then.
18964   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18965   if test -f "$ltmain_in"; then
18966     test -f Makefile && make "$ltmain"
18967   fi
18968 fi
18969
18970
18971 ac_ext=c
18972 ac_cpp='$CPP $CPPFLAGS'
18973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18976
18977 CC="$lt_save_CC"
18978
18979         ;;
18980
18981       *)
18982         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18983 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18984    { (exit 1); exit 1; }; }
18985         ;;
18986       esac
18987
18988       # Append the new tag name to the list of available tags.
18989       if test -n "$tagname" ; then
18990       available_tags="$available_tags $tagname"
18991     fi
18992     fi
18993   done
18994   IFS="$lt_save_ifs"
18995
18996   # Now substitute the updated list of available tags.
18997   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18998     mv "${ofile}T" "$ofile"
18999     chmod +x "$ofile"
19000   else
19001     rm -f "${ofile}T"
19002     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19003 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19004    { (exit 1); exit 1; }; }
19005   fi
19006 fi
19007
19008
19009
19010 # This can be used to rebuild libtool when needed
19011 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19012
19013 # Always use our own libtool.
19014 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19015
19016 # Prevent multiple expansion
19017
19018
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035
19036
19037
19038 # declare the modules (no optional module)
19039
19040 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
19041 ACLOCAL="$ACLOCAL -I acmacro"
19042
19043
19044 ac_ext=c
19045 ac_cpp='$CPP $CPPFLAGS'
19046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19049 if test -n "$ac_tool_prefix"; then
19050   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19051 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19052 echo "$as_me:$LINENO: checking for $ac_word" >&5
19053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19054 if test "${ac_cv_prog_CC+set}" = set; then
19055   echo $ECHO_N "(cached) $ECHO_C" >&6
19056 else
19057   if test -n "$CC"; then
19058   ac_cv_prog_CC="$CC" # Let the user override the test.
19059 else
19060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19061 for as_dir in $PATH
19062 do
19063   IFS=$as_save_IFS
19064   test -z "$as_dir" && as_dir=.
19065   for ac_exec_ext in '' $ac_executable_extensions; do
19066   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19067     ac_cv_prog_CC="${ac_tool_prefix}gcc"
19068     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19069     break 2
19070   fi
19071 done
19072 done
19073
19074 fi
19075 fi
19076 CC=$ac_cv_prog_CC
19077 if test -n "$CC"; then
19078   echo "$as_me:$LINENO: result: $CC" >&5
19079 echo "${ECHO_T}$CC" >&6
19080 else
19081   echo "$as_me:$LINENO: result: no" >&5
19082 echo "${ECHO_T}no" >&6
19083 fi
19084
19085 fi
19086 if test -z "$ac_cv_prog_CC"; then
19087   ac_ct_CC=$CC
19088   # Extract the first word of "gcc", so it can be a program name with args.
19089 set dummy gcc; ac_word=$2
19090 echo "$as_me:$LINENO: checking for $ac_word" >&5
19091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19092 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19093   echo $ECHO_N "(cached) $ECHO_C" >&6
19094 else
19095   if test -n "$ac_ct_CC"; then
19096   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19097 else
19098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19099 for as_dir in $PATH
19100 do
19101   IFS=$as_save_IFS
19102   test -z "$as_dir" && as_dir=.
19103   for ac_exec_ext in '' $ac_executable_extensions; do
19104   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19105     ac_cv_prog_ac_ct_CC="gcc"
19106     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19107     break 2
19108   fi
19109 done
19110 done
19111
19112 fi
19113 fi
19114 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19115 if test -n "$ac_ct_CC"; then
19116   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19117 echo "${ECHO_T}$ac_ct_CC" >&6
19118 else
19119   echo "$as_me:$LINENO: result: no" >&5
19120 echo "${ECHO_T}no" >&6
19121 fi
19122
19123   CC=$ac_ct_CC
19124 else
19125   CC="$ac_cv_prog_CC"
19126 fi
19127
19128 if test -z "$CC"; then
19129   if test -n "$ac_tool_prefix"; then
19130   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19131 set dummy ${ac_tool_prefix}cc; ac_word=$2
19132 echo "$as_me:$LINENO: checking for $ac_word" >&5
19133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19134 if test "${ac_cv_prog_CC+set}" = set; then
19135   echo $ECHO_N "(cached) $ECHO_C" >&6
19136 else
19137   if test -n "$CC"; then
19138   ac_cv_prog_CC="$CC" # Let the user override the test.
19139 else
19140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19141 for as_dir in $PATH
19142 do
19143   IFS=$as_save_IFS
19144   test -z "$as_dir" && as_dir=.
19145   for ac_exec_ext in '' $ac_executable_extensions; do
19146   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19147     ac_cv_prog_CC="${ac_tool_prefix}cc"
19148     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19149     break 2
19150   fi
19151 done
19152 done
19153
19154 fi
19155 fi
19156 CC=$ac_cv_prog_CC
19157 if test -n "$CC"; then
19158   echo "$as_me:$LINENO: result: $CC" >&5
19159 echo "${ECHO_T}$CC" >&6
19160 else
19161   echo "$as_me:$LINENO: result: no" >&5
19162 echo "${ECHO_T}no" >&6
19163 fi
19164
19165 fi
19166 if test -z "$ac_cv_prog_CC"; then
19167   ac_ct_CC=$CC
19168   # Extract the first word of "cc", so it can be a program name with args.
19169 set dummy cc; ac_word=$2
19170 echo "$as_me:$LINENO: checking for $ac_word" >&5
19171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19172 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19173   echo $ECHO_N "(cached) $ECHO_C" >&6
19174 else
19175   if test -n "$ac_ct_CC"; then
19176   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19177 else
19178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19179 for as_dir in $PATH
19180 do
19181   IFS=$as_save_IFS
19182   test -z "$as_dir" && as_dir=.
19183   for ac_exec_ext in '' $ac_executable_extensions; do
19184   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19185     ac_cv_prog_ac_ct_CC="cc"
19186     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19187     break 2
19188   fi
19189 done
19190 done
19191
19192 fi
19193 fi
19194 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19195 if test -n "$ac_ct_CC"; then
19196   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19197 echo "${ECHO_T}$ac_ct_CC" >&6
19198 else
19199   echo "$as_me:$LINENO: result: no" >&5
19200 echo "${ECHO_T}no" >&6
19201 fi
19202
19203   CC=$ac_ct_CC
19204 else
19205   CC="$ac_cv_prog_CC"
19206 fi
19207
19208 fi
19209 if test -z "$CC"; then
19210   # Extract the first word of "cc", so it can be a program name with args.
19211 set dummy cc; ac_word=$2
19212 echo "$as_me:$LINENO: checking for $ac_word" >&5
19213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19214 if test "${ac_cv_prog_CC+set}" = set; then
19215   echo $ECHO_N "(cached) $ECHO_C" >&6
19216 else
19217   if test -n "$CC"; then
19218   ac_cv_prog_CC="$CC" # Let the user override the test.
19219 else
19220   ac_prog_rejected=no
19221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19222 for as_dir in $PATH
19223 do
19224   IFS=$as_save_IFS
19225   test -z "$as_dir" && as_dir=.
19226   for ac_exec_ext in '' $ac_executable_extensions; do
19227   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19228     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19229        ac_prog_rejected=yes
19230        continue
19231      fi
19232     ac_cv_prog_CC="cc"
19233     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19234     break 2
19235   fi
19236 done
19237 done
19238
19239 if test $ac_prog_rejected = yes; then
19240   # We found a bogon in the path, so make sure we never use it.
19241   set dummy $ac_cv_prog_CC
19242   shift
19243   if test $# != 0; then
19244     # We chose a different compiler from the bogus one.
19245     # However, it has the same basename, so the bogon will be chosen
19246     # first if we set CC to just the basename; use the full file name.
19247     shift
19248     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19249   fi
19250 fi
19251 fi
19252 fi
19253 CC=$ac_cv_prog_CC
19254 if test -n "$CC"; then
19255   echo "$as_me:$LINENO: result: $CC" >&5
19256 echo "${ECHO_T}$CC" >&6
19257 else
19258   echo "$as_me:$LINENO: result: no" >&5
19259 echo "${ECHO_T}no" >&6
19260 fi
19261
19262 fi
19263 if test -z "$CC"; then
19264   if test -n "$ac_tool_prefix"; then
19265   for ac_prog in cl
19266   do
19267     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19268 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19269 echo "$as_me:$LINENO: checking for $ac_word" >&5
19270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19271 if test "${ac_cv_prog_CC+set}" = set; then
19272   echo $ECHO_N "(cached) $ECHO_C" >&6
19273 else
19274   if test -n "$CC"; then
19275   ac_cv_prog_CC="$CC" # Let the user override the test.
19276 else
19277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19278 for as_dir in $PATH
19279 do
19280   IFS=$as_save_IFS
19281   test -z "$as_dir" && as_dir=.
19282   for ac_exec_ext in '' $ac_executable_extensions; do
19283   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19284     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19285     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19286     break 2
19287   fi
19288 done
19289 done
19290
19291 fi
19292 fi
19293 CC=$ac_cv_prog_CC
19294 if test -n "$CC"; then
19295   echo "$as_me:$LINENO: result: $CC" >&5
19296 echo "${ECHO_T}$CC" >&6
19297 else
19298   echo "$as_me:$LINENO: result: no" >&5
19299 echo "${ECHO_T}no" >&6
19300 fi
19301
19302     test -n "$CC" && break
19303   done
19304 fi
19305 if test -z "$CC"; then
19306   ac_ct_CC=$CC
19307   for ac_prog in cl
19308 do
19309   # Extract the first word of "$ac_prog", so it can be a program name with args.
19310 set dummy $ac_prog; ac_word=$2
19311 echo "$as_me:$LINENO: checking for $ac_word" >&5
19312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19313 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19314   echo $ECHO_N "(cached) $ECHO_C" >&6
19315 else
19316   if test -n "$ac_ct_CC"; then
19317   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19318 else
19319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19320 for as_dir in $PATH
19321 do
19322   IFS=$as_save_IFS
19323   test -z "$as_dir" && as_dir=.
19324   for ac_exec_ext in '' $ac_executable_extensions; do
19325   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19326     ac_cv_prog_ac_ct_CC="$ac_prog"
19327     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19328     break 2
19329   fi
19330 done
19331 done
19332
19333 fi
19334 fi
19335 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19336 if test -n "$ac_ct_CC"; then
19337   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19338 echo "${ECHO_T}$ac_ct_CC" >&6
19339 else
19340   echo "$as_me:$LINENO: result: no" >&5
19341 echo "${ECHO_T}no" >&6
19342 fi
19343
19344   test -n "$ac_ct_CC" && break
19345 done
19346
19347   CC=$ac_ct_CC
19348 fi
19349
19350 fi
19351
19352
19353 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19354 See \`config.log' for more details." >&5
19355 echo "$as_me: error: no acceptable C compiler found in \$PATH
19356 See \`config.log' for more details." >&2;}
19357    { (exit 1); exit 1; }; }
19358
19359 # Provide some information about the compiler.
19360 echo "$as_me:$LINENO:" \
19361      "checking for C compiler version" >&5
19362 ac_compiler=`set X $ac_compile; echo $2`
19363 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19364   (eval $ac_compiler --version </dev/null >&5) 2>&5
19365   ac_status=$?
19366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367   (exit $ac_status); }
19368 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19369   (eval $ac_compiler -v </dev/null >&5) 2>&5
19370   ac_status=$?
19371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372   (exit $ac_status); }
19373 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19374   (eval $ac_compiler -V </dev/null >&5) 2>&5
19375   ac_status=$?
19376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377   (exit $ac_status); }
19378
19379 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19380 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19381 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19382   echo $ECHO_N "(cached) $ECHO_C" >&6
19383 else
19384   cat >conftest.$ac_ext <<_ACEOF
19385 /* confdefs.h.  */
19386 _ACEOF
19387 cat confdefs.h >>conftest.$ac_ext
19388 cat >>conftest.$ac_ext <<_ACEOF
19389 /* end confdefs.h.  */
19390
19391 int
19392 main ()
19393 {
19394 #ifndef __GNUC__
19395        choke me
19396 #endif
19397
19398   ;
19399   return 0;
19400 }
19401 _ACEOF
19402 rm -f conftest.$ac_objext
19403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19404   (eval $ac_compile) 2>conftest.er1
19405   ac_status=$?
19406   grep -v '^ *+' conftest.er1 >conftest.err
19407   rm -f conftest.er1
19408   cat conftest.err >&5
19409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19410   (exit $ac_status); } &&
19411          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19413   (eval $ac_try) 2>&5
19414   ac_status=$?
19415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416   (exit $ac_status); }; } &&
19417          { ac_try='test -s conftest.$ac_objext'
19418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19419   (eval $ac_try) 2>&5
19420   ac_status=$?
19421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422   (exit $ac_status); }; }; then
19423   ac_compiler_gnu=yes
19424 else
19425   echo "$as_me: failed program was:" >&5
19426 sed 's/^/| /' conftest.$ac_ext >&5
19427
19428 ac_compiler_gnu=no
19429 fi
19430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19431 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19432
19433 fi
19434 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19435 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19436 GCC=`test $ac_compiler_gnu = yes && echo yes`
19437 ac_test_CFLAGS=${CFLAGS+set}
19438 ac_save_CFLAGS=$CFLAGS
19439 CFLAGS="-g"
19440 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19441 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19442 if test "${ac_cv_prog_cc_g+set}" = set; then
19443   echo $ECHO_N "(cached) $ECHO_C" >&6
19444 else
19445   cat >conftest.$ac_ext <<_ACEOF
19446 /* confdefs.h.  */
19447 _ACEOF
19448 cat confdefs.h >>conftest.$ac_ext
19449 cat >>conftest.$ac_ext <<_ACEOF
19450 /* end confdefs.h.  */
19451
19452 int
19453 main ()
19454 {
19455
19456   ;
19457   return 0;
19458 }
19459 _ACEOF
19460 rm -f conftest.$ac_objext
19461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19462   (eval $ac_compile) 2>conftest.er1
19463   ac_status=$?
19464   grep -v '^ *+' conftest.er1 >conftest.err
19465   rm -f conftest.er1
19466   cat conftest.err >&5
19467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468   (exit $ac_status); } &&
19469          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19471   (eval $ac_try) 2>&5
19472   ac_status=$?
19473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474   (exit $ac_status); }; } &&
19475          { ac_try='test -s conftest.$ac_objext'
19476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19477   (eval $ac_try) 2>&5
19478   ac_status=$?
19479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480   (exit $ac_status); }; }; then
19481   ac_cv_prog_cc_g=yes
19482 else
19483   echo "$as_me: failed program was:" >&5
19484 sed 's/^/| /' conftest.$ac_ext >&5
19485
19486 ac_cv_prog_cc_g=no
19487 fi
19488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19489 fi
19490 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19491 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19492 if test "$ac_test_CFLAGS" = set; then
19493   CFLAGS=$ac_save_CFLAGS
19494 elif test $ac_cv_prog_cc_g = yes; then
19495   if test "$GCC" = yes; then
19496     CFLAGS="-g -O2"
19497   else
19498     CFLAGS="-g"
19499   fi
19500 else
19501   if test "$GCC" = yes; then
19502     CFLAGS="-O2"
19503   else
19504     CFLAGS=
19505   fi
19506 fi
19507 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19508 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19509 if test "${ac_cv_prog_cc_stdc+set}" = set; then
19510   echo $ECHO_N "(cached) $ECHO_C" >&6
19511 else
19512   ac_cv_prog_cc_stdc=no
19513 ac_save_CC=$CC
19514 cat >conftest.$ac_ext <<_ACEOF
19515 /* confdefs.h.  */
19516 _ACEOF
19517 cat confdefs.h >>conftest.$ac_ext
19518 cat >>conftest.$ac_ext <<_ACEOF
19519 /* end confdefs.h.  */
19520 #include <stdarg.h>
19521 #include <stdio.h>
19522 #include <sys/types.h>
19523 #include <sys/stat.h>
19524 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19525 struct buf { int x; };
19526 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19527 static char *e (p, i)
19528      char **p;
19529      int i;
19530 {
19531   return p[i];
19532 }
19533 static char *f (char * (*g) (char **, int), char **p, ...)
19534 {
19535   char *s;
19536   va_list v;
19537   va_start (v,p);
19538   s = g (p, va_arg (v,int));
19539   va_end (v);
19540   return s;
19541 }
19542
19543 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
19544    function prototypes and stuff, but not '\xHH' hex character constants.
19545    These don't provoke an error unfortunately, instead are silently treated
19546    as 'x'.  The following induces an error, until -std1 is added to get
19547    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
19548    array size at least.  It's necessary to write '\x00'==0 to get something
19549    that's true only with -std1.  */
19550 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19551
19552 int test (int i, double x);
19553 struct s1 {int (*f) (int a);};
19554 struct s2 {int (*f) (double a);};
19555 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19556 int argc;
19557 char **argv;
19558 int
19559 main ()
19560 {
19561 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
19562   ;
19563   return 0;
19564 }
19565 _ACEOF
19566 # Don't try gcc -ansi; that turns off useful extensions and
19567 # breaks some systems' header files.
19568 # AIX                   -qlanglvl=ansi
19569 # Ultrix and OSF/1      -std1
19570 # HP-UX 10.20 and later -Ae
19571 # HP-UX older versions  -Aa -D_HPUX_SOURCE
19572 # SVR4                  -Xc -D__EXTENSIONS__
19573 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19574 do
19575   CC="$ac_save_CC $ac_arg"
19576   rm -f conftest.$ac_objext
19577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19578   (eval $ac_compile) 2>conftest.er1
19579   ac_status=$?
19580   grep -v '^ *+' conftest.er1 >conftest.err
19581   rm -f conftest.er1
19582   cat conftest.err >&5
19583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584   (exit $ac_status); } &&
19585          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19587   (eval $ac_try) 2>&5
19588   ac_status=$?
19589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19590   (exit $ac_status); }; } &&
19591          { ac_try='test -s conftest.$ac_objext'
19592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19593   (eval $ac_try) 2>&5
19594   ac_status=$?
19595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596   (exit $ac_status); }; }; then
19597   ac_cv_prog_cc_stdc=$ac_arg
19598 break
19599 else
19600   echo "$as_me: failed program was:" >&5
19601 sed 's/^/| /' conftest.$ac_ext >&5
19602
19603 fi
19604 rm -f conftest.err conftest.$ac_objext
19605 done
19606 rm -f conftest.$ac_ext conftest.$ac_objext
19607 CC=$ac_save_CC
19608
19609 fi
19610
19611 case "x$ac_cv_prog_cc_stdc" in
19612   x|xno)
19613     echo "$as_me:$LINENO: result: none needed" >&5
19614 echo "${ECHO_T}none needed" >&6 ;;
19615   *)
19616     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19617 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19618     CC="$CC $ac_cv_prog_cc_stdc" ;;
19619 esac
19620
19621 # Some people use a C++ compiler to compile C.  Since we use `exit',
19622 # in C++ we need to declare it.  In case someone uses the same compiler
19623 # for both compiling C and C++ we need to have the C++ compiler decide
19624 # the declaration of exit, since it's the most demanding environment.
19625 cat >conftest.$ac_ext <<_ACEOF
19626 #ifndef __cplusplus
19627   choke me
19628 #endif
19629 _ACEOF
19630 rm -f conftest.$ac_objext
19631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19632   (eval $ac_compile) 2>conftest.er1
19633   ac_status=$?
19634   grep -v '^ *+' conftest.er1 >conftest.err
19635   rm -f conftest.er1
19636   cat conftest.err >&5
19637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638   (exit $ac_status); } &&
19639          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19641   (eval $ac_try) 2>&5
19642   ac_status=$?
19643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644   (exit $ac_status); }; } &&
19645          { ac_try='test -s conftest.$ac_objext'
19646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19647   (eval $ac_try) 2>&5
19648   ac_status=$?
19649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650   (exit $ac_status); }; }; then
19651   for ac_declaration in \
19652    '' \
19653    'extern "C" void std::exit (int) throw (); using std::exit;' \
19654    'extern "C" void std::exit (int); using std::exit;' \
19655    'extern "C" void exit (int) throw ();' \
19656    'extern "C" void exit (int);' \
19657    'void exit (int);'
19658 do
19659   cat >conftest.$ac_ext <<_ACEOF
19660 /* confdefs.h.  */
19661 _ACEOF
19662 cat confdefs.h >>conftest.$ac_ext
19663 cat >>conftest.$ac_ext <<_ACEOF
19664 /* end confdefs.h.  */
19665 $ac_declaration
19666 #include <stdlib.h>
19667 int
19668 main ()
19669 {
19670 exit (42);
19671   ;
19672   return 0;
19673 }
19674 _ACEOF
19675 rm -f conftest.$ac_objext
19676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19677   (eval $ac_compile) 2>conftest.er1
19678   ac_status=$?
19679   grep -v '^ *+' conftest.er1 >conftest.err
19680   rm -f conftest.er1
19681   cat conftest.err >&5
19682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683   (exit $ac_status); } &&
19684          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19686   (eval $ac_try) 2>&5
19687   ac_status=$?
19688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689   (exit $ac_status); }; } &&
19690          { ac_try='test -s conftest.$ac_objext'
19691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19692   (eval $ac_try) 2>&5
19693   ac_status=$?
19694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695   (exit $ac_status); }; }; then
19696   :
19697 else
19698   echo "$as_me: failed program was:" >&5
19699 sed 's/^/| /' conftest.$ac_ext >&5
19700
19701 continue
19702 fi
19703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19704   cat >conftest.$ac_ext <<_ACEOF
19705 /* confdefs.h.  */
19706 _ACEOF
19707 cat confdefs.h >>conftest.$ac_ext
19708 cat >>conftest.$ac_ext <<_ACEOF
19709 /* end confdefs.h.  */
19710 $ac_declaration
19711 int
19712 main ()
19713 {
19714 exit (42);
19715   ;
19716   return 0;
19717 }
19718 _ACEOF
19719 rm -f conftest.$ac_objext
19720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19721   (eval $ac_compile) 2>conftest.er1
19722   ac_status=$?
19723   grep -v '^ *+' conftest.er1 >conftest.err
19724   rm -f conftest.er1
19725   cat conftest.err >&5
19726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727   (exit $ac_status); } &&
19728          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19730   (eval $ac_try) 2>&5
19731   ac_status=$?
19732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733   (exit $ac_status); }; } &&
19734          { ac_try='test -s conftest.$ac_objext'
19735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19736   (eval $ac_try) 2>&5
19737   ac_status=$?
19738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739   (exit $ac_status); }; }; then
19740   break
19741 else
19742   echo "$as_me: failed program was:" >&5
19743 sed 's/^/| /' conftest.$ac_ext >&5
19744
19745 fi
19746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19747 done
19748 rm -f conftest*
19749 if test -n "$ac_declaration"; then
19750   echo '#ifdef __cplusplus' >>confdefs.h
19751   echo $ac_declaration      >>confdefs.h
19752   echo '#endif'             >>confdefs.h
19753 fi
19754
19755 else
19756   echo "$as_me: failed program was:" >&5
19757 sed 's/^/| /' conftest.$ac_ext >&5
19758
19759 fi
19760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19761 ac_ext=c
19762 ac_cpp='$CPP $CPPFLAGS'
19763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19766
19767 depcc="$CC"   am_compiler_list=
19768
19769 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19770 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19771 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19772   echo $ECHO_N "(cached) $ECHO_C" >&6
19773 else
19774   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19775   # We make a subdir and do the tests there.  Otherwise we can end up
19776   # making bogus files that we don't know about and never remove.  For
19777   # instance it was reported that on HP-UX the gcc test will end up
19778   # making a dummy file named `D' -- because `-MD' means `put the output
19779   # in D'.
19780   mkdir conftest.dir
19781   # Copy depcomp to subdir because otherwise we won't find it if we're
19782   # using a relative directory.
19783   cp "$am_depcomp" conftest.dir
19784   cd conftest.dir
19785   # We will build objects and dependencies in a subdirectory because
19786   # it helps to detect inapplicable dependency modes.  For instance
19787   # both Tru64's cc and ICC support -MD to output dependencies as a
19788   # side effect of compilation, but ICC will put the dependencies in
19789   # the current directory while Tru64 will put them in the object
19790   # directory.
19791   mkdir sub
19792
19793   am_cv_CC_dependencies_compiler_type=none
19794   if test "$am_compiler_list" = ""; then
19795      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19796   fi
19797   for depmode in $am_compiler_list; do
19798     # Setup a source with many dependencies, because some compilers
19799     # like to wrap large dependency lists on column 80 (with \), and
19800     # we should not choose a depcomp mode which is confused by this.
19801     #
19802     # We need to recreate these files for each test, as the compiler may
19803     # overwrite some of them when testing with obscure command lines.
19804     # This happens at least with the AIX C compiler.
19805     : > sub/conftest.c
19806     for i in 1 2 3 4 5 6; do
19807       echo '#include "conftst'$i'.h"' >> sub/conftest.c
19808       : > sub/conftst$i.h
19809     done
19810     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19811
19812     case $depmode in
19813     nosideeffect)
19814       # after this tag, mechanisms are not by side-effect, so they'll
19815       # only be used when explicitly requested
19816       if test "x$enable_dependency_tracking" = xyes; then
19817         continue
19818       else
19819         break
19820       fi
19821       ;;
19822     none) break ;;
19823     esac
19824     # We check with `-c' and `-o' for the sake of the "dashmstdout"
19825     # mode.  It turns out that the SunPro C++ compiler does not properly
19826     # handle `-M -o', and we need to detect this.
19827     if depmode=$depmode \
19828        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19829        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19830        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19831          >/dev/null 2>conftest.err &&
19832        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19833        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19834        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19835       # icc doesn't choke on unknown options, it will just issue warnings
19836       # (even with -Werror).  So we grep stderr for any message
19837       # that says an option was ignored.
19838       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
19839         am_cv_CC_dependencies_compiler_type=$depmode
19840         break
19841       fi
19842     fi
19843   done
19844
19845   cd ..
19846   rm -rf conftest.dir
19847 else
19848   am_cv_CC_dependencies_compiler_type=none
19849 fi
19850
19851 fi
19852 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19853 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19854 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19855
19856
19857
19858 if
19859   test "x$enable_dependency_tracking" != xno \
19860   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19861   am__fastdepCC_TRUE=
19862   am__fastdepCC_FALSE='#'
19863 else
19864   am__fastdepCC_TRUE='#'
19865   am__fastdepCC_FALSE=
19866 fi
19867
19868
19869 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
19870 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
19871 # Just in case
19872 sleep 1
19873 echo timestamp > conftest.file
19874 # Do `set' in a subshell so we don't clobber the current shell's
19875 # arguments.  Must try -L first in case configure is actually a
19876 # symlink; some systems play weird games with the mod time of symlinks
19877 # (eg FreeBSD returns the mod time of the symlink's containing
19878 # directory).
19879 if (
19880    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
19881    if test "$*" = "X"; then
19882       # -L didn't work.
19883       set X `ls -t $srcdir/configure conftest.file`
19884    fi
19885    rm -f conftest.file
19886    if test "$*" != "X $srcdir/configure conftest.file" \
19887       && test "$*" != "X conftest.file $srcdir/configure"; then
19888
19889       # If neither matched, then we have a broken ls.  This can happen
19890       # if, for instance, CONFIG_SHELL is bash and it inherits a
19891       # broken ls alias from the environment.  This has actually
19892       # happened.  Such a system could not be considered "sane".
19893       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
19894 alias in your environment" >&5
19895 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
19896 alias in your environment" >&2;}
19897    { (exit 1); exit 1; }; }
19898    fi
19899
19900    test "$2" = conftest.file
19901    )
19902 then
19903    # Ok.
19904    :
19905 else
19906    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
19907 Check your system clock" >&5
19908 echo "$as_me: error: newly created file is older than distributed files!
19909 Check your system clock" >&2;}
19910    { (exit 1); exit 1; }; }
19911 fi
19912 echo "$as_me:$LINENO: result: yes" >&5
19913 echo "${ECHO_T}yes" >&6
19914 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19915 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
19916 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
19917 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
19918   echo $ECHO_N "(cached) $ECHO_C" >&6
19919 else
19920   cat >conftest.make <<\_ACEOF
19921 all:
19922         @echo 'ac_maketemp="$(MAKE)"'
19923 _ACEOF
19924 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19925 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
19926 if test -n "$ac_maketemp"; then
19927   eval ac_cv_prog_make_${ac_make}_set=yes
19928 else
19929   eval ac_cv_prog_make_${ac_make}_set=no
19930 fi
19931 rm -f conftest.make
19932 fi
19933 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
19934   echo "$as_me:$LINENO: result: yes" >&5
19935 echo "${ECHO_T}yes" >&6
19936   SET_MAKE=
19937 else
19938   echo "$as_me:$LINENO: result: no" >&5
19939 echo "${ECHO_T}no" >&6
19940   SET_MAKE="MAKE=${MAKE-make}"
19941 fi
19942
19943
19944 # Check architecture signature
19945
19946 # Check for the architecture
19947 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19948 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19949 if test "${ac_cv_c_bigendian+set}" = set; then
19950   echo $ECHO_N "(cached) $ECHO_C" >&6
19951 else
19952   # See if sys/param.h defines the BYTE_ORDER macro.
19953 cat >conftest.$ac_ext <<_ACEOF
19954 /* confdefs.h.  */
19955 _ACEOF
19956 cat confdefs.h >>conftest.$ac_ext
19957 cat >>conftest.$ac_ext <<_ACEOF
19958 /* end confdefs.h.  */
19959 #include <sys/types.h>
19960 #include <sys/param.h>
19961
19962 int
19963 main ()
19964 {
19965 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19966  bogus endian macros
19967 #endif
19968
19969   ;
19970   return 0;
19971 }
19972 _ACEOF
19973 rm -f conftest.$ac_objext
19974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19975   (eval $ac_compile) 2>conftest.er1
19976   ac_status=$?
19977   grep -v '^ *+' conftest.er1 >conftest.err
19978   rm -f conftest.er1
19979   cat conftest.err >&5
19980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981   (exit $ac_status); } &&
19982          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19984   (eval $ac_try) 2>&5
19985   ac_status=$?
19986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19987   (exit $ac_status); }; } &&
19988          { ac_try='test -s conftest.$ac_objext'
19989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19990   (eval $ac_try) 2>&5
19991   ac_status=$?
19992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993   (exit $ac_status); }; }; then
19994   # It does; now see whether it defined to BIG_ENDIAN or not.
19995 cat >conftest.$ac_ext <<_ACEOF
19996 /* confdefs.h.  */
19997 _ACEOF
19998 cat confdefs.h >>conftest.$ac_ext
19999 cat >>conftest.$ac_ext <<_ACEOF
20000 /* end confdefs.h.  */
20001 #include <sys/types.h>
20002 #include <sys/param.h>
20003
20004 int
20005 main ()
20006 {
20007 #if BYTE_ORDER != BIG_ENDIAN
20008  not big endian
20009 #endif
20010
20011   ;
20012   return 0;
20013 }
20014 _ACEOF
20015 rm -f conftest.$ac_objext
20016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20017   (eval $ac_compile) 2>conftest.er1
20018   ac_status=$?
20019   grep -v '^ *+' conftest.er1 >conftest.err
20020   rm -f conftest.er1
20021   cat conftest.err >&5
20022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023   (exit $ac_status); } &&
20024          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20026   (eval $ac_try) 2>&5
20027   ac_status=$?
20028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029   (exit $ac_status); }; } &&
20030          { ac_try='test -s conftest.$ac_objext'
20031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20032   (eval $ac_try) 2>&5
20033   ac_status=$?
20034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035   (exit $ac_status); }; }; then
20036   ac_cv_c_bigendian=yes
20037 else
20038   echo "$as_me: failed program was:" >&5
20039 sed 's/^/| /' conftest.$ac_ext >&5
20040
20041 ac_cv_c_bigendian=no
20042 fi
20043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20044 else
20045   echo "$as_me: failed program was:" >&5
20046 sed 's/^/| /' conftest.$ac_ext >&5
20047
20048 # It does not; compile a test program.
20049 if test "$cross_compiling" = yes; then
20050   # try to guess the endianness by grepping values into an object file
20051   ac_cv_c_bigendian=unknown
20052   cat >conftest.$ac_ext <<_ACEOF
20053 /* confdefs.h.  */
20054 _ACEOF
20055 cat confdefs.h >>conftest.$ac_ext
20056 cat >>conftest.$ac_ext <<_ACEOF
20057 /* end confdefs.h.  */
20058 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20059 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20060 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20061 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20062 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20063 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20064 int
20065 main ()
20066 {
20067  _ascii (); _ebcdic ();
20068   ;
20069   return 0;
20070 }
20071 _ACEOF
20072 rm -f conftest.$ac_objext
20073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20074   (eval $ac_compile) 2>conftest.er1
20075   ac_status=$?
20076   grep -v '^ *+' conftest.er1 >conftest.err
20077   rm -f conftest.er1
20078   cat conftest.err >&5
20079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080   (exit $ac_status); } &&
20081          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20083   (eval $ac_try) 2>&5
20084   ac_status=$?
20085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086   (exit $ac_status); }; } &&
20087          { ac_try='test -s conftest.$ac_objext'
20088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20089   (eval $ac_try) 2>&5
20090   ac_status=$?
20091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092   (exit $ac_status); }; }; then
20093   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20094   ac_cv_c_bigendian=yes
20095 fi
20096 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20097   if test "$ac_cv_c_bigendian" = unknown; then
20098     ac_cv_c_bigendian=no
20099   else
20100     # finding both strings is unlikely to happen, but who knows?
20101     ac_cv_c_bigendian=unknown
20102   fi
20103 fi
20104 else
20105   echo "$as_me: failed program was:" >&5
20106 sed 's/^/| /' conftest.$ac_ext >&5
20107
20108 fi
20109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20110 else
20111   cat >conftest.$ac_ext <<_ACEOF
20112 /* confdefs.h.  */
20113 _ACEOF
20114 cat confdefs.h >>conftest.$ac_ext
20115 cat >>conftest.$ac_ext <<_ACEOF
20116 /* end confdefs.h.  */
20117 int
20118 main ()
20119 {
20120   /* Are we little or big endian?  From Harbison&Steele.  */
20121   union
20122   {
20123     long l;
20124     char c[sizeof (long)];
20125   } u;
20126   u.l = 1;
20127   exit (u.c[sizeof (long) - 1] == 1);
20128 }
20129 _ACEOF
20130 rm -f conftest$ac_exeext
20131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20132   (eval $ac_link) 2>&5
20133   ac_status=$?
20134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20135   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20137   (eval $ac_try) 2>&5
20138   ac_status=$?
20139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140   (exit $ac_status); }; }; then
20141   ac_cv_c_bigendian=no
20142 else
20143   echo "$as_me: program exited with status $ac_status" >&5
20144 echo "$as_me: failed program was:" >&5
20145 sed 's/^/| /' conftest.$ac_ext >&5
20146
20147 ( exit $ac_status )
20148 ac_cv_c_bigendian=yes
20149 fi
20150 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20151 fi
20152 fi
20153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20154 fi
20155 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20156 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20157 case $ac_cv_c_bigendian in
20158   yes)
20159     endian=1 ;;
20160   no)
20161     endian=0 ;;
20162   *)
20163     { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
20164 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
20165    { (exit 1); exit 1; }; } ;;
20166 esac
20167
20168
20169 cat >>confdefs.h <<_ACEOF
20170 #define GRAS_BIGENDIAN $endian
20171 _ACEOF
20172
20173
20174 echo "$as_me:$LINENO: checking size of char" >&5
20175 echo $ECHO_N "checking size of char... $ECHO_C" >&6
20176     if test "${ac_cv_sizeof_char+set}" = set; then
20177   echo $ECHO_N "(cached) $ECHO_C" >&6
20178 else
20179   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20180    cat >conftest.$ac_ext <<_ACEOF
20181 /* confdefs.h.  */
20182 _ACEOF
20183 cat confdefs.h >>conftest.$ac_ext
20184 cat >>conftest.$ac_ext <<_ACEOF
20185 /* end confdefs.h.  */
20186 #include "confdefs.h"
20187    #include <sys/types.h>
20188
20189
20190 int
20191 main ()
20192 {
20193 switch (0) case 0: case (sizeof (char) == $ac_size):;
20194   ;
20195   return 0;
20196 }
20197 _ACEOF
20198 rm -f conftest.$ac_objext
20199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20200   (eval $ac_compile) 2>conftest.er1
20201   ac_status=$?
20202   grep -v '^ *+' conftest.er1 >conftest.err
20203   rm -f conftest.er1
20204   cat conftest.err >&5
20205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206   (exit $ac_status); } &&
20207          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20209   (eval $ac_try) 2>&5
20210   ac_status=$?
20211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212   (exit $ac_status); }; } &&
20213          { ac_try='test -s conftest.$ac_objext'
20214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20215   (eval $ac_try) 2>&5
20216   ac_status=$?
20217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218   (exit $ac_status); }; }; then
20219   ac_cv_sizeof_char=$ac_size
20220 else
20221   echo "$as_me: failed program was:" >&5
20222 sed 's/^/| /' conftest.$ac_ext >&5
20223
20224 fi
20225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20226    if test x$ac_cv_sizeof_char != x ; then break; fi
20227   done
20228
20229 fi
20230
20231
20232 unspecif=$ac_cv_sizeof_char
20233 if test x$unspecif = x ; then
20234   { { echo "$as_me:$LINENO: error: cannot determine a size for char" >&5
20235 echo "$as_me: error: cannot determine a size for char" >&2;}
20236    { (exit 1); exit 1; }; }
20237 fi
20238
20239     if test "${ac_cv_sizeof_signed_char+set}" = set; then
20240   echo $ECHO_N "(cached) $ECHO_C" >&6
20241 else
20242   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20243    cat >conftest.$ac_ext <<_ACEOF
20244 /* confdefs.h.  */
20245 _ACEOF
20246 cat confdefs.h >>conftest.$ac_ext
20247 cat >>conftest.$ac_ext <<_ACEOF
20248 /* end confdefs.h.  */
20249 #include "confdefs.h"
20250    #include <sys/types.h>
20251
20252
20253 int
20254 main ()
20255 {
20256 switch (0) case 0: case (sizeof (signed char) == $ac_size):;
20257   ;
20258   return 0;
20259 }
20260 _ACEOF
20261 rm -f conftest.$ac_objext
20262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20263   (eval $ac_compile) 2>conftest.er1
20264   ac_status=$?
20265   grep -v '^ *+' conftest.er1 >conftest.err
20266   rm -f conftest.er1
20267   cat conftest.err >&5
20268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269   (exit $ac_status); } &&
20270          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20272   (eval $ac_try) 2>&5
20273   ac_status=$?
20274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275   (exit $ac_status); }; } &&
20276          { ac_try='test -s conftest.$ac_objext'
20277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20278   (eval $ac_try) 2>&5
20279   ac_status=$?
20280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281   (exit $ac_status); }; }; then
20282   ac_cv_sizeof_signed_char=$ac_size
20283 else
20284   echo "$as_me: failed program was:" >&5
20285 sed 's/^/| /' conftest.$ac_ext >&5
20286
20287 fi
20288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20289    if test x$ac_cv_sizeof_signed_char != x ; then break; fi
20290   done
20291
20292 fi
20293
20294
20295 signed=$ac_cv_sizeof_signed_char
20296 if test x$signed = x ; then
20297   { { echo "$as_me:$LINENO: error: cannot determine a size for signed char" >&5
20298 echo "$as_me: error: cannot determine a size for signed char" >&2;}
20299    { (exit 1); exit 1; }; }
20300 fi
20301 if test x$unspecif != x$signed ; then
20302   { { echo "$as_me:$LINENO: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&5
20303 echo "$as_me: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&2;}
20304    { (exit 1); exit 1; }; }
20305 fi
20306
20307     if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
20308   echo $ECHO_N "(cached) $ECHO_C" >&6
20309 else
20310   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20311    cat >conftest.$ac_ext <<_ACEOF
20312 /* confdefs.h.  */
20313 _ACEOF
20314 cat confdefs.h >>conftest.$ac_ext
20315 cat >>conftest.$ac_ext <<_ACEOF
20316 /* end confdefs.h.  */
20317 #include "confdefs.h"
20318    #include <sys/types.h>
20319
20320
20321 int
20322 main ()
20323 {
20324 switch (0) case 0: case (sizeof (unsigned char) == $ac_size):;
20325   ;
20326   return 0;
20327 }
20328 _ACEOF
20329 rm -f conftest.$ac_objext
20330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20331   (eval $ac_compile) 2>conftest.er1
20332   ac_status=$?
20333   grep -v '^ *+' conftest.er1 >conftest.err
20334   rm -f conftest.er1
20335   cat conftest.err >&5
20336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337   (exit $ac_status); } &&
20338          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20340   (eval $ac_try) 2>&5
20341   ac_status=$?
20342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343   (exit $ac_status); }; } &&
20344          { ac_try='test -s conftest.$ac_objext'
20345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20346   (eval $ac_try) 2>&5
20347   ac_status=$?
20348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20349   (exit $ac_status); }; }; then
20350   ac_cv_sizeof_unsigned_char=$ac_size
20351 else
20352   echo "$as_me: failed program was:" >&5
20353 sed 's/^/| /' conftest.$ac_ext >&5
20354
20355 fi
20356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20357    if test x$ac_cv_sizeof_unsigned_char != x ; then break; fi
20358   done
20359
20360 fi
20361
20362
20363 unsigned=$ac_cv_sizeof_unsigned_char
20364 if test x$unsigned = x ; then
20365   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned char" >&5
20366 echo "$as_me: error: cannot determine a size for unsigned char" >&2;}
20367    { (exit 1); exit 1; }; }
20368 fi
20369 if test x$unsigned != x$signed ; then
20370   { { echo "$as_me:$LINENO: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&5
20371 echo "$as_me: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&2;}
20372    { (exit 1); exit 1; }; }
20373 fi
20374
20375 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
20376 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6
20377
20378 cat >>confdefs.h <<_ACEOF
20379 #define SIZEOF_CHAR $ac_cv_sizeof_unsigned_char
20380 _ACEOF
20381
20382
20383 echo "$as_me:$LINENO: checking size of short int" >&5
20384 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
20385     if test "${ac_cv_sizeof_short_int+set}" = set; then
20386   echo $ECHO_N "(cached) $ECHO_C" >&6
20387 else
20388   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20389    cat >conftest.$ac_ext <<_ACEOF
20390 /* confdefs.h.  */
20391 _ACEOF
20392 cat confdefs.h >>conftest.$ac_ext
20393 cat >>conftest.$ac_ext <<_ACEOF
20394 /* end confdefs.h.  */
20395 #include "confdefs.h"
20396    #include <sys/types.h>
20397
20398
20399 int
20400 main ()
20401 {
20402 switch (0) case 0: case (sizeof (short int) == $ac_size):;
20403   ;
20404   return 0;
20405 }
20406 _ACEOF
20407 rm -f conftest.$ac_objext
20408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20409   (eval $ac_compile) 2>conftest.er1
20410   ac_status=$?
20411   grep -v '^ *+' conftest.er1 >conftest.err
20412   rm -f conftest.er1
20413   cat conftest.err >&5
20414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415   (exit $ac_status); } &&
20416          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20418   (eval $ac_try) 2>&5
20419   ac_status=$?
20420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20421   (exit $ac_status); }; } &&
20422          { ac_try='test -s conftest.$ac_objext'
20423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20424   (eval $ac_try) 2>&5
20425   ac_status=$?
20426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427   (exit $ac_status); }; }; then
20428   ac_cv_sizeof_short_int=$ac_size
20429 else
20430   echo "$as_me: failed program was:" >&5
20431 sed 's/^/| /' conftest.$ac_ext >&5
20432
20433 fi
20434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20435    if test x$ac_cv_sizeof_short_int != x ; then break; fi
20436   done
20437
20438 fi
20439
20440
20441 unspecif=$ac_cv_sizeof_short_int
20442 if test x$unspecif = x ; then
20443   { { echo "$as_me:$LINENO: error: cannot determine a size for short int" >&5
20444 echo "$as_me: error: cannot determine a size for short int" >&2;}
20445    { (exit 1); exit 1; }; }
20446 fi
20447
20448     if test "${ac_cv_sizeof_signed_short_int+set}" = set; then
20449   echo $ECHO_N "(cached) $ECHO_C" >&6
20450 else
20451   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20452    cat >conftest.$ac_ext <<_ACEOF
20453 /* confdefs.h.  */
20454 _ACEOF
20455 cat confdefs.h >>conftest.$ac_ext
20456 cat >>conftest.$ac_ext <<_ACEOF
20457 /* end confdefs.h.  */
20458 #include "confdefs.h"
20459    #include <sys/types.h>
20460
20461
20462 int
20463 main ()
20464 {
20465 switch (0) case 0: case (sizeof (signed short int) == $ac_size):;
20466   ;
20467   return 0;
20468 }
20469 _ACEOF
20470 rm -f conftest.$ac_objext
20471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20472   (eval $ac_compile) 2>conftest.er1
20473   ac_status=$?
20474   grep -v '^ *+' conftest.er1 >conftest.err
20475   rm -f conftest.er1
20476   cat conftest.err >&5
20477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478   (exit $ac_status); } &&
20479          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20481   (eval $ac_try) 2>&5
20482   ac_status=$?
20483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484   (exit $ac_status); }; } &&
20485          { ac_try='test -s conftest.$ac_objext'
20486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20487   (eval $ac_try) 2>&5
20488   ac_status=$?
20489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490   (exit $ac_status); }; }; then
20491   ac_cv_sizeof_signed_short_int=$ac_size
20492 else
20493   echo "$as_me: failed program was:" >&5
20494 sed 's/^/| /' conftest.$ac_ext >&5
20495
20496 fi
20497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20498    if test x$ac_cv_sizeof_signed_short_int != x ; then break; fi
20499   done
20500
20501 fi
20502
20503
20504 signed=$ac_cv_sizeof_signed_short_int
20505 if test x$signed = x ; then
20506   { { echo "$as_me:$LINENO: error: cannot determine a size for signed short int" >&5
20507 echo "$as_me: error: cannot determine a size for signed short int" >&2;}
20508    { (exit 1); exit 1; }; }
20509 fi
20510 if test x$unspecif != x$signed ; then
20511   { { echo "$as_me:$LINENO: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&5
20512 echo "$as_me: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&2;}
20513    { (exit 1); exit 1; }; }
20514 fi
20515
20516     if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
20517   echo $ECHO_N "(cached) $ECHO_C" >&6
20518 else
20519   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20520    cat >conftest.$ac_ext <<_ACEOF
20521 /* confdefs.h.  */
20522 _ACEOF
20523 cat confdefs.h >>conftest.$ac_ext
20524 cat >>conftest.$ac_ext <<_ACEOF
20525 /* end confdefs.h.  */
20526 #include "confdefs.h"
20527    #include <sys/types.h>
20528
20529
20530 int
20531 main ()
20532 {
20533 switch (0) case 0: case (sizeof (unsigned short int) == $ac_size):;
20534   ;
20535   return 0;
20536 }
20537 _ACEOF
20538 rm -f conftest.$ac_objext
20539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20540   (eval $ac_compile) 2>conftest.er1
20541   ac_status=$?
20542   grep -v '^ *+' conftest.er1 >conftest.err
20543   rm -f conftest.er1
20544   cat conftest.err >&5
20545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20546   (exit $ac_status); } &&
20547          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20549   (eval $ac_try) 2>&5
20550   ac_status=$?
20551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20552   (exit $ac_status); }; } &&
20553          { ac_try='test -s conftest.$ac_objext'
20554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20555   (eval $ac_try) 2>&5
20556   ac_status=$?
20557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20558   (exit $ac_status); }; }; then
20559   ac_cv_sizeof_unsigned_short_int=$ac_size
20560 else
20561   echo "$as_me: failed program was:" >&5
20562 sed 's/^/| /' conftest.$ac_ext >&5
20563
20564 fi
20565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20566    if test x$ac_cv_sizeof_unsigned_short_int != x ; then break; fi
20567   done
20568
20569 fi
20570
20571
20572 unsigned=$ac_cv_sizeof_unsigned_short_int
20573 if test x$unsigned = x ; then
20574   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned short int" >&5
20575 echo "$as_me: error: cannot determine a size for unsigned short int" >&2;}
20576    { (exit 1); exit 1; }; }
20577 fi
20578 if test x$unsigned != x$signed ; then
20579   { { echo "$as_me:$LINENO: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&5
20580 echo "$as_me: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&2;}
20581    { (exit 1); exit 1; }; }
20582 fi
20583
20584 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
20585 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6
20586
20587 cat >>confdefs.h <<_ACEOF
20588 #define SIZEOF_SHORT_INT $ac_cv_sizeof_unsigned_short_int
20589 _ACEOF
20590
20591
20592 echo "$as_me:$LINENO: checking size of int" >&5
20593 echo $ECHO_N "checking size of int... $ECHO_C" >&6
20594     if test "${ac_cv_sizeof_int+set}" = set; then
20595   echo $ECHO_N "(cached) $ECHO_C" >&6
20596 else
20597   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20598    cat >conftest.$ac_ext <<_ACEOF
20599 /* confdefs.h.  */
20600 _ACEOF
20601 cat confdefs.h >>conftest.$ac_ext
20602 cat >>conftest.$ac_ext <<_ACEOF
20603 /* end confdefs.h.  */
20604 #include "confdefs.h"
20605    #include <sys/types.h>
20606
20607
20608 int
20609 main ()
20610 {
20611 switch (0) case 0: case (sizeof (int) == $ac_size):;
20612   ;
20613   return 0;
20614 }
20615 _ACEOF
20616 rm -f conftest.$ac_objext
20617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20618   (eval $ac_compile) 2>conftest.er1
20619   ac_status=$?
20620   grep -v '^ *+' conftest.er1 >conftest.err
20621   rm -f conftest.er1
20622   cat conftest.err >&5
20623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20624   (exit $ac_status); } &&
20625          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20627   (eval $ac_try) 2>&5
20628   ac_status=$?
20629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20630   (exit $ac_status); }; } &&
20631          { ac_try='test -s conftest.$ac_objext'
20632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20633   (eval $ac_try) 2>&5
20634   ac_status=$?
20635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636   (exit $ac_status); }; }; then
20637   ac_cv_sizeof_int=$ac_size
20638 else
20639   echo "$as_me: failed program was:" >&5
20640 sed 's/^/| /' conftest.$ac_ext >&5
20641
20642 fi
20643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20644    if test x$ac_cv_sizeof_int != x ; then break; fi
20645   done
20646
20647 fi
20648
20649
20650 unspecif=$ac_cv_sizeof_int
20651 if test x$unspecif = x ; then
20652   { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
20653 echo "$as_me: error: cannot determine a size for int" >&2;}
20654    { (exit 1); exit 1; }; }
20655 fi
20656
20657     if test "${ac_cv_sizeof_signed_int+set}" = set; then
20658   echo $ECHO_N "(cached) $ECHO_C" >&6
20659 else
20660   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20661    cat >conftest.$ac_ext <<_ACEOF
20662 /* confdefs.h.  */
20663 _ACEOF
20664 cat confdefs.h >>conftest.$ac_ext
20665 cat >>conftest.$ac_ext <<_ACEOF
20666 /* end confdefs.h.  */
20667 #include "confdefs.h"
20668    #include <sys/types.h>
20669
20670
20671 int
20672 main ()
20673 {
20674 switch (0) case 0: case (sizeof (signed int) == $ac_size):;
20675   ;
20676   return 0;
20677 }
20678 _ACEOF
20679 rm -f conftest.$ac_objext
20680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20681   (eval $ac_compile) 2>conftest.er1
20682   ac_status=$?
20683   grep -v '^ *+' conftest.er1 >conftest.err
20684   rm -f conftest.er1
20685   cat conftest.err >&5
20686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20687   (exit $ac_status); } &&
20688          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20690   (eval $ac_try) 2>&5
20691   ac_status=$?
20692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20693   (exit $ac_status); }; } &&
20694          { ac_try='test -s conftest.$ac_objext'
20695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20696   (eval $ac_try) 2>&5
20697   ac_status=$?
20698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699   (exit $ac_status); }; }; then
20700   ac_cv_sizeof_signed_int=$ac_size
20701 else
20702   echo "$as_me: failed program was:" >&5
20703 sed 's/^/| /' conftest.$ac_ext >&5
20704
20705 fi
20706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20707    if test x$ac_cv_sizeof_signed_int != x ; then break; fi
20708   done
20709
20710 fi
20711
20712
20713 signed=$ac_cv_sizeof_signed_int
20714 if test x$signed = x ; then
20715   { { echo "$as_me:$LINENO: error: cannot determine a size for signed int" >&5
20716 echo "$as_me: error: cannot determine a size for signed int" >&2;}
20717    { (exit 1); exit 1; }; }
20718 fi
20719 if test x$unspecif != x$signed ; then
20720   { { echo "$as_me:$LINENO: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&5
20721 echo "$as_me: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&2;}
20722    { (exit 1); exit 1; }; }
20723 fi
20724
20725     if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
20726   echo $ECHO_N "(cached) $ECHO_C" >&6
20727 else
20728   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20729    cat >conftest.$ac_ext <<_ACEOF
20730 /* confdefs.h.  */
20731 _ACEOF
20732 cat confdefs.h >>conftest.$ac_ext
20733 cat >>conftest.$ac_ext <<_ACEOF
20734 /* end confdefs.h.  */
20735 #include "confdefs.h"
20736    #include <sys/types.h>
20737
20738
20739 int
20740 main ()
20741 {
20742 switch (0) case 0: case (sizeof (unsigned int) == $ac_size):;
20743   ;
20744   return 0;
20745 }
20746 _ACEOF
20747 rm -f conftest.$ac_objext
20748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20749   (eval $ac_compile) 2>conftest.er1
20750   ac_status=$?
20751   grep -v '^ *+' conftest.er1 >conftest.err
20752   rm -f conftest.er1
20753   cat conftest.err >&5
20754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20755   (exit $ac_status); } &&
20756          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20758   (eval $ac_try) 2>&5
20759   ac_status=$?
20760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20761   (exit $ac_status); }; } &&
20762          { ac_try='test -s conftest.$ac_objext'
20763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20764   (eval $ac_try) 2>&5
20765   ac_status=$?
20766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767   (exit $ac_status); }; }; then
20768   ac_cv_sizeof_unsigned_int=$ac_size
20769 else
20770   echo "$as_me: failed program was:" >&5
20771 sed 's/^/| /' conftest.$ac_ext >&5
20772
20773 fi
20774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20775    if test x$ac_cv_sizeof_unsigned_int != x ; then break; fi
20776   done
20777
20778 fi
20779
20780
20781 unsigned=$ac_cv_sizeof_unsigned_int
20782 if test x$unsigned = x ; then
20783   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned int" >&5
20784 echo "$as_me: error: cannot determine a size for unsigned int" >&2;}
20785    { (exit 1); exit 1; }; }
20786 fi
20787 if test x$unsigned != x$signed ; then
20788   { { echo "$as_me:$LINENO: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&5
20789 echo "$as_me: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&2;}
20790    { (exit 1); exit 1; }; }
20791 fi
20792
20793 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
20794 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6
20795
20796 cat >>confdefs.h <<_ACEOF
20797 #define SIZEOF_INT $ac_cv_sizeof_unsigned_int
20798 _ACEOF
20799
20800
20801 echo "$as_me:$LINENO: checking size of long int" >&5
20802 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
20803     if test "${ac_cv_sizeof_long_int+set}" = set; then
20804   echo $ECHO_N "(cached) $ECHO_C" >&6
20805 else
20806   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20807    cat >conftest.$ac_ext <<_ACEOF
20808 /* confdefs.h.  */
20809 _ACEOF
20810 cat confdefs.h >>conftest.$ac_ext
20811 cat >>conftest.$ac_ext <<_ACEOF
20812 /* end confdefs.h.  */
20813 #include "confdefs.h"
20814    #include <sys/types.h>
20815
20816
20817 int
20818 main ()
20819 {
20820 switch (0) case 0: case (sizeof (long int) == $ac_size):;
20821   ;
20822   return 0;
20823 }
20824 _ACEOF
20825 rm -f conftest.$ac_objext
20826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20827   (eval $ac_compile) 2>conftest.er1
20828   ac_status=$?
20829   grep -v '^ *+' conftest.er1 >conftest.err
20830   rm -f conftest.er1
20831   cat conftest.err >&5
20832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20833   (exit $ac_status); } &&
20834          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20836   (eval $ac_try) 2>&5
20837   ac_status=$?
20838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839   (exit $ac_status); }; } &&
20840          { ac_try='test -s conftest.$ac_objext'
20841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20842   (eval $ac_try) 2>&5
20843   ac_status=$?
20844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20845   (exit $ac_status); }; }; then
20846   ac_cv_sizeof_long_int=$ac_size
20847 else
20848   echo "$as_me: failed program was:" >&5
20849 sed 's/^/| /' conftest.$ac_ext >&5
20850
20851 fi
20852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20853    if test x$ac_cv_sizeof_long_int != x ; then break; fi
20854   done
20855
20856 fi
20857
20858
20859 unspecif=$ac_cv_sizeof_long_int
20860 if test x$unspecif = x ; then
20861   { { echo "$as_me:$LINENO: error: cannot determine a size for long int" >&5
20862 echo "$as_me: error: cannot determine a size for long int" >&2;}
20863    { (exit 1); exit 1; }; }
20864 fi
20865
20866     if test "${ac_cv_sizeof_signed_long_int+set}" = set; then
20867   echo $ECHO_N "(cached) $ECHO_C" >&6
20868 else
20869   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20870    cat >conftest.$ac_ext <<_ACEOF
20871 /* confdefs.h.  */
20872 _ACEOF
20873 cat confdefs.h >>conftest.$ac_ext
20874 cat >>conftest.$ac_ext <<_ACEOF
20875 /* end confdefs.h.  */
20876 #include "confdefs.h"
20877    #include <sys/types.h>
20878
20879
20880 int
20881 main ()
20882 {
20883 switch (0) case 0: case (sizeof (signed long int) == $ac_size):;
20884   ;
20885   return 0;
20886 }
20887 _ACEOF
20888 rm -f conftest.$ac_objext
20889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20890   (eval $ac_compile) 2>conftest.er1
20891   ac_status=$?
20892   grep -v '^ *+' conftest.er1 >conftest.err
20893   rm -f conftest.er1
20894   cat conftest.err >&5
20895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896   (exit $ac_status); } &&
20897          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20899   (eval $ac_try) 2>&5
20900   ac_status=$?
20901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902   (exit $ac_status); }; } &&
20903          { ac_try='test -s conftest.$ac_objext'
20904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20905   (eval $ac_try) 2>&5
20906   ac_status=$?
20907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908   (exit $ac_status); }; }; then
20909   ac_cv_sizeof_signed_long_int=$ac_size
20910 else
20911   echo "$as_me: failed program was:" >&5
20912 sed 's/^/| /' conftest.$ac_ext >&5
20913
20914 fi
20915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20916    if test x$ac_cv_sizeof_signed_long_int != x ; then break; fi
20917   done
20918
20919 fi
20920
20921
20922 signed=$ac_cv_sizeof_signed_long_int
20923 if test x$signed = x ; then
20924   { { echo "$as_me:$LINENO: error: cannot determine a size for signed long int" >&5
20925 echo "$as_me: error: cannot determine a size for signed long int" >&2;}
20926    { (exit 1); exit 1; }; }
20927 fi
20928 if test x$unspecif != x$signed ; then
20929   { { echo "$as_me:$LINENO: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&5
20930 echo "$as_me: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&2;}
20931    { (exit 1); exit 1; }; }
20932 fi
20933
20934     if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
20935   echo $ECHO_N "(cached) $ECHO_C" >&6
20936 else
20937   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20938    cat >conftest.$ac_ext <<_ACEOF
20939 /* confdefs.h.  */
20940 _ACEOF
20941 cat confdefs.h >>conftest.$ac_ext
20942 cat >>conftest.$ac_ext <<_ACEOF
20943 /* end confdefs.h.  */
20944 #include "confdefs.h"
20945    #include <sys/types.h>
20946
20947
20948 int
20949 main ()
20950 {
20951 switch (0) case 0: case (sizeof (unsigned long int) == $ac_size):;
20952   ;
20953   return 0;
20954 }
20955 _ACEOF
20956 rm -f conftest.$ac_objext
20957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20958   (eval $ac_compile) 2>conftest.er1
20959   ac_status=$?
20960   grep -v '^ *+' conftest.er1 >conftest.err
20961   rm -f conftest.er1
20962   cat conftest.err >&5
20963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20964   (exit $ac_status); } &&
20965          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20967   (eval $ac_try) 2>&5
20968   ac_status=$?
20969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970   (exit $ac_status); }; } &&
20971          { ac_try='test -s conftest.$ac_objext'
20972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20973   (eval $ac_try) 2>&5
20974   ac_status=$?
20975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976   (exit $ac_status); }; }; then
20977   ac_cv_sizeof_unsigned_long_int=$ac_size
20978 else
20979   echo "$as_me: failed program was:" >&5
20980 sed 's/^/| /' conftest.$ac_ext >&5
20981
20982 fi
20983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20984    if test x$ac_cv_sizeof_unsigned_long_int != x ; then break; fi
20985   done
20986
20987 fi
20988
20989
20990 unsigned=$ac_cv_sizeof_unsigned_long_int
20991 if test x$unsigned = x ; then
20992   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long int" >&5
20993 echo "$as_me: error: cannot determine a size for unsigned long int" >&2;}
20994    { (exit 1); exit 1; }; }
20995 fi
20996 if test x$unsigned != x$signed ; then
20997   { { echo "$as_me:$LINENO: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&5
20998 echo "$as_me: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&2;}
20999    { (exit 1); exit 1; }; }
21000 fi
21001
21002 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
21003 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6
21004
21005 cat >>confdefs.h <<_ACEOF
21006 #define SIZEOF_LONG_INT $ac_cv_sizeof_unsigned_long_int
21007 _ACEOF
21008
21009
21010 echo "$as_me:$LINENO: checking size of long long int" >&5
21011 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
21012     if test "${ac_cv_sizeof_long_long_int+set}" = set; then
21013   echo $ECHO_N "(cached) $ECHO_C" >&6
21014 else
21015   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
21016    cat >conftest.$ac_ext <<_ACEOF
21017 /* confdefs.h.  */
21018 _ACEOF
21019 cat confdefs.h >>conftest.$ac_ext
21020 cat >>conftest.$ac_ext <<_ACEOF
21021 /* end confdefs.h.  */
21022 #include "confdefs.h"
21023    #include <sys/types.h>
21024
21025
21026 int
21027 main ()
21028 {
21029 switch (0) case 0: case (sizeof (long long int) == $ac_size):;
21030   ;
21031   return 0;
21032 }
21033 _ACEOF
21034 rm -f conftest.$ac_objext
21035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21036   (eval $ac_compile) 2>conftest.er1
21037   ac_status=$?
21038   grep -v '^ *+' conftest.er1 >conftest.err
21039   rm -f conftest.er1
21040   cat conftest.err >&5
21041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21042   (exit $ac_status); } &&
21043          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21045   (eval $ac_try) 2>&5
21046   ac_status=$?
21047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21048   (exit $ac_status); }; } &&
21049          { ac_try='test -s conftest.$ac_objext'
21050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21051   (eval $ac_try) 2>&5
21052   ac_status=$?
21053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21054   (exit $ac_status); }; }; then
21055   ac_cv_sizeof_long_long_int=$ac_size
21056 else
21057   echo "$as_me: failed program was:" >&5
21058 sed 's/^/| /' conftest.$ac_ext >&5
21059
21060 fi
21061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21062    if test x$ac_cv_sizeof_long_long_int != x ; then break; fi
21063   done
21064
21065 fi
21066
21067
21068 unspecif=$ac_cv_sizeof_long_long_int
21069 if test x$unspecif = x ; then
21070   { { echo "$as_me:$LINENO: error: cannot determine a size for long long int" >&5
21071 echo "$as_me: error: cannot determine a size for long long int" >&2;}
21072    { (exit 1); exit 1; }; }
21073 fi
21074
21075     if test "${ac_cv_sizeof_signed_long_long_int+set}" = set; then
21076   echo $ECHO_N "(cached) $ECHO_C" >&6
21077 else
21078   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
21079    cat >conftest.$ac_ext <<_ACEOF
21080 /* confdefs.h.  */
21081 _ACEOF
21082 cat confdefs.h >>conftest.$ac_ext
21083 cat >>conftest.$ac_ext <<_ACEOF
21084 /* end confdefs.h.  */
21085 #include "confdefs.h"
21086    #include <sys/types.h>
21087
21088
21089 int
21090 main ()
21091 {
21092 switch (0) case 0: case (sizeof (signed long long int) == $ac_size):;
21093   ;
21094   return 0;
21095 }
21096 _ACEOF
21097 rm -f conftest.$ac_objext
21098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21099   (eval $ac_compile) 2>conftest.er1
21100   ac_status=$?
21101   grep -v '^ *+' conftest.er1 >conftest.err
21102   rm -f conftest.er1
21103   cat conftest.err >&5
21104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21105   (exit $ac_status); } &&
21106          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21108   (eval $ac_try) 2>&5
21109   ac_status=$?
21110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21111   (exit $ac_status); }; } &&
21112          { ac_try='test -s conftest.$ac_objext'
21113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21114   (eval $ac_try) 2>&5
21115   ac_status=$?
21116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117   (exit $ac_status); }; }; then
21118   ac_cv_sizeof_signed_long_long_int=$ac_size
21119 else
21120   echo "$as_me: failed program was:" >&5
21121 sed 's/^/| /' conftest.$ac_ext >&5
21122
21123 fi
21124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21125    if test x$ac_cv_sizeof_signed_long_long_int != x ; then break; fi
21126   done
21127
21128 fi
21129
21130
21131 signed=$ac_cv_sizeof_signed_long_long_int
21132 if test x$signed = x ; then
21133   { { echo "$as_me:$LINENO: error: cannot determine a size for signed long long int" >&5
21134 echo "$as_me: error: cannot determine a size for signed long long int" >&2;}
21135    { (exit 1); exit 1; }; }
21136 fi
21137 if test x$unspecif != x$signed ; then
21138   { { echo "$as_me:$LINENO: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&5
21139 echo "$as_me: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&2;}
21140    { (exit 1); exit 1; }; }
21141 fi
21142
21143     if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then
21144   echo $ECHO_N "(cached) $ECHO_C" >&6
21145 else
21146   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
21147    cat >conftest.$ac_ext <<_ACEOF
21148 /* confdefs.h.  */
21149 _ACEOF
21150 cat confdefs.h >>conftest.$ac_ext
21151 cat >>conftest.$ac_ext <<_ACEOF
21152 /* end confdefs.h.  */
21153 #include "confdefs.h"
21154    #include <sys/types.h>
21155
21156
21157 int
21158 main ()
21159 {
21160 switch (0) case 0: case (sizeof (unsigned long long int) == $ac_size):;
21161   ;
21162   return 0;
21163 }
21164 _ACEOF
21165 rm -f conftest.$ac_objext
21166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21167   (eval $ac_compile) 2>conftest.er1
21168   ac_status=$?
21169   grep -v '^ *+' conftest.er1 >conftest.err
21170   rm -f conftest.er1
21171   cat conftest.err >&5
21172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173   (exit $ac_status); } &&
21174          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21176   (eval $ac_try) 2>&5
21177   ac_status=$?
21178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21179   (exit $ac_status); }; } &&
21180          { ac_try='test -s conftest.$ac_objext'
21181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21182   (eval $ac_try) 2>&5
21183   ac_status=$?
21184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185   (exit $ac_status); }; }; then
21186   ac_cv_sizeof_unsigned_long_long_int=$ac_size
21187 else
21188   echo "$as_me: failed program was:" >&5
21189 sed 's/^/| /' conftest.$ac_ext >&5
21190
21191 fi
21192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21193    if test x$ac_cv_sizeof_unsigned_long_long_int != x ; then break; fi
21194   done
21195
21196 fi
21197
21198
21199 unsigned=$ac_cv_sizeof_unsigned_long_long_int
21200 if test x$unsigned = x ; then
21201   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long long int" >&5
21202 echo "$as_me: error: cannot determine a size for unsigned long long int" >&2;}
21203    { (exit 1); exit 1; }; }
21204 fi
21205 if test x$unsigned != x$signed ; then
21206   { { echo "$as_me:$LINENO: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&5
21207 echo "$as_me: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&2;}
21208    { (exit 1); exit 1; }; }
21209 fi
21210
21211 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
21212 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long_int" >&6
21213
21214 cat >>confdefs.h <<_ACEOF
21215 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_unsigned_long_long_int
21216 _ACEOF
21217
21218
21219
21220
21221 echo "$as_me:$LINENO: checking size of void *" >&5
21222 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
21223     if test "${ac_cv_sizeof_void_p+set}" = set; then
21224   echo $ECHO_N "(cached) $ECHO_C" >&6
21225 else
21226   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
21227    cat >conftest.$ac_ext <<_ACEOF
21228 /* confdefs.h.  */
21229 _ACEOF
21230 cat confdefs.h >>conftest.$ac_ext
21231 cat >>conftest.$ac_ext <<_ACEOF
21232 /* end confdefs.h.  */
21233 #include "confdefs.h"
21234    #include <sys/types.h>
21235
21236
21237 int
21238 main ()
21239 {
21240 switch (0) case 0: case (sizeof (void *) == $ac_size):;
21241   ;
21242   return 0;
21243 }
21244 _ACEOF
21245 rm -f conftest.$ac_objext
21246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21247   (eval $ac_compile) 2>conftest.er1
21248   ac_status=$?
21249   grep -v '^ *+' conftest.er1 >conftest.err
21250   rm -f conftest.er1
21251   cat conftest.err >&5
21252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21253   (exit $ac_status); } &&
21254          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21256   (eval $ac_try) 2>&5
21257   ac_status=$?
21258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21259   (exit $ac_status); }; } &&
21260          { ac_try='test -s conftest.$ac_objext'
21261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21262   (eval $ac_try) 2>&5
21263   ac_status=$?
21264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21265   (exit $ac_status); }; }; then
21266   ac_cv_sizeof_void_p=$ac_size
21267 else
21268   echo "$as_me: failed program was:" >&5
21269 sed 's/^/| /' conftest.$ac_ext >&5
21270
21271 fi
21272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21273    if test x$ac_cv_sizeof_void_p != x ; then break; fi
21274   done
21275
21276 fi
21277
21278
21279 if test x$ac_cv_sizeof_void_p = x ; then
21280   { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
21281 echo "$as_me: error: cannot determine a size for void *" >&2;}
21282    { (exit 1); exit 1; }; }
21283 fi
21284 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
21285 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
21286
21287 cat >>confdefs.h <<_ACEOF
21288 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
21289 _ACEOF
21290
21291
21292 echo "$as_me:$LINENO: checking size of void (*) (void)" >&5
21293 echo $ECHO_N "checking size of void (*) (void)... $ECHO_C" >&6
21294     if test "${ac_cv_sizeof_void_LpR_LvoidR+set}" = set; then
21295   echo $ECHO_N "(cached) $ECHO_C" >&6
21296 else
21297   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
21298    cat >conftest.$ac_ext <<_ACEOF
21299 /* confdefs.h.  */
21300 _ACEOF
21301 cat confdefs.h >>conftest.$ac_ext
21302 cat >>conftest.$ac_ext <<_ACEOF
21303 /* end confdefs.h.  */
21304 #include "confdefs.h"
21305    #include <sys/types.h>
21306
21307
21308 int
21309 main ()
21310 {
21311 switch (0) case 0: case (sizeof (void (*) (void)) == $ac_size):;
21312   ;
21313   return 0;
21314 }
21315 _ACEOF
21316 rm -f conftest.$ac_objext
21317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21318   (eval $ac_compile) 2>conftest.er1
21319   ac_status=$?
21320   grep -v '^ *+' conftest.er1 >conftest.err
21321   rm -f conftest.er1
21322   cat conftest.err >&5
21323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21324   (exit $ac_status); } &&
21325          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21327   (eval $ac_try) 2>&5
21328   ac_status=$?
21329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21330   (exit $ac_status); }; } &&
21331          { ac_try='test -s conftest.$ac_objext'
21332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21333   (eval $ac_try) 2>&5
21334   ac_status=$?
21335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21336   (exit $ac_status); }; }; then
21337   ac_cv_sizeof_void_LpR_LvoidR=$ac_size
21338 else
21339   echo "$as_me: failed program was:" >&5
21340 sed 's/^/| /' conftest.$ac_ext >&5
21341
21342 fi
21343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21344    if test x$ac_cv_sizeof_void_LpR_LvoidR != x ; then break; fi
21345   done
21346
21347 fi
21348
21349
21350 if test x$ac_cv_sizeof_void_LpR_LvoidR = x ; then
21351   { { echo "$as_me:$LINENO: error: cannot determine a size for void (*) (void)" >&5
21352 echo "$as_me: error: cannot determine a size for void (*) (void)" >&2;}
21353    { (exit 1); exit 1; }; }
21354 fi
21355 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_LpR_LvoidR" >&5
21356 echo "${ECHO_T}$ac_cv_sizeof_void_LpR_LvoidR" >&6
21357
21358 cat >>confdefs.h <<_ACEOF
21359 #define SIZEOF_VOID__P___VOID_ $ac_cv_sizeof_void_LpR_LvoidR
21360 _ACEOF
21361
21362
21363
21364 echo "$as_me:$LINENO: checking size of float" >&5
21365 echo $ECHO_N "checking size of float... $ECHO_C" >&6
21366     if test "${ac_cv_sizeof_float+set}" = set; then
21367   echo $ECHO_N "(cached) $ECHO_C" >&6
21368 else
21369   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
21370    cat >conftest.$ac_ext <<_ACEOF
21371 /* confdefs.h.  */
21372 _ACEOF
21373 cat confdefs.h >>conftest.$ac_ext
21374 cat >>conftest.$ac_ext <<_ACEOF
21375 /* end confdefs.h.  */
21376 #include "confdefs.h"
21377    #include <sys/types.h>
21378
21379
21380 int
21381 main ()
21382 {
21383 switch (0) case 0: case (sizeof (float) == $ac_size):;
21384   ;
21385   return 0;
21386 }
21387 _ACEOF
21388 rm -f conftest.$ac_objext
21389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21390   (eval $ac_compile) 2>conftest.er1
21391   ac_status=$?
21392   grep -v '^ *+' conftest.er1 >conftest.err
21393   rm -f conftest.er1
21394   cat conftest.err >&5
21395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21396   (exit $ac_status); } &&
21397          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21399   (eval $ac_try) 2>&5
21400   ac_status=$?
21401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21402   (exit $ac_status); }; } &&
21403          { ac_try='test -s conftest.$ac_objext'
21404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21405   (eval $ac_try) 2>&5
21406   ac_status=$?
21407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21408   (exit $ac_status); }; }; then
21409   ac_cv_sizeof_float=$ac_size
21410 else
21411   echo "$as_me: failed program was:" >&5
21412 sed 's/^/| /' conftest.$ac_ext >&5
21413
21414 fi
21415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21416    if test x$ac_cv_sizeof_float != x ; then break; fi
21417   done
21418
21419 fi
21420
21421
21422 if test x$ac_cv_sizeof_float = x ; then
21423   { { echo "$as_me:$LINENO: error: cannot determine a size for float" >&5
21424 echo "$as_me: error: cannot determine a size for float" >&2;}
21425    { (exit 1); exit 1; }; }
21426 fi
21427 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
21428 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
21429
21430 cat >>confdefs.h <<_ACEOF
21431 #define SIZEOF_FLOAT $ac_cv_sizeof_float
21432 _ACEOF
21433
21434
21435 echo "$as_me:$LINENO: checking size of double" >&5
21436 echo $ECHO_N "checking size of double... $ECHO_C" >&6
21437     if test "${ac_cv_sizeof_double+set}" = set; then
21438   echo $ECHO_N "(cached) $ECHO_C" >&6
21439 else
21440   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
21441    cat >conftest.$ac_ext <<_ACEOF
21442 /* confdefs.h.  */
21443 _ACEOF
21444 cat confdefs.h >>conftest.$ac_ext
21445 cat >>conftest.$ac_ext <<_ACEOF
21446 /* end confdefs.h.  */
21447 #include "confdefs.h"
21448    #include <sys/types.h>
21449
21450
21451 int
21452 main ()
21453 {
21454 switch (0) case 0: case (sizeof (double) == $ac_size):;
21455   ;
21456   return 0;
21457 }
21458 _ACEOF
21459 rm -f conftest.$ac_objext
21460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21461   (eval $ac_compile) 2>conftest.er1
21462   ac_status=$?
21463   grep -v '^ *+' conftest.er1 >conftest.err
21464   rm -f conftest.er1
21465   cat conftest.err >&5
21466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21467   (exit $ac_status); } &&
21468          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21470   (eval $ac_try) 2>&5
21471   ac_status=$?
21472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21473   (exit $ac_status); }; } &&
21474          { ac_try='test -s conftest.$ac_objext'
21475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21476   (eval $ac_try) 2>&5
21477   ac_status=$?
21478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479   (exit $ac_status); }; }; then
21480   ac_cv_sizeof_double=$ac_size
21481 else
21482   echo "$as_me: failed program was:" >&5
21483 sed 's/^/| /' conftest.$ac_ext >&5
21484
21485 fi
21486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21487    if test x$ac_cv_sizeof_double != x ; then break; fi
21488   done
21489
21490 fi
21491
21492
21493 if test x$ac_cv_sizeof_double = x ; then
21494   { { echo "$as_me:$LINENO: error: cannot determine a size for double" >&5
21495 echo "$as_me: error: cannot determine a size for double" >&2;}
21496    { (exit 1); exit 1; }; }
21497 fi
21498 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
21499 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
21500
21501 cat >>confdefs.h <<_ACEOF
21502 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
21503 _ACEOF
21504
21505
21506 echo "$as_me:$LINENO: checking if floating point datatypes are IEEE 754 compliant" >&5
21507 echo $ECHO_N "checking if floating point datatypes are IEEE 754 compliant... $ECHO_C" >&6
21508 cat >conftest.$ac_ext <<_ACEOF
21509 /* confdefs.h.  */
21510 _ACEOF
21511 cat confdefs.h >>conftest.$ac_ext
21512 cat >>conftest.$ac_ext <<_ACEOF
21513 /* end confdefs.h.  */
21514 #include "confdefs.h"
21515 union {
21516         double testFP;
21517         unsigned char bytes[sizeof(double)];
21518 } doubleTester;
21519 union {
21520         float testFP;
21521         unsigned char bytes[sizeof(float)];
21522 } floatTester;
21523
21524 int
21525 main ()
21526 {
21527
21528 memset(&doubleTester, 0, sizeof(doubleTester));
21529 memset(&floatTester, 0, sizeof(floatTester));
21530
21531 doubleTester.bytes[GRAS_BIGENDIAN ? sizeof(double) - 1 : 0]=192;
21532 doubleTester.bytes[GRAS_BIGENDIAN ? sizeof(double) - 2 : 1] =
21533   (sizeof(double) == 4)  ? 128 :
21534   (sizeof(double) == 8)  ? 16 :
21535   (sizeof(double) == 16) ? 1 : 0;
21536 if (doubleTester.testFP != -4.0) return 1;
21537
21538 floatTester.bytes[GRAS_BIGENDIAN ? sizeof(float) - 1 : 0]=192;
21539 floatTester.bytes[GRAS_BIGENDIAN ? sizeof(float) - 2 : 1] =
21540   (sizeof(float) == 4)  ? 128 :
21541   (sizeof(float) == 8)  ? 16 :
21542   (sizeof(float) == 16) ? 1 : 0;
21543 if (floatTester.testFP != -4.0) return 1;
21544
21545 return 0;
21546   ;
21547   return 0;
21548 }
21549 _ACEOF
21550 rm -f conftest.$ac_objext
21551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21552   (eval $ac_compile) 2>conftest.er1
21553   ac_status=$?
21554   grep -v '^ *+' conftest.er1 >conftest.err
21555   rm -f conftest.er1
21556   cat conftest.err >&5
21557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21558   (exit $ac_status); } &&
21559          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21561   (eval $ac_try) 2>&5
21562   ac_status=$?
21563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564   (exit $ac_status); }; } &&
21565          { ac_try='test -s conftest.$ac_objext'
21566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21567   (eval $ac_try) 2>&5
21568   ac_status=$?
21569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570   (exit $ac_status); }; }; then
21571   IEEE_FP=yes
21572
21573 cat >>confdefs.h <<\_ACEOF
21574 #define IEEE_FP 1
21575 _ACEOF
21576
21577
21578 else
21579   echo "$as_me: failed program was:" >&5
21580 sed 's/^/| /' conftest.$ac_ext >&5
21581
21582 IEEE_FP=no
21583    { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
21584 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
21585    { (exit 1); exit 1; }; }
21586 fi
21587 rm -f conftest.err conftest.$ac_objext conftest.$ac_extecho "$as_me:$LINENO: result: $IEEE_FP" >&5
21588 echo "${ECHO_T}$IEEE_FP" >&6
21589
21590
21591 echo "$as_me:$LINENO: checking the GRAS signature of this architecture" >&5
21592 echo $ECHO_N "checking the GRAS signature of this architecture... $ECHO_C" >&6
21593 if test x$endian = x1 ; then
21594   trace_endian=B
21595 else
21596   trace_endian=l
21597 fi
21598 gras_arch=unknown
21599 trace="$trace_endian"
21600 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}"
21601 trace="${trace}:${ac_cv_sizeof_void_p}.${ac_cv_sizeof_void_LpR_LvoidR}"
21602 trace="${trace}:${ac_cv_sizeof_float}.${ac_cv_sizeof_double}"
21603 case $trace in
21604   l:1.2.4.4.8:4.4:4.8) gras_arch=0; gras_arch_name=i386;;
21605 esac
21606 if test x$gras_arch = xunknown ; then
21607   echo "$as_me:$LINENO: result: damnit ($trace)" >&5
21608 echo "${ECHO_T}damnit ($trace)" >&6
21609   { { echo "$as_me:$LINENO: error: Impossible to determine the GRAS architecture signature.
21610 Please report this architecture trace ($trace) and what it corresponds to." >&5
21611 echo "$as_me: error: Impossible to determine the GRAS architecture signature.
21612 Please report this architecture trace ($trace) and what it corresponds to." >&2;}
21613    { (exit 1); exit 1; }; }
21614 fi
21615 echo "$as_me:$LINENO: GRAS trace of this machine: $trace" >&5
21616
21617 cat >>confdefs.h <<_ACEOF
21618 #define GRAS_THISARCH_NAME "$gras_arch_name"
21619 _ACEOF
21620
21621
21622 cat >>confdefs.h <<_ACEOF
21623 #define GRAS_THISARCH $gras_arch
21624 _ACEOF
21625
21626 echo "$as_me:$LINENO: result: $gras_arch ($gras_arch_name)" >&5
21627 echo "${ECHO_T}$gras_arch ($gras_arch_name)" >&6
21628
21629
21630 # Checks for header files.
21631 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21632 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
21633 if test "${ac_cv_header_stdc+set}" = set; then
21634   echo $ECHO_N "(cached) $ECHO_C" >&6
21635 else
21636   cat >conftest.$ac_ext <<_ACEOF
21637 /* confdefs.h.  */
21638 _ACEOF
21639 cat confdefs.h >>conftest.$ac_ext
21640 cat >>conftest.$ac_ext <<_ACEOF
21641 /* end confdefs.h.  */
21642 #include <stdlib.h>
21643 #include <stdarg.h>
21644 #include <string.h>
21645 #include <float.h>
21646
21647 int
21648 main ()
21649 {
21650
21651   ;
21652   return 0;
21653 }
21654 _ACEOF
21655 rm -f conftest.$ac_objext
21656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21657   (eval $ac_compile) 2>conftest.er1
21658   ac_status=$?
21659   grep -v '^ *+' conftest.er1 >conftest.err
21660   rm -f conftest.er1
21661   cat conftest.err >&5
21662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21663   (exit $ac_status); } &&
21664          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21666   (eval $ac_try) 2>&5
21667   ac_status=$?
21668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21669   (exit $ac_status); }; } &&
21670          { ac_try='test -s conftest.$ac_objext'
21671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21672   (eval $ac_try) 2>&5
21673   ac_status=$?
21674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21675   (exit $ac_status); }; }; then
21676   ac_cv_header_stdc=yes
21677 else
21678   echo "$as_me: failed program was:" >&5
21679 sed 's/^/| /' conftest.$ac_ext >&5
21680
21681 ac_cv_header_stdc=no
21682 fi
21683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21684
21685 if test $ac_cv_header_stdc = yes; then
21686   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21687   cat >conftest.$ac_ext <<_ACEOF
21688 /* confdefs.h.  */
21689 _ACEOF
21690 cat confdefs.h >>conftest.$ac_ext
21691 cat >>conftest.$ac_ext <<_ACEOF
21692 /* end confdefs.h.  */
21693 #include <string.h>
21694
21695 _ACEOF
21696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21697   $EGREP "memchr" >/dev/null 2>&1; then
21698   :
21699 else
21700   ac_cv_header_stdc=no
21701 fi
21702 rm -f conftest*
21703
21704 fi
21705
21706 if test $ac_cv_header_stdc = yes; then
21707   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21708   cat >conftest.$ac_ext <<_ACEOF
21709 /* confdefs.h.  */
21710 _ACEOF
21711 cat confdefs.h >>conftest.$ac_ext
21712 cat >>conftest.$ac_ext <<_ACEOF
21713 /* end confdefs.h.  */
21714 #include <stdlib.h>
21715
21716 _ACEOF
21717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21718   $EGREP "free" >/dev/null 2>&1; then
21719   :
21720 else
21721   ac_cv_header_stdc=no
21722 fi
21723 rm -f conftest*
21724
21725 fi
21726
21727 if test $ac_cv_header_stdc = yes; then
21728   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21729   if test "$cross_compiling" = yes; then
21730   :
21731 else
21732   cat >conftest.$ac_ext <<_ACEOF
21733 /* confdefs.h.  */
21734 _ACEOF
21735 cat confdefs.h >>conftest.$ac_ext
21736 cat >>conftest.$ac_ext <<_ACEOF
21737 /* end confdefs.h.  */
21738 #include <ctype.h>
21739 #if ((' ' & 0x0FF) == 0x020)
21740 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21741 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21742 #else
21743 # define ISLOWER(c) \
21744                    (('a' <= (c) && (c) <= 'i') \
21745                      || ('j' <= (c) && (c) <= 'r') \
21746                      || ('s' <= (c) && (c) <= 'z'))
21747 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21748 #endif
21749
21750 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21751 int
21752 main ()
21753 {
21754   int i;
21755   for (i = 0; i < 256; i++)
21756     if (XOR (islower (i), ISLOWER (i))
21757         || toupper (i) != TOUPPER (i))
21758       exit(2);
21759   exit (0);
21760 }
21761 _ACEOF
21762 rm -f conftest$ac_exeext
21763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21764   (eval $ac_link) 2>&5
21765   ac_status=$?
21766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21767   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21769   (eval $ac_try) 2>&5
21770   ac_status=$?
21771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21772   (exit $ac_status); }; }; then
21773   :
21774 else
21775   echo "$as_me: program exited with status $ac_status" >&5
21776 echo "$as_me: failed program was:" >&5
21777 sed 's/^/| /' conftest.$ac_ext >&5
21778
21779 ( exit $ac_status )
21780 ac_cv_header_stdc=no
21781 fi
21782 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21783 fi
21784 fi
21785 fi
21786 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21787 echo "${ECHO_T}$ac_cv_header_stdc" >&6
21788 if test $ac_cv_header_stdc = yes; then
21789
21790 cat >>confdefs.h <<\_ACEOF
21791 #define STDC_HEADERS 1
21792 _ACEOF
21793
21794 fi
21795
21796
21797
21798
21799
21800 for ac_header in stddef.h stdlib.h string.h unistd.h
21801 do
21802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21804   echo "$as_me:$LINENO: checking for $ac_header" >&5
21805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21807   echo $ECHO_N "(cached) $ECHO_C" >&6
21808 fi
21809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21810 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21811 else
21812   # Is the header compilable?
21813 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21814 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21815 cat >conftest.$ac_ext <<_ACEOF
21816 /* confdefs.h.  */
21817 _ACEOF
21818 cat confdefs.h >>conftest.$ac_ext
21819 cat >>conftest.$ac_ext <<_ACEOF
21820 /* end confdefs.h.  */
21821 $ac_includes_default
21822 #include <$ac_header>
21823 _ACEOF
21824 rm -f conftest.$ac_objext
21825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21826   (eval $ac_compile) 2>conftest.er1
21827   ac_status=$?
21828   grep -v '^ *+' conftest.er1 >conftest.err
21829   rm -f conftest.er1
21830   cat conftest.err >&5
21831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21832   (exit $ac_status); } &&
21833          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21835   (eval $ac_try) 2>&5
21836   ac_status=$?
21837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838   (exit $ac_status); }; } &&
21839          { ac_try='test -s conftest.$ac_objext'
21840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21841   (eval $ac_try) 2>&5
21842   ac_status=$?
21843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844   (exit $ac_status); }; }; then
21845   ac_header_compiler=yes
21846 else
21847   echo "$as_me: failed program was:" >&5
21848 sed 's/^/| /' conftest.$ac_ext >&5
21849
21850 ac_header_compiler=no
21851 fi
21852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21853 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21854 echo "${ECHO_T}$ac_header_compiler" >&6
21855
21856 # Is the header present?
21857 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21858 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21859 cat >conftest.$ac_ext <<_ACEOF
21860 /* confdefs.h.  */
21861 _ACEOF
21862 cat confdefs.h >>conftest.$ac_ext
21863 cat >>conftest.$ac_ext <<_ACEOF
21864 /* end confdefs.h.  */
21865 #include <$ac_header>
21866 _ACEOF
21867 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21868   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21869   ac_status=$?
21870   grep -v '^ *+' conftest.er1 >conftest.err
21871   rm -f conftest.er1
21872   cat conftest.err >&5
21873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21874   (exit $ac_status); } >/dev/null; then
21875   if test -s conftest.err; then
21876     ac_cpp_err=$ac_c_preproc_warn_flag
21877     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21878   else
21879     ac_cpp_err=
21880   fi
21881 else
21882   ac_cpp_err=yes
21883 fi
21884 if test -z "$ac_cpp_err"; then
21885   ac_header_preproc=yes
21886 else
21887   echo "$as_me: failed program was:" >&5
21888 sed 's/^/| /' conftest.$ac_ext >&5
21889
21890   ac_header_preproc=no
21891 fi
21892 rm -f conftest.err conftest.$ac_ext
21893 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21894 echo "${ECHO_T}$ac_header_preproc" >&6
21895
21896 # So?  What about this header?
21897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21898   yes:no: )
21899     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21900 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21901     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21902 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21903     ac_header_preproc=yes
21904     ;;
21905   no:yes:* )
21906     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21907 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21908     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21909 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21910     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21911 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21912     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21913 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21914     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21915 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21916     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21917 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21918     (
21919       cat <<\_ASBOX
21920 ## ----------------------------------------- ##
21921 ## Report this to martin.quinson@ens-lyon.fr ##
21922 ## ----------------------------------------- ##
21923 _ASBOX
21924     ) |
21925       sed "s/^/$as_me: WARNING:     /" >&2
21926     ;;
21927 esac
21928 echo "$as_me:$LINENO: checking for $ac_header" >&5
21929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21931   echo $ECHO_N "(cached) $ECHO_C" >&6
21932 else
21933   eval "$as_ac_Header=\$ac_header_preproc"
21934 fi
21935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21936 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21937
21938 fi
21939 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21940   cat >>confdefs.h <<_ACEOF
21941 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21942 _ACEOF
21943
21944 fi
21945
21946 done
21947
21948
21949 # Checks for typedefs, structures, and compiler characteristics.
21950 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21951 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
21952 if test "${ac_cv_c_const+set}" = set; then
21953   echo $ECHO_N "(cached) $ECHO_C" >&6
21954 else
21955   cat >conftest.$ac_ext <<_ACEOF
21956 /* confdefs.h.  */
21957 _ACEOF
21958 cat confdefs.h >>conftest.$ac_ext
21959 cat >>conftest.$ac_ext <<_ACEOF
21960 /* end confdefs.h.  */
21961
21962 int
21963 main ()
21964 {
21965 /* FIXME: Include the comments suggested by Paul. */
21966 #ifndef __cplusplus
21967   /* Ultrix mips cc rejects this.  */
21968   typedef int charset[2];
21969   const charset x;
21970   /* SunOS 4.1.1 cc rejects this.  */
21971   char const *const *ccp;
21972   char **p;
21973   /* NEC SVR4.0.2 mips cc rejects this.  */
21974   struct point {int x, y;};
21975   static struct point const zero = {0,0};
21976   /* AIX XL C 1.02.0.0 rejects this.
21977      It does not let you subtract one const X* pointer from another in
21978      an arm of an if-expression whose if-part is not a constant
21979      expression */
21980   const char *g = "string";
21981   ccp = &g + (g ? g-g : 0);
21982   /* HPUX 7.0 cc rejects these. */
21983   ++ccp;
21984   p = (char**) ccp;
21985   ccp = (char const *const *) p;
21986   { /* SCO 3.2v4 cc rejects this.  */
21987     char *t;
21988     char const *s = 0 ? (char *) 0 : (char const *) 0;
21989
21990     *t++ = 0;
21991   }
21992   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21993     int x[] = {25, 17};
21994     const int *foo = &x[0];
21995     ++foo;
21996   }
21997   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21998     typedef const int *iptr;
21999     iptr p = 0;
22000     ++p;
22001   }
22002   { /* AIX XL C 1.02.0.0 rejects this saying
22003        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22004     struct s { int j; const int *ap[3]; };
22005     struct s *b; b->j = 5;
22006   }
22007   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22008     const int foo = 10;
22009   }
22010 #endif
22011
22012   ;
22013   return 0;
22014 }
22015 _ACEOF
22016 rm -f conftest.$ac_objext
22017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22018   (eval $ac_compile) 2>conftest.er1
22019   ac_status=$?
22020   grep -v '^ *+' conftest.er1 >conftest.err
22021   rm -f conftest.er1
22022   cat conftest.err >&5
22023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22024   (exit $ac_status); } &&
22025          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22027   (eval $ac_try) 2>&5
22028   ac_status=$?
22029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22030   (exit $ac_status); }; } &&
22031          { ac_try='test -s conftest.$ac_objext'
22032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22033   (eval $ac_try) 2>&5
22034   ac_status=$?
22035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22036   (exit $ac_status); }; }; then
22037   ac_cv_c_const=yes
22038 else
22039   echo "$as_me: failed program was:" >&5
22040 sed 's/^/| /' conftest.$ac_ext >&5
22041
22042 ac_cv_c_const=no
22043 fi
22044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22045 fi
22046 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22047 echo "${ECHO_T}$ac_cv_c_const" >&6
22048 if test $ac_cv_c_const = no; then
22049
22050 cat >>confdefs.h <<\_ACEOF
22051 #define const
22052 _ACEOF
22053
22054 fi
22055
22056 echo "$as_me:$LINENO: checking for inline" >&5
22057 echo $ECHO_N "checking for inline... $ECHO_C" >&6
22058 if test "${ac_cv_c_inline+set}" = set; then
22059   echo $ECHO_N "(cached) $ECHO_C" >&6
22060 else
22061   ac_cv_c_inline=no
22062 for ac_kw in inline __inline__ __inline; do
22063   cat >conftest.$ac_ext <<_ACEOF
22064 /* confdefs.h.  */
22065 _ACEOF
22066 cat confdefs.h >>conftest.$ac_ext
22067 cat >>conftest.$ac_ext <<_ACEOF
22068 /* end confdefs.h.  */
22069 #ifndef __cplusplus
22070 typedef int foo_t;
22071 static $ac_kw foo_t static_foo () {return 0; }
22072 $ac_kw foo_t foo () {return 0; }
22073 #endif
22074
22075 _ACEOF
22076 rm -f conftest.$ac_objext
22077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22078   (eval $ac_compile) 2>conftest.er1
22079   ac_status=$?
22080   grep -v '^ *+' conftest.er1 >conftest.err
22081   rm -f conftest.er1
22082   cat conftest.err >&5
22083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22084   (exit $ac_status); } &&
22085          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22087   (eval $ac_try) 2>&5
22088   ac_status=$?
22089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090   (exit $ac_status); }; } &&
22091          { ac_try='test -s conftest.$ac_objext'
22092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22093   (eval $ac_try) 2>&5
22094   ac_status=$?
22095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22096   (exit $ac_status); }; }; then
22097   ac_cv_c_inline=$ac_kw; break
22098 else
22099   echo "$as_me: failed program was:" >&5
22100 sed 's/^/| /' conftest.$ac_ext >&5
22101
22102 fi
22103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22104 done
22105
22106 fi
22107 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
22108 echo "${ECHO_T}$ac_cv_c_inline" >&6
22109
22110
22111 case $ac_cv_c_inline in
22112   inline | yes) ;;
22113   *)
22114     case $ac_cv_c_inline in
22115       no) ac_val=;;
22116       *) ac_val=$ac_cv_c_inline;;
22117     esac
22118     cat >>confdefs.h <<_ACEOF
22119 #ifndef __cplusplus
22120 #define inline $ac_val
22121 #endif
22122 _ACEOF
22123     ;;
22124 esac
22125
22126 echo "$as_me:$LINENO: checking for size_t" >&5
22127 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22128 if test "${ac_cv_type_size_t+set}" = set; then
22129   echo $ECHO_N "(cached) $ECHO_C" >&6
22130 else
22131   cat >conftest.$ac_ext <<_ACEOF
22132 /* confdefs.h.  */
22133 _ACEOF
22134 cat confdefs.h >>conftest.$ac_ext
22135 cat >>conftest.$ac_ext <<_ACEOF
22136 /* end confdefs.h.  */
22137 $ac_includes_default
22138 int
22139 main ()
22140 {
22141 if ((size_t *) 0)
22142   return 0;
22143 if (sizeof (size_t))
22144   return 0;
22145   ;
22146   return 0;
22147 }
22148 _ACEOF
22149 rm -f conftest.$ac_objext
22150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22151   (eval $ac_compile) 2>conftest.er1
22152   ac_status=$?
22153   grep -v '^ *+' conftest.er1 >conftest.err
22154   rm -f conftest.er1
22155   cat conftest.err >&5
22156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157   (exit $ac_status); } &&
22158          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22160   (eval $ac_try) 2>&5
22161   ac_status=$?
22162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22163   (exit $ac_status); }; } &&
22164          { ac_try='test -s conftest.$ac_objext'
22165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22166   (eval $ac_try) 2>&5
22167   ac_status=$?
22168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22169   (exit $ac_status); }; }; then
22170   ac_cv_type_size_t=yes
22171 else
22172   echo "$as_me: failed program was:" >&5
22173 sed 's/^/| /' conftest.$ac_ext >&5
22174
22175 ac_cv_type_size_t=no
22176 fi
22177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22178 fi
22179 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22180 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22181 if test $ac_cv_type_size_t = yes; then
22182   :
22183 else
22184
22185 cat >>confdefs.h <<_ACEOF
22186 #define size_t unsigned
22187 _ACEOF
22188
22189 fi
22190
22191
22192 # Checks for library functions.
22193
22194 for ac_header in stdlib.h
22195 do
22196 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22198   echo "$as_me:$LINENO: checking for $ac_header" >&5
22199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22201   echo $ECHO_N "(cached) $ECHO_C" >&6
22202 fi
22203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22204 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22205 else
22206   # Is the header compilable?
22207 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22208 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22209 cat >conftest.$ac_ext <<_ACEOF
22210 /* confdefs.h.  */
22211 _ACEOF
22212 cat confdefs.h >>conftest.$ac_ext
22213 cat >>conftest.$ac_ext <<_ACEOF
22214 /* end confdefs.h.  */
22215 $ac_includes_default
22216 #include <$ac_header>
22217 _ACEOF
22218 rm -f conftest.$ac_objext
22219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22220   (eval $ac_compile) 2>conftest.er1
22221   ac_status=$?
22222   grep -v '^ *+' conftest.er1 >conftest.err
22223   rm -f conftest.er1
22224   cat conftest.err >&5
22225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22226   (exit $ac_status); } &&
22227          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22229   (eval $ac_try) 2>&5
22230   ac_status=$?
22231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22232   (exit $ac_status); }; } &&
22233          { ac_try='test -s conftest.$ac_objext'
22234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22235   (eval $ac_try) 2>&5
22236   ac_status=$?
22237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22238   (exit $ac_status); }; }; then
22239   ac_header_compiler=yes
22240 else
22241   echo "$as_me: failed program was:" >&5
22242 sed 's/^/| /' conftest.$ac_ext >&5
22243
22244 ac_header_compiler=no
22245 fi
22246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22247 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22248 echo "${ECHO_T}$ac_header_compiler" >&6
22249
22250 # Is the header present?
22251 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22252 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22253 cat >conftest.$ac_ext <<_ACEOF
22254 /* confdefs.h.  */
22255 _ACEOF
22256 cat confdefs.h >>conftest.$ac_ext
22257 cat >>conftest.$ac_ext <<_ACEOF
22258 /* end confdefs.h.  */
22259 #include <$ac_header>
22260 _ACEOF
22261 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22262   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22263   ac_status=$?
22264   grep -v '^ *+' conftest.er1 >conftest.err
22265   rm -f conftest.er1
22266   cat conftest.err >&5
22267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22268   (exit $ac_status); } >/dev/null; then
22269   if test -s conftest.err; then
22270     ac_cpp_err=$ac_c_preproc_warn_flag
22271     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22272   else
22273     ac_cpp_err=
22274   fi
22275 else
22276   ac_cpp_err=yes
22277 fi
22278 if test -z "$ac_cpp_err"; then
22279   ac_header_preproc=yes
22280 else
22281   echo "$as_me: failed program was:" >&5
22282 sed 's/^/| /' conftest.$ac_ext >&5
22283
22284   ac_header_preproc=no
22285 fi
22286 rm -f conftest.err conftest.$ac_ext
22287 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22288 echo "${ECHO_T}$ac_header_preproc" >&6
22289
22290 # So?  What about this header?
22291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22292   yes:no: )
22293     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22294 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22295     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22296 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22297     ac_header_preproc=yes
22298     ;;
22299   no:yes:* )
22300     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22301 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22302     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22303 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22304     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22305 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22306     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22307 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22308     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22309 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22310     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22311 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22312     (
22313       cat <<\_ASBOX
22314 ## ----------------------------------------- ##
22315 ## Report this to martin.quinson@ens-lyon.fr ##
22316 ## ----------------------------------------- ##
22317 _ASBOX
22318     ) |
22319       sed "s/^/$as_me: WARNING:     /" >&2
22320     ;;
22321 esac
22322 echo "$as_me:$LINENO: checking for $ac_header" >&5
22323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22325   echo $ECHO_N "(cached) $ECHO_C" >&6
22326 else
22327   eval "$as_ac_Header=\$ac_header_preproc"
22328 fi
22329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22330 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22331
22332 fi
22333 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22334   cat >>confdefs.h <<_ACEOF
22335 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22336 _ACEOF
22337
22338 fi
22339
22340 done
22341
22342 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
22343 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
22344 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
22345   echo $ECHO_N "(cached) $ECHO_C" >&6
22346 else
22347   if test "$cross_compiling" = yes; then
22348   ac_cv_func_malloc_0_nonnull=no
22349 else
22350   cat >conftest.$ac_ext <<_ACEOF
22351 /* confdefs.h.  */
22352 _ACEOF
22353 cat confdefs.h >>conftest.$ac_ext
22354 cat >>conftest.$ac_ext <<_ACEOF
22355 /* end confdefs.h.  */
22356 #if STDC_HEADERS || HAVE_STDLIB_H
22357 # include <stdlib.h>
22358 #else
22359 char *malloc ();
22360 #endif
22361
22362 int
22363 main ()
22364 {
22365 exit (malloc (0) ? 0 : 1);
22366   ;
22367   return 0;
22368 }
22369 _ACEOF
22370 rm -f conftest$ac_exeext
22371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22372   (eval $ac_link) 2>&5
22373   ac_status=$?
22374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22375   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22377   (eval $ac_try) 2>&5
22378   ac_status=$?
22379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22380   (exit $ac_status); }; }; then
22381   ac_cv_func_malloc_0_nonnull=yes
22382 else
22383   echo "$as_me: program exited with status $ac_status" >&5
22384 echo "$as_me: failed program was:" >&5
22385 sed 's/^/| /' conftest.$ac_ext >&5
22386
22387 ( exit $ac_status )
22388 ac_cv_func_malloc_0_nonnull=no
22389 fi
22390 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22391 fi
22392 fi
22393 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
22394 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
22395 if test $ac_cv_func_malloc_0_nonnull = yes; then
22396
22397 cat >>confdefs.h <<\_ACEOF
22398 #define HAVE_MALLOC 1
22399 _ACEOF
22400
22401 else
22402   cat >>confdefs.h <<\_ACEOF
22403 #define HAVE_MALLOC 0
22404 _ACEOF
22405
22406    case $LIBOBJS in
22407     "malloc.$ac_objext"   | \
22408   *" malloc.$ac_objext"   | \
22409     "malloc.$ac_objext "* | \
22410   *" malloc.$ac_objext "* ) ;;
22411   *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
22412 esac
22413
22414
22415 cat >>confdefs.h <<\_ACEOF
22416 #define malloc rpl_malloc
22417 _ACEOF
22418
22419 fi
22420
22421
22422
22423 echo "$as_me:$LINENO: checking for working memcmp" >&5
22424 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
22425 if test "${ac_cv_func_memcmp_working+set}" = set; then
22426   echo $ECHO_N "(cached) $ECHO_C" >&6
22427 else
22428   if test "$cross_compiling" = yes; then
22429   ac_cv_func_memcmp_working=no
22430 else
22431   cat >conftest.$ac_ext <<_ACEOF
22432 /* confdefs.h.  */
22433 _ACEOF
22434 cat confdefs.h >>conftest.$ac_ext
22435 cat >>conftest.$ac_ext <<_ACEOF
22436 /* end confdefs.h.  */
22437 $ac_includes_default
22438 int
22439 main ()
22440 {
22441
22442   /* Some versions of memcmp are not 8-bit clean.  */
22443   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
22444   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22445     exit (1);
22446
22447   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22448      or more and with at least one buffer not starting on a 4-byte boundary.
22449      William Lewis provided this test program.   */
22450   {
22451     char foo[21];
22452     char bar[21];
22453     int i;
22454     for (i = 0; i < 4; i++)
22455       {
22456         char *a = foo + i;
22457         char *b = bar + i;
22458         strcpy (a, "--------01111111");
22459         strcpy (b, "--------10000000");
22460         if (memcmp (a, b, 16) >= 0)
22461           exit (1);
22462       }
22463     exit (0);
22464   }
22465
22466   ;
22467   return 0;
22468 }
22469 _ACEOF
22470 rm -f conftest$ac_exeext
22471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22472   (eval $ac_link) 2>&5
22473   ac_status=$?
22474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22475   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22477   (eval $ac_try) 2>&5
22478   ac_status=$?
22479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22480   (exit $ac_status); }; }; then
22481   ac_cv_func_memcmp_working=yes
22482 else
22483   echo "$as_me: program exited with status $ac_status" >&5
22484 echo "$as_me: failed program was:" >&5
22485 sed 's/^/| /' conftest.$ac_ext >&5
22486
22487 ( exit $ac_status )
22488 ac_cv_func_memcmp_working=no
22489 fi
22490 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22491 fi
22492 fi
22493 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
22494 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
22495 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
22496     "memcmp.$ac_objext"   | \
22497   *" memcmp.$ac_objext"   | \
22498     "memcmp.$ac_objext "* | \
22499   *" memcmp.$ac_objext "* ) ;;
22500   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
22501 esac
22502
22503
22504
22505
22506
22507 for ac_func in memset strchr strerror
22508 do
22509 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22510 echo "$as_me:$LINENO: checking for $ac_func" >&5
22511 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22512 if eval "test \"\${$as_ac_var+set}\" = set"; then
22513   echo $ECHO_N "(cached) $ECHO_C" >&6
22514 else
22515   cat >conftest.$ac_ext <<_ACEOF
22516 /* confdefs.h.  */
22517 _ACEOF
22518 cat confdefs.h >>conftest.$ac_ext
22519 cat >>conftest.$ac_ext <<_ACEOF
22520 /* end confdefs.h.  */
22521 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22522    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22523 #define $ac_func innocuous_$ac_func
22524
22525 /* System header to define __stub macros and hopefully few prototypes,
22526     which can conflict with char $ac_func (); below.
22527     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22528     <limits.h> exists even on freestanding compilers.  */
22529
22530 #ifdef __STDC__
22531 # include <limits.h>
22532 #else
22533 # include <assert.h>
22534 #endif
22535
22536 #undef $ac_func
22537
22538 /* Override any gcc2 internal prototype to avoid an error.  */
22539 #ifdef __cplusplus
22540 extern "C"
22541 {
22542 #endif
22543 /* We use char because int might match the return type of a gcc2
22544    builtin and then its argument prototype would still apply.  */
22545 char $ac_func ();
22546 /* The GNU C library defines this for functions which it implements
22547     to always fail with ENOSYS.  Some functions are actually named
22548     something starting with __ and the normal name is an alias.  */
22549 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22550 choke me
22551 #else
22552 char (*f) () = $ac_func;
22553 #endif
22554 #ifdef __cplusplus
22555 }
22556 #endif
22557
22558 int
22559 main ()
22560 {
22561 return f != $ac_func;
22562   ;
22563   return 0;
22564 }
22565 _ACEOF
22566 rm -f conftest.$ac_objext conftest$ac_exeext
22567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22568   (eval $ac_link) 2>conftest.er1
22569   ac_status=$?
22570   grep -v '^ *+' conftest.er1 >conftest.err
22571   rm -f conftest.er1
22572   cat conftest.err >&5
22573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574   (exit $ac_status); } &&
22575          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22577   (eval $ac_try) 2>&5
22578   ac_status=$?
22579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22580   (exit $ac_status); }; } &&
22581          { ac_try='test -s conftest$ac_exeext'
22582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22583   (eval $ac_try) 2>&5
22584   ac_status=$?
22585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22586   (exit $ac_status); }; }; then
22587   eval "$as_ac_var=yes"
22588 else
22589   echo "$as_me: failed program was:" >&5
22590 sed 's/^/| /' conftest.$ac_ext >&5
22591
22592 eval "$as_ac_var=no"
22593 fi
22594 rm -f conftest.err conftest.$ac_objext \
22595       conftest$ac_exeext conftest.$ac_ext
22596 fi
22597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22598 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22599 if test `eval echo '${'$as_ac_var'}'` = yes; then
22600   cat >>confdefs.h <<_ACEOF
22601 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22602 _ACEOF
22603
22604 fi
22605 done
22606
22607
22608 # Can we rebuild the documentation?
22609
22610
22611 # Check whether --with-html-dir or --without-html-dir was given.
22612 if test "${with_html_dir+set}" = set; then
22613   withval="$with_html_dir"
22614
22615 else
22616   with_html_dir='${datadir}/gtk-doc/html'
22617 fi;
22618   HTML_DIR="$with_html_dir"
22619
22620
22621     # Check whether --enable-gtk-doc or --disable-gtk-doc was given.
22622 if test "${enable_gtk_doc+set}" = set; then
22623   enableval="$enable_gtk_doc"
22624
22625 else
22626   enable_gtk_doc=no
22627 fi;
22628
22629   have_gtk_doc=no
22630   if test -z "$PKG_CONFIG"; then
22631     # Extract the first word of "pkg-config", so it can be a program name with args.
22632 set dummy pkg-config; ac_word=$2
22633 echo "$as_me:$LINENO: checking for $ac_word" >&5
22634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22635 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22636   echo $ECHO_N "(cached) $ECHO_C" >&6
22637 else
22638   case $PKG_CONFIG in
22639   [\\/]* | ?:[\\/]*)
22640   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22641   ;;
22642   *)
22643   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22644 for as_dir in $PATH
22645 do
22646   IFS=$as_save_IFS
22647   test -z "$as_dir" && as_dir=.
22648   for ac_exec_ext in '' $ac_executable_extensions; do
22649   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22650     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22651     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22652     break 2
22653   fi
22654 done
22655 done
22656
22657   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22658   ;;
22659 esac
22660 fi
22661 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22662
22663 if test -n "$PKG_CONFIG"; then
22664   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22665 echo "${ECHO_T}$PKG_CONFIG" >&6
22666 else
22667   echo "$as_me:$LINENO: result: no" >&5
22668 echo "${ECHO_T}no" >&6
22669 fi
22670
22671   fi
22672   if test "$PKG_CONFIG" != "no" && $PKG_CONFIG --exists gtk-doc; then
22673     have_gtk_doc=yes
22674   fi
22675
22676
22677   if test x$enable_gtk_doc = xyes; then
22678     if test "$have_gtk_doc" != yes; then
22679       enable_gtk_doc=no
22680     fi
22681   fi
22682
22683
22684
22685 if test x$enable_gtk_doc = xyes; then
22686   ENABLE_GTK_DOC_TRUE=
22687   ENABLE_GTK_DOC_FALSE='#'
22688 else
22689   ENABLE_GTK_DOC_TRUE='#'
22690   ENABLE_GTK_DOC_FALSE=
22691 fi
22692
22693
22694
22695 if test -n "$LIBTOOL"; then
22696   GTK_DOC_USE_LIBTOOL_TRUE=
22697   GTK_DOC_USE_LIBTOOL_FALSE='#'
22698 else
22699   GTK_DOC_USE_LIBTOOL_TRUE='#'
22700   GTK_DOC_USE_LIBTOOL_FALSE=
22701 fi
22702
22703
22704
22705
22706   echo "BEGINING OF ACI-PACKAGE-SAVED(XML)">&5;
22707   # Extract the first word of "xml2-config", so it can be a program name with args.
22708 set dummy xml2-config; ac_word=$2
22709 echo "$as_me:$LINENO: checking for $ac_word" >&5
22710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22711 if test "${ac_cv_path_ACI_CACHE_PROG+set}" = set; then
22712   echo $ECHO_N "(cached) $ECHO_C" >&6
22713 else
22714   case $ACI_CACHE_PROG in
22715   [\\/]* | ?:[\\/]*)
22716   ac_cv_path_ACI_CACHE_PROG="$ACI_CACHE_PROG" # Let the user override the test with a path.
22717   ;;
22718   *)
22719   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22720 for as_dir in $PATH
22721 do
22722   IFS=$as_save_IFS
22723   test -z "$as_dir" && as_dir=.
22724   for ac_exec_ext in '' $ac_executable_extensions; do
22725   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22726     ac_cv_path_ACI_CACHE_PROG="$as_dir/$ac_word$ac_exec_ext"
22727     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22728     break 2
22729   fi
22730 done
22731 done
22732
22733   test -z "$ac_cv_path_ACI_CACHE_PROG" && ac_cv_path_ACI_CACHE_PROG="no"
22734   ;;
22735 esac
22736 fi
22737 ACI_CACHE_PROG=$ac_cv_path_ACI_CACHE_PROG
22738
22739 if test -n "$ACI_CACHE_PROG"; then
22740   echo "$as_me:$LINENO: result: $ACI_CACHE_PROG" >&5
22741 echo "${ECHO_T}$ACI_CACHE_PROG" >&6
22742 else
22743   echo "$as_me:$LINENO: result: no" >&5
22744 echo "${ECHO_T}no" >&6
22745 fi
22746
22747   aci_module_desc_XML="XML library (version XML2)"
22748     aci_pkg_config_XML=xml2-config
22749     aci_packages="$aci_packages XML"
22750   if test x$ACI_CACHE_PROG = xno; then
22751     HAVE_XML=no
22752     CFLAGS_XML=""
22753     LIBS_XML=""
22754     :
22755   else
22756     HAVE_XML=yes
22757     CFLAGS_XML=`$ACI_CACHE_PROG --cflags `
22758     LIBS_XML=`$ACI_CACHE_PROG --libs `
22759     echo >/dev/null
22760   fi
22761           echo "END OF ACI-PACKAGE-SAVED(XML)">&5;
22762
22763
22764
22765
22766
22767
22768
22769
22770
22771
22772         aci_nameok=`echo SimGrid|sed 'y/-/./'`
22773         if test "xSimGrid" != "x$aci_nameok" ; then
22774           { { echo "$as_me:$LINENO: error: ACI error: Please no '-' in package name. (ie, SimGrid is not a valid name)" >&5
22775 echo "$as_me: error: ACI error: Please no '-' in package name. (ie, SimGrid is not a valid name)" >&2;}
22776    { (exit 1); exit 1; }; }
22777         fi
22778         echo "BEGINING OF ACI-PACKAGE(SimGrid)">&5;
22779         aci_module_desc_SimGrid="the SimGrid simulator"
22780                 aci_packages="$aci_packages SimGrid"
22781
22782
22783 # Check whether --with-SimGrid or --without-SimGrid was given.
22784 if test "${with_SimGrid+set}" = set; then
22785   withval="$with_SimGrid"
22786   with_SimGrid=$withval
22787            good=yes
22788            if test "$withval" = yes ; then good=no; fi
22789            if test "$withval" = no ; then good=no; fi
22790            if test $good = no ; then
22791              { { 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
22792 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;}
22793    { (exit 1); exit 1; }; }
22794            fi
22795            aci_pkg_prefix_SimGrid="$withval"
22796            CFLAGS_SimGrid="-I$withval/include $CFLAGS_SimGrid"
22797            LIBS_SimGrid="-L$withval/lib $LIBS_SimGrid"
22798
22799 fi;
22800
22801
22802 # Check whether --with-SimGrid-includes or --without-SimGrid-includes was given.
22803 if test "${with_SimGrid_includes+set}" = set; then
22804   withval="$with_SimGrid_includes"
22805   CFLAGS_SimGrid="-I$withval $CFLAGS_SimGrid"
22806            aci_pkg_inc_SimGrid="$withval"
22807
22808 fi;
22809
22810
22811 # Check whether --with-SimGrid-libraries or --without-SimGrid-libraries was given.
22812 if test "${with_SimGrid_libraries+set}" = set; then
22813   withval="$with_SimGrid_libraries"
22814   LIBS_SimGrid="-L$withval $LIBS_SimGrid"
22815              aci_pkg_lib_SimGrid="$withval"
22816 fi;
22817
22818
22819 # Check whether --with-SimGrid-extra or --without-SimGrid-extra was given.
22820 if test "${with_SimGrid_extra+set}" = set; then
22821   withval="$with_SimGrid_extra"
22822   LIBS_SimGrid=`echo $withval|sed 's/!/ /g'`" $LIBS_SimGrid"
22823              aci_pkg_extra_SimGrid="$withval"
22824 fi;
22825
22826
22827                                 OLD_LDFLAGS=$LDFLAGS
22828         OLD_CFLAGS=$CFLAGS
22829         OLD_CPPFLAGS=$CPPFLAGS
22830
22831                 i=`echo -lsimgrid|wc -l`
22832         if test $i != 1 && test $i != 0 ; then
22833           { { echo "$as_me:$LINENO: error: Badly formed args for function ACI-PACKAGE.
22834             please no newline and no tab." >&5
22835 echo "$as_me: error: Badly formed args for function ACI-PACKAGE.
22836             please no newline and no tab." >&2;}
22837    { (exit 1); exit 1; }; }
22838         fi
22839
22840         ac_func_search_save_LIBS="$LIBS"
22841         ac_func_search_save_this_LIBS="$LIBS_SimGrid"
22842         aci_found="no"
22843         echo "----------------------------------------" >&5
22844         echo "$as_me:$LINENO: checking for SimGrid. Can I access SG_init without new libs" >&5
22845 echo $ECHO_N "checking for SimGrid. Can I access SG_init without new libs... $ECHO_C" >&6
22846         cat >conftest.$ac_ext <<_ACEOF
22847 /* confdefs.h.  */
22848 _ACEOF
22849 cat confdefs.h >>conftest.$ac_ext
22850 cat >>conftest.$ac_ext <<_ACEOF
22851 /* end confdefs.h.  */
22852
22853 /* Override any gcc2 internal prototype to avoid an error.  */
22854 #ifdef __cplusplus
22855 extern "C"
22856 #endif
22857 /* We use char because int might match the return type of a gcc2
22858    builtin and then its argument prototype would still apply.  */
22859 char SG_init ();
22860 int
22861 main ()
22862 {
22863 SG_init ();
22864   ;
22865   return 0;
22866 }
22867 _ACEOF
22868 rm -f conftest.$ac_objext conftest$ac_exeext
22869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22870   (eval $ac_link) 2>conftest.er1
22871   ac_status=$?
22872   grep -v '^ *+' conftest.er1 >conftest.err
22873   rm -f conftest.er1
22874   cat conftest.err >&5
22875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22876   (exit $ac_status); } &&
22877          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22879   (eval $ac_try) 2>&5
22880   ac_status=$?
22881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22882   (exit $ac_status); }; } &&
22883          { ac_try='test -s conftest$ac_exeext'
22884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22885   (eval $ac_try) 2>&5
22886   ac_status=$?
22887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22888   (exit $ac_status); }; }; then
22889   echo "$as_me:$LINENO: result: yes" >&5
22890 echo "${ECHO_T}yes" >&6 aci_found="yes"
22891 else
22892   echo "$as_me: failed program was:" >&5
22893 sed 's/^/| /' conftest.$ac_ext >&5
22894
22895 echo "$as_me:$LINENO: result: no" >&5
22896 echo "${ECHO_T}no" >&6
22897 fi
22898 rm -f conftest.err conftest.$ac_objext \
22899       conftest$ac_exeext conftest.$ac_ext
22900         if test "$aci_found" = "no"; then
22901           if test -n "$LIBS_SimGrid" ; then
22902             LIBS="$LIBS_SimGrid"
22903             echo "----------------------------------------" >&5
22904             echo "$as_me:$LINENO: checking for SimGrid. Can I access SG_init the specified extra args" >&5
22905 echo $ECHO_N "checking for SimGrid. Can I access SG_init the specified extra args... $ECHO_C" >&6
22906             cat >conftest.$ac_ext <<_ACEOF
22907 /* confdefs.h.  */
22908 _ACEOF
22909 cat confdefs.h >>conftest.$ac_ext
22910 cat >>conftest.$ac_ext <<_ACEOF
22911 /* end confdefs.h.  */
22912
22913 /* Override any gcc2 internal prototype to avoid an error.  */
22914 #ifdef __cplusplus
22915 extern "C"
22916 #endif
22917 /* We use char because int might match the return type of a gcc2
22918    builtin and then its argument prototype would still apply.  */
22919 char SG_init ();
22920 int
22921 main ()
22922 {
22923 SG_init ();
22924   ;
22925   return 0;
22926 }
22927 _ACEOF
22928 rm -f conftest.$ac_objext conftest$ac_exeext
22929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22930   (eval $ac_link) 2>conftest.er1
22931   ac_status=$?
22932   grep -v '^ *+' conftest.er1 >conftest.err
22933   rm -f conftest.er1
22934   cat conftest.err >&5
22935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22936   (exit $ac_status); } &&
22937          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22939   (eval $ac_try) 2>&5
22940   ac_status=$?
22941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22942   (exit $ac_status); }; } &&
22943          { ac_try='test -s conftest$ac_exeext'
22944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22945   (eval $ac_try) 2>&5
22946   ac_status=$?
22947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22948   (exit $ac_status); }; }; then
22949   aci_found="yes"
22950 else
22951   echo "$as_me: failed program was:" >&5
22952 sed 's/^/| /' conftest.$ac_ext >&5
22953
22954 aci_found="no"
22955 fi
22956 rm -f conftest.err conftest.$ac_objext \
22957       conftest$ac_exeext conftest.$ac_ext
22958             echo "$as_me:$LINENO: result: $aci_found" >&5
22959 echo "${ECHO_T}$aci_found" >&6
22960           fi
22961         fi
22962         for i in -lsimgrid
22963         do
22964           if test "x$aci_found" = "xno"; then
22965             LIBS_SimGrid=`echo "$i $ac_func_search_save_this_LIBS"|sed 's/!/ /g'`
22966             LIBS="$LIBS_SimGrid $ac_func_search_save_LIBS"
22967             echo "----------------------------------------" >&5
22968             echo "$as_me:$LINENO: checking for SimGrid. Can I access SG_init with $LIBS_SimGrid" >&5
22969 echo $ECHO_N "checking for SimGrid. Can I access SG_init with $LIBS_SimGrid... $ECHO_C" >&6
22970             cat >conftest.$ac_ext <<_ACEOF
22971 /* confdefs.h.  */
22972 _ACEOF
22973 cat confdefs.h >>conftest.$ac_ext
22974 cat >>conftest.$ac_ext <<_ACEOF
22975 /* end confdefs.h.  */
22976
22977 /* Override any gcc2 internal prototype to avoid an error.  */
22978 #ifdef __cplusplus
22979 extern "C"
22980 #endif
22981 /* We use char because int might match the return type of a gcc2
22982    builtin and then its argument prototype would still apply.  */
22983 char SG_init ();
22984 int
22985 main ()
22986 {
22987 SG_init ();
22988   ;
22989   return 0;
22990 }
22991 _ACEOF
22992 rm -f conftest.$ac_objext conftest$ac_exeext
22993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22994   (eval $ac_link) 2>conftest.er1
22995   ac_status=$?
22996   grep -v '^ *+' conftest.er1 >conftest.err
22997   rm -f conftest.er1
22998   cat conftest.err >&5
22999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23000   (exit $ac_status); } &&
23001          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23003   (eval $ac_try) 2>&5
23004   ac_status=$?
23005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23006   (exit $ac_status); }; } &&
23007          { ac_try='test -s conftest$ac_exeext'
23008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23009   (eval $ac_try) 2>&5
23010   ac_status=$?
23011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23012   (exit $ac_status); }; }; then
23013   aci_found="yes"
23014 else
23015   echo "$as_me: failed program was:" >&5
23016 sed 's/^/| /' conftest.$ac_ext >&5
23017
23018 aci_found="no"
23019 fi
23020 rm -f conftest.err conftest.$ac_objext \
23021       conftest$ac_exeext conftest.$ac_ext
23022             echo "$as_me:$LINENO: result: $aci_found" >&5
23023 echo "${ECHO_T}$aci_found" >&6
23024           fi
23025         done
23026         LIBS="$ac_func_search_save_LIBS"
23027
23028                                 if test "x$aci_found" = "xyes" && test "x"simgrid.h != "x" ; then
23029           CPPFLAGS="$CPPFLAGS $CFLAGS_SimGrid"
23030           echo "CPPFLAGS=$CPPFLAGS">&5;
23031           if test "${ac_cv_header_simgrid_h+set}" = set; then
23032   echo "$as_me:$LINENO: checking for simgrid.h" >&5
23033 echo $ECHO_N "checking for simgrid.h... $ECHO_C" >&6
23034 if test "${ac_cv_header_simgrid_h+set}" = set; then
23035   echo $ECHO_N "(cached) $ECHO_C" >&6
23036 fi
23037 echo "$as_me:$LINENO: result: $ac_cv_header_simgrid_h" >&5
23038 echo "${ECHO_T}$ac_cv_header_simgrid_h" >&6
23039 else
23040   # Is the header compilable?
23041 echo "$as_me:$LINENO: checking simgrid.h usability" >&5
23042 echo $ECHO_N "checking simgrid.h usability... $ECHO_C" >&6
23043 cat >conftest.$ac_ext <<_ACEOF
23044 /* confdefs.h.  */
23045 _ACEOF
23046 cat confdefs.h >>conftest.$ac_ext
23047 cat >>conftest.$ac_ext <<_ACEOF
23048 /* end confdefs.h.  */
23049 $ac_includes_default
23050 #include <simgrid.h>
23051 _ACEOF
23052 rm -f conftest.$ac_objext
23053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23054   (eval $ac_compile) 2>conftest.er1
23055   ac_status=$?
23056   grep -v '^ *+' conftest.er1 >conftest.err
23057   rm -f conftest.er1
23058   cat conftest.err >&5
23059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23060   (exit $ac_status); } &&
23061          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23063   (eval $ac_try) 2>&5
23064   ac_status=$?
23065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23066   (exit $ac_status); }; } &&
23067          { ac_try='test -s conftest.$ac_objext'
23068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23069   (eval $ac_try) 2>&5
23070   ac_status=$?
23071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23072   (exit $ac_status); }; }; then
23073   ac_header_compiler=yes
23074 else
23075   echo "$as_me: failed program was:" >&5
23076 sed 's/^/| /' conftest.$ac_ext >&5
23077
23078 ac_header_compiler=no
23079 fi
23080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23081 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23082 echo "${ECHO_T}$ac_header_compiler" >&6
23083
23084 # Is the header present?
23085 echo "$as_me:$LINENO: checking simgrid.h presence" >&5
23086 echo $ECHO_N "checking simgrid.h presence... $ECHO_C" >&6
23087 cat >conftest.$ac_ext <<_ACEOF
23088 /* confdefs.h.  */
23089 _ACEOF
23090 cat confdefs.h >>conftest.$ac_ext
23091 cat >>conftest.$ac_ext <<_ACEOF
23092 /* end confdefs.h.  */
23093 #include <simgrid.h>
23094 _ACEOF
23095 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23096   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23097   ac_status=$?
23098   grep -v '^ *+' conftest.er1 >conftest.err
23099   rm -f conftest.er1
23100   cat conftest.err >&5
23101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23102   (exit $ac_status); } >/dev/null; then
23103   if test -s conftest.err; then
23104     ac_cpp_err=$ac_c_preproc_warn_flag
23105     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23106   else
23107     ac_cpp_err=
23108   fi
23109 else
23110   ac_cpp_err=yes
23111 fi
23112 if test -z "$ac_cpp_err"; then
23113   ac_header_preproc=yes
23114 else
23115   echo "$as_me: failed program was:" >&5
23116 sed 's/^/| /' conftest.$ac_ext >&5
23117
23118   ac_header_preproc=no
23119 fi
23120 rm -f conftest.err conftest.$ac_ext
23121 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23122 echo "${ECHO_T}$ac_header_preproc" >&6
23123
23124 # So?  What about this header?
23125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23126   yes:no: )
23127     { echo "$as_me:$LINENO: WARNING: simgrid.h: accepted by the compiler, rejected by the preprocessor!" >&5
23128 echo "$as_me: WARNING: simgrid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23129     { echo "$as_me:$LINENO: WARNING: simgrid.h: proceeding with the compiler's result" >&5
23130 echo "$as_me: WARNING: simgrid.h: proceeding with the compiler's result" >&2;}
23131     ac_header_preproc=yes
23132     ;;
23133   no:yes:* )
23134     { echo "$as_me:$LINENO: WARNING: simgrid.h: present but cannot be compiled" >&5
23135 echo "$as_me: WARNING: simgrid.h: present but cannot be compiled" >&2;}
23136     { echo "$as_me:$LINENO: WARNING: simgrid.h:     check for missing prerequisite headers?" >&5
23137 echo "$as_me: WARNING: simgrid.h:     check for missing prerequisite headers?" >&2;}
23138     { echo "$as_me:$LINENO: WARNING: simgrid.h: see the Autoconf documentation" >&5
23139 echo "$as_me: WARNING: simgrid.h: see the Autoconf documentation" >&2;}
23140     { echo "$as_me:$LINENO: WARNING: simgrid.h:     section \"Present But Cannot Be Compiled\"" >&5
23141 echo "$as_me: WARNING: simgrid.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23142     { echo "$as_me:$LINENO: WARNING: simgrid.h: proceeding with the preprocessor's result" >&5
23143 echo "$as_me: WARNING: simgrid.h: proceeding with the preprocessor's result" >&2;}
23144     { echo "$as_me:$LINENO: WARNING: simgrid.h: in the future, the compiler will take precedence" >&5
23145 echo "$as_me: WARNING: simgrid.h: in the future, the compiler will take precedence" >&2;}
23146     (
23147       cat <<\_ASBOX
23148 ## ----------------------------------------- ##
23149 ## Report this to martin.quinson@ens-lyon.fr ##
23150 ## ----------------------------------------- ##
23151 _ASBOX
23152     ) |
23153       sed "s/^/$as_me: WARNING:     /" >&2
23154     ;;
23155 esac
23156 echo "$as_me:$LINENO: checking for simgrid.h" >&5
23157 echo $ECHO_N "checking for simgrid.h... $ECHO_C" >&6
23158 if test "${ac_cv_header_simgrid_h+set}" = set; then
23159   echo $ECHO_N "(cached) $ECHO_C" >&6
23160 else
23161   ac_cv_header_simgrid_h=$ac_header_preproc
23162 fi
23163 echo "$as_me:$LINENO: result: $ac_cv_header_simgrid_h" >&5
23164 echo "${ECHO_T}$ac_cv_header_simgrid_h" >&6
23165
23166 fi
23167 if test $ac_cv_header_simgrid_h = yes; then
23168   good=yes
23169 else
23170   good=no
23171 fi
23172
23173
23174         fi
23175         if test "x$aci_found" = "xno" ; then
23176                                    { { 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
23177 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;}
23178    { (exit 1); exit 1; }; }
23179         else
23180                         HAVE_SimGrid="yes"
23181                 echo >/dev/null
23182         fi
23183         if test "x$HAVE_SimGrid" != "xyes" ; then
23184           CFLAGS_SimGrid=""
23185           LIBS_SimGrid=""
23186         fi
23187
23188
23189
23190
23191         echo "END OF ACI-PACKAGE(SimGrid)">&5;
23192                 LDFLAGS=$OLDLDFLAGS
23193         CPPFLAGS=$OLDCPPFLAGS
23194         CFLAGS=$OLDCFLAGS
23195
23196
23197
23198 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
23199 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
23200     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
23201 if test "${enable_maintainer_mode+set}" = set; then
23202   enableval="$enable_maintainer_mode"
23203   USE_MAINTAINER_MODE=$enableval
23204 else
23205   USE_MAINTAINER_MODE=no
23206 fi;
23207   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
23208 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
23209
23210
23211 if test $USE_MAINTAINER_MODE = yes; then
23212   MAINTAINER_MODE_TRUE=
23213   MAINTAINER_MODE_FALSE='#'
23214 else
23215   MAINTAINER_MODE_TRUE='#'
23216   MAINTAINER_MODE_FALSE=
23217 fi
23218
23219   MAINT=$MAINTAINER_MODE_TRUE
23220
23221
23222 if test x$USE_MAINTAINER_MODE = xyes
23223 then
23224
23225   # Check whether --enable-compile-warnings or --disable-compile-warnings was given.
23226 if test "${enable_compile_warnings+set}" = set; then
23227   enableval="$enable_compile_warnings"
23228
23229 else
23230   enable_compile_warnings=yes
23231 fi;
23232
23233   echo "$as_me:$LINENO: checking what warning flags to pass to the C compiler" >&5
23234 echo $ECHO_N "checking what warning flags to pass to the C compiler... $ECHO_C" >&6
23235   warnCFLAGS=
23236   if test "x$GCC" != xyes; then
23237     enable_compile_warnings=no
23238   fi
23239
23240   if test "x$enable_compile_warnings" != "xno"; then
23241     if test "x$GCC" = "xyes"; then
23242       case " $CFLAGS " in
23243       *-Wall*) ;;
23244       *) warnCFLAGS="-g -Wall -Wunused" ;;
23245       esac
23246
23247       ## -W is not all that useful.  And it cannot be controlled
23248       ## with individual -Wno-xxx flags, unlike -Wall
23249       if test "x$enable_compile_warnings" = "xyes"; then
23250         warnCFLAGS="$warnCFLAGS  -Wmissing-prototypes -Wmissing-declarations\
23251                     -finline-functions  -Wshadow -Wpointer-arith \
23252                     -Wwrite-strings -Wno-unused-function -Werror"
23253       fi
23254     fi
23255   fi
23256   echo "$as_me:$LINENO: result: $warnCFLAGS" >&5
23257 echo "${ECHO_T}$warnCFLAGS" >&6
23258
23259   # Check whether --enable-iso-c or --disable-iso-c was given.
23260 if test "${enable_iso_c+set}" = set; then
23261   enableval="$enable_iso_c"
23262
23263 else
23264   enable_iso_c=no
23265 fi;
23266
23267   echo "$as_me:$LINENO: checking what language compliance flags to pass to the C compiler" >&5
23268 echo $ECHO_N "checking what language compliance flags to pass to the C compiler... $ECHO_C" >&6
23269   complCFLAGS=
23270   if test "x$enable_iso_c" != "xno"; then
23271     if test "x$GCC" = "xyes"; then
23272       case " $CFLAGS " in
23273       *-ansi*) ;;
23274       *) complCFLAGS="$complCFLAGS -ansi" ;;
23275       esac
23276
23277       case " $CFLAGS " in
23278       *-pedantic*) ;;
23279       *) complCFLAGS="$complCFLAGS -pedantic" ;;
23280       esac
23281     fi
23282   fi
23283   echo "$as_me:$LINENO: result: $complCFLAGS" >&5
23284 echo "${ECHO_T}$complCFLAGS" >&6
23285   if test "x$cflags_set" != "xyes"; then
23286     CFLAGS="$CFLAGS $warnCFLAGS $complCFLAGS"
23287     cflags_set=yes
23288
23289   fi
23290
23291 fi
23292
23293
23294
23295
23296
23297 # Extract the first word of "bash", so it can be a program name with args.
23298 set dummy bash; ac_word=$2
23299 echo "$as_me:$LINENO: checking for $ac_word" >&5
23300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23301 if test "${ac_cv_prog_BASH+set}" = set; then
23302   echo $ECHO_N "(cached) $ECHO_C" >&6
23303 else
23304   if test -n "$BASH"; then
23305   ac_cv_prog_BASH="$BASH" # Let the user override the test.
23306 else
23307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23308 for as_dir in $PATH
23309 do
23310   IFS=$as_save_IFS
23311   test -z "$as_dir" && as_dir=.
23312   for ac_exec_ext in '' $ac_executable_extensions; do
23313   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23314     ac_cv_prog_BASH="`which bash`"
23315     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23316     break 2
23317   fi
23318 done
23319 done
23320
23321   test -z "$ac_cv_prog_BASH" && ac_cv_prog_BASH="/bin/sh"
23322 fi
23323 fi
23324 BASH=$ac_cv_prog_BASH
23325 if test -n "$BASH"; then
23326   echo "$as_me:$LINENO: result: $BASH" >&5
23327 echo "${ECHO_T}$BASH" >&6
23328 else
23329   echo "$as_me:$LINENO: result: no" >&5
23330 echo "${ECHO_T}no" >&6
23331 fi
23332
23333 WARNING="This file is generated, do not edit"
23334
23335
23336                                                                                                                                                       ac_config_files="$ac_config_files Makefile src/Makefile src/include/Makefile src/include/modules/Makefile src/base/Makefile src/base/Tests/Makefile src/base/Tests/gs_example src/base/Tests/run_tests src/modules/Makefile src/examples/Makefile src/examples/ping/Makefile src/examples/bandwidth/Makefile src/examples/saturate/Makefile src/examples/alnem/Makefile doc/Makefile"
23337
23338
23339 cat >confcache <<\_ACEOF
23340 # This file is a shell script that caches the results of configure
23341 # tests run on this system so they can be shared between configure
23342 # scripts and configure runs, see configure's option --config-cache.
23343 # It is not useful on other systems.  If it contains results you don't
23344 # want to keep, you may remove or edit it.
23345 #
23346 # config.status only pays attention to the cache file if you give it
23347 # the --recheck option to rerun configure.
23348 #
23349 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23350 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23351 # following values.
23352
23353 _ACEOF
23354
23355 # The following way of writing the cache mishandles newlines in values,
23356 # but we know of no workaround that is simple, portable, and efficient.
23357 # So, don't put newlines in cache variables' values.
23358 # Ultrix sh set writes to stderr and can't be redirected directly,
23359 # and sets the high bit in the cache file unless we assign to the vars.
23360 {
23361   (set) 2>&1 |
23362     case `(ac_space=' '; set | grep ac_space) 2>&1` in
23363     *ac_space=\ *)
23364       # `set' does not quote correctly, so add quotes (double-quote
23365       # substitution turns \\\\ into \\, and sed turns \\ into \).
23366       sed -n \
23367         "s/'/'\\\\''/g;
23368           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23369       ;;
23370     *)
23371       # `set' quotes correctly as required by POSIX, so do not add quotes.
23372       sed -n \
23373         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23374       ;;
23375     esac;
23376 } |
23377   sed '
23378      t clear
23379      : clear
23380      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23381      t end
23382      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23383      : end' >>confcache
23384 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23385   if test -w $cache_file; then
23386     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23387     cat confcache >$cache_file
23388   else
23389     echo "not updating unwritable cache $cache_file"
23390   fi
23391 fi
23392 rm -f confcache
23393
23394 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23395 # Let make expand exec_prefix.
23396 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23397
23398 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23399 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23400 # trailing colons and then remove the whole line if VPATH becomes empty
23401 # (actually we leave an empty line to preserve line numbers).
23402 if test "x$srcdir" = x.; then
23403   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23404 s/:*\$(srcdir):*/:/;
23405 s/:*\${srcdir}:*/:/;
23406 s/:*@srcdir@:*/:/;
23407 s/^\([^=]*=[     ]*\):*/\1/;
23408 s/:*$//;
23409 s/^[^=]*=[       ]*$//;
23410 }'
23411 fi
23412
23413 DEFS=-DHAVE_CONFIG_H
23414
23415 ac_libobjs=
23416 ac_ltlibobjs=
23417 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23418   # 1. Remove the extension, and $U if already installed.
23419   ac_i=`echo "$ac_i" |
23420          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23421   # 2. Add them.
23422   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23423   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23424 done
23425 LIBOBJS=$ac_libobjs
23426
23427 LTLIBOBJS=$ac_ltlibobjs
23428
23429
23430 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23431   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23432 Usually this means the macro was only invoked conditionally." >&5
23433 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23434 Usually this means the macro was only invoked conditionally." >&2;}
23435    { (exit 1); exit 1; }; }
23436 fi
23437 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23438   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23439 Usually this means the macro was only invoked conditionally." >&5
23440 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23441 Usually this means the macro was only invoked conditionally." >&2;}
23442    { (exit 1); exit 1; }; }
23443 fi
23444 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23445   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23446 Usually this means the macro was only invoked conditionally." >&5
23447 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23448 Usually this means the macro was only invoked conditionally." >&2;}
23449    { (exit 1); exit 1; }; }
23450 fi
23451 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23452   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23453 Usually this means the macro was only invoked conditionally." >&5
23454 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23455 Usually this means the macro was only invoked conditionally." >&2;}
23456    { (exit 1); exit 1; }; }
23457 fi
23458 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
23459   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK_DOC\" was never defined.
23460 Usually this means the macro was only invoked conditionally." >&5
23461 echo "$as_me: error: conditional \"ENABLE_GTK_DOC\" was never defined.
23462 Usually this means the macro was only invoked conditionally." >&2;}
23463    { (exit 1); exit 1; }; }
23464 fi
23465 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
23466   { { echo "$as_me:$LINENO: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
23467 Usually this means the macro was only invoked conditionally." >&5
23468 echo "$as_me: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
23469 Usually this means the macro was only invoked conditionally." >&2;}
23470    { (exit 1); exit 1; }; }
23471 fi
23472 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23473   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23474 Usually this means the macro was only invoked conditionally." >&5
23475 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23476 Usually this means the macro was only invoked conditionally." >&2;}
23477    { (exit 1); exit 1; }; }
23478 fi
23479
23480 : ${CONFIG_STATUS=./config.status}
23481 ac_clean_files_save=$ac_clean_files
23482 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23483 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23484 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23485 cat >$CONFIG_STATUS <<_ACEOF
23486 #! $SHELL
23487 # Generated by $as_me.
23488 # Run this file to recreate the current configuration.
23489 # Compiler output produced by configure, useful for debugging
23490 # configure, is in config.log if it exists.
23491
23492 debug=false
23493 ac_cs_recheck=false
23494 ac_cs_silent=false
23495 SHELL=\${CONFIG_SHELL-$SHELL}
23496 _ACEOF
23497
23498 cat >>$CONFIG_STATUS <<\_ACEOF
23499 ## --------------------- ##
23500 ## M4sh Initialization.  ##
23501 ## --------------------- ##
23502
23503 # Be Bourne compatible
23504 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23505   emulate sh
23506   NULLCMD=:
23507   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23508   # is contrary to our usage.  Disable this feature.
23509   alias -g '${1+"$@"}'='"$@"'
23510 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23511   set -o posix
23512 fi
23513 DUALCASE=1; export DUALCASE # for MKS sh
23514
23515 # Support unset when possible.
23516 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23517   as_unset=unset
23518 else
23519   as_unset=false
23520 fi
23521
23522
23523 # Work around bugs in pre-3.0 UWIN ksh.
23524 $as_unset ENV MAIL MAILPATH
23525 PS1='$ '
23526 PS2='> '
23527 PS4='+ '
23528
23529 # NLS nuisances.
23530 for as_var in \
23531   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23532   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23533   LC_TELEPHONE LC_TIME
23534 do
23535   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23536     eval $as_var=C; export $as_var
23537   else
23538     $as_unset $as_var
23539   fi
23540 done
23541
23542 # Required to use basename.
23543 if expr a : '\(a\)' >/dev/null 2>&1; then
23544   as_expr=expr
23545 else
23546   as_expr=false
23547 fi
23548
23549 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23550   as_basename=basename
23551 else
23552   as_basename=false
23553 fi
23554
23555
23556 # Name of the executable.
23557 as_me=`$as_basename "$0" ||
23558 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23559          X"$0" : 'X\(//\)$' \| \
23560          X"$0" : 'X\(/\)$' \| \
23561          .     : '\(.\)' 2>/dev/null ||
23562 echo X/"$0" |
23563     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23564           /^X\/\(\/\/\)$/{ s//\1/; q; }
23565           /^X\/\(\/\).*/{ s//\1/; q; }
23566           s/.*/./; q'`
23567
23568
23569 # PATH needs CR, and LINENO needs CR and PATH.
23570 # Avoid depending upon Character Ranges.
23571 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23572 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23573 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23574 as_cr_digits='0123456789'
23575 as_cr_alnum=$as_cr_Letters$as_cr_digits
23576
23577 # The user is always right.
23578 if test "${PATH_SEPARATOR+set}" != set; then
23579   echo "#! /bin/sh" >conf$$.sh
23580   echo  "exit 0"   >>conf$$.sh
23581   chmod +x conf$$.sh
23582   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23583     PATH_SEPARATOR=';'
23584   else
23585     PATH_SEPARATOR=:
23586   fi
23587   rm -f conf$$.sh
23588 fi
23589
23590
23591   as_lineno_1=$LINENO
23592   as_lineno_2=$LINENO
23593   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23594   test "x$as_lineno_1" != "x$as_lineno_2" &&
23595   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23596   # Find who we are.  Look in the path if we contain no path at all
23597   # relative or not.
23598   case $0 in
23599     *[\\/]* ) as_myself=$0 ;;
23600     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23601 for as_dir in $PATH
23602 do
23603   IFS=$as_save_IFS
23604   test -z "$as_dir" && as_dir=.
23605   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23606 done
23607
23608        ;;
23609   esac
23610   # We did not find ourselves, most probably we were run as `sh COMMAND'
23611   # in which case we are not to be found in the path.
23612   if test "x$as_myself" = x; then
23613     as_myself=$0
23614   fi
23615   if test ! -f "$as_myself"; then
23616     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23617 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23618    { (exit 1); exit 1; }; }
23619   fi
23620   case $CONFIG_SHELL in
23621   '')
23622     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23623 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23624 do
23625   IFS=$as_save_IFS
23626   test -z "$as_dir" && as_dir=.
23627   for as_base in sh bash ksh sh5; do
23628          case $as_dir in
23629          /*)
23630            if ("$as_dir/$as_base" -c '
23631   as_lineno_1=$LINENO
23632   as_lineno_2=$LINENO
23633   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23634   test "x$as_lineno_1" != "x$as_lineno_2" &&
23635   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23636              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23637              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23638              CONFIG_SHELL=$as_dir/$as_base
23639              export CONFIG_SHELL
23640              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23641            fi;;
23642          esac
23643        done
23644 done
23645 ;;
23646   esac
23647
23648   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23649   # uniformly replaced by the line number.  The first 'sed' inserts a
23650   # line-number line before each line; the second 'sed' does the real
23651   # work.  The second script uses 'N' to pair each line-number line
23652   # with the numbered line, and appends trailing '-' during
23653   # substitution so that $LINENO is not a special case at line end.
23654   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23655   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23656   sed '=' <$as_myself |
23657     sed '
23658       N
23659       s,$,-,
23660       : loop
23661       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23662       t loop
23663       s,-$,,
23664       s,^['$as_cr_digits']*\n,,
23665     ' >$as_me.lineno &&
23666   chmod +x $as_me.lineno ||
23667     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23668 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23669    { (exit 1); exit 1; }; }
23670
23671   # Don't try to exec as it changes $[0], causing all sort of problems
23672   # (the dirname of $[0] is not the place where we might find the
23673   # original and so on.  Autoconf is especially sensible to this).
23674   . ./$as_me.lineno
23675   # Exit status is that of the last command.
23676   exit
23677 }
23678
23679
23680 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23681   *c*,-n*) ECHO_N= ECHO_C='
23682 ' ECHO_T='      ' ;;
23683   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23684   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23685 esac
23686
23687 if expr a : '\(a\)' >/dev/null 2>&1; then
23688   as_expr=expr
23689 else
23690   as_expr=false
23691 fi
23692
23693 rm -f conf$$ conf$$.exe conf$$.file
23694 echo >conf$$.file
23695 if ln -s conf$$.file conf$$ 2>/dev/null; then
23696   # We could just check for DJGPP; but this test a) works b) is more generic
23697   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23698   if test -f conf$$.exe; then
23699     # Don't use ln at all; we don't have any links
23700     as_ln_s='cp -p'
23701   else
23702     as_ln_s='ln -s'
23703   fi
23704 elif ln conf$$.file conf$$ 2>/dev/null; then
23705   as_ln_s=ln
23706 else
23707   as_ln_s='cp -p'
23708 fi
23709 rm -f conf$$ conf$$.exe conf$$.file
23710
23711 if mkdir -p . 2>/dev/null; then
23712   as_mkdir_p=:
23713 else
23714   test -d ./-p && rmdir ./-p
23715   as_mkdir_p=false
23716 fi
23717
23718 as_executable_p="test -f"
23719
23720 # Sed expression to map a string onto a valid CPP name.
23721 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23722
23723 # Sed expression to map a string onto a valid variable name.
23724 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23725
23726
23727 # IFS
23728 # We need space, tab and new line, in precisely that order.
23729 as_nl='
23730 '
23731 IFS="   $as_nl"
23732
23733 # CDPATH.
23734 $as_unset CDPATH
23735
23736 exec 6>&1
23737
23738 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23739 # report actual input values of CONFIG_FILES etc. instead of their
23740 # values after options handling.  Logging --version etc. is OK.
23741 exec 5>>config.log
23742 {
23743   echo
23744   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23745 ## Running $as_me. ##
23746 _ASBOX
23747 } >&5
23748 cat >&5 <<_CSEOF
23749
23750 This file was extended by GRAS $as_me 0.0.040205, which was
23751 generated by GNU Autoconf 2.59.  Invocation command line was
23752
23753   CONFIG_FILES    = $CONFIG_FILES
23754   CONFIG_HEADERS  = $CONFIG_HEADERS
23755   CONFIG_LINKS    = $CONFIG_LINKS
23756   CONFIG_COMMANDS = $CONFIG_COMMANDS
23757   $ $0 $@
23758
23759 _CSEOF
23760 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23761 echo >&5
23762 _ACEOF
23763
23764 # Files that config.status was made for.
23765 if test -n "$ac_config_files"; then
23766   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23767 fi
23768
23769 if test -n "$ac_config_headers"; then
23770   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23771 fi
23772
23773 if test -n "$ac_config_links"; then
23774   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23775 fi
23776
23777 if test -n "$ac_config_commands"; then
23778   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23779 fi
23780
23781 cat >>$CONFIG_STATUS <<\_ACEOF
23782
23783 ac_cs_usage="\
23784 \`$as_me' instantiates files from templates according to the
23785 current configuration.
23786
23787 Usage: $0 [OPTIONS] [FILE]...
23788
23789   -h, --help       print this help, then exit
23790   -V, --version    print version number, then exit
23791   -q, --quiet      do not print progress messages
23792   -d, --debug      don't remove temporary files
23793       --recheck    update $as_me by reconfiguring in the same conditions
23794   --file=FILE[:TEMPLATE]
23795                    instantiate the configuration file FILE
23796   --header=FILE[:TEMPLATE]
23797                    instantiate the configuration header FILE
23798
23799 Configuration files:
23800 $config_files
23801
23802 Configuration headers:
23803 $config_headers
23804
23805 Configuration commands:
23806 $config_commands
23807
23808 Report bugs to <bug-autoconf@gnu.org>."
23809 _ACEOF
23810
23811 cat >>$CONFIG_STATUS <<_ACEOF
23812 ac_cs_version="\\
23813 GRAS config.status 0.0.040205
23814 configured by $0, generated by GNU Autoconf 2.59,
23815   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23816
23817 Copyright (C) 2003 Free Software Foundation, Inc.
23818 This config.status script is free software; the Free Software Foundation
23819 gives unlimited permission to copy, distribute and modify it."
23820 srcdir=$srcdir
23821 INSTALL="$INSTALL"
23822 _ACEOF
23823
23824 cat >>$CONFIG_STATUS <<\_ACEOF
23825 # If no file are specified by the user, then we need to provide default
23826 # value.  By we need to know if files were specified by the user.
23827 ac_need_defaults=:
23828 while test $# != 0
23829 do
23830   case $1 in
23831   --*=*)
23832     ac_option=`expr "x$1" : 'x\([^=]*\)='`
23833     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23834     ac_shift=:
23835     ;;
23836   -*)
23837     ac_option=$1
23838     ac_optarg=$2
23839     ac_shift=shift
23840     ;;
23841   *) # This is not an option, so the user has probably given explicit
23842      # arguments.
23843      ac_option=$1
23844      ac_need_defaults=false;;
23845   esac
23846
23847   case $ac_option in
23848   # Handling of the options.
23849 _ACEOF
23850 cat >>$CONFIG_STATUS <<\_ACEOF
23851   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23852     ac_cs_recheck=: ;;
23853   --version | --vers* | -V )
23854     echo "$ac_cs_version"; exit 0 ;;
23855   --he | --h)
23856     # Conflict between --help and --header
23857     { { echo "$as_me:$LINENO: error: ambiguous option: $1
23858 Try \`$0 --help' for more information." >&5
23859 echo "$as_me: error: ambiguous option: $1
23860 Try \`$0 --help' for more information." >&2;}
23861    { (exit 1); exit 1; }; };;
23862   --help | --hel | -h )
23863     echo "$ac_cs_usage"; exit 0 ;;
23864   --debug | --d* | -d )
23865     debug=: ;;
23866   --file | --fil | --fi | --f )
23867     $ac_shift
23868     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23869     ac_need_defaults=false;;
23870   --header | --heade | --head | --hea )
23871     $ac_shift
23872     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23873     ac_need_defaults=false;;
23874   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23875   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23876     ac_cs_silent=: ;;
23877
23878   # This is an error.
23879   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23880 Try \`$0 --help' for more information." >&5
23881 echo "$as_me: error: unrecognized option: $1
23882 Try \`$0 --help' for more information." >&2;}
23883    { (exit 1); exit 1; }; } ;;
23884
23885   *) ac_config_targets="$ac_config_targets $1" ;;
23886
23887   esac
23888   shift
23889 done
23890
23891 ac_configure_extra_args=
23892
23893 if $ac_cs_silent; then
23894   exec 6>/dev/null
23895   ac_configure_extra_args="$ac_configure_extra_args --silent"
23896 fi
23897
23898 _ACEOF
23899 cat >>$CONFIG_STATUS <<_ACEOF
23900 if \$ac_cs_recheck; then
23901   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23902   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23903 fi
23904
23905 _ACEOF
23906
23907 cat >>$CONFIG_STATUS <<_ACEOF
23908 #
23909 # INIT-COMMANDS section.
23910 #
23911
23912 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23913
23914 _ACEOF
23915
23916
23917
23918 cat >>$CONFIG_STATUS <<\_ACEOF
23919 for ac_config_target in $ac_config_targets
23920 do
23921   case "$ac_config_target" in
23922   # Handling of arguments.
23923   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23924   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23925   "src/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
23926   "src/include/modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/modules/Makefile" ;;
23927   "src/base/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/base/Makefile" ;;
23928   "src/base/Tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/base/Tests/Makefile" ;;
23929   "src/base/Tests/gs_example" ) CONFIG_FILES="$CONFIG_FILES src/base/Tests/gs_example" ;;
23930   "src/base/Tests/run_tests" ) CONFIG_FILES="$CONFIG_FILES src/base/Tests/run_tests" ;;
23931   "src/modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/modules/Makefile" ;;
23932   "src/examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/Makefile" ;;
23933   "src/examples/ping/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/ping/Makefile" ;;
23934   "src/examples/bandwidth/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/bandwidth/Makefile" ;;
23935   "src/examples/saturate/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/saturate/Makefile" ;;
23936   "src/examples/alnem/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/alnem/Makefile" ;;
23937   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
23938   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23939   "src/gras_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/gras_config.h" ;;
23940   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23941 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23942    { (exit 1); exit 1; }; };;
23943   esac
23944 done
23945
23946 # If the user did not use the arguments to specify the items to instantiate,
23947 # then the envvar interface is used.  Set only those that are not.
23948 # We use the long form for the default assignment because of an extremely
23949 # bizarre bug on SunOS 4.1.3.
23950 if $ac_need_defaults; then
23951   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23952   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23953   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23954 fi
23955
23956 # Have a temporary directory for convenience.  Make it in the build tree
23957 # simply because there is no reason to put it here, and in addition,
23958 # creating and moving files from /tmp can sometimes cause problems.
23959 # Create a temporary directory, and hook for its removal unless debugging.
23960 $debug ||
23961 {
23962   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23963   trap '{ (exit 1); exit 1; }' 1 2 13 15
23964 }
23965
23966 # Create a (secure) tmp directory for tmp files.
23967
23968 {
23969   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23970   test -n "$tmp" && test -d "$tmp"
23971 }  ||
23972 {
23973   tmp=./confstat$$-$RANDOM
23974   (umask 077 && mkdir $tmp)
23975 } ||
23976 {
23977    echo "$me: cannot create a temporary directory in ." >&2
23978    { (exit 1); exit 1; }
23979 }
23980
23981 _ACEOF
23982
23983 cat >>$CONFIG_STATUS <<_ACEOF
23984
23985 #
23986 # CONFIG_FILES section.
23987 #
23988
23989 # No need to generate the scripts if there are no CONFIG_FILES.
23990 # This happens for instance when ./config.status config.h
23991 if test -n "\$CONFIG_FILES"; then
23992   # Protect against being on the right side of a sed subst in config.status.
23993   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23994    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23995 s,@SHELL@,$SHELL,;t t
23996 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23997 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23998 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23999 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24000 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24001 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24002 s,@exec_prefix@,$exec_prefix,;t t
24003 s,@prefix@,$prefix,;t t
24004 s,@program_transform_name@,$program_transform_name,;t t
24005 s,@bindir@,$bindir,;t t
24006 s,@sbindir@,$sbindir,;t t
24007 s,@libexecdir@,$libexecdir,;t t
24008 s,@datadir@,$datadir,;t t
24009 s,@sysconfdir@,$sysconfdir,;t t
24010 s,@sharedstatedir@,$sharedstatedir,;t t
24011 s,@localstatedir@,$localstatedir,;t t
24012 s,@libdir@,$libdir,;t t
24013 s,@includedir@,$includedir,;t t
24014 s,@oldincludedir@,$oldincludedir,;t t
24015 s,@infodir@,$infodir,;t t
24016 s,@mandir@,$mandir,;t t
24017 s,@build_alias@,$build_alias,;t t
24018 s,@host_alias@,$host_alias,;t t
24019 s,@target_alias@,$target_alias,;t t
24020 s,@DEFS@,$DEFS,;t t
24021 s,@ECHO_C@,$ECHO_C,;t t
24022 s,@ECHO_N@,$ECHO_N,;t t
24023 s,@ECHO_T@,$ECHO_T,;t t
24024 s,@LIBS@,$LIBS,;t t
24025 s,@subdirs@,$subdirs,;t t
24026 s,@build@,$build,;t t
24027 s,@build_cpu@,$build_cpu,;t t
24028 s,@build_vendor@,$build_vendor,;t t
24029 s,@build_os@,$build_os,;t t
24030 s,@host@,$host,;t t
24031 s,@host_cpu@,$host_cpu,;t t
24032 s,@host_vendor@,$host_vendor,;t t
24033 s,@host_os@,$host_os,;t t
24034 s,@target@,$target,;t t
24035 s,@target_cpu@,$target_cpu,;t t
24036 s,@target_vendor@,$target_vendor,;t t
24037 s,@target_os@,$target_os,;t t
24038 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24039 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24040 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24041 s,@CYGPATH_W@,$CYGPATH_W,;t t
24042 s,@PACKAGE@,$PACKAGE,;t t
24043 s,@VERSION@,$VERSION,;t t
24044 s,@ACLOCAL@,$ACLOCAL,;t t
24045 s,@AUTOCONF@,$AUTOCONF,;t t
24046 s,@AUTOMAKE@,$AUTOMAKE,;t t
24047 s,@AUTOHEADER@,$AUTOHEADER,;t t
24048 s,@MAKEINFO@,$MAKEINFO,;t t
24049 s,@AMTAR@,$AMTAR,;t t
24050 s,@install_sh@,$install_sh,;t t
24051 s,@STRIP@,$STRIP,;t t
24052 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24053 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
24054 s,@AWK@,$AWK,;t t
24055 s,@SET_MAKE@,$SET_MAKE,;t t
24056 s,@am__leading_dot@,$am__leading_dot,;t t
24057 s,@CC@,$CC,;t t
24058 s,@CFLAGS@,$CFLAGS,;t t
24059 s,@LDFLAGS@,$LDFLAGS,;t t
24060 s,@CPPFLAGS@,$CPPFLAGS,;t t
24061 s,@ac_ct_CC@,$ac_ct_CC,;t t
24062 s,@EXEEXT@,$EXEEXT,;t t
24063 s,@OBJEXT@,$OBJEXT,;t t
24064 s,@DEPDIR@,$DEPDIR,;t t
24065 s,@am__include@,$am__include,;t t
24066 s,@am__quote@,$am__quote,;t t
24067 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
24068 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
24069 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
24070 s,@CCDEPMODE@,$CCDEPMODE,;t t
24071 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
24072 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
24073 s,@EGREP@,$EGREP,;t t
24074 s,@LN_S@,$LN_S,;t t
24075 s,@ECHO@,$ECHO,;t t
24076 s,@AR@,$AR,;t t
24077 s,@ac_ct_AR@,$ac_ct_AR,;t t
24078 s,@RANLIB@,$RANLIB,;t t
24079 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24080 s,@CPP@,$CPP,;t t
24081 s,@CXX@,$CXX,;t t
24082 s,@CXXFLAGS@,$CXXFLAGS,;t t
24083 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24084 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
24085 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
24086 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
24087 s,@CXXCPP@,$CXXCPP,;t t
24088 s,@F77@,$F77,;t t
24089 s,@FFLAGS@,$FFLAGS,;t t
24090 s,@ac_ct_F77@,$ac_ct_F77,;t t
24091 s,@LIBTOOL@,$LIBTOOL,;t t
24092 s,@LIBOBJS@,$LIBOBJS,;t t
24093 s,@HTML_DIR@,$HTML_DIR,;t t
24094 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
24095 s,@ENABLE_GTK_DOC_TRUE@,$ENABLE_GTK_DOC_TRUE,;t t
24096 s,@ENABLE_GTK_DOC_FALSE@,$ENABLE_GTK_DOC_FALSE,;t t
24097 s,@GTK_DOC_USE_LIBTOOL_TRUE@,$GTK_DOC_USE_LIBTOOL_TRUE,;t t
24098 s,@GTK_DOC_USE_LIBTOOL_FALSE@,$GTK_DOC_USE_LIBTOOL_FALSE,;t t
24099 s,@ACI_CACHE_PROG@,$ACI_CACHE_PROG,;t t
24100 s,@aci_module_desc_XML@,$aci_module_desc_XML,;t t
24101 s,@aci_pkg_config_XML@,$aci_pkg_config_XML,;t t
24102 s,@HAVE_XML@,$HAVE_XML,;t t
24103 s,@CFLAGS_XML@,$CFLAGS_XML,;t t
24104 s,@LIBS_XML@,$LIBS_XML,;t t
24105 s,@aci_module_desc_SimGrid@,$aci_module_desc_SimGrid,;t t
24106 s,@aci_pkg_prefix_SimGrid@,$aci_pkg_prefix_SimGrid,;t t
24107 s,@aci_pkg_inc_SimGrid@,$aci_pkg_inc_SimGrid,;t t
24108 s,@aci_pkg_lib_SimGrid@,$aci_pkg_lib_SimGrid,;t t
24109 s,@aci_pkg_extra_SimGrid@,$aci_pkg_extra_SimGrid,;t t
24110 s,@HAVE_SimGrid@,$HAVE_SimGrid,;t t
24111 s,@CFLAGS_SimGrid@,$CFLAGS_SimGrid,;t t
24112 s,@LIBS_SimGrid@,$LIBS_SimGrid,;t t
24113 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
24114 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
24115 s,@MAINT@,$MAINT,;t t
24116 s,@cflags_set@,$cflags_set,;t t
24117 s,@BASH@,$BASH,;t t
24118 s,@WARNING@,$WARNING,;t t
24119 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24120 CEOF
24121
24122 _ACEOF
24123
24124   cat >>$CONFIG_STATUS <<\_ACEOF
24125   # Split the substitutions into bite-sized pieces for seds with
24126   # small command number limits, like on Digital OSF/1 and HP-UX.
24127   ac_max_sed_lines=48
24128   ac_sed_frag=1 # Number of current file.
24129   ac_beg=1 # First line for current file.
24130   ac_end=$ac_max_sed_lines # Line after last line for current file.
24131   ac_more_lines=:
24132   ac_sed_cmds=
24133   while $ac_more_lines; do
24134     if test $ac_beg -gt 1; then
24135       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24136     else
24137       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24138     fi
24139     if test ! -s $tmp/subs.frag; then
24140       ac_more_lines=false
24141     else
24142       # The purpose of the label and of the branching condition is to
24143       # speed up the sed processing (if there are no `@' at all, there
24144       # is no need to browse any of the substitutions).
24145       # These are the two extra sed commands mentioned above.
24146       (echo ':t
24147   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24148       if test -z "$ac_sed_cmds"; then
24149         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24150       else
24151         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24152       fi
24153       ac_sed_frag=`expr $ac_sed_frag + 1`
24154       ac_beg=$ac_end
24155       ac_end=`expr $ac_end + $ac_max_sed_lines`
24156     fi
24157   done
24158   if test -z "$ac_sed_cmds"; then
24159     ac_sed_cmds=cat
24160   fi
24161 fi # test -n "$CONFIG_FILES"
24162
24163 _ACEOF
24164 cat >>$CONFIG_STATUS <<\_ACEOF
24165 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24166   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24167   case $ac_file in
24168   - | *:- | *:-:* ) # input from stdin
24169         cat >$tmp/stdin
24170         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24171         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24172   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24173         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24174   * )   ac_file_in=$ac_file.in ;;
24175   esac
24176
24177   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24178   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24179 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24180          X"$ac_file" : 'X\(//\)[^/]' \| \
24181          X"$ac_file" : 'X\(//\)$' \| \
24182          X"$ac_file" : 'X\(/\)' \| \
24183          .     : '\(.\)' 2>/dev/null ||
24184 echo X"$ac_file" |
24185     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24186           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24187           /^X\(\/\/\)$/{ s//\1/; q; }
24188           /^X\(\/\).*/{ s//\1/; q; }
24189           s/.*/./; q'`
24190   { if $as_mkdir_p; then
24191     mkdir -p "$ac_dir"
24192   else
24193     as_dir="$ac_dir"
24194     as_dirs=
24195     while test ! -d "$as_dir"; do
24196       as_dirs="$as_dir $as_dirs"
24197       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24198 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24199          X"$as_dir" : 'X\(//\)[^/]' \| \
24200          X"$as_dir" : 'X\(//\)$' \| \
24201          X"$as_dir" : 'X\(/\)' \| \
24202          .     : '\(.\)' 2>/dev/null ||
24203 echo X"$as_dir" |
24204     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24205           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24206           /^X\(\/\/\)$/{ s//\1/; q; }
24207           /^X\(\/\).*/{ s//\1/; q; }
24208           s/.*/./; q'`
24209     done
24210     test ! -n "$as_dirs" || mkdir $as_dirs
24211   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24212 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24213    { (exit 1); exit 1; }; }; }
24214
24215   ac_builddir=.
24216
24217 if test "$ac_dir" != .; then
24218   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24219   # A "../" for each directory in $ac_dir_suffix.
24220   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24221 else
24222   ac_dir_suffix= ac_top_builddir=
24223 fi
24224
24225 case $srcdir in
24226   .)  # No --srcdir option.  We are building in place.
24227     ac_srcdir=.
24228     if test -z "$ac_top_builddir"; then
24229        ac_top_srcdir=.
24230     else
24231        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24232     fi ;;
24233   [\\/]* | ?:[\\/]* )  # Absolute path.
24234     ac_srcdir=$srcdir$ac_dir_suffix;
24235     ac_top_srcdir=$srcdir ;;
24236   *) # Relative path.
24237     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24238     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24239 esac
24240
24241 # Do not use `cd foo && pwd` to compute absolute paths, because
24242 # the directories may not exist.
24243 case `pwd` in
24244 .) ac_abs_builddir="$ac_dir";;
24245 *)
24246   case "$ac_dir" in
24247   .) ac_abs_builddir=`pwd`;;
24248   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24249   *) ac_abs_builddir=`pwd`/"$ac_dir";;
24250   esac;;
24251 esac
24252 case $ac_abs_builddir in
24253 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24254 *)
24255   case ${ac_top_builddir}. in
24256   .) ac_abs_top_builddir=$ac_abs_builddir;;
24257   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24258   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24259   esac;;
24260 esac
24261 case $ac_abs_builddir in
24262 .) ac_abs_srcdir=$ac_srcdir;;
24263 *)
24264   case $ac_srcdir in
24265   .) ac_abs_srcdir=$ac_abs_builddir;;
24266   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24267   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24268   esac;;
24269 esac
24270 case $ac_abs_builddir in
24271 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24272 *)
24273   case $ac_top_srcdir in
24274   .) ac_abs_top_srcdir=$ac_abs_builddir;;
24275   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24276   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24277   esac;;
24278 esac
24279
24280
24281   case $INSTALL in
24282   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24283   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24284   esac
24285
24286   # Let's still pretend it is `configure' which instantiates (i.e., don't
24287   # use $as_me), people would be surprised to read:
24288   #    /* config.h.  Generated by config.status.  */
24289   if test x"$ac_file" = x-; then
24290     configure_input=
24291   else
24292     configure_input="$ac_file.  "
24293   fi
24294   configure_input=$configure_input"Generated from `echo $ac_file_in |
24295                                      sed 's,.*/,,'` by configure."
24296
24297   # First look for the input files in the build tree, otherwise in the
24298   # src tree.
24299   ac_file_inputs=`IFS=:
24300     for f in $ac_file_in; do
24301       case $f in
24302       -) echo $tmp/stdin ;;
24303       [\\/$]*)
24304          # Absolute (can't be DOS-style, as IFS=:)
24305          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24306 echo "$as_me: error: cannot find input file: $f" >&2;}
24307    { (exit 1); exit 1; }; }
24308          echo "$f";;
24309       *) # Relative
24310          if test -f "$f"; then
24311            # Build tree
24312            echo "$f"
24313          elif test -f "$srcdir/$f"; then
24314            # Source tree
24315            echo "$srcdir/$f"
24316          else
24317            # /dev/null tree
24318            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24319 echo "$as_me: error: cannot find input file: $f" >&2;}
24320    { (exit 1); exit 1; }; }
24321          fi;;
24322       esac
24323     done` || { (exit 1); exit 1; }
24324
24325   if test x"$ac_file" != x-; then
24326     { echo "$as_me:$LINENO: creating $ac_file" >&5
24327 echo "$as_me: creating $ac_file" >&6;}
24328     rm -f "$ac_file"
24329   fi
24330 _ACEOF
24331 cat >>$CONFIG_STATUS <<_ACEOF
24332   sed "$ac_vpsub
24333 $extrasub
24334 _ACEOF
24335 cat >>$CONFIG_STATUS <<\_ACEOF
24336 :t
24337 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24338 s,@configure_input@,$configure_input,;t t
24339 s,@srcdir@,$ac_srcdir,;t t
24340 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24341 s,@top_srcdir@,$ac_top_srcdir,;t t
24342 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24343 s,@builddir@,$ac_builddir,;t t
24344 s,@abs_builddir@,$ac_abs_builddir,;t t
24345 s,@top_builddir@,$ac_top_builddir,;t t
24346 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24347 s,@INSTALL@,$ac_INSTALL,;t t
24348 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24349   rm -f $tmp/stdin
24350   if test x"$ac_file" != x-; then
24351     mv $tmp/out $ac_file
24352   else
24353     cat $tmp/out
24354     rm -f $tmp/out
24355   fi
24356
24357   # Run the commands associated with the file.
24358   case $ac_file in
24359     Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24360      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24361      test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24362     src/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24363      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24364      test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24365     src/include/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24366      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24367      test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24368     src/include/modules/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24369      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24370      test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24371     src/base/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24372      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24373      test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24374     src/base/Tests/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24375      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24376      test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24377     src/base/Tests/gs_example ) ( cd src/include ; test -e gras || ln -s . gras )
24378      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24379      test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24380     src/base/Tests/run_tests ) ( cd src/include ; test -e gras || ln -s . gras )
24381      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24382      test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24383     src/modules/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24384      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24385      test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24386     src/examples/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24387      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24388      test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24389     src/examples/ping/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24390      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24391      test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24392     src/examples/bandwidth/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24393      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24394      test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24395     src/examples/saturate/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24396      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24397      test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24398     src/examples/alnem/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24399      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24400      test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24401     doc/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24402      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24403      test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24404   esac
24405 done
24406 _ACEOF
24407 cat >>$CONFIG_STATUS <<\_ACEOF
24408
24409 #
24410 # CONFIG_HEADER section.
24411 #
24412
24413 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24414 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24415 #
24416 # ac_d sets the value in "#define NAME VALUE" lines.
24417 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
24418 ac_dB='[         ].*$,\1#\2'
24419 ac_dC=' '
24420 ac_dD=',;t'
24421 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24422 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24423 ac_uB='$,\1#\2define\3'
24424 ac_uC=' '
24425 ac_uD=',;t'
24426
24427 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24428   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24429   case $ac_file in
24430   - | *:- | *:-:* ) # input from stdin
24431         cat >$tmp/stdin
24432         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24433         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24434   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24435         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24436   * )   ac_file_in=$ac_file.in ;;
24437   esac
24438
24439   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24440 echo "$as_me: creating $ac_file" >&6;}
24441
24442   # First look for the input files in the build tree, otherwise in the
24443   # src tree.
24444   ac_file_inputs=`IFS=:
24445     for f in $ac_file_in; do
24446       case $f in
24447       -) echo $tmp/stdin ;;
24448       [\\/$]*)
24449          # Absolute (can't be DOS-style, as IFS=:)
24450          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24451 echo "$as_me: error: cannot find input file: $f" >&2;}
24452    { (exit 1); exit 1; }; }
24453          # Do quote $f, to prevent DOS paths from being IFS'd.
24454          echo "$f";;
24455       *) # Relative
24456          if test -f "$f"; then
24457            # Build tree
24458            echo "$f"
24459          elif test -f "$srcdir/$f"; then
24460            # Source tree
24461            echo "$srcdir/$f"
24462          else
24463            # /dev/null tree
24464            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24465 echo "$as_me: error: cannot find input file: $f" >&2;}
24466    { (exit 1); exit 1; }; }
24467          fi;;
24468       esac
24469     done` || { (exit 1); exit 1; }
24470   # Remove the trailing spaces.
24471   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
24472
24473 _ACEOF
24474
24475 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24476 # `conftest.undefs', that substitutes the proper values into
24477 # config.h.in to produce config.h.  The first handles `#define'
24478 # templates, and the second `#undef' templates.
24479 # And first: Protect against being on the right side of a sed subst in
24480 # config.status.  Protect against being in an unquoted here document
24481 # in config.status.
24482 rm -f conftest.defines conftest.undefs
24483 # Using a here document instead of a string reduces the quoting nightmare.
24484 # Putting comments in sed scripts is not portable.
24485 #
24486 # `end' is used to avoid that the second main sed command (meant for
24487 # 0-ary CPP macros) applies to n-ary macro definitions.
24488 # See the Autoconf documentation for `clear'.
24489 cat >confdef2sed.sed <<\_ACEOF
24490 s/[\\&,]/\\&/g
24491 s,[\\$`],\\&,g
24492 t clear
24493 : clear
24494 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24495 t end
24496 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24497 : end
24498 _ACEOF
24499 # If some macros were called several times there might be several times
24500 # the same #defines, which is useless.  Nevertheless, we may not want to
24501 # sort them, since we want the *last* AC-DEFINE to be honored.
24502 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24503 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24504 rm -f confdef2sed.sed
24505
24506 # This sed command replaces #undef with comments.  This is necessary, for
24507 # example, in the case of _POSIX_SOURCE, which is predefined and required
24508 # on some systems where configure will not decide to define it.
24509 cat >>conftest.undefs <<\_ACEOF
24510 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24511 _ACEOF
24512
24513 # Break up conftest.defines because some shells have a limit on the size
24514 # of here documents, and old seds have small limits too (100 cmds).
24515 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24516 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24517 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24518 echo '  :' >>$CONFIG_STATUS
24519 rm -f conftest.tail
24520 while grep . conftest.defines >/dev/null
24521 do
24522   # Write a limited-size here document to $tmp/defines.sed.
24523   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24524   # Speed up: don't consider the non `#define' lines.
24525   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
24526   # Work around the forget-to-reset-the-flag bug.
24527   echo 't clr' >>$CONFIG_STATUS
24528   echo ': clr' >>$CONFIG_STATUS
24529   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24530   echo 'CEOF
24531   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24532   rm -f $tmp/in
24533   mv $tmp/out $tmp/in
24534 ' >>$CONFIG_STATUS
24535   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24536   rm -f conftest.defines
24537   mv conftest.tail conftest.defines
24538 done
24539 rm -f conftest.defines
24540 echo '  fi # grep' >>$CONFIG_STATUS
24541 echo >>$CONFIG_STATUS
24542
24543 # Break up conftest.undefs because some shells have a limit on the size
24544 # of here documents, and old seds have small limits too (100 cmds).
24545 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24546 rm -f conftest.tail
24547 while grep . conftest.undefs >/dev/null
24548 do
24549   # Write a limited-size here document to $tmp/undefs.sed.
24550   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24551   # Speed up: don't consider the non `#undef'
24552   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24553   # Work around the forget-to-reset-the-flag bug.
24554   echo 't clr' >>$CONFIG_STATUS
24555   echo ': clr' >>$CONFIG_STATUS
24556   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24557   echo 'CEOF
24558   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24559   rm -f $tmp/in
24560   mv $tmp/out $tmp/in
24561 ' >>$CONFIG_STATUS
24562   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24563   rm -f conftest.undefs
24564   mv conftest.tail conftest.undefs
24565 done
24566 rm -f conftest.undefs
24567
24568 cat >>$CONFIG_STATUS <<\_ACEOF
24569   # Let's still pretend it is `configure' which instantiates (i.e., don't
24570   # use $as_me), people would be surprised to read:
24571   #    /* config.h.  Generated by config.status.  */
24572   if test x"$ac_file" = x-; then
24573     echo "/* Generated by configure.  */" >$tmp/config.h
24574   else
24575     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24576   fi
24577   cat $tmp/in >>$tmp/config.h
24578   rm -f $tmp/in
24579   if test x"$ac_file" != x-; then
24580     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24581       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24582 echo "$as_me: $ac_file is unchanged" >&6;}
24583     else
24584       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24585 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24586          X"$ac_file" : 'X\(//\)[^/]' \| \
24587          X"$ac_file" : 'X\(//\)$' \| \
24588          X"$ac_file" : 'X\(/\)' \| \
24589          .     : '\(.\)' 2>/dev/null ||
24590 echo X"$ac_file" |
24591     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24592           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24593           /^X\(\/\/\)$/{ s//\1/; q; }
24594           /^X\(\/\).*/{ s//\1/; q; }
24595           s/.*/./; q'`
24596       { if $as_mkdir_p; then
24597     mkdir -p "$ac_dir"
24598   else
24599     as_dir="$ac_dir"
24600     as_dirs=
24601     while test ! -d "$as_dir"; do
24602       as_dirs="$as_dir $as_dirs"
24603       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24604 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24605          X"$as_dir" : 'X\(//\)[^/]' \| \
24606          X"$as_dir" : 'X\(//\)$' \| \
24607          X"$as_dir" : 'X\(/\)' \| \
24608          .     : '\(.\)' 2>/dev/null ||
24609 echo X"$as_dir" |
24610     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24611           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24612           /^X\(\/\/\)$/{ s//\1/; q; }
24613           /^X\(\/\).*/{ s//\1/; q; }
24614           s/.*/./; q'`
24615     done
24616     test ! -n "$as_dirs" || mkdir $as_dirs
24617   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24618 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24619    { (exit 1); exit 1; }; }; }
24620
24621       rm -f $ac_file
24622       mv $tmp/config.h $ac_file
24623     fi
24624   else
24625     cat $tmp/config.h
24626     rm -f $tmp/config.h
24627   fi
24628 # Compute $ac_file's index in $config_headers.
24629 _am_stamp_count=1
24630 for _am_header in $config_headers :; do
24631   case $_am_header in
24632     $ac_file | $ac_file:* )
24633       break ;;
24634     * )
24635       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24636   esac
24637 done
24638 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
24639 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24640          X$ac_file : 'X\(//\)[^/]' \| \
24641          X$ac_file : 'X\(//\)$' \| \
24642          X$ac_file : 'X\(/\)' \| \
24643          .     : '\(.\)' 2>/dev/null ||
24644 echo X$ac_file |
24645     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24646           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24647           /^X\(\/\/\)$/{ s//\1/; q; }
24648           /^X\(\/\).*/{ s//\1/; q; }
24649           s/.*/./; q'`/stamp-h$_am_stamp_count
24650 done
24651 _ACEOF
24652 cat >>$CONFIG_STATUS <<\_ACEOF
24653
24654 #
24655 # CONFIG_COMMANDS section.
24656 #
24657 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24658   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24659   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24660   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24661 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24662          X"$ac_dest" : 'X\(//\)[^/]' \| \
24663          X"$ac_dest" : 'X\(//\)$' \| \
24664          X"$ac_dest" : 'X\(/\)' \| \
24665          .     : '\(.\)' 2>/dev/null ||
24666 echo X"$ac_dest" |
24667     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24668           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24669           /^X\(\/\/\)$/{ s//\1/; q; }
24670           /^X\(\/\).*/{ s//\1/; q; }
24671           s/.*/./; q'`
24672   { if $as_mkdir_p; then
24673     mkdir -p "$ac_dir"
24674   else
24675     as_dir="$ac_dir"
24676     as_dirs=
24677     while test ! -d "$as_dir"; do
24678       as_dirs="$as_dir $as_dirs"
24679       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24680 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24681          X"$as_dir" : 'X\(//\)[^/]' \| \
24682          X"$as_dir" : 'X\(//\)$' \| \
24683          X"$as_dir" : 'X\(/\)' \| \
24684          .     : '\(.\)' 2>/dev/null ||
24685 echo X"$as_dir" |
24686     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24687           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24688           /^X\(\/\/\)$/{ s//\1/; q; }
24689           /^X\(\/\).*/{ s//\1/; q; }
24690           s/.*/./; q'`
24691     done
24692     test ! -n "$as_dirs" || mkdir $as_dirs
24693   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24694 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24695    { (exit 1); exit 1; }; }; }
24696
24697   ac_builddir=.
24698
24699 if test "$ac_dir" != .; then
24700   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24701   # A "../" for each directory in $ac_dir_suffix.
24702   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24703 else
24704   ac_dir_suffix= ac_top_builddir=
24705 fi
24706
24707 case $srcdir in
24708   .)  # No --srcdir option.  We are building in place.
24709     ac_srcdir=.
24710     if test -z "$ac_top_builddir"; then
24711        ac_top_srcdir=.
24712     else
24713        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24714     fi ;;
24715   [\\/]* | ?:[\\/]* )  # Absolute path.
24716     ac_srcdir=$srcdir$ac_dir_suffix;
24717     ac_top_srcdir=$srcdir ;;
24718   *) # Relative path.
24719     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24720     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24721 esac
24722
24723 # Do not use `cd foo && pwd` to compute absolute paths, because
24724 # the directories may not exist.
24725 case `pwd` in
24726 .) ac_abs_builddir="$ac_dir";;
24727 *)
24728   case "$ac_dir" in
24729   .) ac_abs_builddir=`pwd`;;
24730   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24731   *) ac_abs_builddir=`pwd`/"$ac_dir";;
24732   esac;;
24733 esac
24734 case $ac_abs_builddir in
24735 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24736 *)
24737   case ${ac_top_builddir}. in
24738   .) ac_abs_top_builddir=$ac_abs_builddir;;
24739   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24740   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24741   esac;;
24742 esac
24743 case $ac_abs_builddir in
24744 .) ac_abs_srcdir=$ac_srcdir;;
24745 *)
24746   case $ac_srcdir in
24747   .) ac_abs_srcdir=$ac_abs_builddir;;
24748   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24749   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24750   esac;;
24751 esac
24752 case $ac_abs_builddir in
24753 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24754 *)
24755   case $ac_top_srcdir in
24756   .) ac_abs_top_srcdir=$ac_abs_builddir;;
24757   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24758   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24759   esac;;
24760 esac
24761
24762
24763   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24764 echo "$as_me: executing $ac_dest commands" >&6;}
24765   case $ac_dest in
24766     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24767   # Strip MF so we end up with the name of the file.
24768   mf=`echo "$mf" | sed -e 's/:.*$//'`
24769   # Check whether this is an Automake generated Makefile or not.
24770   # We used to match only the files named `Makefile.in', but
24771   # some people rename them; so instead we look at the file content.
24772   # Grep'ing the first line is not enough: some people post-process
24773   # each Makefile.in and add a new line on top of each file to say so.
24774   # So let's grep whole file.
24775   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24776     dirpart=`(dirname "$mf") 2>/dev/null ||
24777 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24778          X"$mf" : 'X\(//\)[^/]' \| \
24779          X"$mf" : 'X\(//\)$' \| \
24780          X"$mf" : 'X\(/\)' \| \
24781          .     : '\(.\)' 2>/dev/null ||
24782 echo X"$mf" |
24783     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24784           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24785           /^X\(\/\/\)$/{ s//\1/; q; }
24786           /^X\(\/\).*/{ s//\1/; q; }
24787           s/.*/./; q'`
24788   else
24789     continue
24790   fi
24791   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
24792   # Extract the definition of DEP_FILES from the Makefile without
24793   # running `make'.
24794   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
24795   test -z "$DEPDIR" && continue
24796   # When using ansi2knr, U may be empty or an underscore; expand it
24797   U=`sed -n -e '/^U = / s///p' < "$mf"`
24798   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
24799   # We invoke sed twice because it is the simplest approach to
24800   # changing $(DEPDIR) to its actual value in the expansion.
24801   for file in `sed -n -e '
24802     /^DEP_FILES = .*\\\\$/ {
24803       s/^DEP_FILES = //
24804       :loop
24805         s/\\\\$//
24806         p
24807         n
24808         /\\\\$/ b loop
24809       p
24810     }
24811     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
24812        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24813     # Make sure the directory exists.
24814     test -f "$dirpart/$file" && continue
24815     fdir=`(dirname "$file") 2>/dev/null ||
24816 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24817          X"$file" : 'X\(//\)[^/]' \| \
24818          X"$file" : 'X\(//\)$' \| \
24819          X"$file" : 'X\(/\)' \| \
24820          .     : '\(.\)' 2>/dev/null ||
24821 echo X"$file" |
24822     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24823           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24824           /^X\(\/\/\)$/{ s//\1/; q; }
24825           /^X\(\/\).*/{ s//\1/; q; }
24826           s/.*/./; q'`
24827     { if $as_mkdir_p; then
24828     mkdir -p $dirpart/$fdir
24829   else
24830     as_dir=$dirpart/$fdir
24831     as_dirs=
24832     while test ! -d "$as_dir"; do
24833       as_dirs="$as_dir $as_dirs"
24834       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24835 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24836          X"$as_dir" : 'X\(//\)[^/]' \| \
24837          X"$as_dir" : 'X\(//\)$' \| \
24838          X"$as_dir" : 'X\(/\)' \| \
24839          .     : '\(.\)' 2>/dev/null ||
24840 echo X"$as_dir" |
24841     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24842           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24843           /^X\(\/\/\)$/{ s//\1/; q; }
24844           /^X\(\/\).*/{ s//\1/; q; }
24845           s/.*/./; q'`
24846     done
24847     test ! -n "$as_dirs" || mkdir $as_dirs
24848   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
24849 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
24850    { (exit 1); exit 1; }; }; }
24851
24852     # echo "creating $dirpart/$file"
24853     echo '# dummy' > "$dirpart/$file"
24854   done
24855 done
24856  ;;
24857   esac
24858 done
24859 _ACEOF
24860
24861 cat >>$CONFIG_STATUS <<\_ACEOF
24862
24863 { (exit 0); exit 0; }
24864 _ACEOF
24865 chmod +x $CONFIG_STATUS
24866 ac_clean_files=$ac_clean_files_save
24867
24868
24869 # configure is writing to config.log, and then calls config.status.
24870 # config.status does its own redirection, appending to config.log.
24871 # Unfortunately, on DOS this fails, as config.log is still kept open
24872 # by configure, so config.status won't be able to write to it; its
24873 # output is simply discarded.  So we exec the FD to /dev/null,
24874 # effectively closing config.log, so it can be properly (re)opened and
24875 # appended to by config.status.  When coming back to configure, we
24876 # need to make the FD available again.
24877 if test "$no_create" != yes; then
24878   ac_cs_success=:
24879   ac_config_status_args=
24880   test "$silent" = yes &&
24881     ac_config_status_args="$ac_config_status_args --quiet"
24882   exec 5>/dev/null
24883   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24884   exec 5>>config.log
24885   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24886   # would make configure fail if this is the last instruction.
24887   $ac_cs_success || { (exit 1); exit 1; }
24888 fi
24889
24890 #
24891 # CONFIG_SUBDIRS section.
24892 #
24893 if test "$no_recursion" != yes; then
24894
24895   # Remove --cache-file and --srcdir arguments so they do not pile up.
24896   ac_sub_configure_args=
24897   ac_prev=
24898   for ac_arg in $ac_configure_args; do
24899     if test -n "$ac_prev"; then
24900       ac_prev=
24901       continue
24902     fi
24903     case $ac_arg in
24904     -cache-file | --cache-file | --cache-fil | --cache-fi \
24905     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24906       ac_prev=cache_file ;;
24907     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24908     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24909     | --c=*)
24910       ;;
24911     --config-cache | -C)
24912       ;;
24913     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24914       ac_prev=srcdir ;;
24915     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24916       ;;
24917     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24918       ac_prev=prefix ;;
24919     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24920       ;;
24921     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24922     esac
24923   done
24924
24925   # Always prepend --prefix to ensure using the same prefix
24926   # in subdir configurations.
24927   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24928
24929   ac_popdir=`pwd`
24930   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24931
24932     # Do not complain, so a configure script can configure whichever
24933     # parts of a large source tree are present.
24934     test -d $srcdir/$ac_dir || continue
24935
24936     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
24937 echo "$as_me: configuring in $ac_dir" >&6;}
24938     { if $as_mkdir_p; then
24939     mkdir -p "$ac_dir"
24940   else
24941     as_dir="$ac_dir"
24942     as_dirs=
24943     while test ! -d "$as_dir"; do
24944       as_dirs="$as_dir $as_dirs"
24945       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24946 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24947          X"$as_dir" : 'X\(//\)[^/]' \| \
24948          X"$as_dir" : 'X\(//\)$' \| \
24949          X"$as_dir" : 'X\(/\)' \| \
24950          .     : '\(.\)' 2>/dev/null ||
24951 echo X"$as_dir" |
24952     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24953           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24954           /^X\(\/\/\)$/{ s//\1/; q; }
24955           /^X\(\/\).*/{ s//\1/; q; }
24956           s/.*/./; q'`
24957     done
24958     test ! -n "$as_dirs" || mkdir $as_dirs
24959   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24960 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24961    { (exit 1); exit 1; }; }; }
24962
24963     ac_builddir=.
24964
24965 if test "$ac_dir" != .; then
24966   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24967   # A "../" for each directory in $ac_dir_suffix.
24968   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24969 else
24970   ac_dir_suffix= ac_top_builddir=
24971 fi
24972
24973 case $srcdir in
24974   .)  # No --srcdir option.  We are building in place.
24975     ac_srcdir=.
24976     if test -z "$ac_top_builddir"; then
24977        ac_top_srcdir=.
24978     else
24979        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24980     fi ;;
24981   [\\/]* | ?:[\\/]* )  # Absolute path.
24982     ac_srcdir=$srcdir$ac_dir_suffix;
24983     ac_top_srcdir=$srcdir ;;
24984   *) # Relative path.
24985     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24986     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24987 esac
24988
24989 # Do not use `cd foo && pwd` to compute absolute paths, because
24990 # the directories may not exist.
24991 case `pwd` in
24992 .) ac_abs_builddir="$ac_dir";;
24993 *)
24994   case "$ac_dir" in
24995   .) ac_abs_builddir=`pwd`;;
24996   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24997   *) ac_abs_builddir=`pwd`/"$ac_dir";;
24998   esac;;
24999 esac
25000 case $ac_abs_builddir in
25001 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25002 *)
25003   case ${ac_top_builddir}. in
25004   .) ac_abs_top_builddir=$ac_abs_builddir;;
25005   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25006   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25007   esac;;
25008 esac
25009 case $ac_abs_builddir in
25010 .) ac_abs_srcdir=$ac_srcdir;;
25011 *)
25012   case $ac_srcdir in
25013   .) ac_abs_srcdir=$ac_abs_builddir;;
25014   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25015   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25016   esac;;
25017 esac
25018 case $ac_abs_builddir in
25019 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25020 *)
25021   case $ac_top_srcdir in
25022   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25023   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25024   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25025   esac;;
25026 esac
25027
25028
25029     cd $ac_dir
25030
25031     # Check for guested configure; otherwise get Cygnus style configure.
25032     if test -f $ac_srcdir/configure.gnu; then
25033       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25034     elif test -f $ac_srcdir/configure; then
25035       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25036     elif test -f $ac_srcdir/configure.in; then
25037       ac_sub_configure=$ac_configure
25038     else
25039       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25040 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25041       ac_sub_configure=
25042     fi
25043
25044     # The recursion is here.
25045     if test -n "$ac_sub_configure"; then
25046       # Make the cache file name correct relative to the subdirectory.
25047       case $cache_file in
25048       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25049       *) # Relative path.
25050         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
25051       esac
25052
25053       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25054 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25055       # The eval makes quoting arguments work.
25056       eval $ac_sub_configure $ac_sub_configure_args \
25057            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25058         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25059 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25060    { (exit 1); exit 1; }; }
25061     fi
25062
25063     cd "$ac_popdir"
25064   done
25065 fi
25066
25067
25068 echo "
25069
25070 Configuration of package \`${PACKAGE}':
25071
25072         Compiler:       ${CC}
25073
25074         CFlags:         ${CFLAGS}
25075         LDFlags:        ${LDFLAGS}
25076 "
25077
25078 exit 0;