Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
to create the tests/obj directory
[simgrid.git] / configure
1 #! /bin/sh
2 # From configure.ac Revision: 1.149 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for simgrid 3.3-cvs.
5 #
6 # Report bugs to <simgrid-devel@lists.gforge.inria.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 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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='simgrid'
426 PACKAGE_TARNAME='simgrid'
427 PACKAGE_VERSION='3.3-cvs'
428 PACKAGE_STRING='simgrid 3.3-cvs'
429 PACKAGE_BUGREPORT='simgrid-devel@lists.gforge.inria.fr'
430
431 ac_unique_file="include/gras.h"
432 # Factoring default headers for most tests.
433 ac_includes_default="\
434 #include <stdio.h>
435 #if HAVE_SYS_TYPES_H
436 # include <sys/types.h>
437 #endif
438 #if HAVE_SYS_STAT_H
439 # include <sys/stat.h>
440 #endif
441 #if STDC_HEADERS
442 # include <stdlib.h>
443 # include <stddef.h>
444 #else
445 # if HAVE_STDLIB_H
446 #  include <stdlib.h>
447 # endif
448 #endif
449 #if HAVE_STRING_H
450 # if !STDC_HEADERS && HAVE_MEMORY_H
451 #  include <memory.h>
452 # endif
453 # include <string.h>
454 #endif
455 #if HAVE_STRINGS_H
456 # include <strings.h>
457 #endif
458 #if HAVE_INTTYPES_H
459 # include <inttypes.h>
460 #else
461 # if HAVE_STDINT_H
462 #  include <stdint.h>
463 # endif
464 #endif
465 #if HAVE_UNISTD_H
466 # include <unistd.h>
467 #endif"
468
469 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS PTH_STACK_GROWTH pth_skaddr_makecontext pth_sksize_makecontext USE_SIMIX_TRUE USE_SIMIX_FALSE HAVE_SDP_TRUE HAVE_SDP_FALSE SIMGRID_DEP AM_CFLAGS GRAS_DEP GRAMINE_MODE_TRUE GRAMINE_MODE_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LD_DYNAMIC_FLAGS abs_builddir abs_srcdir abs_top_builddir abs_top_srcdir BASH WARNING LEX LEXLIB LEX_OUTPUT_ROOT FLEXML HAVE_FLEXML_TRUE HAVE_FLEXML_FALSE DOXYGEN ADDR2LINE ac_configure_args MD5SUM build_id LTLIBOBJS'
470 ac_subst_files=''
471
472 # Initialize some variables set by options.
473 ac_init_help=
474 ac_init_version=false
475 # The variables have the same names as the options, with
476 # dashes changed to underlines.
477 cache_file=/dev/null
478 exec_prefix=NONE
479 no_create=
480 no_recursion=
481 prefix=NONE
482 program_prefix=NONE
483 program_suffix=NONE
484 program_transform_name=s,x,x,
485 silent=
486 site=
487 srcdir=
488 verbose=
489 x_includes=NONE
490 x_libraries=NONE
491
492 # Installation directory options.
493 # These are left unexpanded so users can "make install exec_prefix=/foo"
494 # and all the variables that are supposed to be based on exec_prefix
495 # by default will actually change.
496 # Use braces instead of parens because sh, perl, etc. also accept them.
497 bindir='${exec_prefix}/bin'
498 sbindir='${exec_prefix}/sbin'
499 libexecdir='${exec_prefix}/libexec'
500 datadir='${prefix}/share'
501 sysconfdir='${prefix}/etc'
502 sharedstatedir='${prefix}/com'
503 localstatedir='${prefix}/var'
504 libdir='${exec_prefix}/lib'
505 includedir='${prefix}/include'
506 oldincludedir='/usr/include'
507 infodir='${prefix}/info'
508 mandir='${prefix}/man'
509
510 ac_prev=
511 for ac_option
512 do
513   # If the previous option needs an argument, assign it.
514   if test -n "$ac_prev"; then
515     eval "$ac_prev=\$ac_option"
516     ac_prev=
517     continue
518   fi
519
520   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521
522   # Accept the important Cygnus configure options, so we can diagnose typos.
523
524   case $ac_option in
525
526   -bindir | --bindir | --bindi | --bind | --bin | --bi)
527     ac_prev=bindir ;;
528   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529     bindir=$ac_optarg ;;
530
531   -build | --build | --buil | --bui | --bu)
532     ac_prev=build_alias ;;
533   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
534     build_alias=$ac_optarg ;;
535
536   -cache-file | --cache-file | --cache-fil | --cache-fi \
537   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538     ac_prev=cache_file ;;
539   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
541     cache_file=$ac_optarg ;;
542
543   --config-cache | -C)
544     cache_file=config.cache ;;
545
546   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547     ac_prev=datadir ;;
548   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549   | --da=*)
550     datadir=$ac_optarg ;;
551
552   -disable-* | --disable-*)
553     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
554     # Reject names that are not valid shell variable names.
555     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557    { (exit 1); exit 1; }; }
558     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559     eval "enable_$ac_feature=no" ;;
560
561   -enable-* | --enable-*)
562     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
563     # Reject names that are not valid shell variable names.
564     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566    { (exit 1); exit 1; }; }
567     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568     case $ac_option in
569       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570       *) ac_optarg=yes ;;
571     esac
572     eval "enable_$ac_feature='$ac_optarg'" ;;
573
574   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
575   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
576   | --exec | --exe | --ex)
577     ac_prev=exec_prefix ;;
578   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
579   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
580   | --exec=* | --exe=* | --ex=*)
581     exec_prefix=$ac_optarg ;;
582
583   -gas | --gas | --ga | --g)
584     # Obsolete; use --with-gas.
585     with_gas=yes ;;
586
587   -help | --help | --hel | --he | -h)
588     ac_init_help=long ;;
589   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
590     ac_init_help=recursive ;;
591   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
592     ac_init_help=short ;;
593
594   -host | --host | --hos | --ho)
595     ac_prev=host_alias ;;
596   -host=* | --host=* | --hos=* | --ho=*)
597     host_alias=$ac_optarg ;;
598
599   -includedir | --includedir | --includedi | --included | --include \
600   | --includ | --inclu | --incl | --inc)
601     ac_prev=includedir ;;
602   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
603   | --includ=* | --inclu=* | --incl=* | --inc=*)
604     includedir=$ac_optarg ;;
605
606   -infodir | --infodir | --infodi | --infod | --info | --inf)
607     ac_prev=infodir ;;
608   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
609     infodir=$ac_optarg ;;
610
611   -libdir | --libdir | --libdi | --libd)
612     ac_prev=libdir ;;
613   -libdir=* | --libdir=* | --libdi=* | --libd=*)
614     libdir=$ac_optarg ;;
615
616   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
617   | --libexe | --libex | --libe)
618     ac_prev=libexecdir ;;
619   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
620   | --libexe=* | --libex=* | --libe=*)
621     libexecdir=$ac_optarg ;;
622
623   -localstatedir | --localstatedir | --localstatedi | --localstated \
624   | --localstate | --localstat | --localsta | --localst \
625   | --locals | --local | --loca | --loc | --lo)
626     ac_prev=localstatedir ;;
627   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
628   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
629   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
630     localstatedir=$ac_optarg ;;
631
632   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633     ac_prev=mandir ;;
634   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635     mandir=$ac_optarg ;;
636
637   -nfp | --nfp | --nf)
638     # Obsolete; use --without-fp.
639     with_fp=no ;;
640
641   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
642   | --no-cr | --no-c | -n)
643     no_create=yes ;;
644
645   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
646   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647     no_recursion=yes ;;
648
649   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
650   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
651   | --oldin | --oldi | --old | --ol | --o)
652     ac_prev=oldincludedir ;;
653   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
654   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
655   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
656     oldincludedir=$ac_optarg ;;
657
658   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659     ac_prev=prefix ;;
660   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661     prefix=$ac_optarg ;;
662
663   -program-prefix | --program-prefix | --program-prefi | --program-pref \
664   | --program-pre | --program-pr | --program-p)
665     ac_prev=program_prefix ;;
666   -program-prefix=* | --program-prefix=* | --program-prefi=* \
667   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
668     program_prefix=$ac_optarg ;;
669
670   -program-suffix | --program-suffix | --program-suffi | --program-suff \
671   | --program-suf | --program-su | --program-s)
672     ac_prev=program_suffix ;;
673   -program-suffix=* | --program-suffix=* | --program-suffi=* \
674   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
675     program_suffix=$ac_optarg ;;
676
677   -program-transform-name | --program-transform-name \
678   | --program-transform-nam | --program-transform-na \
679   | --program-transform-n | --program-transform- \
680   | --program-transform | --program-transfor \
681   | --program-transfo | --program-transf \
682   | --program-trans | --program-tran \
683   | --progr-tra | --program-tr | --program-t)
684     ac_prev=program_transform_name ;;
685   -program-transform-name=* | --program-transform-name=* \
686   | --program-transform-nam=* | --program-transform-na=* \
687   | --program-transform-n=* | --program-transform-=* \
688   | --program-transform=* | --program-transfor=* \
689   | --program-transfo=* | --program-transf=* \
690   | --program-trans=* | --program-tran=* \
691   | --progr-tra=* | --program-tr=* | --program-t=*)
692     program_transform_name=$ac_optarg ;;
693
694   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
695   | -silent | --silent | --silen | --sile | --sil)
696     silent=yes ;;
697
698   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699     ac_prev=sbindir ;;
700   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701   | --sbi=* | --sb=*)
702     sbindir=$ac_optarg ;;
703
704   -sharedstatedir | --sharedstatedir | --sharedstatedi \
705   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
706   | --sharedst | --shareds | --shared | --share | --shar \
707   | --sha | --sh)
708     ac_prev=sharedstatedir ;;
709   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
710   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
711   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712   | --sha=* | --sh=*)
713     sharedstatedir=$ac_optarg ;;
714
715   -site | --site | --sit)
716     ac_prev=site ;;
717   -site=* | --site=* | --sit=*)
718     site=$ac_optarg ;;
719
720   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721     ac_prev=srcdir ;;
722   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723     srcdir=$ac_optarg ;;
724
725   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
726   | --syscon | --sysco | --sysc | --sys | --sy)
727     ac_prev=sysconfdir ;;
728   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
729   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
730     sysconfdir=$ac_optarg ;;
731
732   -target | --target | --targe | --targ | --tar | --ta | --t)
733     ac_prev=target_alias ;;
734   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
735     target_alias=$ac_optarg ;;
736
737   -v | -verbose | --verbose | --verbos | --verbo | --verb)
738     verbose=yes ;;
739
740   -version | --version | --versio | --versi | --vers | -V)
741     ac_init_version=: ;;
742
743   -with-* | --with-*)
744     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
745     # Reject names that are not valid shell variable names.
746     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747       { echo "$as_me: error: invalid package name: $ac_package" >&2
748    { (exit 1); exit 1; }; }
749     ac_package=`echo $ac_package| sed 's/-/_/g'`
750     case $ac_option in
751       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752       *) ac_optarg=yes ;;
753     esac
754     eval "with_$ac_package='$ac_optarg'" ;;
755
756   -without-* | --without-*)
757     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
758     # Reject names that are not valid shell variable names.
759     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
760       { echo "$as_me: error: invalid package name: $ac_package" >&2
761    { (exit 1); exit 1; }; }
762     ac_package=`echo $ac_package | sed 's/-/_/g'`
763     eval "with_$ac_package=no" ;;
764
765   --x)
766     # Obsolete; use --with-x.
767     with_x=yes ;;
768
769   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
770   | --x-incl | --x-inc | --x-in | --x-i)
771     ac_prev=x_includes ;;
772   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
773   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
774     x_includes=$ac_optarg ;;
775
776   -x-libraries | --x-libraries | --x-librarie | --x-librari \
777   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
778     ac_prev=x_libraries ;;
779   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
780   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
781     x_libraries=$ac_optarg ;;
782
783   -*) { echo "$as_me: error: unrecognized option: $ac_option
784 Try \`$0 --help' for more information." >&2
785    { (exit 1); exit 1; }; }
786     ;;
787
788   *=*)
789     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
790     # Reject names that are not valid shell variable names.
791     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
792       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
793    { (exit 1); exit 1; }; }
794     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
795     eval "$ac_envvar='$ac_optarg'"
796     export $ac_envvar ;;
797
798   *)
799     # FIXME: should be removed in autoconf 3.0.
800     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
801     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
802       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
803     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
804     ;;
805
806   esac
807 done
808
809 if test -n "$ac_prev"; then
810   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
811   { echo "$as_me: error: missing argument to $ac_option" >&2
812    { (exit 1); exit 1; }; }
813 fi
814
815 # Be sure to have absolute paths.
816 for ac_var in exec_prefix prefix
817 do
818   eval ac_val=$`echo $ac_var`
819   case $ac_val in
820     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
821     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822    { (exit 1); exit 1; }; };;
823   esac
824 done
825
826 # Be sure to have absolute paths.
827 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
828               localstatedir libdir includedir oldincludedir infodir mandir
829 do
830   eval ac_val=$`echo $ac_var`
831   case $ac_val in
832     [\\/$]* | ?:[\\/]* ) ;;
833     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
834    { (exit 1); exit 1; }; };;
835   esac
836 done
837
838 # There might be people who depend on the old broken behavior: `$host'
839 # used to hold the argument of --host etc.
840 # FIXME: To remove some day.
841 build=$build_alias
842 host=$host_alias
843 target=$target_alias
844
845 # FIXME: To remove some day.
846 if test "x$host_alias" != x; then
847   if test "x$build_alias" = x; then
848     cross_compiling=maybe
849     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
850     If a cross compiler is detected then cross compile mode will be used." >&2
851   elif test "x$build_alias" != "x$host_alias"; then
852     cross_compiling=yes
853   fi
854 fi
855
856 ac_tool_prefix=
857 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858
859 test "$silent" = yes && exec 6>/dev/null
860
861
862 # Find the source files, if location was not specified.
863 if test -z "$srcdir"; then
864   ac_srcdir_defaulted=yes
865   # Try the directory containing this script, then its parent.
866   ac_confdir=`(dirname "$0") 2>/dev/null ||
867 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
868          X"$0" : 'X\(//\)[^/]' \| \
869          X"$0" : 'X\(//\)$' \| \
870          X"$0" : 'X\(/\)' \| \
871          .     : '\(.\)' 2>/dev/null ||
872 echo X"$0" |
873     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
874           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
875           /^X\(\/\/\)$/{ s//\1/; q; }
876           /^X\(\/\).*/{ s//\1/; q; }
877           s/.*/./; q'`
878   srcdir=$ac_confdir
879   if test ! -r $srcdir/$ac_unique_file; then
880     srcdir=..
881   fi
882 else
883   ac_srcdir_defaulted=no
884 fi
885 if test ! -r $srcdir/$ac_unique_file; then
886   if test "$ac_srcdir_defaulted" = yes; then
887     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
888    { (exit 1); exit 1; }; }
889   else
890     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
891    { (exit 1); exit 1; }; }
892   fi
893 fi
894 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
895   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
896    { (exit 1); exit 1; }; }
897 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
898 ac_env_build_alias_set=${build_alias+set}
899 ac_env_build_alias_value=$build_alias
900 ac_cv_env_build_alias_set=${build_alias+set}
901 ac_cv_env_build_alias_value=$build_alias
902 ac_env_host_alias_set=${host_alias+set}
903 ac_env_host_alias_value=$host_alias
904 ac_cv_env_host_alias_set=${host_alias+set}
905 ac_cv_env_host_alias_value=$host_alias
906 ac_env_target_alias_set=${target_alias+set}
907 ac_env_target_alias_value=$target_alias
908 ac_cv_env_target_alias_set=${target_alias+set}
909 ac_cv_env_target_alias_value=$target_alias
910 ac_env_CC_set=${CC+set}
911 ac_env_CC_value=$CC
912 ac_cv_env_CC_set=${CC+set}
913 ac_cv_env_CC_value=$CC
914 ac_env_CFLAGS_set=${CFLAGS+set}
915 ac_env_CFLAGS_value=$CFLAGS
916 ac_cv_env_CFLAGS_set=${CFLAGS+set}
917 ac_cv_env_CFLAGS_value=$CFLAGS
918 ac_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_env_LDFLAGS_value=$LDFLAGS
920 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_cv_env_LDFLAGS_value=$LDFLAGS
922 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_env_CPPFLAGS_value=$CPPFLAGS
924 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
926 ac_env_CPP_set=${CPP+set}
927 ac_env_CPP_value=$CPP
928 ac_cv_env_CPP_set=${CPP+set}
929 ac_cv_env_CPP_value=$CPP
930 ac_env_CXX_set=${CXX+set}
931 ac_env_CXX_value=$CXX
932 ac_cv_env_CXX_set=${CXX+set}
933 ac_cv_env_CXX_value=$CXX
934 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_env_CXXFLAGS_value=$CXXFLAGS
936 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
937 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
938 ac_env_CXXCPP_set=${CXXCPP+set}
939 ac_env_CXXCPP_value=$CXXCPP
940 ac_cv_env_CXXCPP_set=${CXXCPP+set}
941 ac_cv_env_CXXCPP_value=$CXXCPP
942 ac_env_F77_set=${F77+set}
943 ac_env_F77_value=$F77
944 ac_cv_env_F77_set=${F77+set}
945 ac_cv_env_F77_value=$F77
946 ac_env_FFLAGS_set=${FFLAGS+set}
947 ac_env_FFLAGS_value=$FFLAGS
948 ac_cv_env_FFLAGS_set=${FFLAGS+set}
949 ac_cv_env_FFLAGS_value=$FFLAGS
950
951 #
952 # Report the --help message.
953 #
954 if test "$ac_init_help" = "long"; then
955   # Omit some internal or obsolete options to make the list less imposing.
956   # This message is too long to be a string in the A/UX 3.1 sh.
957   cat <<_ACEOF
958 \`configure' configures simgrid 3.3-cvs to adapt to many kinds of systems.
959
960 Usage: $0 [OPTION]... [VAR=VALUE]...
961
962 To assign environment variables (e.g., CC, CFLAGS...), specify them as
963 VAR=VALUE.  See below for descriptions of some of the useful variables.
964
965 Defaults for the options are specified in brackets.
966
967 Configuration:
968   -h, --help              display this help and exit
969       --help=short        display options specific to this package
970       --help=recursive    display the short help of all the included packages
971   -V, --version           display version information and exit
972   -q, --quiet, --silent   do not print \`checking...' messages
973       --cache-file=FILE   cache test results in FILE [disabled]
974   -C, --config-cache      alias for \`--cache-file=config.cache'
975   -n, --no-create         do not create output files
976       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
977
978 _ACEOF
979
980   cat <<_ACEOF
981 Installation directories:
982   --prefix=PREFIX         install architecture-independent files in PREFIX
983                           [$ac_default_prefix]
984   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
985                           [PREFIX]
986
987 By default, \`make install' will install all the files in
988 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
989 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
990 for instance \`--prefix=\$HOME'.
991
992 For better control, use the options below.
993
994 Fine tuning of the installation directories:
995   --bindir=DIR           user executables [EPREFIX/bin]
996   --sbindir=DIR          system admin executables [EPREFIX/sbin]
997   --libexecdir=DIR       program executables [EPREFIX/libexec]
998   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
999   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1000   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1001   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1002   --libdir=DIR           object code libraries [EPREFIX/lib]
1003   --includedir=DIR       C header files [PREFIX/include]
1004   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1005   --infodir=DIR          info documentation [PREFIX/info]
1006   --mandir=DIR           man documentation [PREFIX/man]
1007 _ACEOF
1008
1009   cat <<\_ACEOF
1010
1011 Program names:
1012   --program-prefix=PREFIX            prepend PREFIX to installed program names
1013   --program-suffix=SUFFIX            append SUFFIX to installed program names
1014   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1015
1016 System types:
1017   --build=BUILD     configure for building on BUILD [guessed]
1018   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1019   --target=TARGET   configure for building compilers for TARGET [HOST]
1020 _ACEOF
1021 fi
1022
1023 if test -n "$ac_init_help"; then
1024   case $ac_init_help in
1025      short | recursive ) echo "Configuration of simgrid 3.3-cvs:";;
1026    esac
1027   cat <<\_ACEOF
1028
1029 Optional Features:
1030   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1031   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1032   --enable-shared[=PKGS]
1033                           build shared libraries [default=yes]
1034   --enable-static[=PKGS]
1035                           build static libraries [default=yes]
1036   --enable-fast-install[=PKGS]
1037                           optimize for fast installation [default=yes]
1038   --disable-dependency-tracking  speeds up one-time build
1039   --enable-dependency-tracking   do not reject slow dependency extractors
1040   --disable-libtool-lock  avoid locking (might break parallel builds)
1041   --enable-simix          Use the new SimIX module (default=no)
1042   --enable-maintainer-mode  enable make rules and dependencies not useful
1043                           (and sometimes confusing) to the casual installer
1044   --enable-compile-warnings
1045                           use compiler warnings (default=no, unless in
1046                           maintainer mode)
1047   --disable-compile-optimizations
1048                           use compiler optimizations (default=yes, unless if
1049                           CFLAGS is explicitly set)
1050
1051 Optional Packages:
1052   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1053   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1054   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1055   --with-pic              try to use only PIC/non-PIC objects [default=use
1056                           both]
1057   --with-tags[=TAGS]
1058                           include additional configurations [automatic]
1059   --with-pthread   Use pthread instead of ucontext.
1060   --with-pthreads   Use pthread instead of ucontext.
1061   --with-context=ucontext/pthread   Use either (System V) swapcontext or pthread [default=auto].
1062
1063 Some influential environment variables:
1064   CC          C compiler command
1065   CFLAGS      C compiler flags
1066   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1067               nonstandard directory <lib dir>
1068   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1069               headers in a nonstandard directory <include dir>
1070   CPP         C preprocessor
1071   CXX         C++ compiler command
1072   CXXFLAGS    C++ compiler flags
1073   CXXCPP      C++ preprocessor
1074   F77         Fortran 77 compiler command
1075   FFLAGS      Fortran 77 compiler flags
1076
1077 Use these variables to override the choices made by `configure' or to help
1078 it to find libraries and programs with nonstandard names/locations.
1079
1080 Report bugs to <simgrid-devel@lists.gforge.inria.fr>.
1081 _ACEOF
1082 fi
1083
1084 if test "$ac_init_help" = "recursive"; then
1085   # If there are subdirs, report their specific --help.
1086   ac_popdir=`pwd`
1087   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1088     test -d $ac_dir || continue
1089     ac_builddir=.
1090
1091 if test "$ac_dir" != .; then
1092   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1093   # A "../" for each directory in $ac_dir_suffix.
1094   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1095 else
1096   ac_dir_suffix= ac_top_builddir=
1097 fi
1098
1099 case $srcdir in
1100   .)  # No --srcdir option.  We are building in place.
1101     ac_srcdir=.
1102     if test -z "$ac_top_builddir"; then
1103        ac_top_srcdir=.
1104     else
1105        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1106     fi ;;
1107   [\\/]* | ?:[\\/]* )  # Absolute path.
1108     ac_srcdir=$srcdir$ac_dir_suffix;
1109     ac_top_srcdir=$srcdir ;;
1110   *) # Relative path.
1111     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1112     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1113 esac
1114
1115 # Do not use `cd foo && pwd` to compute absolute paths, because
1116 # the directories may not exist.
1117 case `pwd` in
1118 .) ac_abs_builddir="$ac_dir";;
1119 *)
1120   case "$ac_dir" in
1121   .) ac_abs_builddir=`pwd`;;
1122   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1123   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1124   esac;;
1125 esac
1126 case $ac_abs_builddir in
1127 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1128 *)
1129   case ${ac_top_builddir}. in
1130   .) ac_abs_top_builddir=$ac_abs_builddir;;
1131   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1132   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1133   esac;;
1134 esac
1135 case $ac_abs_builddir in
1136 .) ac_abs_srcdir=$ac_srcdir;;
1137 *)
1138   case $ac_srcdir in
1139   .) ac_abs_srcdir=$ac_abs_builddir;;
1140   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1141   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1142   esac;;
1143 esac
1144 case $ac_abs_builddir in
1145 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1146 *)
1147   case $ac_top_srcdir in
1148   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1149   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1150   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1151   esac;;
1152 esac
1153
1154     cd $ac_dir
1155     # Check for guested configure; otherwise get Cygnus style configure.
1156     if test -f $ac_srcdir/configure.gnu; then
1157       echo
1158       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1159     elif test -f $ac_srcdir/configure; then
1160       echo
1161       $SHELL $ac_srcdir/configure  --help=recursive
1162     elif test -f $ac_srcdir/configure.ac ||
1163            test -f $ac_srcdir/configure.in; then
1164       echo
1165       $ac_configure --help
1166     else
1167       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1168     fi
1169     cd "$ac_popdir"
1170   done
1171 fi
1172
1173 test -n "$ac_init_help" && exit 0
1174 if $ac_init_version; then
1175   cat <<\_ACEOF
1176 simgrid configure 3.3-cvs
1177 generated by GNU Autoconf 2.59
1178
1179 Copyright (C) 2003 Free Software Foundation, Inc.
1180 This configure script is free software; the Free Software Foundation
1181 gives unlimited permission to copy, distribute and modify it.
1182 _ACEOF
1183   exit 0
1184 fi
1185 exec 5>config.log
1186 cat >&5 <<_ACEOF
1187 This file contains any messages produced by compilers while
1188 running configure, to aid debugging if configure makes a mistake.
1189
1190 It was created by simgrid $as_me 3.3-cvs, which was
1191 generated by GNU Autoconf 2.59.  Invocation command line was
1192
1193   $ $0 $@
1194
1195 _ACEOF
1196 {
1197 cat <<_ASUNAME
1198 ## --------- ##
1199 ## Platform. ##
1200 ## --------- ##
1201
1202 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1203 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1204 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1205 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1206 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1207
1208 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1209 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1210
1211 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1212 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1213 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1214 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1215 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1216 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1217 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1218
1219 _ASUNAME
1220
1221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1222 for as_dir in $PATH
1223 do
1224   IFS=$as_save_IFS
1225   test -z "$as_dir" && as_dir=.
1226   echo "PATH: $as_dir"
1227 done
1228
1229 } >&5
1230
1231 cat >&5 <<_ACEOF
1232
1233
1234 ## ----------- ##
1235 ## Core tests. ##
1236 ## ----------- ##
1237
1238 _ACEOF
1239
1240
1241 # Keep a trace of the command line.
1242 # Strip out --no-create and --no-recursion so they do not pile up.
1243 # Strip out --silent because we don't want to record it for future runs.
1244 # Also quote any args containing shell meta-characters.
1245 # Make two passes to allow for proper duplicate-argument suppression.
1246 ac_configure_args=
1247 ac_configure_args0=
1248 ac_configure_args1=
1249 ac_sep=
1250 ac_must_keep_next=false
1251 for ac_pass in 1 2
1252 do
1253   for ac_arg
1254   do
1255     case $ac_arg in
1256     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1257     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1258     | -silent | --silent | --silen | --sile | --sil)
1259       continue ;;
1260     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1261       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1262     esac
1263     case $ac_pass in
1264     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1265     2)
1266       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1267       if test $ac_must_keep_next = true; then
1268         ac_must_keep_next=false # Got value, back to normal.
1269       else
1270         case $ac_arg in
1271           *=* | --config-cache | -C | -disable-* | --disable-* \
1272           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1273           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1274           | -with-* | --with-* | -without-* | --without-* | --x)
1275             case "$ac_configure_args0 " in
1276               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1277             esac
1278             ;;
1279           -* ) ac_must_keep_next=true ;;
1280         esac
1281       fi
1282       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1283       # Get rid of the leading space.
1284       ac_sep=" "
1285       ;;
1286     esac
1287   done
1288 done
1289 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1290 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1291
1292 # When interrupted or exit'd, cleanup temporary files, and complete
1293 # config.log.  We remove comments because anyway the quotes in there
1294 # would cause problems or look ugly.
1295 # WARNING: Be sure not to use single quotes in there, as some shells,
1296 # such as our DU 5.0 friend, will then `close' the trap.
1297 trap 'exit_status=$?
1298   # Save into config.log some information that might help in debugging.
1299   {
1300     echo
1301
1302     cat <<\_ASBOX
1303 ## ---------------- ##
1304 ## Cache variables. ##
1305 ## ---------------- ##
1306 _ASBOX
1307     echo
1308     # The following way of writing the cache mishandles newlines in values,
1309 {
1310   (set) 2>&1 |
1311     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1312     *ac_space=\ *)
1313       sed -n \
1314         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1315           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1316       ;;
1317     *)
1318       sed -n \
1319         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1320       ;;
1321     esac;
1322 }
1323     echo
1324
1325     cat <<\_ASBOX
1326 ## ----------------- ##
1327 ## Output variables. ##
1328 ## ----------------- ##
1329 _ASBOX
1330     echo
1331     for ac_var in $ac_subst_vars
1332     do
1333       eval ac_val=$`echo $ac_var`
1334       echo "$ac_var='"'"'$ac_val'"'"'"
1335     done | sort
1336     echo
1337
1338     if test -n "$ac_subst_files"; then
1339       cat <<\_ASBOX
1340 ## ------------- ##
1341 ## Output files. ##
1342 ## ------------- ##
1343 _ASBOX
1344       echo
1345       for ac_var in $ac_subst_files
1346       do
1347         eval ac_val=$`echo $ac_var`
1348         echo "$ac_var='"'"'$ac_val'"'"'"
1349       done | sort
1350       echo
1351     fi
1352
1353     if test -s confdefs.h; then
1354       cat <<\_ASBOX
1355 ## ----------- ##
1356 ## confdefs.h. ##
1357 ## ----------- ##
1358 _ASBOX
1359       echo
1360       sed "/^$/d" confdefs.h | sort
1361       echo
1362     fi
1363     test "$ac_signal" != 0 &&
1364       echo "$as_me: caught signal $ac_signal"
1365     echo "$as_me: exit $exit_status"
1366   } >&5
1367   rm -f core *.core &&
1368   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1369     exit $exit_status
1370      ' 0
1371 for ac_signal in 1 2 13 15; do
1372   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1373 done
1374 ac_signal=0
1375
1376 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1377 rm -rf conftest* confdefs.h
1378 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1379 echo >confdefs.h
1380
1381 # Predefined preprocessor variables.
1382
1383 cat >>confdefs.h <<_ACEOF
1384 #define PACKAGE_NAME "$PACKAGE_NAME"
1385 _ACEOF
1386
1387
1388 cat >>confdefs.h <<_ACEOF
1389 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1390 _ACEOF
1391
1392
1393 cat >>confdefs.h <<_ACEOF
1394 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1395 _ACEOF
1396
1397
1398 cat >>confdefs.h <<_ACEOF
1399 #define PACKAGE_STRING "$PACKAGE_STRING"
1400 _ACEOF
1401
1402
1403 cat >>confdefs.h <<_ACEOF
1404 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1405 _ACEOF
1406
1407
1408 # Let the site file select an alternate cache file if it wants to.
1409 # Prefer explicitly selected file to automatically selected ones.
1410 if test -z "$CONFIG_SITE"; then
1411   if test "x$prefix" != xNONE; then
1412     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1413   else
1414     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1415   fi
1416 fi
1417 for ac_site_file in $CONFIG_SITE; do
1418   if test -r "$ac_site_file"; then
1419     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1420 echo "$as_me: loading site script $ac_site_file" >&6;}
1421     sed 's/^/| /' "$ac_site_file" >&5
1422     . "$ac_site_file"
1423   fi
1424 done
1425
1426 if test -r "$cache_file"; then
1427   # Some versions of bash will fail to source /dev/null (special
1428   # files actually), so we avoid doing that.
1429   if test -f "$cache_file"; then
1430     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1431 echo "$as_me: loading cache $cache_file" >&6;}
1432     case $cache_file in
1433       [\\/]* | ?:[\\/]* ) . $cache_file;;
1434       *)                      . ./$cache_file;;
1435     esac
1436   fi
1437 else
1438   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1439 echo "$as_me: creating cache $cache_file" >&6;}
1440   >$cache_file
1441 fi
1442
1443 # Check that the precious variables saved in the cache have kept the same
1444 # value.
1445 ac_cache_corrupted=false
1446 for ac_var in `(set) 2>&1 |
1447                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1448   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1449   eval ac_new_set=\$ac_env_${ac_var}_set
1450   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1451   eval ac_new_val="\$ac_env_${ac_var}_value"
1452   case $ac_old_set,$ac_new_set in
1453     set,)
1454       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1455 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1456       ac_cache_corrupted=: ;;
1457     ,set)
1458       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1459 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1460       ac_cache_corrupted=: ;;
1461     ,);;
1462     *)
1463       if test "x$ac_old_val" != "x$ac_new_val"; then
1464         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1465 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1466         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1467 echo "$as_me:   former value:  $ac_old_val" >&2;}
1468         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1469 echo "$as_me:   current value: $ac_new_val" >&2;}
1470         ac_cache_corrupted=:
1471       fi;;
1472   esac
1473   # Pass precious variables to config.status.
1474   if test "$ac_new_set" = set; then
1475     case $ac_new_val in
1476     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1477       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1478     *) ac_arg=$ac_var=$ac_new_val ;;
1479     esac
1480     case " $ac_configure_args " in
1481       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1482       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1483     esac
1484   fi
1485 done
1486 if $ac_cache_corrupted; then
1487   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1488 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1489   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1490 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1491    { (exit 1); exit 1; }; }
1492 fi
1493
1494 ac_ext=c
1495 ac_cpp='$CPP $CPPFLAGS'
1496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527           ac_config_headers="$ac_config_headers src/gras_config.h"
1528
1529 # A CI_PREREQ(2003.01.16) # We need a recent ACI when having sub-modules
1530
1531
1532 ac_aux_dir=
1533 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1534   if test -f $ac_dir/install-sh; then
1535     ac_aux_dir=$ac_dir
1536     ac_install_sh="$ac_aux_dir/install-sh -c"
1537     break
1538   elif test -f $ac_dir/install.sh; then
1539     ac_aux_dir=$ac_dir
1540     ac_install_sh="$ac_aux_dir/install.sh -c"
1541     break
1542   elif test -f $ac_dir/shtool; then
1543     ac_aux_dir=$ac_dir
1544     ac_install_sh="$ac_aux_dir/shtool install -c"
1545     break
1546   fi
1547 done
1548 if test -z "$ac_aux_dir"; then
1549   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1550 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1551    { (exit 1); exit 1; }; }
1552 fi
1553 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1554 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1555 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1556
1557 # Make sure we can run config.sub.
1558 $ac_config_sub sun4 >/dev/null 2>&1 ||
1559   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1560 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1561    { (exit 1); exit 1; }; }
1562
1563 echo "$as_me:$LINENO: checking build system type" >&5
1564 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1565 if test "${ac_cv_build+set}" = set; then
1566   echo $ECHO_N "(cached) $ECHO_C" >&6
1567 else
1568   ac_cv_build_alias=$build_alias
1569 test -z "$ac_cv_build_alias" &&
1570   ac_cv_build_alias=`$ac_config_guess`
1571 test -z "$ac_cv_build_alias" &&
1572   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1573 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1574    { (exit 1); exit 1; }; }
1575 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1576   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1577 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1578    { (exit 1); exit 1; }; }
1579
1580 fi
1581 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1582 echo "${ECHO_T}$ac_cv_build" >&6
1583 build=$ac_cv_build
1584 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1585 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1586 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1587
1588
1589 echo "$as_me:$LINENO: checking host system type" >&5
1590 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1591 if test "${ac_cv_host+set}" = set; then
1592   echo $ECHO_N "(cached) $ECHO_C" >&6
1593 else
1594   ac_cv_host_alias=$host_alias
1595 test -z "$ac_cv_host_alias" &&
1596   ac_cv_host_alias=$ac_cv_build_alias
1597 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1598   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1599 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1600    { (exit 1); exit 1; }; }
1601
1602 fi
1603 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1604 echo "${ECHO_T}$ac_cv_host" >&6
1605 host=$ac_cv_host
1606 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1607 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1608 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1609
1610
1611 echo "$as_me:$LINENO: checking target system type" >&5
1612 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1613 if test "${ac_cv_target+set}" = set; then
1614   echo $ECHO_N "(cached) $ECHO_C" >&6
1615 else
1616   ac_cv_target_alias=$target_alias
1617 test "x$ac_cv_target_alias" = "x" &&
1618   ac_cv_target_alias=$ac_cv_host_alias
1619 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1620   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1621 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1622    { (exit 1); exit 1; }; }
1623
1624 fi
1625 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1626 echo "${ECHO_T}$ac_cv_target" >&6
1627 target=$ac_cv_target
1628 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1629 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1630 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1631
1632
1633 # The aliases save the names the user supplied, while $host etc.
1634 # will get canonicalized.
1635 test -n "$target_alias" &&
1636   test "$program_prefix$program_suffix$program_transform_name" = \
1637     NONENONEs,x,x, &&
1638   program_prefix=${target_alias}-
1639 ac_ext=c
1640 ac_cpp='$CPP $CPPFLAGS'
1641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1644
1645
1646 am__api_version="1.9"
1647 # Find a good install program.  We prefer a C program (faster),
1648 # so one script is as good as another.  But avoid the broken or
1649 # incompatible versions:
1650 # SysV /etc/install, /usr/sbin/install
1651 # SunOS /usr/etc/install
1652 # IRIX /sbin/install
1653 # AIX /bin/install
1654 # AmigaOS /C/install, which installs bootblocks on floppy discs
1655 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1656 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1657 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1658 # OS/2's system install, which has a completely different semantic
1659 # ./install, which can be erroneously created by make from ./install.sh.
1660 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1661 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1662 if test -z "$INSTALL"; then
1663 if test "${ac_cv_path_install+set}" = set; then
1664   echo $ECHO_N "(cached) $ECHO_C" >&6
1665 else
1666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1667 for as_dir in $PATH
1668 do
1669   IFS=$as_save_IFS
1670   test -z "$as_dir" && as_dir=.
1671   # Account for people who put trailing slashes in PATH elements.
1672 case $as_dir/ in
1673   ./ | .// | /cC/* | \
1674   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1675   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1676   /usr/ucb/* ) ;;
1677   *)
1678     # OSF1 and SCO ODT 3.0 have their own names for install.
1679     # Don't use installbsd from OSF since it installs stuff as root
1680     # by default.
1681     for ac_prog in ginstall scoinst install; do
1682       for ac_exec_ext in '' $ac_executable_extensions; do
1683         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1684           if test $ac_prog = install &&
1685             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1686             # AIX install.  It has an incompatible calling convention.
1687             :
1688           elif test $ac_prog = install &&
1689             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1690             # program-specific install script used by HP pwplus--don't use.
1691             :
1692           else
1693             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1694             break 3
1695           fi
1696         fi
1697       done
1698     done
1699     ;;
1700 esac
1701 done
1702
1703
1704 fi
1705   if test "${ac_cv_path_install+set}" = set; then
1706     INSTALL=$ac_cv_path_install
1707   else
1708     # As a last resort, use the slow shell script.  We don't cache a
1709     # path for INSTALL within a source directory, because that will
1710     # break other packages using the cache if that directory is
1711     # removed, or if the path is relative.
1712     INSTALL=$ac_install_sh
1713   fi
1714 fi
1715 echo "$as_me:$LINENO: result: $INSTALL" >&5
1716 echo "${ECHO_T}$INSTALL" >&6
1717
1718 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1719 # It thinks the first close brace ends the variable substitution.
1720 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1721
1722 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1723
1724 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1725
1726 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1727 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1728 # Just in case
1729 sleep 1
1730 echo timestamp > conftest.file
1731 # Do `set' in a subshell so we don't clobber the current shell's
1732 # arguments.  Must try -L first in case configure is actually a
1733 # symlink; some systems play weird games with the mod time of symlinks
1734 # (eg FreeBSD returns the mod time of the symlink's containing
1735 # directory).
1736 if (
1737    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1738    if test "$*" = "X"; then
1739       # -L didn't work.
1740       set X `ls -t $srcdir/configure conftest.file`
1741    fi
1742    rm -f conftest.file
1743    if test "$*" != "X $srcdir/configure conftest.file" \
1744       && test "$*" != "X conftest.file $srcdir/configure"; then
1745
1746       # If neither matched, then we have a broken ls.  This can happen
1747       # if, for instance, CONFIG_SHELL is bash and it inherits a
1748       # broken ls alias from the environment.  This has actually
1749       # happened.  Such a system could not be considered "sane".
1750       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1751 alias in your environment" >&5
1752 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1753 alias in your environment" >&2;}
1754    { (exit 1); exit 1; }; }
1755    fi
1756
1757    test "$2" = conftest.file
1758    )
1759 then
1760    # Ok.
1761    :
1762 else
1763    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1764 Check your system clock" >&5
1765 echo "$as_me: error: newly created file is older than distributed files!
1766 Check your system clock" >&2;}
1767    { (exit 1); exit 1; }; }
1768 fi
1769 echo "$as_me:$LINENO: result: yes" >&5
1770 echo "${ECHO_T}yes" >&6
1771 test "$program_prefix" != NONE &&
1772   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1773 # Use a double $ so make ignores it.
1774 test "$program_suffix" != NONE &&
1775   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1776 # Double any \ or $.  echo might interpret backslashes.
1777 # By default was `s,x,x', remove it if useless.
1778 cat <<\_ACEOF >conftest.sed
1779 s/[\\$]/&&/g;s/;s,x,x,$//
1780 _ACEOF
1781 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1782 rm conftest.sed
1783
1784 # expand $ac_aux_dir to an absolute path
1785 am_aux_dir=`cd $ac_aux_dir && pwd`
1786
1787 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1788 # Use eval to expand $SHELL
1789 if eval "$MISSING --run true"; then
1790   am_missing_run="$MISSING --run "
1791 else
1792   am_missing_run=
1793   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1794 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1795 fi
1796
1797 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1798   # We used to keeping the `.' as first argument, in order to
1799   # allow $(mkdir_p) to be used without argument.  As in
1800   #   $(mkdir_p) $(somedir)
1801   # where $(somedir) is conditionally defined.  However this is wrong
1802   # for two reasons:
1803   #  1. if the package is installed by a user who cannot write `.'
1804   #     make install will fail,
1805   #  2. the above comment should most certainly read
1806   #     $(mkdir_p) $(DESTDIR)$(somedir)
1807   #     so it does not work when $(somedir) is undefined and
1808   #     $(DESTDIR) is not.
1809   #  To support the latter case, we have to write
1810   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1811   #  so the `.' trick is pointless.
1812   mkdir_p='mkdir -p --'
1813 else
1814   # On NextStep and OpenStep, the `mkdir' command does not
1815   # recognize any option.  It will interpret all options as
1816   # directories to create, and then abort because `.' already
1817   # exists.
1818   for d in ./-p ./--version;
1819   do
1820     test -d $d && rmdir $d
1821   done
1822   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1823   if test -f "$ac_aux_dir/mkinstalldirs"; then
1824     mkdir_p='$(mkinstalldirs)'
1825   else
1826     mkdir_p='$(install_sh) -d'
1827   fi
1828 fi
1829
1830 for ac_prog in gawk mawk nawk awk
1831 do
1832   # Extract the first word of "$ac_prog", so it can be a program name with args.
1833 set dummy $ac_prog; ac_word=$2
1834 echo "$as_me:$LINENO: checking for $ac_word" >&5
1835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1836 if test "${ac_cv_prog_AWK+set}" = set; then
1837   echo $ECHO_N "(cached) $ECHO_C" >&6
1838 else
1839   if test -n "$AWK"; then
1840   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1841 else
1842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1843 for as_dir in $PATH
1844 do
1845   IFS=$as_save_IFS
1846   test -z "$as_dir" && as_dir=.
1847   for ac_exec_ext in '' $ac_executable_extensions; do
1848   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1849     ac_cv_prog_AWK="$ac_prog"
1850     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1851     break 2
1852   fi
1853 done
1854 done
1855
1856 fi
1857 fi
1858 AWK=$ac_cv_prog_AWK
1859 if test -n "$AWK"; then
1860   echo "$as_me:$LINENO: result: $AWK" >&5
1861 echo "${ECHO_T}$AWK" >&6
1862 else
1863   echo "$as_me:$LINENO: result: no" >&5
1864 echo "${ECHO_T}no" >&6
1865 fi
1866
1867   test -n "$AWK" && break
1868 done
1869
1870 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1871 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1872 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1873 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1874   echo $ECHO_N "(cached) $ECHO_C" >&6
1875 else
1876   cat >conftest.make <<\_ACEOF
1877 all:
1878         @echo 'ac_maketemp="$(MAKE)"'
1879 _ACEOF
1880 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1881 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1882 if test -n "$ac_maketemp"; then
1883   eval ac_cv_prog_make_${ac_make}_set=yes
1884 else
1885   eval ac_cv_prog_make_${ac_make}_set=no
1886 fi
1887 rm -f conftest.make
1888 fi
1889 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1890   echo "$as_me:$LINENO: result: yes" >&5
1891 echo "${ECHO_T}yes" >&6
1892   SET_MAKE=
1893 else
1894   echo "$as_me:$LINENO: result: no" >&5
1895 echo "${ECHO_T}no" >&6
1896   SET_MAKE="MAKE=${MAKE-make}"
1897 fi
1898
1899 rm -rf .tst 2>/dev/null
1900 mkdir .tst 2>/dev/null
1901 if test -d .tst; then
1902   am__leading_dot=.
1903 else
1904   am__leading_dot=_
1905 fi
1906 rmdir .tst 2>/dev/null
1907
1908 # test to see if srcdir already configured
1909 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1910    test -f $srcdir/config.status; then
1911   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1912 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1913    { (exit 1); exit 1; }; }
1914 fi
1915
1916 # test whether we have cygpath
1917 if test -z "$CYGPATH_W"; then
1918   if (cygpath --version) >/dev/null 2>/dev/null; then
1919     CYGPATH_W='cygpath -w'
1920   else
1921     CYGPATH_W=echo
1922   fi
1923 fi
1924
1925
1926 # Define the identity of the package.
1927  PACKAGE='simgrid'
1928  VERSION='3.3-cvs'
1929
1930
1931 cat >>confdefs.h <<_ACEOF
1932 #define PACKAGE "$PACKAGE"
1933 _ACEOF
1934
1935
1936 cat >>confdefs.h <<_ACEOF
1937 #define VERSION "$VERSION"
1938 _ACEOF
1939
1940 # Some tools Automake needs.
1941
1942 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1943
1944
1945 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1946
1947
1948 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1949
1950
1951 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1952
1953
1954 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1955
1956 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1957
1958 # Installed binaries are usually stripped using `strip' when the user
1959 # run `make install-strip'.  However `strip' might not be the right
1960 # tool to use in cross-compilation environments, therefore Automake
1961 # will honor the `STRIP' environment variable to overrule this program.
1962 if test "$cross_compiling" != no; then
1963   if test -n "$ac_tool_prefix"; then
1964   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1965 set dummy ${ac_tool_prefix}strip; ac_word=$2
1966 echo "$as_me:$LINENO: checking for $ac_word" >&5
1967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1968 if test "${ac_cv_prog_STRIP+set}" = set; then
1969   echo $ECHO_N "(cached) $ECHO_C" >&6
1970 else
1971   if test -n "$STRIP"; then
1972   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1973 else
1974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1975 for as_dir in $PATH
1976 do
1977   IFS=$as_save_IFS
1978   test -z "$as_dir" && as_dir=.
1979   for ac_exec_ext in '' $ac_executable_extensions; do
1980   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1981     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1982     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1983     break 2
1984   fi
1985 done
1986 done
1987
1988 fi
1989 fi
1990 STRIP=$ac_cv_prog_STRIP
1991 if test -n "$STRIP"; then
1992   echo "$as_me:$LINENO: result: $STRIP" >&5
1993 echo "${ECHO_T}$STRIP" >&6
1994 else
1995   echo "$as_me:$LINENO: result: no" >&5
1996 echo "${ECHO_T}no" >&6
1997 fi
1998
1999 fi
2000 if test -z "$ac_cv_prog_STRIP"; then
2001   ac_ct_STRIP=$STRIP
2002   # Extract the first word of "strip", so it can be a program name with args.
2003 set dummy strip; ac_word=$2
2004 echo "$as_me:$LINENO: checking for $ac_word" >&5
2005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2006 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2007   echo $ECHO_N "(cached) $ECHO_C" >&6
2008 else
2009   if test -n "$ac_ct_STRIP"; then
2010   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2011 else
2012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2013 for as_dir in $PATH
2014 do
2015   IFS=$as_save_IFS
2016   test -z "$as_dir" && as_dir=.
2017   for ac_exec_ext in '' $ac_executable_extensions; do
2018   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2019     ac_cv_prog_ac_ct_STRIP="strip"
2020     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2021     break 2
2022   fi
2023 done
2024 done
2025
2026   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2027 fi
2028 fi
2029 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2030 if test -n "$ac_ct_STRIP"; then
2031   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2032 echo "${ECHO_T}$ac_ct_STRIP" >&6
2033 else
2034   echo "$as_me:$LINENO: result: no" >&5
2035 echo "${ECHO_T}no" >&6
2036 fi
2037
2038   STRIP=$ac_ct_STRIP
2039 else
2040   STRIP="$ac_cv_prog_STRIP"
2041 fi
2042
2043 fi
2044 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2045
2046 # We need awk for the "check" target.  The system "awk" is bad on
2047 # some platforms.
2048 # Always define AMTAR for backward compatibility.
2049
2050 AMTAR=${AMTAR-"${am_missing_run}tar"}
2051
2052 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2053
2054
2055
2056
2057
2058 case acmacro in
2059   [\\/]* | ?:[\\/]* ) ac_macro_dir=acmacro         ;;
2060   *)                      ac_macro_dir=$srcdir/acmacro ;;
2061 esac
2062 if test -d "$ac_macro_dir"; then :
2063 else
2064   { { echo "$as_me:$LINENO: error: cannot find macro directory \`acmacro'" >&5
2065 echo "$as_me: error: cannot find macro directory \`acmacro'" >&2;}
2066    { (exit 1); exit 1; }; }
2067 fi
2068
2069 ACLOCAL="$ACLOCAL -I acmacro"
2070
2071
2072 # Check whether --enable-shared or --disable-shared was given.
2073 if test "${enable_shared+set}" = set; then
2074   enableval="$enable_shared"
2075   p=${PACKAGE-default}
2076     case $enableval in
2077     yes) enable_shared=yes ;;
2078     no) enable_shared=no ;;
2079     *)
2080       enable_shared=no
2081       # Look at the argument we got.  We use all the common list separators.
2082       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2083       for pkg in $enableval; do
2084         IFS="$lt_save_ifs"
2085         if test "X$pkg" = "X$p"; then
2086           enable_shared=yes
2087         fi
2088       done
2089       IFS="$lt_save_ifs"
2090       ;;
2091     esac
2092 else
2093   enable_shared=yes
2094 fi;
2095
2096 # Check whether --enable-static or --disable-static was given.
2097 if test "${enable_static+set}" = set; then
2098   enableval="$enable_static"
2099   p=${PACKAGE-default}
2100     case $enableval in
2101     yes) enable_static=yes ;;
2102     no) enable_static=no ;;
2103     *)
2104      enable_static=no
2105       # Look at the argument we got.  We use all the common list separators.
2106       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2107       for pkg in $enableval; do
2108         IFS="$lt_save_ifs"
2109         if test "X$pkg" = "X$p"; then
2110           enable_static=yes
2111         fi
2112       done
2113       IFS="$lt_save_ifs"
2114       ;;
2115     esac
2116 else
2117   enable_static=yes
2118 fi;
2119
2120 # Check whether --enable-fast-install or --disable-fast-install was given.
2121 if test "${enable_fast_install+set}" = set; then
2122   enableval="$enable_fast_install"
2123   p=${PACKAGE-default}
2124     case $enableval in
2125     yes) enable_fast_install=yes ;;
2126     no) enable_fast_install=no ;;
2127     *)
2128       enable_fast_install=no
2129       # Look at the argument we got.  We use all the common list separators.
2130       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2131       for pkg in $enableval; do
2132         IFS="$lt_save_ifs"
2133         if test "X$pkg" = "X$p"; then
2134           enable_fast_install=yes
2135         fi
2136       done
2137       IFS="$lt_save_ifs"
2138       ;;
2139     esac
2140 else
2141   enable_fast_install=yes
2142 fi;
2143
2144 DEPDIR="${am__leading_dot}deps"
2145
2146           ac_config_commands="$ac_config_commands depfiles"
2147
2148
2149 am_make=${MAKE-make}
2150 cat > confinc << 'END'
2151 am__doit:
2152         @echo done
2153 .PHONY: am__doit
2154 END
2155 # If we don't find an include directive, just comment out the code.
2156 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2157 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2158 am__include="#"
2159 am__quote=
2160 _am_result=none
2161 # First try GNU make style include.
2162 echo "include confinc" > confmf
2163 # We grep out `Entering directory' and `Leaving directory'
2164 # messages which can occur if `w' ends up in MAKEFLAGS.
2165 # In particular we don't look at `^make:' because GNU make might
2166 # be invoked under some other name (usually "gmake"), in which
2167 # case it prints its new name instead of `make'.
2168 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2169    am__include=include
2170    am__quote=
2171    _am_result=GNU
2172 fi
2173 # Now try BSD make style include.
2174 if test "$am__include" = "#"; then
2175    echo '.include "confinc"' > confmf
2176    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2177       am__include=.include
2178       am__quote="\""
2179       _am_result=BSD
2180    fi
2181 fi
2182
2183
2184 echo "$as_me:$LINENO: result: $_am_result" >&5
2185 echo "${ECHO_T}$_am_result" >&6
2186 rm -f confinc confmf
2187
2188 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2189 if test "${enable_dependency_tracking+set}" = set; then
2190   enableval="$enable_dependency_tracking"
2191
2192 fi;
2193 if test "x$enable_dependency_tracking" != xno; then
2194   am_depcomp="$ac_aux_dir/depcomp"
2195   AMDEPBACKSLASH='\'
2196 fi
2197
2198
2199 if test "x$enable_dependency_tracking" != xno; then
2200   AMDEP_TRUE=
2201   AMDEP_FALSE='#'
2202 else
2203   AMDEP_TRUE='#'
2204   AMDEP_FALSE=
2205 fi
2206
2207
2208
2209 ac_ext=c
2210 ac_cpp='$CPP $CPPFLAGS'
2211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2214 if test -n "$ac_tool_prefix"; then
2215   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2216 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2217 echo "$as_me:$LINENO: checking for $ac_word" >&5
2218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2219 if test "${ac_cv_prog_CC+set}" = set; then
2220   echo $ECHO_N "(cached) $ECHO_C" >&6
2221 else
2222   if test -n "$CC"; then
2223   ac_cv_prog_CC="$CC" # Let the user override the test.
2224 else
2225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2226 for as_dir in $PATH
2227 do
2228   IFS=$as_save_IFS
2229   test -z "$as_dir" && as_dir=.
2230   for ac_exec_ext in '' $ac_executable_extensions; do
2231   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2232     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2233     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2234     break 2
2235   fi
2236 done
2237 done
2238
2239 fi
2240 fi
2241 CC=$ac_cv_prog_CC
2242 if test -n "$CC"; then
2243   echo "$as_me:$LINENO: result: $CC" >&5
2244 echo "${ECHO_T}$CC" >&6
2245 else
2246   echo "$as_me:$LINENO: result: no" >&5
2247 echo "${ECHO_T}no" >&6
2248 fi
2249
2250 fi
2251 if test -z "$ac_cv_prog_CC"; then
2252   ac_ct_CC=$CC
2253   # Extract the first word of "gcc", so it can be a program name with args.
2254 set dummy gcc; 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_ac_ct_CC+set}" = set; then
2258   echo $ECHO_N "(cached) $ECHO_C" >&6
2259 else
2260   if test -n "$ac_ct_CC"; then
2261   ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="gcc"
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 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2280 if test -n "$ac_ct_CC"; then
2281   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2282 echo "${ECHO_T}$ac_ct_CC" >&6
2283 else
2284   echo "$as_me:$LINENO: result: no" >&5
2285 echo "${ECHO_T}no" >&6
2286 fi
2287
2288   CC=$ac_ct_CC
2289 else
2290   CC="$ac_cv_prog_CC"
2291 fi
2292
2293 if test -z "$CC"; then
2294   if test -n "$ac_tool_prefix"; then
2295   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2296 set dummy ${ac_tool_prefix}cc; ac_word=$2
2297 echo "$as_me:$LINENO: checking for $ac_word" >&5
2298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2299 if test "${ac_cv_prog_CC+set}" = set; then
2300   echo $ECHO_N "(cached) $ECHO_C" >&6
2301 else
2302   if test -n "$CC"; then
2303   ac_cv_prog_CC="$CC" # Let the user override the test.
2304 else
2305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2306 for as_dir in $PATH
2307 do
2308   IFS=$as_save_IFS
2309   test -z "$as_dir" && as_dir=.
2310   for ac_exec_ext in '' $ac_executable_extensions; do
2311   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2312     ac_cv_prog_CC="${ac_tool_prefix}cc"
2313     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2314     break 2
2315   fi
2316 done
2317 done
2318
2319 fi
2320 fi
2321 CC=$ac_cv_prog_CC
2322 if test -n "$CC"; then
2323   echo "$as_me:$LINENO: result: $CC" >&5
2324 echo "${ECHO_T}$CC" >&6
2325 else
2326   echo "$as_me:$LINENO: result: no" >&5
2327 echo "${ECHO_T}no" >&6
2328 fi
2329
2330 fi
2331 if test -z "$ac_cv_prog_CC"; then
2332   ac_ct_CC=$CC
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_ac_ct_CC+set}" = set; then
2338   echo $ECHO_N "(cached) $ECHO_C" >&6
2339 else
2340   if test -n "$ac_ct_CC"; then
2341   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2342 else
2343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344 for as_dir in $PATH
2345 do
2346   IFS=$as_save_IFS
2347   test -z "$as_dir" && as_dir=.
2348   for ac_exec_ext in '' $ac_executable_extensions; do
2349   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2350     ac_cv_prog_ac_ct_CC="cc"
2351     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2352     break 2
2353   fi
2354 done
2355 done
2356
2357 fi
2358 fi
2359 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2360 if test -n "$ac_ct_CC"; then
2361   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2362 echo "${ECHO_T}$ac_ct_CC" >&6
2363 else
2364   echo "$as_me:$LINENO: result: no" >&5
2365 echo "${ECHO_T}no" >&6
2366 fi
2367
2368   CC=$ac_ct_CC
2369 else
2370   CC="$ac_cv_prog_CC"
2371 fi
2372
2373 fi
2374 if test -z "$CC"; then
2375   # Extract the first word of "cc", so it can be a program name with args.
2376 set dummy cc; ac_word=$2
2377 echo "$as_me:$LINENO: checking for $ac_word" >&5
2378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2379 if test "${ac_cv_prog_CC+set}" = set; then
2380   echo $ECHO_N "(cached) $ECHO_C" >&6
2381 else
2382   if test -n "$CC"; then
2383   ac_cv_prog_CC="$CC" # Let the user override the test.
2384 else
2385   ac_prog_rejected=no
2386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387 for as_dir in $PATH
2388 do
2389   IFS=$as_save_IFS
2390   test -z "$as_dir" && as_dir=.
2391   for ac_exec_ext in '' $ac_executable_extensions; do
2392   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2393     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2394        ac_prog_rejected=yes
2395        continue
2396      fi
2397     ac_cv_prog_CC="cc"
2398     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2399     break 2
2400   fi
2401 done
2402 done
2403
2404 if test $ac_prog_rejected = yes; then
2405   # We found a bogon in the path, so make sure we never use it.
2406   set dummy $ac_cv_prog_CC
2407   shift
2408   if test $# != 0; then
2409     # We chose a different compiler from the bogus one.
2410     # However, it has the same basename, so the bogon will be chosen
2411     # first if we set CC to just the basename; use the full file name.
2412     shift
2413     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2414   fi
2415 fi
2416 fi
2417 fi
2418 CC=$ac_cv_prog_CC
2419 if test -n "$CC"; then
2420   echo "$as_me:$LINENO: result: $CC" >&5
2421 echo "${ECHO_T}$CC" >&6
2422 else
2423   echo "$as_me:$LINENO: result: no" >&5
2424 echo "${ECHO_T}no" >&6
2425 fi
2426
2427 fi
2428 if test -z "$CC"; then
2429   if test -n "$ac_tool_prefix"; then
2430   for ac_prog in cl
2431   do
2432     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2433 set dummy $ac_tool_prefix$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_CC+set}" = set; then
2437   echo $ECHO_N "(cached) $ECHO_C" >&6
2438 else
2439   if test -n "$CC"; then
2440   ac_cv_prog_CC="$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_CC="$ac_tool_prefix$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 CC=$ac_cv_prog_CC
2459 if test -n "$CC"; then
2460   echo "$as_me:$LINENO: result: $CC" >&5
2461 echo "${ECHO_T}$CC" >&6
2462 else
2463   echo "$as_me:$LINENO: result: no" >&5
2464 echo "${ECHO_T}no" >&6
2465 fi
2466
2467     test -n "$CC" && break
2468   done
2469 fi
2470 if test -z "$CC"; then
2471   ac_ct_CC=$CC
2472   for ac_prog in cl
2473 do
2474   # Extract the first word of "$ac_prog", so it can be a program name with args.
2475 set dummy $ac_prog; ac_word=$2
2476 echo "$as_me:$LINENO: checking for $ac_word" >&5
2477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2478 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2479   echo $ECHO_N "(cached) $ECHO_C" >&6
2480 else
2481   if test -n "$ac_ct_CC"; then
2482   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2483 else
2484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485 for as_dir in $PATH
2486 do
2487   IFS=$as_save_IFS
2488   test -z "$as_dir" && as_dir=.
2489   for ac_exec_ext in '' $ac_executable_extensions; do
2490   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2491     ac_cv_prog_ac_ct_CC="$ac_prog"
2492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2493     break 2
2494   fi
2495 done
2496 done
2497
2498 fi
2499 fi
2500 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2501 if test -n "$ac_ct_CC"; then
2502   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2503 echo "${ECHO_T}$ac_ct_CC" >&6
2504 else
2505   echo "$as_me:$LINENO: result: no" >&5
2506 echo "${ECHO_T}no" >&6
2507 fi
2508
2509   test -n "$ac_ct_CC" && break
2510 done
2511
2512   CC=$ac_ct_CC
2513 fi
2514
2515 fi
2516
2517
2518 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2519 See \`config.log' for more details." >&5
2520 echo "$as_me: error: no acceptable C compiler found in \$PATH
2521 See \`config.log' for more details." >&2;}
2522    { (exit 1); exit 1; }; }
2523
2524 # Provide some information about the compiler.
2525 echo "$as_me:$LINENO:" \
2526      "checking for C compiler version" >&5
2527 ac_compiler=`set X $ac_compile; echo $2`
2528 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2529   (eval $ac_compiler --version </dev/null >&5) 2>&5
2530   ac_status=$?
2531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532   (exit $ac_status); }
2533 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2534   (eval $ac_compiler -v </dev/null >&5) 2>&5
2535   ac_status=$?
2536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537   (exit $ac_status); }
2538 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2539   (eval $ac_compiler -V </dev/null >&5) 2>&5
2540   ac_status=$?
2541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542   (exit $ac_status); }
2543
2544 cat >conftest.$ac_ext <<_ACEOF
2545 /* confdefs.h.  */
2546 _ACEOF
2547 cat confdefs.h >>conftest.$ac_ext
2548 cat >>conftest.$ac_ext <<_ACEOF
2549 /* end confdefs.h.  */
2550
2551 int
2552 main ()
2553 {
2554
2555   ;
2556   return 0;
2557 }
2558 _ACEOF
2559 ac_clean_files_save=$ac_clean_files
2560 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2561 # Try to create an executable without -o first, disregard a.out.
2562 # It will help us diagnose broken compilers, and finding out an intuition
2563 # of exeext.
2564 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2565 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2566 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2567 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2568   (eval $ac_link_default) 2>&5
2569   ac_status=$?
2570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571   (exit $ac_status); }; then
2572   # Find the output, starting from the most likely.  This scheme is
2573 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2574 # resort.
2575
2576 # Be careful to initialize this variable, since it used to be cached.
2577 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2578 ac_cv_exeext=
2579 # b.out is created by i960 compilers.
2580 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2581 do
2582   test -f "$ac_file" || continue
2583   case $ac_file in
2584     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2585         ;;
2586     conftest.$ac_ext )
2587         # This is the source file.
2588         ;;
2589     [ab].out )
2590         # We found the default executable, but exeext='' is most
2591         # certainly right.
2592         break;;
2593     *.* )
2594         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2595         # FIXME: I believe we export ac_cv_exeext for Libtool,
2596         # but it would be cool to find out if it's true.  Does anybody
2597         # maintain Libtool? --akim.
2598         export ac_cv_exeext
2599         break;;
2600     * )
2601         break;;
2602   esac
2603 done
2604 else
2605   echo "$as_me: failed program was:" >&5
2606 sed 's/^/| /' conftest.$ac_ext >&5
2607
2608 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2609 See \`config.log' for more details." >&5
2610 echo "$as_me: error: C compiler cannot create executables
2611 See \`config.log' for more details." >&2;}
2612    { (exit 77); exit 77; }; }
2613 fi
2614
2615 ac_exeext=$ac_cv_exeext
2616 echo "$as_me:$LINENO: result: $ac_file" >&5
2617 echo "${ECHO_T}$ac_file" >&6
2618
2619 # Check the compiler produces executables we can run.  If not, either
2620 # the compiler is broken, or we cross compile.
2621 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2622 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2623 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2624 # If not cross compiling, check that we can run a simple program.
2625 if test "$cross_compiling" != yes; then
2626   if { ac_try='./$ac_file'
2627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628   (eval $ac_try) 2>&5
2629   ac_status=$?
2630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631   (exit $ac_status); }; }; then
2632     cross_compiling=no
2633   else
2634     if test "$cross_compiling" = maybe; then
2635         cross_compiling=yes
2636     else
2637         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2638 If you meant to cross compile, use \`--host'.
2639 See \`config.log' for more details." >&5
2640 echo "$as_me: error: cannot run C compiled programs.
2641 If you meant to cross compile, use \`--host'.
2642 See \`config.log' for more details." >&2;}
2643    { (exit 1); exit 1; }; }
2644     fi
2645   fi
2646 fi
2647 echo "$as_me:$LINENO: result: yes" >&5
2648 echo "${ECHO_T}yes" >&6
2649
2650 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2651 ac_clean_files=$ac_clean_files_save
2652 # Check the compiler produces executables we can run.  If not, either
2653 # the compiler is broken, or we cross compile.
2654 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2655 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2656 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2657 echo "${ECHO_T}$cross_compiling" >&6
2658
2659 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2660 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2662   (eval $ac_link) 2>&5
2663   ac_status=$?
2664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665   (exit $ac_status); }; then
2666   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2667 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2668 # work properly (i.e., refer to `conftest.exe'), while it won't with
2669 # `rm'.
2670 for ac_file in conftest.exe conftest conftest.*; do
2671   test -f "$ac_file" || continue
2672   case $ac_file in
2673     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2674     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2675           export ac_cv_exeext
2676           break;;
2677     * ) break;;
2678   esac
2679 done
2680 else
2681   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2682 See \`config.log' for more details." >&5
2683 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2684 See \`config.log' for more details." >&2;}
2685    { (exit 1); exit 1; }; }
2686 fi
2687
2688 rm -f conftest$ac_cv_exeext
2689 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2690 echo "${ECHO_T}$ac_cv_exeext" >&6
2691
2692 rm -f conftest.$ac_ext
2693 EXEEXT=$ac_cv_exeext
2694 ac_exeext=$EXEEXT
2695 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2696 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2697 if test "${ac_cv_objext+set}" = set; then
2698   echo $ECHO_N "(cached) $ECHO_C" >&6
2699 else
2700   cat >conftest.$ac_ext <<_ACEOF
2701 /* confdefs.h.  */
2702 _ACEOF
2703 cat confdefs.h >>conftest.$ac_ext
2704 cat >>conftest.$ac_ext <<_ACEOF
2705 /* end confdefs.h.  */
2706
2707 int
2708 main ()
2709 {
2710
2711   ;
2712   return 0;
2713 }
2714 _ACEOF
2715 rm -f conftest.o conftest.obj
2716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2717   (eval $ac_compile) 2>&5
2718   ac_status=$?
2719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720   (exit $ac_status); }; then
2721   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2722   case $ac_file in
2723     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2724     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2725        break;;
2726   esac
2727 done
2728 else
2729   echo "$as_me: failed program was:" >&5
2730 sed 's/^/| /' conftest.$ac_ext >&5
2731
2732 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2733 See \`config.log' for more details." >&5
2734 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2735 See \`config.log' for more details." >&2;}
2736    { (exit 1); exit 1; }; }
2737 fi
2738
2739 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2740 fi
2741 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2742 echo "${ECHO_T}$ac_cv_objext" >&6
2743 OBJEXT=$ac_cv_objext
2744 ac_objext=$OBJEXT
2745 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2746 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2747 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2748   echo $ECHO_N "(cached) $ECHO_C" >&6
2749 else
2750   cat >conftest.$ac_ext <<_ACEOF
2751 /* confdefs.h.  */
2752 _ACEOF
2753 cat confdefs.h >>conftest.$ac_ext
2754 cat >>conftest.$ac_ext <<_ACEOF
2755 /* end confdefs.h.  */
2756
2757 int
2758 main ()
2759 {
2760 #ifndef __GNUC__
2761        choke me
2762 #endif
2763
2764   ;
2765   return 0;
2766 }
2767 _ACEOF
2768 rm -f conftest.$ac_objext
2769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2770   (eval $ac_compile) 2>conftest.er1
2771   ac_status=$?
2772   grep -v '^ *+' conftest.er1 >conftest.err
2773   rm -f conftest.er1
2774   cat conftest.err >&5
2775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776   (exit $ac_status); } &&
2777          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2779   (eval $ac_try) 2>&5
2780   ac_status=$?
2781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782   (exit $ac_status); }; } &&
2783          { ac_try='test -s conftest.$ac_objext'
2784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785   (eval $ac_try) 2>&5
2786   ac_status=$?
2787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788   (exit $ac_status); }; }; then
2789   ac_compiler_gnu=yes
2790 else
2791   echo "$as_me: failed program was:" >&5
2792 sed 's/^/| /' conftest.$ac_ext >&5
2793
2794 ac_compiler_gnu=no
2795 fi
2796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2797 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2798
2799 fi
2800 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2801 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2802 GCC=`test $ac_compiler_gnu = yes && echo yes`
2803 ac_test_CFLAGS=${CFLAGS+set}
2804 ac_save_CFLAGS=$CFLAGS
2805 CFLAGS="-g"
2806 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2807 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2808 if test "${ac_cv_prog_cc_g+set}" = set; then
2809   echo $ECHO_N "(cached) $ECHO_C" >&6
2810 else
2811   cat >conftest.$ac_ext <<_ACEOF
2812 /* confdefs.h.  */
2813 _ACEOF
2814 cat confdefs.h >>conftest.$ac_ext
2815 cat >>conftest.$ac_ext <<_ACEOF
2816 /* end confdefs.h.  */
2817
2818 int
2819 main ()
2820 {
2821
2822   ;
2823   return 0;
2824 }
2825 _ACEOF
2826 rm -f conftest.$ac_objext
2827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2828   (eval $ac_compile) 2>conftest.er1
2829   ac_status=$?
2830   grep -v '^ *+' conftest.er1 >conftest.err
2831   rm -f conftest.er1
2832   cat conftest.err >&5
2833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834   (exit $ac_status); } &&
2835          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2837   (eval $ac_try) 2>&5
2838   ac_status=$?
2839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840   (exit $ac_status); }; } &&
2841          { ac_try='test -s conftest.$ac_objext'
2842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2843   (eval $ac_try) 2>&5
2844   ac_status=$?
2845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846   (exit $ac_status); }; }; then
2847   ac_cv_prog_cc_g=yes
2848 else
2849   echo "$as_me: failed program was:" >&5
2850 sed 's/^/| /' conftest.$ac_ext >&5
2851
2852 ac_cv_prog_cc_g=no
2853 fi
2854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2855 fi
2856 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2857 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2858 if test "$ac_test_CFLAGS" = set; then
2859   CFLAGS=$ac_save_CFLAGS
2860 elif test $ac_cv_prog_cc_g = yes; then
2861   if test "$GCC" = yes; then
2862     CFLAGS="-g -O2"
2863   else
2864     CFLAGS="-g"
2865   fi
2866 else
2867   if test "$GCC" = yes; then
2868     CFLAGS="-O2"
2869   else
2870     CFLAGS=
2871   fi
2872 fi
2873 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2874 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2875 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2876   echo $ECHO_N "(cached) $ECHO_C" >&6
2877 else
2878   ac_cv_prog_cc_stdc=no
2879 ac_save_CC=$CC
2880 cat >conftest.$ac_ext <<_ACEOF
2881 /* confdefs.h.  */
2882 _ACEOF
2883 cat confdefs.h >>conftest.$ac_ext
2884 cat >>conftest.$ac_ext <<_ACEOF
2885 /* end confdefs.h.  */
2886 #include <stdarg.h>
2887 #include <stdio.h>
2888 #include <sys/types.h>
2889 #include <sys/stat.h>
2890 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2891 struct buf { int x; };
2892 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2893 static char *e (p, i)
2894      char **p;
2895      int i;
2896 {
2897   return p[i];
2898 }
2899 static char *f (char * (*g) (char **, int), char **p, ...)
2900 {
2901   char *s;
2902   va_list v;
2903   va_start (v,p);
2904   s = g (p, va_arg (v,int));
2905   va_end (v);
2906   return s;
2907 }
2908
2909 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2910    function prototypes and stuff, but not '\xHH' hex character constants.
2911    These don't provoke an error unfortunately, instead are silently treated
2912    as 'x'.  The following induces an error, until -std1 is added to get
2913    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2914    array size at least.  It's necessary to write '\x00'==0 to get something
2915    that's true only with -std1.  */
2916 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2917
2918 int test (int i, double x);
2919 struct s1 {int (*f) (int a);};
2920 struct s2 {int (*f) (double a);};
2921 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2922 int argc;
2923 char **argv;
2924 int
2925 main ()
2926 {
2927 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2928   ;
2929   return 0;
2930 }
2931 _ACEOF
2932 # Don't try gcc -ansi; that turns off useful extensions and
2933 # breaks some systems' header files.
2934 # AIX                   -qlanglvl=ansi
2935 # Ultrix and OSF/1      -std1
2936 # HP-UX 10.20 and later -Ae
2937 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2938 # SVR4                  -Xc -D__EXTENSIONS__
2939 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2940 do
2941   CC="$ac_save_CC $ac_arg"
2942   rm -f conftest.$ac_objext
2943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2944   (eval $ac_compile) 2>conftest.er1
2945   ac_status=$?
2946   grep -v '^ *+' conftest.er1 >conftest.err
2947   rm -f conftest.er1
2948   cat conftest.err >&5
2949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950   (exit $ac_status); } &&
2951          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2953   (eval $ac_try) 2>&5
2954   ac_status=$?
2955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956   (exit $ac_status); }; } &&
2957          { ac_try='test -s conftest.$ac_objext'
2958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2959   (eval $ac_try) 2>&5
2960   ac_status=$?
2961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962   (exit $ac_status); }; }; then
2963   ac_cv_prog_cc_stdc=$ac_arg
2964 break
2965 else
2966   echo "$as_me: failed program was:" >&5
2967 sed 's/^/| /' conftest.$ac_ext >&5
2968
2969 fi
2970 rm -f conftest.err conftest.$ac_objext
2971 done
2972 rm -f conftest.$ac_ext conftest.$ac_objext
2973 CC=$ac_save_CC
2974
2975 fi
2976
2977 case "x$ac_cv_prog_cc_stdc" in
2978   x|xno)
2979     echo "$as_me:$LINENO: result: none needed" >&5
2980 echo "${ECHO_T}none needed" >&6 ;;
2981   *)
2982     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2983 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2984     CC="$CC $ac_cv_prog_cc_stdc" ;;
2985 esac
2986
2987 # Some people use a C++ compiler to compile C.  Since we use `exit',
2988 # in C++ we need to declare it.  In case someone uses the same compiler
2989 # for both compiling C and C++ we need to have the C++ compiler decide
2990 # the declaration of exit, since it's the most demanding environment.
2991 cat >conftest.$ac_ext <<_ACEOF
2992 #ifndef __cplusplus
2993   choke me
2994 #endif
2995 _ACEOF
2996 rm -f conftest.$ac_objext
2997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2998   (eval $ac_compile) 2>conftest.er1
2999   ac_status=$?
3000   grep -v '^ *+' conftest.er1 >conftest.err
3001   rm -f conftest.er1
3002   cat conftest.err >&5
3003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004   (exit $ac_status); } &&
3005          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3007   (eval $ac_try) 2>&5
3008   ac_status=$?
3009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010   (exit $ac_status); }; } &&
3011          { ac_try='test -s conftest.$ac_objext'
3012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3013   (eval $ac_try) 2>&5
3014   ac_status=$?
3015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016   (exit $ac_status); }; }; then
3017   for ac_declaration in \
3018    '' \
3019    'extern "C" void std::exit (int) throw (); using std::exit;' \
3020    'extern "C" void std::exit (int); using std::exit;' \
3021    'extern "C" void exit (int) throw ();' \
3022    'extern "C" void exit (int);' \
3023    'void exit (int);'
3024 do
3025   cat >conftest.$ac_ext <<_ACEOF
3026 /* confdefs.h.  */
3027 _ACEOF
3028 cat confdefs.h >>conftest.$ac_ext
3029 cat >>conftest.$ac_ext <<_ACEOF
3030 /* end confdefs.h.  */
3031 $ac_declaration
3032 #include <stdlib.h>
3033 int
3034 main ()
3035 {
3036 exit (42);
3037   ;
3038   return 0;
3039 }
3040 _ACEOF
3041 rm -f conftest.$ac_objext
3042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3043   (eval $ac_compile) 2>conftest.er1
3044   ac_status=$?
3045   grep -v '^ *+' conftest.er1 >conftest.err
3046   rm -f conftest.er1
3047   cat conftest.err >&5
3048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049   (exit $ac_status); } &&
3050          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3052   (eval $ac_try) 2>&5
3053   ac_status=$?
3054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055   (exit $ac_status); }; } &&
3056          { ac_try='test -s conftest.$ac_objext'
3057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3058   (eval $ac_try) 2>&5
3059   ac_status=$?
3060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061   (exit $ac_status); }; }; then
3062   :
3063 else
3064   echo "$as_me: failed program was:" >&5
3065 sed 's/^/| /' conftest.$ac_ext >&5
3066
3067 continue
3068 fi
3069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3070   cat >conftest.$ac_ext <<_ACEOF
3071 /* confdefs.h.  */
3072 _ACEOF
3073 cat confdefs.h >>conftest.$ac_ext
3074 cat >>conftest.$ac_ext <<_ACEOF
3075 /* end confdefs.h.  */
3076 $ac_declaration
3077 int
3078 main ()
3079 {
3080 exit (42);
3081   ;
3082   return 0;
3083 }
3084 _ACEOF
3085 rm -f conftest.$ac_objext
3086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3087   (eval $ac_compile) 2>conftest.er1
3088   ac_status=$?
3089   grep -v '^ *+' conftest.er1 >conftest.err
3090   rm -f conftest.er1
3091   cat conftest.err >&5
3092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093   (exit $ac_status); } &&
3094          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3096   (eval $ac_try) 2>&5
3097   ac_status=$?
3098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099   (exit $ac_status); }; } &&
3100          { ac_try='test -s conftest.$ac_objext'
3101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3102   (eval $ac_try) 2>&5
3103   ac_status=$?
3104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105   (exit $ac_status); }; }; then
3106   break
3107 else
3108   echo "$as_me: failed program was:" >&5
3109 sed 's/^/| /' conftest.$ac_ext >&5
3110
3111 fi
3112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3113 done
3114 rm -f conftest*
3115 if test -n "$ac_declaration"; then
3116   echo '#ifdef __cplusplus' >>confdefs.h
3117   echo $ac_declaration      >>confdefs.h
3118   echo '#endif'             >>confdefs.h
3119 fi
3120
3121 else
3122   echo "$as_me: failed program was:" >&5
3123 sed 's/^/| /' conftest.$ac_ext >&5
3124
3125 fi
3126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3127 ac_ext=c
3128 ac_cpp='$CPP $CPPFLAGS'
3129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3132
3133 depcc="$CC"   am_compiler_list=
3134
3135 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3136 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3137 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3138   echo $ECHO_N "(cached) $ECHO_C" >&6
3139 else
3140   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3141   # We make a subdir and do the tests there.  Otherwise we can end up
3142   # making bogus files that we don't know about and never remove.  For
3143   # instance it was reported that on HP-UX the gcc test will end up
3144   # making a dummy file named `D' -- because `-MD' means `put the output
3145   # in D'.
3146   mkdir conftest.dir
3147   # Copy depcomp to subdir because otherwise we won't find it if we're
3148   # using a relative directory.
3149   cp "$am_depcomp" conftest.dir
3150   cd conftest.dir
3151   # We will build objects and dependencies in a subdirectory because
3152   # it helps to detect inapplicable dependency modes.  For instance
3153   # both Tru64's cc and ICC support -MD to output dependencies as a
3154   # side effect of compilation, but ICC will put the dependencies in
3155   # the current directory while Tru64 will put them in the object
3156   # directory.
3157   mkdir sub
3158
3159   am_cv_CC_dependencies_compiler_type=none
3160   if test "$am_compiler_list" = ""; then
3161      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3162   fi
3163   for depmode in $am_compiler_list; do
3164     # Setup a source with many dependencies, because some compilers
3165     # like to wrap large dependency lists on column 80 (with \), and
3166     # we should not choose a depcomp mode which is confused by this.
3167     #
3168     # We need to recreate these files for each test, as the compiler may
3169     # overwrite some of them when testing with obscure command lines.
3170     # This happens at least with the AIX C compiler.
3171     : > sub/conftest.c
3172     for i in 1 2 3 4 5 6; do
3173       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3174       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3175       # Solaris 8's {/usr,}/bin/sh.
3176       touch sub/conftst$i.h
3177     done
3178     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3179
3180     case $depmode in
3181     nosideeffect)
3182       # after this tag, mechanisms are not by side-effect, so they'll
3183       # only be used when explicitly requested
3184       if test "x$enable_dependency_tracking" = xyes; then
3185         continue
3186       else
3187         break
3188       fi
3189       ;;
3190     none) break ;;
3191     esac
3192     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3193     # mode.  It turns out that the SunPro C++ compiler does not properly
3194     # handle `-M -o', and we need to detect this.
3195     if depmode=$depmode \
3196        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3197        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3198        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3199          >/dev/null 2>conftest.err &&
3200        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3201        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3202        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3203       # icc doesn't choke on unknown options, it will just issue warnings
3204       # or remarks (even with -Werror).  So we grep stderr for any message
3205       # that says an option was ignored or not supported.
3206       # When given -MP, icc 7.0 and 7.1 complain thusly:
3207       #   icc: Command line warning: ignoring option '-M'; no argument required
3208       # The diagnosis changed in icc 8.0:
3209       #   icc: Command line remark: option '-MP' not supported
3210       if (grep 'ignoring option' conftest.err ||
3211           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3212         am_cv_CC_dependencies_compiler_type=$depmode
3213         break
3214       fi
3215     fi
3216   done
3217
3218   cd ..
3219   rm -rf conftest.dir
3220 else
3221   am_cv_CC_dependencies_compiler_type=none
3222 fi
3223
3224 fi
3225 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3226 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3227 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3228
3229
3230
3231 if
3232   test "x$enable_dependency_tracking" != xno \
3233   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3234   am__fastdepCC_TRUE=
3235   am__fastdepCC_FALSE='#'
3236 else
3237   am__fastdepCC_TRUE='#'
3238   am__fastdepCC_FALSE=
3239 fi
3240
3241
3242 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3243 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3244 if test "${lt_cv_path_SED+set}" = set; then
3245   echo $ECHO_N "(cached) $ECHO_C" >&6
3246 else
3247   # Loop through the user's path and test for sed and gsed.
3248 # Then use that list of sed's as ones to test for truncation.
3249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3250 for as_dir in $PATH
3251 do
3252   IFS=$as_save_IFS
3253   test -z "$as_dir" && as_dir=.
3254   for lt_ac_prog in sed gsed; do
3255     for ac_exec_ext in '' $ac_executable_extensions; do
3256       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3257         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3258       fi
3259     done
3260   done
3261 done
3262 lt_ac_max=0
3263 lt_ac_count=0
3264 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3265 # along with /bin/sed that truncates output.
3266 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3267   test ! -f $lt_ac_sed && continue
3268   cat /dev/null > conftest.in
3269   lt_ac_count=0
3270   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3271   # Check for GNU sed and select it if it is found.
3272   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3273     lt_cv_path_SED=$lt_ac_sed
3274     break
3275   fi
3276   while true; do
3277     cat conftest.in conftest.in >conftest.tmp
3278     mv conftest.tmp conftest.in
3279     cp conftest.in conftest.nl
3280     echo >>conftest.nl
3281     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3282     cmp -s conftest.out conftest.nl || break
3283     # 10000 chars as input seems more than enough
3284     test $lt_ac_count -gt 10 && break
3285     lt_ac_count=`expr $lt_ac_count + 1`
3286     if test $lt_ac_count -gt $lt_ac_max; then
3287       lt_ac_max=$lt_ac_count
3288       lt_cv_path_SED=$lt_ac_sed
3289     fi
3290   done
3291 done
3292
3293 fi
3294
3295 SED=$lt_cv_path_SED
3296 echo "$as_me:$LINENO: result: $SED" >&5
3297 echo "${ECHO_T}$SED" >&6
3298
3299 echo "$as_me:$LINENO: checking for egrep" >&5
3300 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3301 if test "${ac_cv_prog_egrep+set}" = set; then
3302   echo $ECHO_N "(cached) $ECHO_C" >&6
3303 else
3304   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3305     then ac_cv_prog_egrep='grep -E'
3306     else ac_cv_prog_egrep='egrep'
3307     fi
3308 fi
3309 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3310 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3311  EGREP=$ac_cv_prog_egrep
3312
3313
3314
3315 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3316 if test "${with_gnu_ld+set}" = set; then
3317   withval="$with_gnu_ld"
3318   test "$withval" = no || with_gnu_ld=yes
3319 else
3320   with_gnu_ld=no
3321 fi;
3322 ac_prog=ld
3323 if test "$GCC" = yes; then
3324   # Check if gcc -print-prog-name=ld gives a path.
3325   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3326 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3327   case $host in
3328   *-*-mingw*)
3329     # gcc leaves a trailing carriage return which upsets mingw
3330     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3331   *)
3332     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3333   esac
3334   case $ac_prog in
3335     # Accept absolute paths.
3336     [\\/]* | ?:[\\/]*)
3337       re_direlt='/[^/][^/]*/\.\./'
3338       # Canonicalize the pathname of ld
3339       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3340       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3341         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3342       done
3343       test -z "$LD" && LD="$ac_prog"
3344       ;;
3345   "")
3346     # If it fails, then pretend we aren't using GCC.
3347     ac_prog=ld
3348     ;;
3349   *)
3350     # If it is relative, then search for the first ld in PATH.
3351     with_gnu_ld=unknown
3352     ;;
3353   esac
3354 elif test "$with_gnu_ld" = yes; then
3355   echo "$as_me:$LINENO: checking for GNU ld" >&5
3356 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3357 else
3358   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3359 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3360 fi
3361 if test "${lt_cv_path_LD+set}" = set; then
3362   echo $ECHO_N "(cached) $ECHO_C" >&6
3363 else
3364   if test -z "$LD"; then
3365   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3366   for ac_dir in $PATH; do
3367     IFS="$lt_save_ifs"
3368     test -z "$ac_dir" && ac_dir=.
3369     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3370       lt_cv_path_LD="$ac_dir/$ac_prog"
3371       # Check to see if the program is GNU ld.  I'd rather use --version,
3372       # but apparently some variants of GNU ld only accept -v.
3373       # Break only if it was the GNU/non-GNU ld that we prefer.
3374       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3375       *GNU* | *'with BFD'*)
3376         test "$with_gnu_ld" != no && break
3377         ;;
3378       *)
3379         test "$with_gnu_ld" != yes && break
3380         ;;
3381       esac
3382     fi
3383   done
3384   IFS="$lt_save_ifs"
3385 else
3386   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3387 fi
3388 fi
3389
3390 LD="$lt_cv_path_LD"
3391 if test -n "$LD"; then
3392   echo "$as_me:$LINENO: result: $LD" >&5
3393 echo "${ECHO_T}$LD" >&6
3394 else
3395   echo "$as_me:$LINENO: result: no" >&5
3396 echo "${ECHO_T}no" >&6
3397 fi
3398 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3399 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3400    { (exit 1); exit 1; }; }
3401 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3402 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3403 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3404   echo $ECHO_N "(cached) $ECHO_C" >&6
3405 else
3406   # I'd rather use --version here, but apparently some GNU lds only accept -v.
3407 case `$LD -v 2>&1 </dev/null` in
3408 *GNU* | *'with BFD'*)
3409   lt_cv_prog_gnu_ld=yes
3410   ;;
3411 *)
3412   lt_cv_prog_gnu_ld=no
3413   ;;
3414 esac
3415 fi
3416 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3417 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3418 with_gnu_ld=$lt_cv_prog_gnu_ld
3419
3420
3421 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3422 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3423 if test "${lt_cv_ld_reload_flag+set}" = set; then
3424   echo $ECHO_N "(cached) $ECHO_C" >&6
3425 else
3426   lt_cv_ld_reload_flag='-r'
3427 fi
3428 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3429 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3430 reload_flag=$lt_cv_ld_reload_flag
3431 case $reload_flag in
3432 "" | " "*) ;;
3433 *) reload_flag=" $reload_flag" ;;
3434 esac
3435 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3436 case $host_os in
3437   darwin*)
3438     if test "$GCC" = yes; then
3439       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3440     else
3441       reload_cmds='$LD$reload_flag -o $output$reload_objs'
3442     fi
3443     ;;
3444 esac
3445
3446 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3447 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3448 if test "${lt_cv_path_NM+set}" = set; then
3449   echo $ECHO_N "(cached) $ECHO_C" >&6
3450 else
3451   if test -n "$NM"; then
3452   # Let the user override the test.
3453   lt_cv_path_NM="$NM"
3454 else
3455   lt_nm_to_check="${ac_tool_prefix}nm"
3456   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3457     lt_nm_to_check="$lt_nm_to_check nm"
3458   fi
3459   for lt_tmp_nm in $lt_nm_to_check; do
3460     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3461     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3462       IFS="$lt_save_ifs"
3463       test -z "$ac_dir" && ac_dir=.
3464       tmp_nm="$ac_dir/$lt_tmp_nm"
3465       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3466         # Check to see if the nm accepts a BSD-compat flag.
3467         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3468         #   nm: unknown option "B" ignored
3469         # Tru64's nm complains that /dev/null is an invalid object file
3470         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3471         */dev/null* | *'Invalid file or object type'*)
3472           lt_cv_path_NM="$tmp_nm -B"
3473           break
3474           ;;
3475         *)
3476           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3477           */dev/null*)
3478             lt_cv_path_NM="$tmp_nm -p"
3479             break
3480             ;;
3481           *)
3482             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3483             continue # so that we can try to find one that supports BSD flags
3484             ;;
3485           esac
3486           ;;
3487         esac
3488       fi
3489     done
3490     IFS="$lt_save_ifs"
3491   done
3492   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3493 fi
3494 fi
3495 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3496 echo "${ECHO_T}$lt_cv_path_NM" >&6
3497 NM="$lt_cv_path_NM"
3498
3499 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3500 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3501 LN_S=$as_ln_s
3502 if test "$LN_S" = "ln -s"; then
3503   echo "$as_me:$LINENO: result: yes" >&5
3504 echo "${ECHO_T}yes" >&6
3505 else
3506   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3507 echo "${ECHO_T}no, using $LN_S" >&6
3508 fi
3509
3510 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3511 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3512 if test "${lt_cv_deplibs_check_method+set}" = set; then
3513   echo $ECHO_N "(cached) $ECHO_C" >&6
3514 else
3515   lt_cv_file_magic_cmd='$MAGIC_CMD'
3516 lt_cv_file_magic_test_file=
3517 lt_cv_deplibs_check_method='unknown'
3518 # Need to set the preceding variable on all platforms that support
3519 # interlibrary dependencies.
3520 # 'none' -- dependencies not supported.
3521 # `unknown' -- same as none, but documents that we really don't know.
3522 # 'pass_all' -- all dependencies passed with no checks.
3523 # 'test_compile' -- check by making test program.
3524 # 'file_magic [[regex]]' -- check by looking for files in library path
3525 # which responds to the $file_magic_cmd with a given extended regex.
3526 # If you have `file' or equivalent on your system and you're not sure
3527 # whether `pass_all' will *always* work, you probably want this one.
3528
3529 case $host_os in
3530 aix4* | aix5*)
3531   lt_cv_deplibs_check_method=pass_all
3532   ;;
3533
3534 beos*)
3535   lt_cv_deplibs_check_method=pass_all
3536   ;;
3537
3538 bsdi[45]*)
3539   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3540   lt_cv_file_magic_cmd='/usr/bin/file -L'
3541   lt_cv_file_magic_test_file=/shlib/libc.so
3542   ;;
3543
3544 cygwin*)
3545   # func_win32_libid is a shell function defined in ltmain.sh
3546   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3547   lt_cv_file_magic_cmd='func_win32_libid'
3548   ;;
3549
3550 mingw* | pw32*)
3551   # Base MSYS/MinGW do not provide the 'file' command needed by
3552   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3553   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3554   lt_cv_file_magic_cmd='$OBJDUMP -f'
3555   ;;
3556
3557 darwin* | rhapsody*)
3558   lt_cv_deplibs_check_method=pass_all
3559   ;;
3560
3561 freebsd* | kfreebsd*-gnu | dragonfly*)
3562   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3563     case $host_cpu in
3564     i*86 )
3565       # Not sure whether the presence of OpenBSD here was a mistake.
3566       # Let's accept both of them until this is cleared up.
3567       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3568       lt_cv_file_magic_cmd=/usr/bin/file
3569       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3570       ;;
3571     esac
3572   else
3573     lt_cv_deplibs_check_method=pass_all
3574   fi
3575   ;;
3576
3577 gnu*)
3578   lt_cv_deplibs_check_method=pass_all
3579   ;;
3580
3581 hpux10.20* | hpux11*)
3582   lt_cv_file_magic_cmd=/usr/bin/file
3583   case $host_cpu in
3584   ia64*)
3585     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3586     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3587     ;;
3588   hppa*64*)
3589     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]'
3590     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3591     ;;
3592   *)
3593     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3594     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3595     ;;
3596   esac
3597   ;;
3598
3599 interix3*)
3600   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3601   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3602   ;;
3603
3604 irix5* | irix6* | nonstopux*)
3605   case $LD in
3606   *-32|*"-32 ") libmagic=32-bit;;
3607   *-n32|*"-n32 ") libmagic=N32;;
3608   *-64|*"-64 ") libmagic=64-bit;;
3609   *) libmagic=never-match;;
3610   esac
3611   lt_cv_deplibs_check_method=pass_all
3612   ;;
3613
3614 # This must be Linux ELF.
3615 linux*)
3616   lt_cv_deplibs_check_method=pass_all
3617   ;;
3618
3619 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3620   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3621     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3622   else
3623     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3624   fi
3625   ;;
3626
3627 newos6*)
3628   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3629   lt_cv_file_magic_cmd=/usr/bin/file
3630   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3631   ;;
3632
3633 nto-qnx*)
3634   lt_cv_deplibs_check_method=unknown
3635   ;;
3636
3637 openbsd*)
3638   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3639     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3640   else
3641     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3642   fi
3643   ;;
3644
3645 osf3* | osf4* | osf5*)
3646   lt_cv_deplibs_check_method=pass_all
3647   ;;
3648
3649 solaris*)
3650   lt_cv_deplibs_check_method=pass_all
3651   ;;
3652
3653 sysv4 | sysv4.3*)
3654   case $host_vendor in
3655   motorola)
3656     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]'
3657     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3658     ;;
3659   ncr)
3660     lt_cv_deplibs_check_method=pass_all
3661     ;;
3662   sequent)
3663     lt_cv_file_magic_cmd='/bin/file'
3664     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3665     ;;
3666   sni)
3667     lt_cv_file_magic_cmd='/bin/file'
3668     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3669     lt_cv_file_magic_test_file=/lib/libc.so
3670     ;;
3671   siemens)
3672     lt_cv_deplibs_check_method=pass_all
3673     ;;
3674   pc)
3675     lt_cv_deplibs_check_method=pass_all
3676     ;;
3677   esac
3678   ;;
3679
3680 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3681   lt_cv_deplibs_check_method=pass_all
3682   ;;
3683 esac
3684
3685 fi
3686 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3687 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3688 file_magic_cmd=$lt_cv_file_magic_cmd
3689 deplibs_check_method=$lt_cv_deplibs_check_method
3690 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3691
3692
3693
3694
3695 # If no C compiler was specified, use CC.
3696 LTCC=${LTCC-"$CC"}
3697
3698 # If no C compiler flags were specified, use CFLAGS.
3699 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3700
3701 # Allow CC to be a program name with arguments.
3702 compiler=$CC
3703
3704
3705 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3706 if test "${enable_libtool_lock+set}" = set; then
3707   enableval="$enable_libtool_lock"
3708
3709 fi;
3710 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3711
3712 # Some flags need to be propagated to the compiler or linker for good
3713 # libtool support.
3714 case $host in
3715 ia64-*-hpux*)
3716   # Find out which ABI we are using.
3717   echo 'int i;' > conftest.$ac_ext
3718   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3719   (eval $ac_compile) 2>&5
3720   ac_status=$?
3721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722   (exit $ac_status); }; then
3723     case `/usr/bin/file conftest.$ac_objext` in
3724     *ELF-32*)
3725       HPUX_IA64_MODE="32"
3726       ;;
3727     *ELF-64*)
3728       HPUX_IA64_MODE="64"
3729       ;;
3730     esac
3731   fi
3732   rm -rf conftest*
3733   ;;
3734 *-*-irix6*)
3735   # Find out which ABI we are using.
3736   echo '#line 3736 "configure"' > conftest.$ac_ext
3737   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3738   (eval $ac_compile) 2>&5
3739   ac_status=$?
3740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741   (exit $ac_status); }; then
3742    if test "$lt_cv_prog_gnu_ld" = yes; then
3743     case `/usr/bin/file conftest.$ac_objext` in
3744     *32-bit*)
3745       LD="${LD-ld} -melf32bsmip"
3746       ;;
3747     *N32*)
3748       LD="${LD-ld} -melf32bmipn32"
3749       ;;
3750     *64-bit*)
3751       LD="${LD-ld} -melf64bmip"
3752       ;;
3753     esac
3754    else
3755     case `/usr/bin/file conftest.$ac_objext` in
3756     *32-bit*)
3757       LD="${LD-ld} -32"
3758       ;;
3759     *N32*)
3760       LD="${LD-ld} -n32"
3761       ;;
3762     *64-bit*)
3763       LD="${LD-ld} -64"
3764       ;;
3765     esac
3766    fi
3767   fi
3768   rm -rf conftest*
3769   ;;
3770
3771 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3772   # Find out which ABI we are using.
3773   echo 'int i;' > conftest.$ac_ext
3774   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3775   (eval $ac_compile) 2>&5
3776   ac_status=$?
3777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778   (exit $ac_status); }; then
3779     case `/usr/bin/file conftest.o` in
3780     *32-bit*)
3781       case $host in
3782         x86_64-*linux*)
3783           LD="${LD-ld} -m elf_i386"
3784           ;;
3785         ppc64-*linux*|powerpc64-*linux*)
3786           LD="${LD-ld} -m elf32ppclinux"
3787           ;;
3788         s390x-*linux*)
3789           LD="${LD-ld} -m elf_s390"
3790           ;;
3791         sparc64-*linux*)
3792           LD="${LD-ld} -m elf32_sparc"
3793           ;;
3794       esac
3795       ;;
3796     *64-bit*)
3797       case $host in
3798         x86_64-*linux*)
3799           LD="${LD-ld} -m elf_x86_64"
3800           ;;
3801         ppc*-*linux*|powerpc*-*linux*)
3802           LD="${LD-ld} -m elf64ppc"
3803           ;;
3804         s390*-*linux*)
3805           LD="${LD-ld} -m elf64_s390"
3806           ;;
3807         sparc*-*linux*)
3808           LD="${LD-ld} -m elf64_sparc"
3809           ;;
3810       esac
3811       ;;
3812     esac
3813   fi
3814   rm -rf conftest*
3815   ;;
3816
3817 *-*-sco3.2v5*)
3818   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3819   SAVE_CFLAGS="$CFLAGS"
3820   CFLAGS="$CFLAGS -belf"
3821   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3822 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3823 if test "${lt_cv_cc_needs_belf+set}" = set; then
3824   echo $ECHO_N "(cached) $ECHO_C" >&6
3825 else
3826   ac_ext=c
3827 ac_cpp='$CPP $CPPFLAGS'
3828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3831
3832      cat >conftest.$ac_ext <<_ACEOF
3833 /* confdefs.h.  */
3834 _ACEOF
3835 cat confdefs.h >>conftest.$ac_ext
3836 cat >>conftest.$ac_ext <<_ACEOF
3837 /* end confdefs.h.  */
3838
3839 int
3840 main ()
3841 {
3842
3843   ;
3844   return 0;
3845 }
3846 _ACEOF
3847 rm -f conftest.$ac_objext conftest$ac_exeext
3848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3849   (eval $ac_link) 2>conftest.er1
3850   ac_status=$?
3851   grep -v '^ *+' conftest.er1 >conftest.err
3852   rm -f conftest.er1
3853   cat conftest.err >&5
3854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855   (exit $ac_status); } &&
3856          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3858   (eval $ac_try) 2>&5
3859   ac_status=$?
3860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861   (exit $ac_status); }; } &&
3862          { ac_try='test -s conftest$ac_exeext'
3863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3864   (eval $ac_try) 2>&5
3865   ac_status=$?
3866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867   (exit $ac_status); }; }; then
3868   lt_cv_cc_needs_belf=yes
3869 else
3870   echo "$as_me: failed program was:" >&5
3871 sed 's/^/| /' conftest.$ac_ext >&5
3872
3873 lt_cv_cc_needs_belf=no
3874 fi
3875 rm -f conftest.err conftest.$ac_objext \
3876       conftest$ac_exeext conftest.$ac_ext
3877      ac_ext=c
3878 ac_cpp='$CPP $CPPFLAGS'
3879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3882
3883 fi
3884 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3885 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3886   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3887     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3888     CFLAGS="$SAVE_CFLAGS"
3889   fi
3890   ;;
3891 sparc*-*solaris*)
3892   # Find out which ABI we are using.
3893   echo 'int i;' > conftest.$ac_ext
3894   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3895   (eval $ac_compile) 2>&5
3896   ac_status=$?
3897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898   (exit $ac_status); }; then
3899     case `/usr/bin/file conftest.o` in
3900     *64-bit*)
3901       case $lt_cv_prog_gnu_ld in
3902       yes*) LD="${LD-ld} -m elf64_sparc" ;;
3903       *)    LD="${LD-ld} -64" ;;
3904       esac
3905       ;;
3906     esac
3907   fi
3908   rm -rf conftest*
3909   ;;
3910
3911 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
3912   if test -n "$ac_tool_prefix"; then
3913   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3914 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3915 echo "$as_me:$LINENO: checking for $ac_word" >&5
3916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3917 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
3918   echo $ECHO_N "(cached) $ECHO_C" >&6
3919 else
3920   if test -n "$DLLTOOL"; then
3921   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3922 else
3923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924 for as_dir in $PATH
3925 do
3926   IFS=$as_save_IFS
3927   test -z "$as_dir" && as_dir=.
3928   for ac_exec_ext in '' $ac_executable_extensions; do
3929   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3930     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3931     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3932     break 2
3933   fi
3934 done
3935 done
3936
3937 fi
3938 fi
3939 DLLTOOL=$ac_cv_prog_DLLTOOL
3940 if test -n "$DLLTOOL"; then
3941   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
3942 echo "${ECHO_T}$DLLTOOL" >&6
3943 else
3944   echo "$as_me:$LINENO: result: no" >&5
3945 echo "${ECHO_T}no" >&6
3946 fi
3947
3948 fi
3949 if test -z "$ac_cv_prog_DLLTOOL"; then
3950   ac_ct_DLLTOOL=$DLLTOOL
3951   # Extract the first word of "dlltool", so it can be a program name with args.
3952 set dummy dlltool; ac_word=$2
3953 echo "$as_me:$LINENO: checking for $ac_word" >&5
3954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3955 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
3956   echo $ECHO_N "(cached) $ECHO_C" >&6
3957 else
3958   if test -n "$ac_ct_DLLTOOL"; then
3959   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3960 else
3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962 for as_dir in $PATH
3963 do
3964   IFS=$as_save_IFS
3965   test -z "$as_dir" && as_dir=.
3966   for ac_exec_ext in '' $ac_executable_extensions; do
3967   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3968     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3970     break 2
3971   fi
3972 done
3973 done
3974
3975   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
3976 fi
3977 fi
3978 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3979 if test -n "$ac_ct_DLLTOOL"; then
3980   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
3981 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
3982 else
3983   echo "$as_me:$LINENO: result: no" >&5
3984 echo "${ECHO_T}no" >&6
3985 fi
3986
3987   DLLTOOL=$ac_ct_DLLTOOL
3988 else
3989   DLLTOOL="$ac_cv_prog_DLLTOOL"
3990 fi
3991
3992   if test -n "$ac_tool_prefix"; then
3993   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3994 set dummy ${ac_tool_prefix}as; ac_word=$2
3995 echo "$as_me:$LINENO: checking for $ac_word" >&5
3996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3997 if test "${ac_cv_prog_AS+set}" = set; then
3998   echo $ECHO_N "(cached) $ECHO_C" >&6
3999 else
4000   if test -n "$AS"; then
4001   ac_cv_prog_AS="$AS" # Let the user override the test.
4002 else
4003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4004 for as_dir in $PATH
4005 do
4006   IFS=$as_save_IFS
4007   test -z "$as_dir" && as_dir=.
4008   for ac_exec_ext in '' $ac_executable_extensions; do
4009   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4010     ac_cv_prog_AS="${ac_tool_prefix}as"
4011     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4012     break 2
4013   fi
4014 done
4015 done
4016
4017 fi
4018 fi
4019 AS=$ac_cv_prog_AS
4020 if test -n "$AS"; then
4021   echo "$as_me:$LINENO: result: $AS" >&5
4022 echo "${ECHO_T}$AS" >&6
4023 else
4024   echo "$as_me:$LINENO: result: no" >&5
4025 echo "${ECHO_T}no" >&6
4026 fi
4027
4028 fi
4029 if test -z "$ac_cv_prog_AS"; then
4030   ac_ct_AS=$AS
4031   # Extract the first word of "as", so it can be a program name with args.
4032 set dummy as; ac_word=$2
4033 echo "$as_me:$LINENO: checking for $ac_word" >&5
4034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4035 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4036   echo $ECHO_N "(cached) $ECHO_C" >&6
4037 else
4038   if test -n "$ac_ct_AS"; then
4039   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4040 else
4041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4042 for as_dir in $PATH
4043 do
4044   IFS=$as_save_IFS
4045   test -z "$as_dir" && as_dir=.
4046   for ac_exec_ext in '' $ac_executable_extensions; do
4047   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4048     ac_cv_prog_ac_ct_AS="as"
4049     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4050     break 2
4051   fi
4052 done
4053 done
4054
4055   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
4056 fi
4057 fi
4058 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4059 if test -n "$ac_ct_AS"; then
4060   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4061 echo "${ECHO_T}$ac_ct_AS" >&6
4062 else
4063   echo "$as_me:$LINENO: result: no" >&5
4064 echo "${ECHO_T}no" >&6
4065 fi
4066
4067   AS=$ac_ct_AS
4068 else
4069   AS="$ac_cv_prog_AS"
4070 fi
4071
4072   if test -n "$ac_tool_prefix"; then
4073   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4074 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4075 echo "$as_me:$LINENO: checking for $ac_word" >&5
4076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4077 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4078   echo $ECHO_N "(cached) $ECHO_C" >&6
4079 else
4080   if test -n "$OBJDUMP"; then
4081   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4082 else
4083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4084 for as_dir in $PATH
4085 do
4086   IFS=$as_save_IFS
4087   test -z "$as_dir" && as_dir=.
4088   for ac_exec_ext in '' $ac_executable_extensions; do
4089   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4090     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4091     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4092     break 2
4093   fi
4094 done
4095 done
4096
4097 fi
4098 fi
4099 OBJDUMP=$ac_cv_prog_OBJDUMP
4100 if test -n "$OBJDUMP"; then
4101   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4102 echo "${ECHO_T}$OBJDUMP" >&6
4103 else
4104   echo "$as_me:$LINENO: result: no" >&5
4105 echo "${ECHO_T}no" >&6
4106 fi
4107
4108 fi
4109 if test -z "$ac_cv_prog_OBJDUMP"; then
4110   ac_ct_OBJDUMP=$OBJDUMP
4111   # Extract the first word of "objdump", so it can be a program name with args.
4112 set dummy objdump; ac_word=$2
4113 echo "$as_me:$LINENO: checking for $ac_word" >&5
4114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4115 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4116   echo $ECHO_N "(cached) $ECHO_C" >&6
4117 else
4118   if test -n "$ac_ct_OBJDUMP"; then
4119   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4120 else
4121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4122 for as_dir in $PATH
4123 do
4124   IFS=$as_save_IFS
4125   test -z "$as_dir" && as_dir=.
4126   for ac_exec_ext in '' $ac_executable_extensions; do
4127   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4128     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4129     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4130     break 2
4131   fi
4132 done
4133 done
4134
4135   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4136 fi
4137 fi
4138 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4139 if test -n "$ac_ct_OBJDUMP"; then
4140   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4141 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4142 else
4143   echo "$as_me:$LINENO: result: no" >&5
4144 echo "${ECHO_T}no" >&6
4145 fi
4146
4147   OBJDUMP=$ac_ct_OBJDUMP
4148 else
4149   OBJDUMP="$ac_cv_prog_OBJDUMP"
4150 fi
4151
4152   ;;
4153
4154 esac
4155
4156 need_locks="$enable_libtool_lock"
4157
4158
4159 ac_ext=c
4160 ac_cpp='$CPP $CPPFLAGS'
4161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4164 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4165 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4166 # On Suns, sometimes $CPP names a directory.
4167 if test -n "$CPP" && test -d "$CPP"; then
4168   CPP=
4169 fi
4170 if test -z "$CPP"; then
4171   if test "${ac_cv_prog_CPP+set}" = set; then
4172   echo $ECHO_N "(cached) $ECHO_C" >&6
4173 else
4174       # Double quotes because CPP needs to be expanded
4175     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4176     do
4177       ac_preproc_ok=false
4178 for ac_c_preproc_warn_flag in '' yes
4179 do
4180   # Use a header file that comes with gcc, so configuring glibc
4181   # with a fresh cross-compiler works.
4182   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4183   # <limits.h> exists even on freestanding compilers.
4184   # On the NeXT, cc -E runs the code through the compiler's parser,
4185   # not just through cpp. "Syntax error" is here to catch this case.
4186   cat >conftest.$ac_ext <<_ACEOF
4187 /* confdefs.h.  */
4188 _ACEOF
4189 cat confdefs.h >>conftest.$ac_ext
4190 cat >>conftest.$ac_ext <<_ACEOF
4191 /* end confdefs.h.  */
4192 #ifdef __STDC__
4193 # include <limits.h>
4194 #else
4195 # include <assert.h>
4196 #endif
4197                      Syntax error
4198 _ACEOF
4199 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4200   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4201   ac_status=$?
4202   grep -v '^ *+' conftest.er1 >conftest.err
4203   rm -f conftest.er1
4204   cat conftest.err >&5
4205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206   (exit $ac_status); } >/dev/null; then
4207   if test -s conftest.err; then
4208     ac_cpp_err=$ac_c_preproc_warn_flag
4209     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4210   else
4211     ac_cpp_err=
4212   fi
4213 else
4214   ac_cpp_err=yes
4215 fi
4216 if test -z "$ac_cpp_err"; then
4217   :
4218 else
4219   echo "$as_me: failed program was:" >&5
4220 sed 's/^/| /' conftest.$ac_ext >&5
4221
4222   # Broken: fails on valid input.
4223 continue
4224 fi
4225 rm -f conftest.err conftest.$ac_ext
4226
4227   # OK, works on sane cases.  Now check whether non-existent headers
4228   # can be detected and how.
4229   cat >conftest.$ac_ext <<_ACEOF
4230 /* confdefs.h.  */
4231 _ACEOF
4232 cat confdefs.h >>conftest.$ac_ext
4233 cat >>conftest.$ac_ext <<_ACEOF
4234 /* end confdefs.h.  */
4235 #include <ac_nonexistent.h>
4236 _ACEOF
4237 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4238   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4239   ac_status=$?
4240   grep -v '^ *+' conftest.er1 >conftest.err
4241   rm -f conftest.er1
4242   cat conftest.err >&5
4243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244   (exit $ac_status); } >/dev/null; then
4245   if test -s conftest.err; then
4246     ac_cpp_err=$ac_c_preproc_warn_flag
4247     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4248   else
4249     ac_cpp_err=
4250   fi
4251 else
4252   ac_cpp_err=yes
4253 fi
4254 if test -z "$ac_cpp_err"; then
4255   # Broken: success on invalid input.
4256 continue
4257 else
4258   echo "$as_me: failed program was:" >&5
4259 sed 's/^/| /' conftest.$ac_ext >&5
4260
4261   # Passes both tests.
4262 ac_preproc_ok=:
4263 break
4264 fi
4265 rm -f conftest.err conftest.$ac_ext
4266
4267 done
4268 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4269 rm -f conftest.err conftest.$ac_ext
4270 if $ac_preproc_ok; then
4271   break
4272 fi
4273
4274     done
4275     ac_cv_prog_CPP=$CPP
4276
4277 fi
4278   CPP=$ac_cv_prog_CPP
4279 else
4280   ac_cv_prog_CPP=$CPP
4281 fi
4282 echo "$as_me:$LINENO: result: $CPP" >&5
4283 echo "${ECHO_T}$CPP" >&6
4284 ac_preproc_ok=false
4285 for ac_c_preproc_warn_flag in '' yes
4286 do
4287   # Use a header file that comes with gcc, so configuring glibc
4288   # with a fresh cross-compiler works.
4289   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4290   # <limits.h> exists even on freestanding compilers.
4291   # On the NeXT, cc -E runs the code through the compiler's parser,
4292   # not just through cpp. "Syntax error" is here to catch this case.
4293   cat >conftest.$ac_ext <<_ACEOF
4294 /* confdefs.h.  */
4295 _ACEOF
4296 cat confdefs.h >>conftest.$ac_ext
4297 cat >>conftest.$ac_ext <<_ACEOF
4298 /* end confdefs.h.  */
4299 #ifdef __STDC__
4300 # include <limits.h>
4301 #else
4302 # include <assert.h>
4303 #endif
4304                      Syntax error
4305 _ACEOF
4306 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4307   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4308   ac_status=$?
4309   grep -v '^ *+' conftest.er1 >conftest.err
4310   rm -f conftest.er1
4311   cat conftest.err >&5
4312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313   (exit $ac_status); } >/dev/null; then
4314   if test -s conftest.err; then
4315     ac_cpp_err=$ac_c_preproc_warn_flag
4316     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4317   else
4318     ac_cpp_err=
4319   fi
4320 else
4321   ac_cpp_err=yes
4322 fi
4323 if test -z "$ac_cpp_err"; then
4324   :
4325 else
4326   echo "$as_me: failed program was:" >&5
4327 sed 's/^/| /' conftest.$ac_ext >&5
4328
4329   # Broken: fails on valid input.
4330 continue
4331 fi
4332 rm -f conftest.err conftest.$ac_ext
4333
4334   # OK, works on sane cases.  Now check whether non-existent headers
4335   # can be detected and how.
4336   cat >conftest.$ac_ext <<_ACEOF
4337 /* confdefs.h.  */
4338 _ACEOF
4339 cat confdefs.h >>conftest.$ac_ext
4340 cat >>conftest.$ac_ext <<_ACEOF
4341 /* end confdefs.h.  */
4342 #include <ac_nonexistent.h>
4343 _ACEOF
4344 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4345   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4346   ac_status=$?
4347   grep -v '^ *+' conftest.er1 >conftest.err
4348   rm -f conftest.er1
4349   cat conftest.err >&5
4350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351   (exit $ac_status); } >/dev/null; then
4352   if test -s conftest.err; then
4353     ac_cpp_err=$ac_c_preproc_warn_flag
4354     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4355   else
4356     ac_cpp_err=
4357   fi
4358 else
4359   ac_cpp_err=yes
4360 fi
4361 if test -z "$ac_cpp_err"; then
4362   # Broken: success on invalid input.
4363 continue
4364 else
4365   echo "$as_me: failed program was:" >&5
4366 sed 's/^/| /' conftest.$ac_ext >&5
4367
4368   # Passes both tests.
4369 ac_preproc_ok=:
4370 break
4371 fi
4372 rm -f conftest.err conftest.$ac_ext
4373
4374 done
4375 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4376 rm -f conftest.err conftest.$ac_ext
4377 if $ac_preproc_ok; then
4378   :
4379 else
4380   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4381 See \`config.log' for more details." >&5
4382 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4383 See \`config.log' for more details." >&2;}
4384    { (exit 1); exit 1; }; }
4385 fi
4386
4387 ac_ext=c
4388 ac_cpp='$CPP $CPPFLAGS'
4389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4392
4393
4394 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4395 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4396 if test "${ac_cv_header_stdc+set}" = set; then
4397   echo $ECHO_N "(cached) $ECHO_C" >&6
4398 else
4399   cat >conftest.$ac_ext <<_ACEOF
4400 /* confdefs.h.  */
4401 _ACEOF
4402 cat confdefs.h >>conftest.$ac_ext
4403 cat >>conftest.$ac_ext <<_ACEOF
4404 /* end confdefs.h.  */
4405 #include <stdlib.h>
4406 #include <stdarg.h>
4407 #include <string.h>
4408 #include <float.h>
4409
4410 int
4411 main ()
4412 {
4413
4414   ;
4415   return 0;
4416 }
4417 _ACEOF
4418 rm -f conftest.$ac_objext
4419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4420   (eval $ac_compile) 2>conftest.er1
4421   ac_status=$?
4422   grep -v '^ *+' conftest.er1 >conftest.err
4423   rm -f conftest.er1
4424   cat conftest.err >&5
4425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426   (exit $ac_status); } &&
4427          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4429   (eval $ac_try) 2>&5
4430   ac_status=$?
4431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432   (exit $ac_status); }; } &&
4433          { ac_try='test -s conftest.$ac_objext'
4434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4435   (eval $ac_try) 2>&5
4436   ac_status=$?
4437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438   (exit $ac_status); }; }; then
4439   ac_cv_header_stdc=yes
4440 else
4441   echo "$as_me: failed program was:" >&5
4442 sed 's/^/| /' conftest.$ac_ext >&5
4443
4444 ac_cv_header_stdc=no
4445 fi
4446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4447
4448 if test $ac_cv_header_stdc = yes; then
4449   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4450   cat >conftest.$ac_ext <<_ACEOF
4451 /* confdefs.h.  */
4452 _ACEOF
4453 cat confdefs.h >>conftest.$ac_ext
4454 cat >>conftest.$ac_ext <<_ACEOF
4455 /* end confdefs.h.  */
4456 #include <string.h>
4457
4458 _ACEOF
4459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4460   $EGREP "memchr" >/dev/null 2>&1; then
4461   :
4462 else
4463   ac_cv_header_stdc=no
4464 fi
4465 rm -f conftest*
4466
4467 fi
4468
4469 if test $ac_cv_header_stdc = yes; then
4470   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4471   cat >conftest.$ac_ext <<_ACEOF
4472 /* confdefs.h.  */
4473 _ACEOF
4474 cat confdefs.h >>conftest.$ac_ext
4475 cat >>conftest.$ac_ext <<_ACEOF
4476 /* end confdefs.h.  */
4477 #include <stdlib.h>
4478
4479 _ACEOF
4480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4481   $EGREP "free" >/dev/null 2>&1; then
4482   :
4483 else
4484   ac_cv_header_stdc=no
4485 fi
4486 rm -f conftest*
4487
4488 fi
4489
4490 if test $ac_cv_header_stdc = yes; then
4491   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4492   if test "$cross_compiling" = yes; then
4493   :
4494 else
4495   cat >conftest.$ac_ext <<_ACEOF
4496 /* confdefs.h.  */
4497 _ACEOF
4498 cat confdefs.h >>conftest.$ac_ext
4499 cat >>conftest.$ac_ext <<_ACEOF
4500 /* end confdefs.h.  */
4501 #include <ctype.h>
4502 #if ((' ' & 0x0FF) == 0x020)
4503 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4504 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4505 #else
4506 # define ISLOWER(c) \
4507                    (('a' <= (c) && (c) <= 'i') \
4508                      || ('j' <= (c) && (c) <= 'r') \
4509                      || ('s' <= (c) && (c) <= 'z'))
4510 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4511 #endif
4512
4513 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4514 int
4515 main ()
4516 {
4517   int i;
4518   for (i = 0; i < 256; i++)
4519     if (XOR (islower (i), ISLOWER (i))
4520         || toupper (i) != TOUPPER (i))
4521       exit(2);
4522   exit (0);
4523 }
4524 _ACEOF
4525 rm -f conftest$ac_exeext
4526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4527   (eval $ac_link) 2>&5
4528   ac_status=$?
4529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4532   (eval $ac_try) 2>&5
4533   ac_status=$?
4534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535   (exit $ac_status); }; }; then
4536   :
4537 else
4538   echo "$as_me: program exited with status $ac_status" >&5
4539 echo "$as_me: failed program was:" >&5
4540 sed 's/^/| /' conftest.$ac_ext >&5
4541
4542 ( exit $ac_status )
4543 ac_cv_header_stdc=no
4544 fi
4545 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4546 fi
4547 fi
4548 fi
4549 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4550 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4551 if test $ac_cv_header_stdc = yes; then
4552
4553 cat >>confdefs.h <<\_ACEOF
4554 #define STDC_HEADERS 1
4555 _ACEOF
4556
4557 fi
4558
4559 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4570                   inttypes.h stdint.h unistd.h
4571 do
4572 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4573 echo "$as_me:$LINENO: checking for $ac_header" >&5
4574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4576   echo $ECHO_N "(cached) $ECHO_C" >&6
4577 else
4578   cat >conftest.$ac_ext <<_ACEOF
4579 /* confdefs.h.  */
4580 _ACEOF
4581 cat confdefs.h >>conftest.$ac_ext
4582 cat >>conftest.$ac_ext <<_ACEOF
4583 /* end confdefs.h.  */
4584 $ac_includes_default
4585
4586 #include <$ac_header>
4587 _ACEOF
4588 rm -f conftest.$ac_objext
4589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4590   (eval $ac_compile) 2>conftest.er1
4591   ac_status=$?
4592   grep -v '^ *+' conftest.er1 >conftest.err
4593   rm -f conftest.er1
4594   cat conftest.err >&5
4595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596   (exit $ac_status); } &&
4597          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4599   (eval $ac_try) 2>&5
4600   ac_status=$?
4601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602   (exit $ac_status); }; } &&
4603          { ac_try='test -s conftest.$ac_objext'
4604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4605   (eval $ac_try) 2>&5
4606   ac_status=$?
4607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608   (exit $ac_status); }; }; then
4609   eval "$as_ac_Header=yes"
4610 else
4611   echo "$as_me: failed program was:" >&5
4612 sed 's/^/| /' conftest.$ac_ext >&5
4613
4614 eval "$as_ac_Header=no"
4615 fi
4616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4617 fi
4618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4619 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4620 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4621   cat >>confdefs.h <<_ACEOF
4622 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4623 _ACEOF
4624
4625 fi
4626
4627 done
4628
4629
4630
4631 for ac_header in dlfcn.h
4632 do
4633 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4635   echo "$as_me:$LINENO: checking for $ac_header" >&5
4636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4638   echo $ECHO_N "(cached) $ECHO_C" >&6
4639 fi
4640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4641 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4642 else
4643   # Is the header compilable?
4644 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4645 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4646 cat >conftest.$ac_ext <<_ACEOF
4647 /* confdefs.h.  */
4648 _ACEOF
4649 cat confdefs.h >>conftest.$ac_ext
4650 cat >>conftest.$ac_ext <<_ACEOF
4651 /* end confdefs.h.  */
4652 $ac_includes_default
4653 #include <$ac_header>
4654 _ACEOF
4655 rm -f conftest.$ac_objext
4656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4657   (eval $ac_compile) 2>conftest.er1
4658   ac_status=$?
4659   grep -v '^ *+' conftest.er1 >conftest.err
4660   rm -f conftest.er1
4661   cat conftest.err >&5
4662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663   (exit $ac_status); } &&
4664          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4666   (eval $ac_try) 2>&5
4667   ac_status=$?
4668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669   (exit $ac_status); }; } &&
4670          { ac_try='test -s conftest.$ac_objext'
4671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4672   (eval $ac_try) 2>&5
4673   ac_status=$?
4674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675   (exit $ac_status); }; }; then
4676   ac_header_compiler=yes
4677 else
4678   echo "$as_me: failed program was:" >&5
4679 sed 's/^/| /' conftest.$ac_ext >&5
4680
4681 ac_header_compiler=no
4682 fi
4683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4684 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4685 echo "${ECHO_T}$ac_header_compiler" >&6
4686
4687 # Is the header present?
4688 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4689 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4690 cat >conftest.$ac_ext <<_ACEOF
4691 /* confdefs.h.  */
4692 _ACEOF
4693 cat confdefs.h >>conftest.$ac_ext
4694 cat >>conftest.$ac_ext <<_ACEOF
4695 /* end confdefs.h.  */
4696 #include <$ac_header>
4697 _ACEOF
4698 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4699   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4700   ac_status=$?
4701   grep -v '^ *+' conftest.er1 >conftest.err
4702   rm -f conftest.er1
4703   cat conftest.err >&5
4704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705   (exit $ac_status); } >/dev/null; then
4706   if test -s conftest.err; then
4707     ac_cpp_err=$ac_c_preproc_warn_flag
4708     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4709   else
4710     ac_cpp_err=
4711   fi
4712 else
4713   ac_cpp_err=yes
4714 fi
4715 if test -z "$ac_cpp_err"; then
4716   ac_header_preproc=yes
4717 else
4718   echo "$as_me: failed program was:" >&5
4719 sed 's/^/| /' conftest.$ac_ext >&5
4720
4721   ac_header_preproc=no
4722 fi
4723 rm -f conftest.err conftest.$ac_ext
4724 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4725 echo "${ECHO_T}$ac_header_preproc" >&6
4726
4727 # So?  What about this header?
4728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4729   yes:no: )
4730     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4731 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4732     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4733 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4734     ac_header_preproc=yes
4735     ;;
4736   no:yes:* )
4737     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4738 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4739     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4740 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4741     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4742 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4743     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4744 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4745     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4746 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4747     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4748 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4749     (
4750       cat <<\_ASBOX
4751 ## -------------------------------------------------- ##
4752 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
4753 ## -------------------------------------------------- ##
4754 _ASBOX
4755     ) |
4756       sed "s/^/$as_me: WARNING:     /" >&2
4757     ;;
4758 esac
4759 echo "$as_me:$LINENO: checking for $ac_header" >&5
4760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4762   echo $ECHO_N "(cached) $ECHO_C" >&6
4763 else
4764   eval "$as_ac_Header=\$ac_header_preproc"
4765 fi
4766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4767 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4768
4769 fi
4770 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4771   cat >>confdefs.h <<_ACEOF
4772 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4773 _ACEOF
4774
4775 fi
4776
4777 done
4778
4779 ac_ext=cc
4780 ac_cpp='$CXXCPP $CPPFLAGS'
4781 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4782 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4783 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4784 if test -n "$ac_tool_prefix"; then
4785   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4786   do
4787     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4788 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4789 echo "$as_me:$LINENO: checking for $ac_word" >&5
4790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4791 if test "${ac_cv_prog_CXX+set}" = set; then
4792   echo $ECHO_N "(cached) $ECHO_C" >&6
4793 else
4794   if test -n "$CXX"; then
4795   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4796 else
4797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798 for as_dir in $PATH
4799 do
4800   IFS=$as_save_IFS
4801   test -z "$as_dir" && as_dir=.
4802   for ac_exec_ext in '' $ac_executable_extensions; do
4803   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4804     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4805     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4806     break 2
4807   fi
4808 done
4809 done
4810
4811 fi
4812 fi
4813 CXX=$ac_cv_prog_CXX
4814 if test -n "$CXX"; then
4815   echo "$as_me:$LINENO: result: $CXX" >&5
4816 echo "${ECHO_T}$CXX" >&6
4817 else
4818   echo "$as_me:$LINENO: result: no" >&5
4819 echo "${ECHO_T}no" >&6
4820 fi
4821
4822     test -n "$CXX" && break
4823   done
4824 fi
4825 if test -z "$CXX"; then
4826   ac_ct_CXX=$CXX
4827   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4828 do
4829   # Extract the first word of "$ac_prog", so it can be a program name with args.
4830 set dummy $ac_prog; ac_word=$2
4831 echo "$as_me:$LINENO: checking for $ac_word" >&5
4832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4833 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4834   echo $ECHO_N "(cached) $ECHO_C" >&6
4835 else
4836   if test -n "$ac_ct_CXX"; then
4837   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4838 else
4839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4840 for as_dir in $PATH
4841 do
4842   IFS=$as_save_IFS
4843   test -z "$as_dir" && as_dir=.
4844   for ac_exec_ext in '' $ac_executable_extensions; do
4845   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4846     ac_cv_prog_ac_ct_CXX="$ac_prog"
4847     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4848     break 2
4849   fi
4850 done
4851 done
4852
4853 fi
4854 fi
4855 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4856 if test -n "$ac_ct_CXX"; then
4857   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4858 echo "${ECHO_T}$ac_ct_CXX" >&6
4859 else
4860   echo "$as_me:$LINENO: result: no" >&5
4861 echo "${ECHO_T}no" >&6
4862 fi
4863
4864   test -n "$ac_ct_CXX" && break
4865 done
4866 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4867
4868   CXX=$ac_ct_CXX
4869 fi
4870
4871
4872 # Provide some information about the compiler.
4873 echo "$as_me:$LINENO:" \
4874      "checking for C++ compiler version" >&5
4875 ac_compiler=`set X $ac_compile; echo $2`
4876 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4877   (eval $ac_compiler --version </dev/null >&5) 2>&5
4878   ac_status=$?
4879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880   (exit $ac_status); }
4881 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4882   (eval $ac_compiler -v </dev/null >&5) 2>&5
4883   ac_status=$?
4884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885   (exit $ac_status); }
4886 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4887   (eval $ac_compiler -V </dev/null >&5) 2>&5
4888   ac_status=$?
4889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890   (exit $ac_status); }
4891
4892 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4893 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4894 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4895   echo $ECHO_N "(cached) $ECHO_C" >&6
4896 else
4897   cat >conftest.$ac_ext <<_ACEOF
4898 /* confdefs.h.  */
4899 _ACEOF
4900 cat confdefs.h >>conftest.$ac_ext
4901 cat >>conftest.$ac_ext <<_ACEOF
4902 /* end confdefs.h.  */
4903
4904 int
4905 main ()
4906 {
4907 #ifndef __GNUC__
4908        choke me
4909 #endif
4910
4911   ;
4912   return 0;
4913 }
4914 _ACEOF
4915 rm -f conftest.$ac_objext
4916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4917   (eval $ac_compile) 2>conftest.er1
4918   ac_status=$?
4919   grep -v '^ *+' conftest.er1 >conftest.err
4920   rm -f conftest.er1
4921   cat conftest.err >&5
4922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923   (exit $ac_status); } &&
4924          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4926   (eval $ac_try) 2>&5
4927   ac_status=$?
4928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929   (exit $ac_status); }; } &&
4930          { ac_try='test -s conftest.$ac_objext'
4931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4932   (eval $ac_try) 2>&5
4933   ac_status=$?
4934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935   (exit $ac_status); }; }; then
4936   ac_compiler_gnu=yes
4937 else
4938   echo "$as_me: failed program was:" >&5
4939 sed 's/^/| /' conftest.$ac_ext >&5
4940
4941 ac_compiler_gnu=no
4942 fi
4943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4944 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4945
4946 fi
4947 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4948 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4949 GXX=`test $ac_compiler_gnu = yes && echo yes`
4950 ac_test_CXXFLAGS=${CXXFLAGS+set}
4951 ac_save_CXXFLAGS=$CXXFLAGS
4952 CXXFLAGS="-g"
4953 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4954 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4955 if test "${ac_cv_prog_cxx_g+set}" = set; then
4956   echo $ECHO_N "(cached) $ECHO_C" >&6
4957 else
4958   cat >conftest.$ac_ext <<_ACEOF
4959 /* confdefs.h.  */
4960 _ACEOF
4961 cat confdefs.h >>conftest.$ac_ext
4962 cat >>conftest.$ac_ext <<_ACEOF
4963 /* end confdefs.h.  */
4964
4965 int
4966 main ()
4967 {
4968
4969   ;
4970   return 0;
4971 }
4972 _ACEOF
4973 rm -f conftest.$ac_objext
4974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4975   (eval $ac_compile) 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); } &&
4982          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4984   (eval $ac_try) 2>&5
4985   ac_status=$?
4986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987   (exit $ac_status); }; } &&
4988          { ac_try='test -s conftest.$ac_objext'
4989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4990   (eval $ac_try) 2>&5
4991   ac_status=$?
4992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993   (exit $ac_status); }; }; then
4994   ac_cv_prog_cxx_g=yes
4995 else
4996   echo "$as_me: failed program was:" >&5
4997 sed 's/^/| /' conftest.$ac_ext >&5
4998
4999 ac_cv_prog_cxx_g=no
5000 fi
5001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5002 fi
5003 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5004 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5005 if test "$ac_test_CXXFLAGS" = set; then
5006   CXXFLAGS=$ac_save_CXXFLAGS
5007 elif test $ac_cv_prog_cxx_g = yes; then
5008   if test "$GXX" = yes; then
5009     CXXFLAGS="-g -O2"
5010   else
5011     CXXFLAGS="-g"
5012   fi
5013 else
5014   if test "$GXX" = yes; then
5015     CXXFLAGS="-O2"
5016   else
5017     CXXFLAGS=
5018   fi
5019 fi
5020 for ac_declaration in \
5021    '' \
5022    'extern "C" void std::exit (int) throw (); using std::exit;' \
5023    'extern "C" void std::exit (int); using std::exit;' \
5024    'extern "C" void exit (int) throw ();' \
5025    'extern "C" void exit (int);' \
5026    'void exit (int);'
5027 do
5028   cat >conftest.$ac_ext <<_ACEOF
5029 /* confdefs.h.  */
5030 _ACEOF
5031 cat confdefs.h >>conftest.$ac_ext
5032 cat >>conftest.$ac_ext <<_ACEOF
5033 /* end confdefs.h.  */
5034 $ac_declaration
5035 #include <stdlib.h>
5036 int
5037 main ()
5038 {
5039 exit (42);
5040   ;
5041   return 0;
5042 }
5043 _ACEOF
5044 rm -f conftest.$ac_objext
5045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5046   (eval $ac_compile) 2>conftest.er1
5047   ac_status=$?
5048   grep -v '^ *+' conftest.er1 >conftest.err
5049   rm -f conftest.er1
5050   cat conftest.err >&5
5051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052   (exit $ac_status); } &&
5053          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
5054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5055   (eval $ac_try) 2>&5
5056   ac_status=$?
5057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058   (exit $ac_status); }; } &&
5059          { ac_try='test -s conftest.$ac_objext'
5060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5061   (eval $ac_try) 2>&5
5062   ac_status=$?
5063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064   (exit $ac_status); }; }; then
5065   :
5066 else
5067   echo "$as_me: failed program was:" >&5
5068 sed 's/^/| /' conftest.$ac_ext >&5
5069
5070 continue
5071 fi
5072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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 $ac_declaration
5080 int
5081 main ()
5082 {
5083 exit (42);
5084   ;
5085   return 0;
5086 }
5087 _ACEOF
5088 rm -f conftest.$ac_objext
5089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5090   (eval $ac_compile) 2>conftest.er1
5091   ac_status=$?
5092   grep -v '^ *+' conftest.er1 >conftest.err
5093   rm -f conftest.er1
5094   cat conftest.err >&5
5095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096   (exit $ac_status); } &&
5097          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
5098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5099   (eval $ac_try) 2>&5
5100   ac_status=$?
5101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102   (exit $ac_status); }; } &&
5103          { ac_try='test -s conftest.$ac_objext'
5104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5105   (eval $ac_try) 2>&5
5106   ac_status=$?
5107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108   (exit $ac_status); }; }; then
5109   break
5110 else
5111   echo "$as_me: failed program was:" >&5
5112 sed 's/^/| /' conftest.$ac_ext >&5
5113
5114 fi
5115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5116 done
5117 rm -f conftest*
5118 if test -n "$ac_declaration"; then
5119   echo '#ifdef __cplusplus' >>confdefs.h
5120   echo $ac_declaration      >>confdefs.h
5121   echo '#endif'             >>confdefs.h
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 depcc="$CXX"  am_compiler_list=
5131
5132 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5133 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5134 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5135   echo $ECHO_N "(cached) $ECHO_C" >&6
5136 else
5137   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5138   # We make a subdir and do the tests there.  Otherwise we can end up
5139   # making bogus files that we don't know about and never remove.  For
5140   # instance it was reported that on HP-UX the gcc test will end up
5141   # making a dummy file named `D' -- because `-MD' means `put the output
5142   # in D'.
5143   mkdir conftest.dir
5144   # Copy depcomp to subdir because otherwise we won't find it if we're
5145   # using a relative directory.
5146   cp "$am_depcomp" conftest.dir
5147   cd conftest.dir
5148   # We will build objects and dependencies in a subdirectory because
5149   # it helps to detect inapplicable dependency modes.  For instance
5150   # both Tru64's cc and ICC support -MD to output dependencies as a
5151   # side effect of compilation, but ICC will put the dependencies in
5152   # the current directory while Tru64 will put them in the object
5153   # directory.
5154   mkdir sub
5155
5156   am_cv_CXX_dependencies_compiler_type=none
5157   if test "$am_compiler_list" = ""; then
5158      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5159   fi
5160   for depmode in $am_compiler_list; do
5161     # Setup a source with many dependencies, because some compilers
5162     # like to wrap large dependency lists on column 80 (with \), and
5163     # we should not choose a depcomp mode which is confused by this.
5164     #
5165     # We need to recreate these files for each test, as the compiler may
5166     # overwrite some of them when testing with obscure command lines.
5167     # This happens at least with the AIX C compiler.
5168     : > sub/conftest.c
5169     for i in 1 2 3 4 5 6; do
5170       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5171       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5172       # Solaris 8's {/usr,}/bin/sh.
5173       touch sub/conftst$i.h
5174     done
5175     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5176
5177     case $depmode in
5178     nosideeffect)
5179       # after this tag, mechanisms are not by side-effect, so they'll
5180       # only be used when explicitly requested
5181       if test "x$enable_dependency_tracking" = xyes; then
5182         continue
5183       else
5184         break
5185       fi
5186       ;;
5187     none) break ;;
5188     esac
5189     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5190     # mode.  It turns out that the SunPro C++ compiler does not properly
5191     # handle `-M -o', and we need to detect this.
5192     if depmode=$depmode \
5193        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5194        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5195        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5196          >/dev/null 2>conftest.err &&
5197        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5198        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5199        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5200       # icc doesn't choke on unknown options, it will just issue warnings
5201       # or remarks (even with -Werror).  So we grep stderr for any message
5202       # that says an option was ignored or not supported.
5203       # When given -MP, icc 7.0 and 7.1 complain thusly:
5204       #   icc: Command line warning: ignoring option '-M'; no argument required
5205       # The diagnosis changed in icc 8.0:
5206       #   icc: Command line remark: option '-MP' not supported
5207       if (grep 'ignoring option' conftest.err ||
5208           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5209         am_cv_CXX_dependencies_compiler_type=$depmode
5210         break
5211       fi
5212     fi
5213   done
5214
5215   cd ..
5216   rm -rf conftest.dir
5217 else
5218   am_cv_CXX_dependencies_compiler_type=none
5219 fi
5220
5221 fi
5222 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5223 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5224 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5225
5226
5227
5228 if
5229   test "x$enable_dependency_tracking" != xno \
5230   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5231   am__fastdepCXX_TRUE=
5232   am__fastdepCXX_FALSE='#'
5233 else
5234   am__fastdepCXX_TRUE='#'
5235   am__fastdepCXX_FALSE=
5236 fi
5237
5238
5239
5240
5241 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5242     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5243     (test "X$CXX" != "Xg++"))) ; then
5244   ac_ext=cc
5245 ac_cpp='$CXXCPP $CPPFLAGS'
5246 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5247 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5248 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5249 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5250 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5251 if test -z "$CXXCPP"; then
5252   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5253   echo $ECHO_N "(cached) $ECHO_C" >&6
5254 else
5255       # Double quotes because CXXCPP needs to be expanded
5256     for CXXCPP in "$CXX -E" "/lib/cpp"
5257     do
5258       ac_preproc_ok=false
5259 for ac_cxx_preproc_warn_flag in '' yes
5260 do
5261   # Use a header file that comes with gcc, so configuring glibc
5262   # with a fresh cross-compiler works.
5263   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5264   # <limits.h> exists even on freestanding compilers.
5265   # On the NeXT, cc -E runs the code through the compiler's parser,
5266   # not just through cpp. "Syntax error" is here to catch this case.
5267   cat >conftest.$ac_ext <<_ACEOF
5268 /* confdefs.h.  */
5269 _ACEOF
5270 cat confdefs.h >>conftest.$ac_ext
5271 cat >>conftest.$ac_ext <<_ACEOF
5272 /* end confdefs.h.  */
5273 #ifdef __STDC__
5274 # include <limits.h>
5275 #else
5276 # include <assert.h>
5277 #endif
5278                      Syntax error
5279 _ACEOF
5280 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5281   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5282   ac_status=$?
5283   grep -v '^ *+' conftest.er1 >conftest.err
5284   rm -f conftest.er1
5285   cat conftest.err >&5
5286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287   (exit $ac_status); } >/dev/null; then
5288   if test -s conftest.err; then
5289     ac_cpp_err=$ac_cxx_preproc_warn_flag
5290     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5291   else
5292     ac_cpp_err=
5293   fi
5294 else
5295   ac_cpp_err=yes
5296 fi
5297 if test -z "$ac_cpp_err"; then
5298   :
5299 else
5300   echo "$as_me: failed program was:" >&5
5301 sed 's/^/| /' conftest.$ac_ext >&5
5302
5303   # Broken: fails on valid input.
5304 continue
5305 fi
5306 rm -f conftest.err conftest.$ac_ext
5307
5308   # OK, works on sane cases.  Now check whether non-existent headers
5309   # can be detected and how.
5310   cat >conftest.$ac_ext <<_ACEOF
5311 /* confdefs.h.  */
5312 _ACEOF
5313 cat confdefs.h >>conftest.$ac_ext
5314 cat >>conftest.$ac_ext <<_ACEOF
5315 /* end confdefs.h.  */
5316 #include <ac_nonexistent.h>
5317 _ACEOF
5318 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5319   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5320   ac_status=$?
5321   grep -v '^ *+' conftest.er1 >conftest.err
5322   rm -f conftest.er1
5323   cat conftest.err >&5
5324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325   (exit $ac_status); } >/dev/null; then
5326   if test -s conftest.err; then
5327     ac_cpp_err=$ac_cxx_preproc_warn_flag
5328     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5329   else
5330     ac_cpp_err=
5331   fi
5332 else
5333   ac_cpp_err=yes
5334 fi
5335 if test -z "$ac_cpp_err"; then
5336   # Broken: success on invalid input.
5337 continue
5338 else
5339   echo "$as_me: failed program was:" >&5
5340 sed 's/^/| /' conftest.$ac_ext >&5
5341
5342   # Passes both tests.
5343 ac_preproc_ok=:
5344 break
5345 fi
5346 rm -f conftest.err conftest.$ac_ext
5347
5348 done
5349 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5350 rm -f conftest.err conftest.$ac_ext
5351 if $ac_preproc_ok; then
5352   break
5353 fi
5354
5355     done
5356     ac_cv_prog_CXXCPP=$CXXCPP
5357
5358 fi
5359   CXXCPP=$ac_cv_prog_CXXCPP
5360 else
5361   ac_cv_prog_CXXCPP=$CXXCPP
5362 fi
5363 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5364 echo "${ECHO_T}$CXXCPP" >&6
5365 ac_preproc_ok=false
5366 for ac_cxx_preproc_warn_flag in '' yes
5367 do
5368   # Use a header file that comes with gcc, so configuring glibc
5369   # with a fresh cross-compiler works.
5370   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5371   # <limits.h> exists even on freestanding compilers.
5372   # On the NeXT, cc -E runs the code through the compiler's parser,
5373   # not just through cpp. "Syntax error" is here to catch this case.
5374   cat >conftest.$ac_ext <<_ACEOF
5375 /* confdefs.h.  */
5376 _ACEOF
5377 cat confdefs.h >>conftest.$ac_ext
5378 cat >>conftest.$ac_ext <<_ACEOF
5379 /* end confdefs.h.  */
5380 #ifdef __STDC__
5381 # include <limits.h>
5382 #else
5383 # include <assert.h>
5384 #endif
5385                      Syntax error
5386 _ACEOF
5387 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5388   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5389   ac_status=$?
5390   grep -v '^ *+' conftest.er1 >conftest.err
5391   rm -f conftest.er1
5392   cat conftest.err >&5
5393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394   (exit $ac_status); } >/dev/null; then
5395   if test -s conftest.err; then
5396     ac_cpp_err=$ac_cxx_preproc_warn_flag
5397     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5398   else
5399     ac_cpp_err=
5400   fi
5401 else
5402   ac_cpp_err=yes
5403 fi
5404 if test -z "$ac_cpp_err"; then
5405   :
5406 else
5407   echo "$as_me: failed program was:" >&5
5408 sed 's/^/| /' conftest.$ac_ext >&5
5409
5410   # Broken: fails on valid input.
5411 continue
5412 fi
5413 rm -f conftest.err conftest.$ac_ext
5414
5415   # OK, works on sane cases.  Now check whether non-existent headers
5416   # can be detected and how.
5417   cat >conftest.$ac_ext <<_ACEOF
5418 /* confdefs.h.  */
5419 _ACEOF
5420 cat confdefs.h >>conftest.$ac_ext
5421 cat >>conftest.$ac_ext <<_ACEOF
5422 /* end confdefs.h.  */
5423 #include <ac_nonexistent.h>
5424 _ACEOF
5425 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5426   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5427   ac_status=$?
5428   grep -v '^ *+' conftest.er1 >conftest.err
5429   rm -f conftest.er1
5430   cat conftest.err >&5
5431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432   (exit $ac_status); } >/dev/null; then
5433   if test -s conftest.err; then
5434     ac_cpp_err=$ac_cxx_preproc_warn_flag
5435     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5436   else
5437     ac_cpp_err=
5438   fi
5439 else
5440   ac_cpp_err=yes
5441 fi
5442 if test -z "$ac_cpp_err"; then
5443   # Broken: success on invalid input.
5444 continue
5445 else
5446   echo "$as_me: failed program was:" >&5
5447 sed 's/^/| /' conftest.$ac_ext >&5
5448
5449   # Passes both tests.
5450 ac_preproc_ok=:
5451 break
5452 fi
5453 rm -f conftest.err conftest.$ac_ext
5454
5455 done
5456 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5457 rm -f conftest.err conftest.$ac_ext
5458 if $ac_preproc_ok; then
5459   :
5460 else
5461   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5462 See \`config.log' for more details." >&5
5463 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5464 See \`config.log' for more details." >&2;}
5465    { (exit 1); exit 1; }; }
5466 fi
5467
5468 ac_ext=cc
5469 ac_cpp='$CXXCPP $CPPFLAGS'
5470 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5471 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5472 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5473
5474 fi
5475
5476
5477 ac_ext=f
5478 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5479 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5480 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5481 if test -n "$ac_tool_prefix"; then
5482   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5483   do
5484     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5485 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5486 echo "$as_me:$LINENO: checking for $ac_word" >&5
5487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5488 if test "${ac_cv_prog_F77+set}" = set; then
5489   echo $ECHO_N "(cached) $ECHO_C" >&6
5490 else
5491   if test -n "$F77"; then
5492   ac_cv_prog_F77="$F77" # Let the user override the test.
5493 else
5494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5495 for as_dir in $PATH
5496 do
5497   IFS=$as_save_IFS
5498   test -z "$as_dir" && as_dir=.
5499   for ac_exec_ext in '' $ac_executable_extensions; do
5500   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5501     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5502     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5503     break 2
5504   fi
5505 done
5506 done
5507
5508 fi
5509 fi
5510 F77=$ac_cv_prog_F77
5511 if test -n "$F77"; then
5512   echo "$as_me:$LINENO: result: $F77" >&5
5513 echo "${ECHO_T}$F77" >&6
5514 else
5515   echo "$as_me:$LINENO: result: no" >&5
5516 echo "${ECHO_T}no" >&6
5517 fi
5518
5519     test -n "$F77" && break
5520   done
5521 fi
5522 if test -z "$F77"; then
5523   ac_ct_F77=$F77
5524   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5525 do
5526   # Extract the first word of "$ac_prog", so it can be a program name with args.
5527 set dummy $ac_prog; ac_word=$2
5528 echo "$as_me:$LINENO: checking for $ac_word" >&5
5529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5530 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5531   echo $ECHO_N "(cached) $ECHO_C" >&6
5532 else
5533   if test -n "$ac_ct_F77"; then
5534   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5535 else
5536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5537 for as_dir in $PATH
5538 do
5539   IFS=$as_save_IFS
5540   test -z "$as_dir" && as_dir=.
5541   for ac_exec_ext in '' $ac_executable_extensions; do
5542   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5543     ac_cv_prog_ac_ct_F77="$ac_prog"
5544     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5545     break 2
5546   fi
5547 done
5548 done
5549
5550 fi
5551 fi
5552 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5553 if test -n "$ac_ct_F77"; then
5554   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5555 echo "${ECHO_T}$ac_ct_F77" >&6
5556 else
5557   echo "$as_me:$LINENO: result: no" >&5
5558 echo "${ECHO_T}no" >&6
5559 fi
5560
5561   test -n "$ac_ct_F77" && break
5562 done
5563
5564   F77=$ac_ct_F77
5565 fi
5566
5567
5568 # Provide some information about the compiler.
5569 echo "$as_me:5569:" \
5570      "checking for Fortran 77 compiler version" >&5
5571 ac_compiler=`set X $ac_compile; echo $2`
5572 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5573   (eval $ac_compiler --version </dev/null >&5) 2>&5
5574   ac_status=$?
5575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576   (exit $ac_status); }
5577 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5578   (eval $ac_compiler -v </dev/null >&5) 2>&5
5579   ac_status=$?
5580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581   (exit $ac_status); }
5582 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5583   (eval $ac_compiler -V </dev/null >&5) 2>&5
5584   ac_status=$?
5585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586   (exit $ac_status); }
5587 rm -f a.out
5588
5589 # If we don't use `.F' as extension, the preprocessor is not run on the
5590 # input file.  (Note that this only needs to work for GNU compilers.)
5591 ac_save_ext=$ac_ext
5592 ac_ext=F
5593 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5594 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5595 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5596   echo $ECHO_N "(cached) $ECHO_C" >&6
5597 else
5598   cat >conftest.$ac_ext <<_ACEOF
5599       program main
5600 #ifndef __GNUC__
5601        choke me
5602 #endif
5603
5604       end
5605 _ACEOF
5606 rm -f conftest.$ac_objext
5607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5608   (eval $ac_compile) 2>conftest.er1
5609   ac_status=$?
5610   grep -v '^ *+' conftest.er1 >conftest.err
5611   rm -f conftest.er1
5612   cat conftest.err >&5
5613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614   (exit $ac_status); } &&
5615          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5617   (eval $ac_try) 2>&5
5618   ac_status=$?
5619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620   (exit $ac_status); }; } &&
5621          { ac_try='test -s conftest.$ac_objext'
5622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5623   (eval $ac_try) 2>&5
5624   ac_status=$?
5625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626   (exit $ac_status); }; }; then
5627   ac_compiler_gnu=yes
5628 else
5629   echo "$as_me: failed program was:" >&5
5630 sed 's/^/| /' conftest.$ac_ext >&5
5631
5632 ac_compiler_gnu=no
5633 fi
5634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5635 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5636
5637 fi
5638 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5639 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5640 ac_ext=$ac_save_ext
5641 ac_test_FFLAGS=${FFLAGS+set}
5642 ac_save_FFLAGS=$FFLAGS
5643 FFLAGS=
5644 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5645 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5646 if test "${ac_cv_prog_f77_g+set}" = set; then
5647   echo $ECHO_N "(cached) $ECHO_C" >&6
5648 else
5649   FFLAGS=-g
5650 cat >conftest.$ac_ext <<_ACEOF
5651       program main
5652
5653       end
5654 _ACEOF
5655 rm -f conftest.$ac_objext
5656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5657   (eval $ac_compile) 2>conftest.er1
5658   ac_status=$?
5659   grep -v '^ *+' conftest.er1 >conftest.err
5660   rm -f conftest.er1
5661   cat conftest.err >&5
5662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663   (exit $ac_status); } &&
5664          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5666   (eval $ac_try) 2>&5
5667   ac_status=$?
5668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669   (exit $ac_status); }; } &&
5670          { ac_try='test -s conftest.$ac_objext'
5671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5672   (eval $ac_try) 2>&5
5673   ac_status=$?
5674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675   (exit $ac_status); }; }; then
5676   ac_cv_prog_f77_g=yes
5677 else
5678   echo "$as_me: failed program was:" >&5
5679 sed 's/^/| /' conftest.$ac_ext >&5
5680
5681 ac_cv_prog_f77_g=no
5682 fi
5683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5684
5685 fi
5686 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5687 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5688 if test "$ac_test_FFLAGS" = set; then
5689   FFLAGS=$ac_save_FFLAGS
5690 elif test $ac_cv_prog_f77_g = yes; then
5691   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5692     FFLAGS="-g -O2"
5693   else
5694     FFLAGS="-g"
5695   fi
5696 else
5697   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5698     FFLAGS="-O2"
5699   else
5700     FFLAGS=
5701   fi
5702 fi
5703
5704 G77=`test $ac_compiler_gnu = yes && echo yes`
5705 ac_ext=c
5706 ac_cpp='$CPP $CPPFLAGS'
5707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5710
5711
5712
5713 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5714
5715 # find the maximum length of command line arguments
5716 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5717 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5718 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5719   echo $ECHO_N "(cached) $ECHO_C" >&6
5720 else
5721     i=0
5722   teststring="ABCD"
5723
5724   case $build_os in
5725   msdosdjgpp*)
5726     # On DJGPP, this test can blow up pretty badly due to problems in libc
5727     # (any single argument exceeding 2000 bytes causes a buffer overrun
5728     # during glob expansion).  Even if it were fixed, the result of this
5729     # check would be larger than it should be.
5730     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5731     ;;
5732
5733   gnu*)
5734     # Under GNU Hurd, this test is not required because there is
5735     # no limit to the length of command line arguments.
5736     # Libtool will interpret -1 as no limit whatsoever
5737     lt_cv_sys_max_cmd_len=-1;
5738     ;;
5739
5740   cygwin* | mingw*)
5741     # On Win9x/ME, this test blows up -- it succeeds, but takes
5742     # about 5 minutes as the teststring grows exponentially.
5743     # Worse, since 9x/ME are not pre-emptively multitasking,
5744     # you end up with a "frozen" computer, even though with patience
5745     # the test eventually succeeds (with a max line length of 256k).
5746     # Instead, let's just punt: use the minimum linelength reported by
5747     # all of the supported platforms: 8192 (on NT/2K/XP).
5748     lt_cv_sys_max_cmd_len=8192;
5749     ;;
5750
5751   amigaos*)
5752     # On AmigaOS with pdksh, this test takes hours, literally.
5753     # So we just punt and use a minimum line length of 8192.
5754     lt_cv_sys_max_cmd_len=8192;
5755     ;;
5756
5757   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5758     # This has been around since 386BSD, at least.  Likely further.
5759     if test -x /sbin/sysctl; then
5760       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5761     elif test -x /usr/sbin/sysctl; then
5762       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5763     else
5764       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5765     fi
5766     # And add a safety zone
5767     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5768     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5769     ;;
5770
5771   interix*)
5772     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5773     lt_cv_sys_max_cmd_len=196608
5774     ;;
5775
5776   osf*)
5777     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5778     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5779     # nice to cause kernel panics so lets avoid the loop below.
5780     # First set a reasonable default.
5781     lt_cv_sys_max_cmd_len=16384
5782     #
5783     if test -x /sbin/sysconfig; then
5784       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5785         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5786       esac
5787     fi
5788     ;;
5789   sco3.2v5*)
5790     lt_cv_sys_max_cmd_len=102400
5791     ;;
5792   sysv5* | sco5v6* | sysv4.2uw2*)
5793     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5794     if test -n "$kargmax"; then
5795       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
5796     else
5797       lt_cv_sys_max_cmd_len=32768
5798     fi
5799     ;;
5800   *)
5801     # If test is not a shell built-in, we'll probably end up computing a
5802     # maximum length that is only half of the actual maximum length, but
5803     # we can't tell.
5804     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5805     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5806                = "XX$teststring") >/dev/null 2>&1 &&
5807             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5808             lt_cv_sys_max_cmd_len=$new_result &&
5809             test $i != 17 # 1/2 MB should be enough
5810     do
5811       i=`expr $i + 1`
5812       teststring=$teststring$teststring
5813     done
5814     teststring=
5815     # Add a significant safety factor because C++ compilers can tack on massive
5816     # amounts of additional arguments before passing them to the linker.
5817     # It appears as though 1/2 is a usable value.
5818     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5819     ;;
5820   esac
5821
5822 fi
5823
5824 if test -n $lt_cv_sys_max_cmd_len ; then
5825   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5826 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5827 else
5828   echo "$as_me:$LINENO: result: none" >&5
5829 echo "${ECHO_T}none" >&6
5830 fi
5831
5832
5833
5834
5835 # Check for command to grab the raw symbol name followed by C symbol from nm.
5836 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5837 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5838 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5839   echo $ECHO_N "(cached) $ECHO_C" >&6
5840 else
5841
5842 # These are sane defaults that work on at least a few old systems.
5843 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5844
5845 # Character class describing NM global symbol codes.
5846 symcode='[BCDEGRST]'
5847
5848 # Regexp to match symbols that can be accessed directly from C.
5849 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5850
5851 # Transform an extracted symbol line into a proper C declaration
5852 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5853
5854 # Transform an extracted symbol line into symbol name and symbol address
5855 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'"
5856
5857 # Define system-specific variables.
5858 case $host_os in
5859 aix*)
5860   symcode='[BCDT]'
5861   ;;
5862 cygwin* | mingw* | pw32*)
5863   symcode='[ABCDGISTW]'
5864   ;;
5865 hpux*) # Its linker distinguishes data from code symbols
5866   if test "$host_cpu" = ia64; then
5867     symcode='[ABCDEGRST]'
5868   fi
5869   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5870   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'"
5871   ;;
5872 linux*)
5873   if test "$host_cpu" = ia64; then
5874     symcode='[ABCDGIRSTW]'
5875     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5876     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'"
5877   fi
5878   ;;
5879 irix* | nonstopux*)
5880   symcode='[BCDEGRST]'
5881   ;;
5882 osf*)
5883   symcode='[BCDEGQRST]'
5884   ;;
5885 solaris*)
5886   symcode='[BDRT]'
5887   ;;
5888 sco3.2v5*)
5889   symcode='[DT]'
5890   ;;
5891 sysv4.2uw2*)
5892   symcode='[DT]'
5893   ;;
5894 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5895   symcode='[ABDT]'
5896   ;;
5897 sysv4)
5898   symcode='[DFNSTU]'
5899   ;;
5900 esac
5901
5902 # Handle CRLF in mingw tool chain
5903 opt_cr=
5904 case $build_os in
5905 mingw*)
5906   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5907   ;;
5908 esac
5909
5910 # If we're using GNU nm, then use its standard symbol codes.
5911 case `$NM -V 2>&1` in
5912 *GNU* | *'with BFD'*)
5913   symcode='[ABCDGIRSTW]' ;;
5914 esac
5915
5916 # Try without a prefix undercore, then with it.
5917 for ac_symprfx in "" "_"; do
5918
5919   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5920   symxfrm="\\1 $ac_symprfx\\2 \\2"
5921
5922   # Write the raw and C identifiers.
5923   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5924
5925   # Check to see that the pipe works correctly.
5926   pipe_works=no
5927
5928   rm -f conftest*
5929   cat > conftest.$ac_ext <<EOF
5930 #ifdef __cplusplus
5931 extern "C" {
5932 #endif
5933 char nm_test_var;
5934 void nm_test_func(){}
5935 #ifdef __cplusplus
5936 }
5937 #endif
5938 int main(){nm_test_var='a';nm_test_func();return(0);}
5939 EOF
5940
5941   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5942   (eval $ac_compile) 2>&5
5943   ac_status=$?
5944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945   (exit $ac_status); }; then
5946     # Now try to grab the symbols.
5947     nlist=conftest.nm
5948     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5949   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5950   ac_status=$?
5951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952   (exit $ac_status); } && test -s "$nlist"; then
5953       # Try sorting and uniquifying the output.
5954       if sort "$nlist" | uniq > "$nlist"T; then
5955         mv -f "$nlist"T "$nlist"
5956       else
5957         rm -f "$nlist"T
5958       fi
5959
5960       # Make sure that we snagged all the symbols we need.
5961       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5962         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5963           cat <<EOF > conftest.$ac_ext
5964 #ifdef __cplusplus
5965 extern "C" {
5966 #endif
5967
5968 EOF
5969           # Now generate the symbol file.
5970           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5971
5972           cat <<EOF >> conftest.$ac_ext
5973 #if defined (__STDC__) && __STDC__
5974 # define lt_ptr_t void *
5975 #else
5976 # define lt_ptr_t char *
5977 # define const
5978 #endif
5979
5980 /* The mapping between symbol names and symbols. */
5981 const struct {
5982   const char *name;
5983   lt_ptr_t address;
5984 }
5985 lt_preloaded_symbols[] =
5986 {
5987 EOF
5988           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5989           cat <<\EOF >> conftest.$ac_ext
5990   {0, (lt_ptr_t) 0}
5991 };
5992
5993 #ifdef __cplusplus
5994 }
5995 #endif
5996 EOF
5997           # Now try linking the two files.
5998           mv conftest.$ac_objext conftstm.$ac_objext
5999           lt_save_LIBS="$LIBS"
6000           lt_save_CFLAGS="$CFLAGS"
6001           LIBS="conftstm.$ac_objext"
6002           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6003           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6004   (eval $ac_link) 2>&5
6005   ac_status=$?
6006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6008             pipe_works=yes
6009           fi
6010           LIBS="$lt_save_LIBS"
6011           CFLAGS="$lt_save_CFLAGS"
6012         else
6013           echo "cannot find nm_test_func in $nlist" >&5
6014         fi
6015       else
6016         echo "cannot find nm_test_var in $nlist" >&5
6017       fi
6018     else
6019       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6020     fi
6021   else
6022     echo "$progname: failed program was:" >&5
6023     cat conftest.$ac_ext >&5
6024   fi
6025   rm -f conftest* conftst*
6026
6027   # Do not use the global_symbol_pipe unless it works.
6028   if test "$pipe_works" = yes; then
6029     break
6030   else
6031     lt_cv_sys_global_symbol_pipe=
6032   fi
6033 done
6034
6035 fi
6036
6037 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6038   lt_cv_sys_global_symbol_to_cdecl=
6039 fi
6040 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6041   echo "$as_me:$LINENO: result: failed" >&5
6042 echo "${ECHO_T}failed" >&6
6043 else
6044   echo "$as_me:$LINENO: result: ok" >&5
6045 echo "${ECHO_T}ok" >&6
6046 fi
6047
6048 echo "$as_me:$LINENO: checking for objdir" >&5
6049 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6050 if test "${lt_cv_objdir+set}" = set; then
6051   echo $ECHO_N "(cached) $ECHO_C" >&6
6052 else
6053   rm -f .libs 2>/dev/null
6054 mkdir .libs 2>/dev/null
6055 if test -d .libs; then
6056   lt_cv_objdir=.libs
6057 else
6058   # MS-DOS does not allow filenames that begin with a dot.
6059   lt_cv_objdir=_libs
6060 fi
6061 rmdir .libs 2>/dev/null
6062 fi
6063 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6064 echo "${ECHO_T}$lt_cv_objdir" >&6
6065 objdir=$lt_cv_objdir
6066
6067
6068
6069
6070
6071 case $host_os in
6072 aix3*)
6073   # AIX sometimes has problems with the GCC collect2 program.  For some
6074   # reason, if we set the COLLECT_NAMES environment variable, the problems
6075   # vanish in a puff of smoke.
6076   if test "X${COLLECT_NAMES+set}" != Xset; then
6077     COLLECT_NAMES=
6078     export COLLECT_NAMES
6079   fi
6080   ;;
6081 esac
6082
6083 # Sed substitution that helps us do robust quoting.  It backslashifies
6084 # metacharacters that are still active within double-quoted strings.
6085 Xsed='sed -e 1s/^X//'
6086 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6087
6088 # Same as above, but do not quote variable references.
6089 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6090
6091 # Sed substitution to delay expansion of an escaped shell variable in a
6092 # double_quote_subst'ed string.
6093 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6094
6095 # Sed substitution to avoid accidental globbing in evaled expressions
6096 no_glob_subst='s/\*/\\\*/g'
6097
6098 # Constants:
6099 rm="rm -f"
6100
6101 # Global variables:
6102 default_ofile=libtool
6103 can_build_shared=yes
6104
6105 # All known linkers require a `.a' archive for static linking (except MSVC,
6106 # which needs '.lib').
6107 libext=a
6108 ltmain="$ac_aux_dir/ltmain.sh"
6109 ofile="$default_ofile"
6110 with_gnu_ld="$lt_cv_prog_gnu_ld"
6111
6112 if test -n "$ac_tool_prefix"; then
6113   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6114 set dummy ${ac_tool_prefix}ar; ac_word=$2
6115 echo "$as_me:$LINENO: checking for $ac_word" >&5
6116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6117 if test "${ac_cv_prog_AR+set}" = set; then
6118   echo $ECHO_N "(cached) $ECHO_C" >&6
6119 else
6120   if test -n "$AR"; then
6121   ac_cv_prog_AR="$AR" # Let the user override the test.
6122 else
6123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124 for as_dir in $PATH
6125 do
6126   IFS=$as_save_IFS
6127   test -z "$as_dir" && as_dir=.
6128   for ac_exec_ext in '' $ac_executable_extensions; do
6129   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6130     ac_cv_prog_AR="${ac_tool_prefix}ar"
6131     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6132     break 2
6133   fi
6134 done
6135 done
6136
6137 fi
6138 fi
6139 AR=$ac_cv_prog_AR
6140 if test -n "$AR"; then
6141   echo "$as_me:$LINENO: result: $AR" >&5
6142 echo "${ECHO_T}$AR" >&6
6143 else
6144   echo "$as_me:$LINENO: result: no" >&5
6145 echo "${ECHO_T}no" >&6
6146 fi
6147
6148 fi
6149 if test -z "$ac_cv_prog_AR"; then
6150   ac_ct_AR=$AR
6151   # Extract the first word of "ar", so it can be a program name with args.
6152 set dummy ar; ac_word=$2
6153 echo "$as_me:$LINENO: checking for $ac_word" >&5
6154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6155 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6156   echo $ECHO_N "(cached) $ECHO_C" >&6
6157 else
6158   if test -n "$ac_ct_AR"; then
6159   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6160 else
6161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162 for as_dir in $PATH
6163 do
6164   IFS=$as_save_IFS
6165   test -z "$as_dir" && as_dir=.
6166   for ac_exec_ext in '' $ac_executable_extensions; do
6167   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6168     ac_cv_prog_ac_ct_AR="ar"
6169     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6170     break 2
6171   fi
6172 done
6173 done
6174
6175   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6176 fi
6177 fi
6178 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6179 if test -n "$ac_ct_AR"; then
6180   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6181 echo "${ECHO_T}$ac_ct_AR" >&6
6182 else
6183   echo "$as_me:$LINENO: result: no" >&5
6184 echo "${ECHO_T}no" >&6
6185 fi
6186
6187   AR=$ac_ct_AR
6188 else
6189   AR="$ac_cv_prog_AR"
6190 fi
6191
6192 if test -n "$ac_tool_prefix"; then
6193   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6194 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6195 echo "$as_me:$LINENO: checking for $ac_word" >&5
6196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6197 if test "${ac_cv_prog_RANLIB+set}" = set; then
6198   echo $ECHO_N "(cached) $ECHO_C" >&6
6199 else
6200   if test -n "$RANLIB"; then
6201   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6202 else
6203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6204 for as_dir in $PATH
6205 do
6206   IFS=$as_save_IFS
6207   test -z "$as_dir" && as_dir=.
6208   for ac_exec_ext in '' $ac_executable_extensions; do
6209   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6210     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6211     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6212     break 2
6213   fi
6214 done
6215 done
6216
6217 fi
6218 fi
6219 RANLIB=$ac_cv_prog_RANLIB
6220 if test -n "$RANLIB"; then
6221   echo "$as_me:$LINENO: result: $RANLIB" >&5
6222 echo "${ECHO_T}$RANLIB" >&6
6223 else
6224   echo "$as_me:$LINENO: result: no" >&5
6225 echo "${ECHO_T}no" >&6
6226 fi
6227
6228 fi
6229 if test -z "$ac_cv_prog_RANLIB"; then
6230   ac_ct_RANLIB=$RANLIB
6231   # Extract the first word of "ranlib", so it can be a program name with args.
6232 set dummy ranlib; ac_word=$2
6233 echo "$as_me:$LINENO: checking for $ac_word" >&5
6234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6235 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6236   echo $ECHO_N "(cached) $ECHO_C" >&6
6237 else
6238   if test -n "$ac_ct_RANLIB"; then
6239   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6240 else
6241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242 for as_dir in $PATH
6243 do
6244   IFS=$as_save_IFS
6245   test -z "$as_dir" && as_dir=.
6246   for ac_exec_ext in '' $ac_executable_extensions; do
6247   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6248     ac_cv_prog_ac_ct_RANLIB="ranlib"
6249     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6250     break 2
6251   fi
6252 done
6253 done
6254
6255   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6256 fi
6257 fi
6258 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6259 if test -n "$ac_ct_RANLIB"; then
6260   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6261 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6262 else
6263   echo "$as_me:$LINENO: result: no" >&5
6264 echo "${ECHO_T}no" >&6
6265 fi
6266
6267   RANLIB=$ac_ct_RANLIB
6268 else
6269   RANLIB="$ac_cv_prog_RANLIB"
6270 fi
6271
6272 if test -n "$ac_tool_prefix"; then
6273   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6274 set dummy ${ac_tool_prefix}strip; ac_word=$2
6275 echo "$as_me:$LINENO: checking for $ac_word" >&5
6276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6277 if test "${ac_cv_prog_STRIP+set}" = set; then
6278   echo $ECHO_N "(cached) $ECHO_C" >&6
6279 else
6280   if test -n "$STRIP"; then
6281   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6282 else
6283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6284 for as_dir in $PATH
6285 do
6286   IFS=$as_save_IFS
6287   test -z "$as_dir" && as_dir=.
6288   for ac_exec_ext in '' $ac_executable_extensions; do
6289   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6290     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6291     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6292     break 2
6293   fi
6294 done
6295 done
6296
6297 fi
6298 fi
6299 STRIP=$ac_cv_prog_STRIP
6300 if test -n "$STRIP"; then
6301   echo "$as_me:$LINENO: result: $STRIP" >&5
6302 echo "${ECHO_T}$STRIP" >&6
6303 else
6304   echo "$as_me:$LINENO: result: no" >&5
6305 echo "${ECHO_T}no" >&6
6306 fi
6307
6308 fi
6309 if test -z "$ac_cv_prog_STRIP"; then
6310   ac_ct_STRIP=$STRIP
6311   # Extract the first word of "strip", so it can be a program name with args.
6312 set dummy strip; ac_word=$2
6313 echo "$as_me:$LINENO: checking for $ac_word" >&5
6314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6315 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6316   echo $ECHO_N "(cached) $ECHO_C" >&6
6317 else
6318   if test -n "$ac_ct_STRIP"; then
6319   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6320 else
6321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6322 for as_dir in $PATH
6323 do
6324   IFS=$as_save_IFS
6325   test -z "$as_dir" && as_dir=.
6326   for ac_exec_ext in '' $ac_executable_extensions; do
6327   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6328     ac_cv_prog_ac_ct_STRIP="strip"
6329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6330     break 2
6331   fi
6332 done
6333 done
6334
6335   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6336 fi
6337 fi
6338 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6339 if test -n "$ac_ct_STRIP"; then
6340   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6341 echo "${ECHO_T}$ac_ct_STRIP" >&6
6342 else
6343   echo "$as_me:$LINENO: result: no" >&5
6344 echo "${ECHO_T}no" >&6
6345 fi
6346
6347   STRIP=$ac_ct_STRIP
6348 else
6349   STRIP="$ac_cv_prog_STRIP"
6350 fi
6351
6352
6353 old_CC="$CC"
6354 old_CFLAGS="$CFLAGS"
6355
6356 # Set sane defaults for various variables
6357 test -z "$AR" && AR=ar
6358 test -z "$AR_FLAGS" && AR_FLAGS=cru
6359 test -z "$AS" && AS=as
6360 test -z "$CC" && CC=cc
6361 test -z "$LTCC" && LTCC=$CC
6362 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6363 test -z "$DLLTOOL" && DLLTOOL=dlltool
6364 test -z "$LD" && LD=ld
6365 test -z "$LN_S" && LN_S="ln -s"
6366 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6367 test -z "$NM" && NM=nm
6368 test -z "$SED" && SED=sed
6369 test -z "$OBJDUMP" && OBJDUMP=objdump
6370 test -z "$RANLIB" && RANLIB=:
6371 test -z "$STRIP" && STRIP=:
6372 test -z "$ac_objext" && ac_objext=o
6373
6374 # Determine commands to create old-style static archives.
6375 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6376 old_postinstall_cmds='chmod 644 $oldlib'
6377 old_postuninstall_cmds=
6378
6379 if test -n "$RANLIB"; then
6380   case $host_os in
6381   openbsd*)
6382     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6383     ;;
6384   *)
6385     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6386     ;;
6387   esac
6388   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6389 fi
6390
6391 for cc_temp in $compiler""; do
6392   case $cc_temp in
6393     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6394     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6395     \-*) ;;
6396     *) break;;
6397   esac
6398 done
6399 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6400
6401
6402 # Only perform the check for file, if the check method requires it
6403 case $deplibs_check_method in
6404 file_magic*)
6405   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6406     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6407 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6408 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6409   echo $ECHO_N "(cached) $ECHO_C" >&6
6410 else
6411   case $MAGIC_CMD in
6412 [\\/*] |  ?:[\\/]*)
6413   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6414   ;;
6415 *)
6416   lt_save_MAGIC_CMD="$MAGIC_CMD"
6417   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6418   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6419   for ac_dir in $ac_dummy; do
6420     IFS="$lt_save_ifs"
6421     test -z "$ac_dir" && ac_dir=.
6422     if test -f $ac_dir/${ac_tool_prefix}file; then
6423       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6424       if test -n "$file_magic_test_file"; then
6425         case $deplibs_check_method in
6426         "file_magic "*)
6427           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6428           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6429           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6430             $EGREP "$file_magic_regex" > /dev/null; then
6431             :
6432           else
6433             cat <<EOF 1>&2
6434
6435 *** Warning: the command libtool uses to detect shared libraries,
6436 *** $file_magic_cmd, produces output that libtool cannot recognize.
6437 *** The result is that libtool may fail to recognize shared libraries
6438 *** as such.  This will affect the creation of libtool libraries that
6439 *** depend on shared libraries, but programs linked with such libtool
6440 *** libraries will work regardless of this problem.  Nevertheless, you
6441 *** may want to report the problem to your system manager and/or to
6442 *** bug-libtool@gnu.org
6443
6444 EOF
6445           fi ;;
6446         esac
6447       fi
6448       break
6449     fi
6450   done
6451   IFS="$lt_save_ifs"
6452   MAGIC_CMD="$lt_save_MAGIC_CMD"
6453   ;;
6454 esac
6455 fi
6456
6457 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6458 if test -n "$MAGIC_CMD"; then
6459   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6460 echo "${ECHO_T}$MAGIC_CMD" >&6
6461 else
6462   echo "$as_me:$LINENO: result: no" >&5
6463 echo "${ECHO_T}no" >&6
6464 fi
6465
6466 if test -z "$lt_cv_path_MAGIC_CMD"; then
6467   if test -n "$ac_tool_prefix"; then
6468     echo "$as_me:$LINENO: checking for file" >&5
6469 echo $ECHO_N "checking for file... $ECHO_C" >&6
6470 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6471   echo $ECHO_N "(cached) $ECHO_C" >&6
6472 else
6473   case $MAGIC_CMD in
6474 [\\/*] |  ?:[\\/]*)
6475   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6476   ;;
6477 *)
6478   lt_save_MAGIC_CMD="$MAGIC_CMD"
6479   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6480   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6481   for ac_dir in $ac_dummy; do
6482     IFS="$lt_save_ifs"
6483     test -z "$ac_dir" && ac_dir=.
6484     if test -f $ac_dir/file; then
6485       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6486       if test -n "$file_magic_test_file"; then
6487         case $deplibs_check_method in
6488         "file_magic "*)
6489           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6490           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6491           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6492             $EGREP "$file_magic_regex" > /dev/null; then
6493             :
6494           else
6495             cat <<EOF 1>&2
6496
6497 *** Warning: the command libtool uses to detect shared libraries,
6498 *** $file_magic_cmd, produces output that libtool cannot recognize.
6499 *** The result is that libtool may fail to recognize shared libraries
6500 *** as such.  This will affect the creation of libtool libraries that
6501 *** depend on shared libraries, but programs linked with such libtool
6502 *** libraries will work regardless of this problem.  Nevertheless, you
6503 *** may want to report the problem to your system manager and/or to
6504 *** bug-libtool@gnu.org
6505
6506 EOF
6507           fi ;;
6508         esac
6509       fi
6510       break
6511     fi
6512   done
6513   IFS="$lt_save_ifs"
6514   MAGIC_CMD="$lt_save_MAGIC_CMD"
6515   ;;
6516 esac
6517 fi
6518
6519 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6520 if test -n "$MAGIC_CMD"; then
6521   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6522 echo "${ECHO_T}$MAGIC_CMD" >&6
6523 else
6524   echo "$as_me:$LINENO: result: no" >&5
6525 echo "${ECHO_T}no" >&6
6526 fi
6527
6528   else
6529     MAGIC_CMD=:
6530   fi
6531 fi
6532
6533   fi
6534   ;;
6535 esac
6536
6537 enable_dlopen=no
6538 enable_win32_dll=yes
6539
6540 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6541 if test "${enable_libtool_lock+set}" = set; then
6542   enableval="$enable_libtool_lock"
6543
6544 fi;
6545 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6546
6547
6548 # Check whether --with-pic or --without-pic was given.
6549 if test "${with_pic+set}" = set; then
6550   withval="$with_pic"
6551   pic_mode="$withval"
6552 else
6553   pic_mode=default
6554 fi;
6555 test -z "$pic_mode" && pic_mode=default
6556
6557 # Use C for the default configuration in the libtool script
6558 tagname=
6559 lt_save_CC="$CC"
6560 ac_ext=c
6561 ac_cpp='$CPP $CPPFLAGS'
6562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6565
6566
6567 # Source file extension for C test sources.
6568 ac_ext=c
6569
6570 # Object file extension for compiled C test sources.
6571 objext=o
6572 objext=$objext
6573
6574 # Code to be used in simple compile tests
6575 lt_simple_compile_test_code="int some_variable = 0;\n"
6576
6577 # Code to be used in simple link tests
6578 lt_simple_link_test_code='int main(){return(0);}\n'
6579
6580
6581 # If no C compiler was specified, use CC.
6582 LTCC=${LTCC-"$CC"}
6583
6584 # If no C compiler flags were specified, use CFLAGS.
6585 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6586
6587 # Allow CC to be a program name with arguments.
6588 compiler=$CC
6589
6590
6591 # save warnings/boilerplate of simple test code
6592 ac_outfile=conftest.$ac_objext
6593 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6594 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6595 _lt_compiler_boilerplate=`cat conftest.err`
6596 $rm conftest*
6597
6598 ac_outfile=conftest.$ac_objext
6599 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6600 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6601 _lt_linker_boilerplate=`cat conftest.err`
6602 $rm conftest*
6603
6604
6605
6606 lt_prog_compiler_no_builtin_flag=
6607
6608 if test "$GCC" = yes; then
6609   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6610
6611
6612 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6613 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6614 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6615   echo $ECHO_N "(cached) $ECHO_C" >&6
6616 else
6617   lt_cv_prog_compiler_rtti_exceptions=no
6618   ac_outfile=conftest.$ac_objext
6619    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6620    lt_compiler_flag="-fno-rtti -fno-exceptions"
6621    # Insert the option either (1) after the last *FLAGS variable, or
6622    # (2) before a word containing "conftest.", or (3) at the end.
6623    # Note that $ac_compile itself does not contain backslashes and begins
6624    # with a dollar sign (not a hyphen), so the echo should work correctly.
6625    # The option is referenced via a variable to avoid confusing sed.
6626    lt_compile=`echo "$ac_compile" | $SED \
6627    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6628    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6629    -e 's:$: $lt_compiler_flag:'`
6630    (eval echo "\"\$as_me:6630: $lt_compile\"" >&5)
6631    (eval "$lt_compile" 2>conftest.err)
6632    ac_status=$?
6633    cat conftest.err >&5
6634    echo "$as_me:6634: \$? = $ac_status" >&5
6635    if (exit $ac_status) && test -s "$ac_outfile"; then
6636      # The compiler can only warn and ignore the option if not recognized
6637      # So say no if there are warnings other than the usual output.
6638      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6639      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6640      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6641        lt_cv_prog_compiler_rtti_exceptions=yes
6642      fi
6643    fi
6644    $rm conftest*
6645
6646 fi
6647 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6648 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6649
6650 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6651     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6652 else
6653     :
6654 fi
6655
6656 fi
6657
6658 lt_prog_compiler_wl=
6659 lt_prog_compiler_pic=
6660 lt_prog_compiler_static=
6661
6662 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6663 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6664
6665   if test "$GCC" = yes; then
6666     lt_prog_compiler_wl='-Wl,'
6667     lt_prog_compiler_static='-static'
6668
6669     case $host_os in
6670       aix*)
6671       # All AIX code is PIC.
6672       if test "$host_cpu" = ia64; then
6673         # AIX 5 now supports IA64 processor
6674         lt_prog_compiler_static='-Bstatic'
6675       fi
6676       ;;
6677
6678     amigaos*)
6679       # FIXME: we need at least 68020 code to build shared libraries, but
6680       # adding the `-m68020' flag to GCC prevents building anything better,
6681       # like `-m68040'.
6682       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6683       ;;
6684
6685     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6686       # PIC is the default for these OSes.
6687       ;;
6688
6689     mingw* | pw32* | os2*)
6690       # This hack is so that the source file can tell whether it is being
6691       # built for inclusion in a dll (and should export symbols for example).
6692       lt_prog_compiler_pic='-DDLL_EXPORT'
6693       ;;
6694
6695     darwin* | rhapsody*)
6696       # PIC is the default on this platform
6697       # Common symbols not allowed in MH_DYLIB files
6698       lt_prog_compiler_pic='-fno-common'
6699       ;;
6700
6701     interix3*)
6702       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6703       # Instead, we relocate shared libraries at runtime.
6704       ;;
6705
6706     msdosdjgpp*)
6707       # Just because we use GCC doesn't mean we suddenly get shared libraries
6708       # on systems that don't support them.
6709       lt_prog_compiler_can_build_shared=no
6710       enable_shared=no
6711       ;;
6712
6713     sysv4*MP*)
6714       if test -d /usr/nec; then
6715         lt_prog_compiler_pic=-Kconform_pic
6716       fi
6717       ;;
6718
6719     hpux*)
6720       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6721       # not for PA HP-UX.
6722       case $host_cpu in
6723       hppa*64*|ia64*)
6724         # +Z the default
6725         ;;
6726       *)
6727         lt_prog_compiler_pic='-fPIC'
6728         ;;
6729       esac
6730       ;;
6731
6732     *)
6733       lt_prog_compiler_pic='-fPIC'
6734       ;;
6735     esac
6736   else
6737     # PORTME Check for flag to pass linker flags through the system compiler.
6738     case $host_os in
6739     aix*)
6740       lt_prog_compiler_wl='-Wl,'
6741       if test "$host_cpu" = ia64; then
6742         # AIX 5 now supports IA64 processor
6743         lt_prog_compiler_static='-Bstatic'
6744       else
6745         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6746       fi
6747       ;;
6748       darwin*)
6749         # PIC is the default on this platform
6750         # Common symbols not allowed in MH_DYLIB files
6751        case $cc_basename in
6752          xlc*)
6753          lt_prog_compiler_pic='-qnocommon'
6754          lt_prog_compiler_wl='-Wl,'
6755          ;;
6756        esac
6757        ;;
6758
6759     mingw* | pw32* | os2*)
6760       # This hack is so that the source file can tell whether it is being
6761       # built for inclusion in a dll (and should export symbols for example).
6762       lt_prog_compiler_pic='-DDLL_EXPORT'
6763       ;;
6764
6765     hpux9* | hpux10* | hpux11*)
6766       lt_prog_compiler_wl='-Wl,'
6767       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6768       # not for PA HP-UX.
6769       case $host_cpu in
6770       hppa*64*|ia64*)
6771         # +Z the default
6772         ;;
6773       *)
6774         lt_prog_compiler_pic='+Z'
6775         ;;
6776       esac
6777       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6778       lt_prog_compiler_static='${wl}-a ${wl}archive'
6779       ;;
6780
6781     irix5* | irix6* | nonstopux*)
6782       lt_prog_compiler_wl='-Wl,'
6783       # PIC (with -KPIC) is the default.
6784       lt_prog_compiler_static='-non_shared'
6785       ;;
6786
6787     newsos6)
6788       lt_prog_compiler_pic='-KPIC'
6789       lt_prog_compiler_static='-Bstatic'
6790       ;;
6791
6792     linux*)
6793       case $cc_basename in
6794       icc* | ecc*)
6795         lt_prog_compiler_wl='-Wl,'
6796         lt_prog_compiler_pic='-KPIC'
6797         lt_prog_compiler_static='-static'
6798         ;;
6799       pgcc* | pgf77* | pgf90* | pgf95*)
6800         # Portland Group compilers (*not* the Pentium gcc compiler,
6801         # which looks to be a dead project)
6802         lt_prog_compiler_wl='-Wl,'
6803         lt_prog_compiler_pic='-fpic'
6804         lt_prog_compiler_static='-Bstatic'
6805         ;;
6806       ccc*)
6807         lt_prog_compiler_wl='-Wl,'
6808         # All Alpha code is PIC.
6809         lt_prog_compiler_static='-non_shared'
6810         ;;
6811       esac
6812       ;;
6813
6814     osf3* | osf4* | osf5*)
6815       lt_prog_compiler_wl='-Wl,'
6816       # All OSF/1 code is PIC.
6817       lt_prog_compiler_static='-non_shared'
6818       ;;
6819
6820     solaris*)
6821       lt_prog_compiler_pic='-KPIC'
6822       lt_prog_compiler_static='-Bstatic'
6823       case $cc_basename in
6824       f77* | f90* | f95*)
6825         lt_prog_compiler_wl='-Qoption ld ';;
6826       *)
6827         lt_prog_compiler_wl='-Wl,';;
6828       esac
6829       ;;
6830
6831     sunos4*)
6832       lt_prog_compiler_wl='-Qoption ld '
6833       lt_prog_compiler_pic='-PIC'
6834       lt_prog_compiler_static='-Bstatic'
6835       ;;
6836
6837     sysv4 | sysv4.2uw2* | sysv4.3*)
6838       lt_prog_compiler_wl='-Wl,'
6839       lt_prog_compiler_pic='-KPIC'
6840       lt_prog_compiler_static='-Bstatic'
6841       ;;
6842
6843     sysv4*MP*)
6844       if test -d /usr/nec ;then
6845         lt_prog_compiler_pic='-Kconform_pic'
6846         lt_prog_compiler_static='-Bstatic'
6847       fi
6848       ;;
6849
6850     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6851       lt_prog_compiler_wl='-Wl,'
6852       lt_prog_compiler_pic='-KPIC'
6853       lt_prog_compiler_static='-Bstatic'
6854       ;;
6855
6856     unicos*)
6857       lt_prog_compiler_wl='-Wl,'
6858       lt_prog_compiler_can_build_shared=no
6859       ;;
6860
6861     uts4*)
6862       lt_prog_compiler_pic='-pic'
6863       lt_prog_compiler_static='-Bstatic'
6864       ;;
6865
6866     *)
6867       lt_prog_compiler_can_build_shared=no
6868       ;;
6869     esac
6870   fi
6871
6872 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6873 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6874
6875 #
6876 # Check to make sure the PIC flag actually works.
6877 #
6878 if test -n "$lt_prog_compiler_pic"; then
6879
6880 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6881 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6882 if test "${lt_prog_compiler_pic_works+set}" = set; then
6883   echo $ECHO_N "(cached) $ECHO_C" >&6
6884 else
6885   lt_prog_compiler_pic_works=no
6886   ac_outfile=conftest.$ac_objext
6887    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6888    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6889    # Insert the option either (1) after the last *FLAGS variable, or
6890    # (2) before a word containing "conftest.", or (3) at the end.
6891    # Note that $ac_compile itself does not contain backslashes and begins
6892    # with a dollar sign (not a hyphen), so the echo should work correctly.
6893    # The option is referenced via a variable to avoid confusing sed.
6894    lt_compile=`echo "$ac_compile" | $SED \
6895    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6896    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6897    -e 's:$: $lt_compiler_flag:'`
6898    (eval echo "\"\$as_me:6898: $lt_compile\"" >&5)
6899    (eval "$lt_compile" 2>conftest.err)
6900    ac_status=$?
6901    cat conftest.err >&5
6902    echo "$as_me:6902: \$? = $ac_status" >&5
6903    if (exit $ac_status) && test -s "$ac_outfile"; then
6904      # The compiler can only warn and ignore the option if not recognized
6905      # So say no if there are warnings other than the usual output.
6906      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6907      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6908      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6909        lt_prog_compiler_pic_works=yes
6910      fi
6911    fi
6912    $rm conftest*
6913
6914 fi
6915 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6916 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6917
6918 if test x"$lt_prog_compiler_pic_works" = xyes; then
6919     case $lt_prog_compiler_pic in
6920      "" | " "*) ;;
6921      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6922      esac
6923 else
6924     lt_prog_compiler_pic=
6925      lt_prog_compiler_can_build_shared=no
6926 fi
6927
6928 fi
6929 case $host_os in
6930   # For platforms which do not support PIC, -DPIC is meaningless:
6931   *djgpp*)
6932     lt_prog_compiler_pic=
6933     ;;
6934   *)
6935     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6936     ;;
6937 esac
6938
6939 #
6940 # Check to make sure the static flag actually works.
6941 #
6942 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6943 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6944 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6945 if test "${lt_prog_compiler_static_works+set}" = set; then
6946   echo $ECHO_N "(cached) $ECHO_C" >&6
6947 else
6948   lt_prog_compiler_static_works=no
6949    save_LDFLAGS="$LDFLAGS"
6950    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6951    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6952    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6953      # The linker can only warn and ignore the option if not recognized
6954      # So say no if there are warnings
6955      if test -s conftest.err; then
6956        # Append any errors to the config.log.
6957        cat conftest.err 1>&5
6958        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6959        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6960        if diff conftest.exp conftest.er2 >/dev/null; then
6961          lt_prog_compiler_static_works=yes
6962        fi
6963      else
6964        lt_prog_compiler_static_works=yes
6965      fi
6966    fi
6967    $rm conftest*
6968    LDFLAGS="$save_LDFLAGS"
6969
6970 fi
6971 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6972 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6973
6974 if test x"$lt_prog_compiler_static_works" = xyes; then
6975     :
6976 else
6977     lt_prog_compiler_static=
6978 fi
6979
6980
6981 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6982 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6983 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6984   echo $ECHO_N "(cached) $ECHO_C" >&6
6985 else
6986   lt_cv_prog_compiler_c_o=no
6987    $rm -r conftest 2>/dev/null
6988    mkdir conftest
6989    cd conftest
6990    mkdir out
6991    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6992
6993    lt_compiler_flag="-o out/conftest2.$ac_objext"
6994    # Insert the option either (1) after the last *FLAGS variable, or
6995    # (2) before a word containing "conftest.", or (3) at the end.
6996    # Note that $ac_compile itself does not contain backslashes and begins
6997    # with a dollar sign (not a hyphen), so the echo should work correctly.
6998    lt_compile=`echo "$ac_compile" | $SED \
6999    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7000    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7001    -e 's:$: $lt_compiler_flag:'`
7002    (eval echo "\"\$as_me:7002: $lt_compile\"" >&5)
7003    (eval "$lt_compile" 2>out/conftest.err)
7004    ac_status=$?
7005    cat out/conftest.err >&5
7006    echo "$as_me:7006: \$? = $ac_status" >&5
7007    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7008    then
7009      # The compiler can only warn and ignore the option if not recognized
7010      # So say no if there are warnings
7011      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7012      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7013      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7014        lt_cv_prog_compiler_c_o=yes
7015      fi
7016    fi
7017    chmod u+w . 2>&5
7018    $rm conftest*
7019    # SGI C++ compiler will create directory out/ii_files/ for
7020    # template instantiation
7021    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7022    $rm out/* && rmdir out
7023    cd ..
7024    rmdir conftest
7025    $rm conftest*
7026
7027 fi
7028 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7029 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7030
7031
7032 hard_links="nottested"
7033 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7034   # do not overwrite the value of need_locks provided by the user
7035   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7036 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7037   hard_links=yes
7038   $rm conftest*
7039   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7040   touch conftest.a
7041   ln conftest.a conftest.b 2>&5 || hard_links=no
7042   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7043   echo "$as_me:$LINENO: result: $hard_links" >&5
7044 echo "${ECHO_T}$hard_links" >&6
7045   if test "$hard_links" = no; then
7046     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7047 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7048     need_locks=warn
7049   fi
7050 else
7051   need_locks=no
7052 fi
7053
7054 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7055 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7056
7057   runpath_var=
7058   allow_undefined_flag=
7059   enable_shared_with_static_runtimes=no
7060   archive_cmds=
7061   archive_expsym_cmds=
7062   old_archive_From_new_cmds=
7063   old_archive_from_expsyms_cmds=
7064   export_dynamic_flag_spec=
7065   whole_archive_flag_spec=
7066   thread_safe_flag_spec=
7067   hardcode_libdir_flag_spec=
7068   hardcode_libdir_flag_spec_ld=
7069   hardcode_libdir_separator=
7070   hardcode_direct=no
7071   hardcode_minus_L=no
7072   hardcode_shlibpath_var=unsupported
7073   link_all_deplibs=unknown
7074   hardcode_automatic=no
7075   module_cmds=
7076   module_expsym_cmds=
7077   always_export_symbols=no
7078   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7079   # include_expsyms should be a list of space-separated symbols to be *always*
7080   # included in the symbol list
7081   include_expsyms=
7082   # exclude_expsyms can be an extended regexp of symbols to exclude
7083   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7084   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7085   # as well as any symbol that contains `d'.
7086   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7087   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7088   # platforms (ab)use it in PIC code, but their linkers get confused if
7089   # the symbol is explicitly referenced.  Since portable code cannot
7090   # rely on this symbol name, it's probably fine to never include it in
7091   # preloaded symbol tables.
7092   extract_expsyms_cmds=
7093   # Just being paranoid about ensuring that cc_basename is set.
7094   for cc_temp in $compiler""; do
7095   case $cc_temp in
7096     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7097     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7098     \-*) ;;
7099     *) break;;
7100   esac
7101 done
7102 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7103
7104   case $host_os in
7105   cygwin* | mingw* | pw32*)
7106     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7107     # When not using gcc, we currently assume that we are using
7108     # Microsoft Visual C++.
7109     if test "$GCC" != yes; then
7110       with_gnu_ld=no
7111     fi
7112     ;;
7113   interix*)
7114     # we just hope/assume this is gcc and not c89 (= MSVC++)
7115     with_gnu_ld=yes
7116     ;;
7117   openbsd*)
7118     with_gnu_ld=no
7119     ;;
7120   esac
7121
7122   ld_shlibs=yes
7123   if test "$with_gnu_ld" = yes; then
7124     # If archive_cmds runs LD, not CC, wlarc should be empty
7125     wlarc='${wl}'
7126
7127     # Set some defaults for GNU ld with shared library support. These
7128     # are reset later if shared libraries are not supported. Putting them
7129     # here allows them to be overridden if necessary.
7130     runpath_var=LD_RUN_PATH
7131     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7132     export_dynamic_flag_spec='${wl}--export-dynamic'
7133     # ancient GNU ld didn't support --whole-archive et. al.
7134     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7135         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7136       else
7137         whole_archive_flag_spec=
7138     fi
7139     supports_anon_versioning=no
7140     case `$LD -v 2>/dev/null` in
7141       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7142       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7143       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7144       *\ 2.11.*) ;; # other 2.11 versions
7145       *) supports_anon_versioning=yes ;;
7146     esac
7147
7148     # See if GNU ld supports shared libraries.
7149     case $host_os in
7150     aix3* | aix4* | aix5*)
7151       # On AIX/PPC, the GNU linker is very broken
7152       if test "$host_cpu" != ia64; then
7153         ld_shlibs=no
7154         cat <<EOF 1>&2
7155
7156 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7157 *** to be unable to reliably create shared libraries on AIX.
7158 *** Therefore, libtool is disabling shared libraries support.  If you
7159 *** really care for shared libraries, you may want to modify your PATH
7160 *** so that a non-GNU linker is found, and then restart.
7161
7162 EOF
7163       fi
7164       ;;
7165
7166     amigaos*)
7167       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)'
7168       hardcode_libdir_flag_spec='-L$libdir'
7169       hardcode_minus_L=yes
7170
7171       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7172       # that the semantics of dynamic libraries on AmigaOS, at least up
7173       # to version 4, is to share data among multiple programs linked
7174       # with the same dynamic library.  Since this doesn't match the
7175       # behavior of shared libraries on other platforms, we can't use
7176       # them.
7177       ld_shlibs=no
7178       ;;
7179
7180     beos*)
7181       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7182         allow_undefined_flag=unsupported
7183         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7184         # support --undefined.  This deserves some investigation.  FIXME
7185         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7186       else
7187         ld_shlibs=no
7188       fi
7189       ;;
7190
7191     cygwin* | mingw* | pw32*)
7192       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7193       # as there is no search path for DLLs.
7194       hardcode_libdir_flag_spec='-L$libdir'
7195       allow_undefined_flag=unsupported
7196       always_export_symbols=no
7197       enable_shared_with_static_runtimes=yes
7198       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7199
7200       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7201         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7202         # If the export-symbols file already is a .def file (1st line
7203         # is EXPORTS), use it as is; otherwise, prepend...
7204         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7205           cp $export_symbols $output_objdir/$soname.def;
7206         else
7207           echo EXPORTS > $output_objdir/$soname.def;
7208           cat $export_symbols >> $output_objdir/$soname.def;
7209         fi~
7210         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7211       else
7212         ld_shlibs=no
7213       fi
7214       ;;
7215
7216     interix3*)
7217       hardcode_direct=no
7218       hardcode_shlibpath_var=no
7219       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7220       export_dynamic_flag_spec='${wl}-E'
7221       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7222       # Instead, shared libraries are loaded at an image base (0x10000000 by
7223       # default) and relocated if they conflict, which is a slow very memory
7224       # consuming and fragmenting process.  To avoid this, we pick a random,
7225       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7226       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7227       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7228       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7229       ;;
7230
7231     linux*)
7232       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7233         tmp_addflag=
7234         case $cc_basename,$host_cpu in
7235         pgcc*)                          # Portland Group C compiler
7236           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7237           tmp_addflag=' $pic_flag'
7238           ;;
7239         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7240           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7241           tmp_addflag=' $pic_flag -Mnomain' ;;
7242         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7243           tmp_addflag=' -i_dynamic' ;;
7244         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7245           tmp_addflag=' -i_dynamic -nofor_main' ;;
7246         ifc* | ifort*)                  # Intel Fortran compiler
7247           tmp_addflag=' -nofor_main' ;;
7248         esac
7249         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7250
7251         if test $supports_anon_versioning = yes; then
7252           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7253   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7254   $echo "local: *; };" >> $output_objdir/$libname.ver~
7255           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7256         fi
7257         link_all_deplibs=no
7258       else
7259         ld_shlibs=no
7260       fi
7261       ;;
7262
7263     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7264       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7265         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7266         wlarc=
7267       else
7268         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7269         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7270       fi
7271       ;;
7272
7273     solaris*)
7274       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7275         ld_shlibs=no
7276         cat <<EOF 1>&2
7277
7278 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7279 *** create shared libraries on Solaris systems.  Therefore, libtool
7280 *** is disabling shared libraries support.  We urge you to upgrade GNU
7281 *** binutils to release 2.9.1 or newer.  Another option is to modify
7282 *** your PATH or compiler configuration so that the native linker is
7283 *** used, and then restart.
7284
7285 EOF
7286       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7287         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7288         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7289       else
7290         ld_shlibs=no
7291       fi
7292       ;;
7293
7294     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7295       case `$LD -v 2>&1` in
7296         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7297         ld_shlibs=no
7298         cat <<_LT_EOF 1>&2
7299
7300 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7301 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7302 *** is disabling shared libraries support.  We urge you to upgrade GNU
7303 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7304 *** your PATH or compiler configuration so that the native linker is
7305 *** used, and then restart.
7306
7307 _LT_EOF
7308         ;;
7309         *)
7310           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7311             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7312             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7313             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7314           else
7315             ld_shlibs=no
7316           fi
7317         ;;
7318       esac
7319       ;;
7320
7321     sunos4*)
7322       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7323       wlarc=
7324       hardcode_direct=yes
7325       hardcode_shlibpath_var=no
7326       ;;
7327
7328     *)
7329       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7330         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7331         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7332       else
7333         ld_shlibs=no
7334       fi
7335       ;;
7336     esac
7337
7338     if test "$ld_shlibs" = no; then
7339       runpath_var=
7340       hardcode_libdir_flag_spec=
7341       export_dynamic_flag_spec=
7342       whole_archive_flag_spec=
7343     fi
7344   else
7345     # PORTME fill in a description of your system's linker (not GNU ld)
7346     case $host_os in
7347     aix3*)
7348       allow_undefined_flag=unsupported
7349       always_export_symbols=yes
7350       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'
7351       # Note: this linker hardcodes the directories in LIBPATH if there
7352       # are no directories specified by -L.
7353       hardcode_minus_L=yes
7354       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7355         # Neither direct hardcoding nor static linking is supported with a
7356         # broken collect2.
7357         hardcode_direct=unsupported
7358       fi
7359       ;;
7360
7361     aix4* | aix5*)
7362       if test "$host_cpu" = ia64; then
7363         # On IA64, the linker does run time linking by default, so we don't
7364         # have to do anything special.
7365         aix_use_runtimelinking=no
7366         exp_sym_flag='-Bexport'
7367         no_entry_flag=""
7368       else
7369         # If we're using GNU nm, then we don't want the "-C" option.
7370         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7371         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7372           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'
7373         else
7374           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'
7375         fi
7376         aix_use_runtimelinking=no
7377
7378         # Test if we are trying to use run time linking or normal
7379         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7380         # need to do runtime linking.
7381         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7382           for ld_flag in $LDFLAGS; do
7383           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7384             aix_use_runtimelinking=yes
7385             break
7386           fi
7387           done
7388           ;;
7389         esac
7390
7391         exp_sym_flag='-bexport'
7392         no_entry_flag='-bnoentry'
7393       fi
7394
7395       # When large executables or shared objects are built, AIX ld can
7396       # have problems creating the table of contents.  If linking a library
7397       # or program results in "error TOC overflow" add -mminimal-toc to
7398       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7399       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7400
7401       archive_cmds=''
7402       hardcode_direct=yes
7403       hardcode_libdir_separator=':'
7404       link_all_deplibs=yes
7405
7406       if test "$GCC" = yes; then
7407         case $host_os in aix4.[012]|aix4.[012].*)
7408         # We only want to do this on AIX 4.2 and lower, the check
7409         # below for broken collect2 doesn't work under 4.3+
7410           collect2name=`${CC} -print-prog-name=collect2`
7411           if test -f "$collect2name" && \
7412            strings "$collect2name" | grep resolve_lib_name >/dev/null
7413           then
7414           # We have reworked collect2
7415           hardcode_direct=yes
7416           else
7417           # We have old collect2
7418           hardcode_direct=unsupported
7419           # It fails to find uninstalled libraries when the uninstalled
7420           # path is not listed in the libpath.  Setting hardcode_minus_L
7421           # to unsupported forces relinking
7422           hardcode_minus_L=yes
7423           hardcode_libdir_flag_spec='-L$libdir'
7424           hardcode_libdir_separator=
7425           fi
7426           ;;
7427         esac
7428         shared_flag='-shared'
7429         if test "$aix_use_runtimelinking" = yes; then
7430           shared_flag="$shared_flag "'${wl}-G'
7431         fi
7432       else
7433         # not using gcc
7434         if test "$host_cpu" = ia64; then
7435         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7436         # chokes on -Wl,-G. The following line is correct:
7437           shared_flag='-G'
7438         else
7439           if test "$aix_use_runtimelinking" = yes; then
7440             shared_flag='${wl}-G'
7441           else
7442             shared_flag='${wl}-bM:SRE'
7443           fi
7444         fi
7445       fi
7446
7447       # It seems that -bexpall does not export symbols beginning with
7448       # underscore (_), so it is better to generate a list of symbols to export.
7449       always_export_symbols=yes
7450       if test "$aix_use_runtimelinking" = yes; then
7451         # Warning - without using the other runtime loading flags (-brtl),
7452         # -berok will link without error, but may produce a broken library.
7453         allow_undefined_flag='-berok'
7454        # Determine the default libpath from the value encoded in an empty executable.
7455        cat >conftest.$ac_ext <<_ACEOF
7456 /* confdefs.h.  */
7457 _ACEOF
7458 cat confdefs.h >>conftest.$ac_ext
7459 cat >>conftest.$ac_ext <<_ACEOF
7460 /* end confdefs.h.  */
7461
7462 int
7463 main ()
7464 {
7465
7466   ;
7467   return 0;
7468 }
7469 _ACEOF
7470 rm -f conftest.$ac_objext conftest$ac_exeext
7471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7472   (eval $ac_link) 2>conftest.er1
7473   ac_status=$?
7474   grep -v '^ *+' conftest.er1 >conftest.err
7475   rm -f conftest.er1
7476   cat conftest.err >&5
7477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478   (exit $ac_status); } &&
7479          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7481   (eval $ac_try) 2>&5
7482   ac_status=$?
7483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484   (exit $ac_status); }; } &&
7485          { ac_try='test -s conftest$ac_exeext'
7486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7487   (eval $ac_try) 2>&5
7488   ac_status=$?
7489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490   (exit $ac_status); }; }; then
7491
7492 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7493 }'`
7494 # Check for a 64-bit object if we didn't find anything.
7495 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; }
7496 }'`; fi
7497 else
7498   echo "$as_me: failed program was:" >&5
7499 sed 's/^/| /' conftest.$ac_ext >&5
7500
7501 fi
7502 rm -f conftest.err conftest.$ac_objext \
7503       conftest$ac_exeext conftest.$ac_ext
7504 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7505
7506        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7507         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7508        else
7509         if test "$host_cpu" = ia64; then
7510           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7511           allow_undefined_flag="-z nodefs"
7512           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7513         else
7514          # Determine the default libpath from the value encoded in an empty executable.
7515          cat >conftest.$ac_ext <<_ACEOF
7516 /* confdefs.h.  */
7517 _ACEOF
7518 cat confdefs.h >>conftest.$ac_ext
7519 cat >>conftest.$ac_ext <<_ACEOF
7520 /* end confdefs.h.  */
7521
7522 int
7523 main ()
7524 {
7525
7526   ;
7527   return 0;
7528 }
7529 _ACEOF
7530 rm -f conftest.$ac_objext conftest$ac_exeext
7531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7532   (eval $ac_link) 2>conftest.er1
7533   ac_status=$?
7534   grep -v '^ *+' conftest.er1 >conftest.err
7535   rm -f conftest.er1
7536   cat conftest.err >&5
7537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538   (exit $ac_status); } &&
7539          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7541   (eval $ac_try) 2>&5
7542   ac_status=$?
7543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544   (exit $ac_status); }; } &&
7545          { ac_try='test -s conftest$ac_exeext'
7546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7547   (eval $ac_try) 2>&5
7548   ac_status=$?
7549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550   (exit $ac_status); }; }; then
7551
7552 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7553 }'`
7554 # Check for a 64-bit object if we didn't find anything.
7555 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; }
7556 }'`; fi
7557 else
7558   echo "$as_me: failed program was:" >&5
7559 sed 's/^/| /' conftest.$ac_ext >&5
7560
7561 fi
7562 rm -f conftest.err conftest.$ac_objext \
7563       conftest$ac_exeext conftest.$ac_ext
7564 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7565
7566          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7567           # Warning - without using the other run time loading flags,
7568           # -berok will link without error, but may produce a broken library.
7569           no_undefined_flag=' ${wl}-bernotok'
7570           allow_undefined_flag=' ${wl}-berok'
7571           # Exported symbols can be pulled into shared objects from archives
7572           whole_archive_flag_spec='$convenience'
7573           archive_cmds_need_lc=yes
7574           # This is similar to how AIX traditionally builds its shared libraries.
7575           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7576         fi
7577       fi
7578       ;;
7579
7580     amigaos*)
7581       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)'
7582       hardcode_libdir_flag_spec='-L$libdir'
7583       hardcode_minus_L=yes
7584       # see comment about different semantics on the GNU ld section
7585       ld_shlibs=no
7586       ;;
7587
7588     bsdi[45]*)
7589       export_dynamic_flag_spec=-rdynamic
7590       ;;
7591
7592     cygwin* | mingw* | pw32*)
7593       # When not using gcc, we currently assume that we are using
7594       # Microsoft Visual C++.
7595       # hardcode_libdir_flag_spec is actually meaningless, as there is
7596       # no search path for DLLs.
7597       hardcode_libdir_flag_spec=' '
7598       allow_undefined_flag=unsupported
7599       # Tell ltmain to make .lib files, not .a files.
7600       libext=lib
7601       # Tell ltmain to make .dll files, not .so files.
7602       shrext_cmds=".dll"
7603       # FIXME: Setting linknames here is a bad hack.
7604       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7605       # The linker will automatically build a .lib file if we build a DLL.
7606       old_archive_From_new_cmds='true'
7607       # FIXME: Should let the user specify the lib program.
7608       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7609       fix_srcfile_path='`cygpath -w "$srcfile"`'
7610       enable_shared_with_static_runtimes=yes
7611       ;;
7612
7613     darwin* | rhapsody*)
7614       case $host_os in
7615         rhapsody* | darwin1.[012])
7616          allow_undefined_flag='${wl}-undefined ${wl}suppress'
7617          ;;
7618        *) # Darwin 1.3 on
7619          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7620            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7621          else
7622            case ${MACOSX_DEPLOYMENT_TARGET} in
7623              10.[012])
7624                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7625                ;;
7626              10.*)
7627                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7628                ;;
7629            esac
7630          fi
7631          ;;
7632       esac
7633       archive_cmds_need_lc=no
7634       hardcode_direct=no
7635       hardcode_automatic=yes
7636       hardcode_shlibpath_var=unsupported
7637       whole_archive_flag_spec=''
7638       link_all_deplibs=yes
7639     if test "$GCC" = yes ; then
7640         output_verbose_link_cmd='echo'
7641         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7642       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7643       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7644       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}'
7645       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}'
7646     else
7647       case $cc_basename in
7648         xlc*)
7649          output_verbose_link_cmd='echo'
7650          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7651          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7652           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7653          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7654           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}'
7655           ;;
7656        *)
7657          ld_shlibs=no
7658           ;;
7659       esac
7660     fi
7661       ;;
7662
7663     dgux*)
7664       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7665       hardcode_libdir_flag_spec='-L$libdir'
7666       hardcode_shlibpath_var=no
7667       ;;
7668
7669     freebsd1*)
7670       ld_shlibs=no
7671       ;;
7672
7673     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7674     # support.  Future versions do this automatically, but an explicit c++rt0.o
7675     # does not break anything, and helps significantly (at the cost of a little
7676     # extra space).
7677     freebsd2.2*)
7678       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7679       hardcode_libdir_flag_spec='-R$libdir'
7680       hardcode_direct=yes
7681       hardcode_shlibpath_var=no
7682       ;;
7683
7684     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7685     freebsd2*)
7686       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7687       hardcode_direct=yes
7688       hardcode_minus_L=yes
7689       hardcode_shlibpath_var=no
7690       ;;
7691
7692     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7693     freebsd* | dragonfly*)
7694       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7695       hardcode_libdir_flag_spec='-R$libdir'
7696       hardcode_direct=yes
7697       hardcode_shlibpath_var=no
7698       ;;
7699
7700     # GNU/kFreeBSD uses gcc -shared to do shared libraries.
7701     kfreebsd*-gnu)
7702       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7703       hardcode_libdir_flag_spec='-R$libdir'
7704       hardcode_direct=yes
7705       hardcode_shlibpath_var=no
7706       link_all_deplibs=no
7707       ;;
7708
7709     hpux9*)
7710       if test "$GCC" = yes; then
7711         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'
7712       else
7713         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'
7714       fi
7715       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7716       hardcode_libdir_separator=:
7717       hardcode_direct=yes
7718
7719       # hardcode_minus_L: Not really in the search PATH,
7720       # but as the default location of the library.
7721       hardcode_minus_L=yes
7722       export_dynamic_flag_spec='${wl}-E'
7723       ;;
7724
7725     hpux10*)
7726       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7727         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7728       else
7729         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7730       fi
7731       if test "$with_gnu_ld" = no; then
7732         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7733         hardcode_libdir_separator=:
7734
7735         hardcode_direct=yes
7736         export_dynamic_flag_spec='${wl}-E'
7737
7738         # hardcode_minus_L: Not really in the search PATH,
7739         # but as the default location of the library.
7740         hardcode_minus_L=yes
7741       fi
7742       ;;
7743
7744     hpux11*)
7745       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7746         case $host_cpu in
7747         hppa*64*)
7748           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7749           ;;
7750         ia64*)
7751           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7752           ;;
7753         *)
7754           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7755           ;;
7756         esac
7757       else
7758         case $host_cpu in
7759         hppa*64*)
7760           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7761           ;;
7762         ia64*)
7763           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7764           ;;
7765         *)
7766           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7767           ;;
7768         esac
7769       fi
7770       if test "$with_gnu_ld" = no; then
7771         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7772         hardcode_libdir_separator=:
7773
7774         case $host_cpu in
7775         hppa*64*|ia64*)
7776           hardcode_libdir_flag_spec_ld='+b $libdir'
7777           hardcode_direct=no
7778           hardcode_shlibpath_var=no
7779           ;;
7780         *)
7781           hardcode_direct=yes
7782           export_dynamic_flag_spec='${wl}-E'
7783
7784           # hardcode_minus_L: Not really in the search PATH,
7785           # but as the default location of the library.
7786           hardcode_minus_L=yes
7787           ;;
7788         esac
7789       fi
7790       ;;
7791
7792     irix5* | irix6* | nonstopux*)
7793       if test "$GCC" = yes; then
7794         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'
7795       else
7796         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'
7797         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7798       fi
7799       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7800       hardcode_libdir_separator=:
7801       link_all_deplibs=yes
7802       ;;
7803
7804     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7805       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7806         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7807       else
7808         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7809       fi
7810       hardcode_libdir_flag_spec='-R$libdir'
7811       hardcode_direct=yes
7812       hardcode_shlibpath_var=no
7813       ;;
7814
7815     newsos6)
7816       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7817       hardcode_direct=yes
7818       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7819       hardcode_libdir_separator=:
7820       hardcode_shlibpath_var=no
7821       ;;
7822
7823     openbsd*)
7824       hardcode_direct=yes
7825       hardcode_shlibpath_var=no
7826       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7827         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7828         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7829         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7830         export_dynamic_flag_spec='${wl}-E'
7831       else
7832        case $host_os in
7833          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7834            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7835            hardcode_libdir_flag_spec='-R$libdir'
7836            ;;
7837          *)
7838            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7839            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7840            ;;
7841        esac
7842       fi
7843       ;;
7844
7845     os2*)
7846       hardcode_libdir_flag_spec='-L$libdir'
7847       hardcode_minus_L=yes
7848       allow_undefined_flag=unsupported
7849       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'
7850       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7851       ;;
7852
7853     osf3*)
7854       if test "$GCC" = yes; then
7855         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7856         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'
7857       else
7858         allow_undefined_flag=' -expect_unresolved \*'
7859         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'
7860       fi
7861       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7862       hardcode_libdir_separator=:
7863       ;;
7864
7865     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7866       if test "$GCC" = yes; then
7867         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7868         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'
7869         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7870       else
7871         allow_undefined_flag=' -expect_unresolved \*'
7872         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'
7873         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7874         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7875
7876         # Both c and cxx compiler support -rpath directly
7877         hardcode_libdir_flag_spec='-rpath $libdir'
7878       fi
7879       hardcode_libdir_separator=:
7880       ;;
7881
7882     solaris*)
7883       no_undefined_flag=' -z text'
7884       if test "$GCC" = yes; then
7885         wlarc='${wl}'
7886         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7887         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7888           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7889       else
7890         wlarc=''
7891         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7892         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7893         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7894       fi
7895       hardcode_libdir_flag_spec='-R$libdir'
7896       hardcode_shlibpath_var=no
7897       case $host_os in
7898       solaris2.[0-5] | solaris2.[0-5].*) ;;
7899       *)
7900         # The compiler driver will combine linker options so we
7901         # cannot just pass the convience library names through
7902         # without $wl, iff we do not link with $LD.
7903         # Luckily, gcc supports the same syntax we need for Sun Studio.
7904         # Supported since Solaris 2.6 (maybe 2.5.1?)
7905         case $wlarc in
7906         '')
7907           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7908         *)
7909           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7910         esac ;;
7911       esac
7912       link_all_deplibs=yes
7913       ;;
7914
7915     sunos4*)
7916       if test "x$host_vendor" = xsequent; then
7917         # Use $CC to link under sequent, because it throws in some extra .o
7918         # files that make .init and .fini sections work.
7919         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7920       else
7921         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7922       fi
7923       hardcode_libdir_flag_spec='-L$libdir'
7924       hardcode_direct=yes
7925       hardcode_minus_L=yes
7926       hardcode_shlibpath_var=no
7927       ;;
7928
7929     sysv4)
7930       case $host_vendor in
7931         sni)
7932           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7933           hardcode_direct=yes # is this really true???
7934         ;;
7935         siemens)
7936           ## LD is ld it makes a PLAMLIB
7937           ## CC just makes a GrossModule.
7938           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7939           reload_cmds='$CC -r -o $output$reload_objs'
7940           hardcode_direct=no
7941         ;;
7942         motorola)
7943           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7944           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7945         ;;
7946       esac
7947       runpath_var='LD_RUN_PATH'
7948       hardcode_shlibpath_var=no
7949       ;;
7950
7951     sysv4.3*)
7952       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7953       hardcode_shlibpath_var=no
7954       export_dynamic_flag_spec='-Bexport'
7955       ;;
7956
7957     sysv4*MP*)
7958       if test -d /usr/nec; then
7959         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7960         hardcode_shlibpath_var=no
7961         runpath_var=LD_RUN_PATH
7962         hardcode_runpath_var=yes
7963         ld_shlibs=yes
7964       fi
7965       ;;
7966
7967     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7968       no_undefined_flag='${wl}-z,text'
7969       archive_cmds_need_lc=no
7970       hardcode_shlibpath_var=no
7971       runpath_var='LD_RUN_PATH'
7972
7973       if test "$GCC" = yes; then
7974         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7975         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7976       else
7977         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7978         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7979       fi
7980       ;;
7981
7982     sysv5* | sco3.2v5* | sco5v6*)
7983       # Note: We can NOT use -z defs as we might desire, because we do not
7984       # link with -lc, and that would cause any symbols used from libc to
7985       # always be unresolved, which means just about no library would
7986       # ever link correctly.  If we're not using GNU ld we use -z text
7987       # though, which does catch some bad symbols but isn't as heavy-handed
7988       # as -z defs.
7989       no_undefined_flag='${wl}-z,text'
7990       allow_undefined_flag='${wl}-z,nodefs'
7991       archive_cmds_need_lc=no
7992       hardcode_shlibpath_var=no
7993       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7994       hardcode_libdir_separator=':'
7995       link_all_deplibs=yes
7996       export_dynamic_flag_spec='${wl}-Bexport'
7997       runpath_var='LD_RUN_PATH'
7998
7999       if test "$GCC" = yes; then
8000         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8001         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8002       else
8003         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8004         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8005       fi
8006       ;;
8007
8008     uts4*)
8009       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8010       hardcode_libdir_flag_spec='-L$libdir'
8011       hardcode_shlibpath_var=no
8012       ;;
8013
8014     *)
8015       ld_shlibs=no
8016       ;;
8017     esac
8018   fi
8019
8020 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8021 echo "${ECHO_T}$ld_shlibs" >&6
8022 test "$ld_shlibs" = no && can_build_shared=no
8023
8024 #
8025 # Do we need to explicitly link libc?
8026 #
8027 case "x$archive_cmds_need_lc" in
8028 x|xyes)
8029   # Assume -lc should be added
8030   archive_cmds_need_lc=yes
8031
8032   if test "$enable_shared" = yes && test "$GCC" = yes; then
8033     case $archive_cmds in
8034     *'~'*)
8035       # FIXME: we may have to deal with multi-command sequences.
8036       ;;
8037     '$CC '*)
8038       # Test whether the compiler implicitly links with -lc since on some
8039       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8040       # to ld, don't add -lc before -lgcc.
8041       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8042 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8043       $rm conftest*
8044       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8045
8046       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8047   (eval $ac_compile) 2>&5
8048   ac_status=$?
8049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050   (exit $ac_status); } 2>conftest.err; then
8051         soname=conftest
8052         lib=conftest
8053         libobjs=conftest.$ac_objext
8054         deplibs=
8055         wl=$lt_prog_compiler_wl
8056         pic_flag=$lt_prog_compiler_pic
8057         compiler_flags=-v
8058         linker_flags=-v
8059         verstring=
8060         output_objdir=.
8061         libname=conftest
8062         lt_save_allow_undefined_flag=$allow_undefined_flag
8063         allow_undefined_flag=
8064         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8065   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8066   ac_status=$?
8067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068   (exit $ac_status); }
8069         then
8070           archive_cmds_need_lc=no
8071         else
8072           archive_cmds_need_lc=yes
8073         fi
8074         allow_undefined_flag=$lt_save_allow_undefined_flag
8075       else
8076         cat conftest.err 1>&5
8077       fi
8078       $rm conftest*
8079       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8080 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8081       ;;
8082     esac
8083   fi
8084   ;;
8085 esac
8086
8087 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8088 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8089 library_names_spec=
8090 libname_spec='lib$name'
8091 soname_spec=
8092 shrext_cmds=".so"
8093 postinstall_cmds=
8094 postuninstall_cmds=
8095 finish_cmds=
8096 finish_eval=
8097 shlibpath_var=
8098 shlibpath_overrides_runpath=unknown
8099 version_type=none
8100 dynamic_linker="$host_os ld.so"
8101 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8102 if test "$GCC" = yes; then
8103   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8104   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8105     # if the path contains ";" then we assume it to be the separator
8106     # otherwise default to the standard path separator (i.e. ":") - it is
8107     # assumed that no part of a normal pathname contains ";" but that should
8108     # okay in the real world where ";" in dirpaths is itself problematic.
8109     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8110   else
8111     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8112   fi
8113 else
8114   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8115 fi
8116 need_lib_prefix=unknown
8117 hardcode_into_libs=no
8118
8119 # when you set need_version to no, make sure it does not cause -set_version
8120 # flags to be left without arguments
8121 need_version=unknown
8122
8123 case $host_os in
8124 aix3*)
8125   version_type=linux
8126   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8127   shlibpath_var=LIBPATH
8128
8129   # AIX 3 has no versioning support, so we append a major version to the name.
8130   soname_spec='${libname}${release}${shared_ext}$major'
8131   ;;
8132
8133 aix4* | aix5*)
8134   version_type=linux
8135   need_lib_prefix=no
8136   need_version=no
8137   hardcode_into_libs=yes
8138   if test "$host_cpu" = ia64; then
8139     # AIX 5 supports IA64
8140     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8141     shlibpath_var=LD_LIBRARY_PATH
8142   else
8143     # With GCC up to 2.95.x, collect2 would create an import file
8144     # for dependence libraries.  The import file would start with
8145     # the line `#! .'.  This would cause the generated library to
8146     # depend on `.', always an invalid library.  This was fixed in
8147     # development snapshots of GCC prior to 3.0.
8148     case $host_os in
8149       aix4 | aix4.[01] | aix4.[01].*)
8150       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8151            echo ' yes '
8152            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8153         :
8154       else
8155         can_build_shared=no
8156       fi
8157       ;;
8158     esac
8159     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8160     # soname into executable. Probably we can add versioning support to
8161     # collect2, so additional links can be useful in future.
8162     if test "$aix_use_runtimelinking" = yes; then
8163       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8164       # instead of lib<name>.a to let people know that these are not
8165       # typical AIX shared libraries.
8166       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8167     else
8168       # We preserve .a as extension for shared libraries through AIX4.2
8169       # and later when we are not doing run time linking.
8170       library_names_spec='${libname}${release}.a $libname.a'
8171       soname_spec='${libname}${release}${shared_ext}$major'
8172     fi
8173     shlibpath_var=LIBPATH
8174   fi
8175   ;;
8176
8177 amigaos*)
8178   library_names_spec='$libname.ixlibrary $libname.a'
8179   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8180   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'
8181   ;;
8182
8183 beos*)
8184   library_names_spec='${libname}${shared_ext}'
8185   dynamic_linker="$host_os ld.so"
8186   shlibpath_var=LIBRARY_PATH
8187   ;;
8188
8189 bsdi[45]*)
8190   version_type=linux
8191   need_version=no
8192   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8193   soname_spec='${libname}${release}${shared_ext}$major'
8194   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8195   shlibpath_var=LD_LIBRARY_PATH
8196   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8197   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8198   # the default ld.so.conf also contains /usr/contrib/lib and
8199   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8200   # libtool to hard-code these into programs
8201   ;;
8202
8203 cygwin* | mingw* | pw32*)
8204   version_type=windows
8205   shrext_cmds=".dll"
8206   need_version=no
8207   need_lib_prefix=no
8208
8209   case $GCC,$host_os in
8210   yes,cygwin* | yes,mingw* | yes,pw32*)
8211     library_names_spec='$libname.dll.a'
8212     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8213     postinstall_cmds='base_file=`basename \${file}`~
8214       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8215       dldir=$destdir/`dirname \$dlpath`~
8216       test -d \$dldir || mkdir -p \$dldir~
8217       $install_prog $dir/$dlname \$dldir/$dlname~
8218       chmod a+x \$dldir/$dlname'
8219     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8220       dlpath=$dir/\$dldll~
8221        $rm \$dlpath'
8222     shlibpath_overrides_runpath=yes
8223
8224     case $host_os in
8225     cygwin*)
8226       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8227       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8228       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8229       ;;
8230     mingw*)
8231       # MinGW DLLs use traditional 'lib' prefix
8232       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8233       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8234       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8235         # It is most probably a Windows format PATH printed by
8236         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8237         # path with ; separators, and with drive letters. We can handle the
8238         # drive letters (cygwin fileutils understands them), so leave them,
8239         # especially as we might pass files found there to a mingw objdump,
8240         # which wouldn't understand a cygwinified path. Ahh.
8241         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8242       else
8243         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8244       fi
8245       ;;
8246     pw32*)
8247       # pw32 DLLs use 'pw' prefix rather than 'lib'
8248       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8249       ;;
8250     esac
8251     ;;
8252
8253   *)
8254     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8255     ;;
8256   esac
8257   dynamic_linker='Win32 ld.exe'
8258   # FIXME: first we should search . and the directory the executable is in
8259   shlibpath_var=PATH
8260   ;;
8261
8262 darwin* | rhapsody*)
8263   dynamic_linker="$host_os dyld"
8264   version_type=darwin
8265   need_lib_prefix=no
8266   need_version=no
8267   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8268   soname_spec='${libname}${release}${major}$shared_ext'
8269   shlibpath_overrides_runpath=yes
8270   shlibpath_var=DYLD_LIBRARY_PATH
8271   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8272   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8273   if test "$GCC" = yes; then
8274     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"`
8275   else
8276     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8277   fi
8278   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8279   ;;
8280
8281 dgux*)
8282   version_type=linux
8283   need_lib_prefix=no
8284   need_version=no
8285   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8286   soname_spec='${libname}${release}${shared_ext}$major'
8287   shlibpath_var=LD_LIBRARY_PATH
8288   ;;
8289
8290 freebsd1*)
8291   dynamic_linker=no
8292   ;;
8293
8294 kfreebsd*-gnu)
8295   version_type=linux
8296   need_lib_prefix=no
8297   need_version=no
8298   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8299   soname_spec='${libname}${release}${shared_ext}$major'
8300   shlibpath_var=LD_LIBRARY_PATH
8301   shlibpath_overrides_runpath=no
8302   hardcode_into_libs=yes
8303   dynamic_linker='GNU ld.so'
8304   ;;
8305
8306 freebsd* | dragonfly*)
8307   # DragonFly does not have aout.  When/if they implement a new
8308   # versioning mechanism, adjust this.
8309   if test -x /usr/bin/objformat; then
8310     objformat=`/usr/bin/objformat`
8311   else
8312     case $host_os in
8313     freebsd[123]*) objformat=aout ;;
8314     *) objformat=elf ;;
8315     esac
8316   fi
8317   version_type=freebsd-$objformat
8318   case $version_type in
8319     freebsd-elf*)
8320       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8321       need_version=no
8322       need_lib_prefix=no
8323       ;;
8324     freebsd-*)
8325       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8326       need_version=yes
8327       ;;
8328   esac
8329   shlibpath_var=LD_LIBRARY_PATH
8330   case $host_os in
8331   freebsd2*)
8332     shlibpath_overrides_runpath=yes
8333     ;;
8334   freebsd3.[01]* | freebsdelf3.[01]*)
8335     shlibpath_overrides_runpath=yes
8336     hardcode_into_libs=yes
8337     ;;
8338   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8339   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8340     shlibpath_overrides_runpath=no
8341     hardcode_into_libs=yes
8342     ;;
8343   freebsd*) # from 4.6 on
8344     shlibpath_overrides_runpath=yes
8345     hardcode_into_libs=yes
8346     ;;
8347   esac
8348   ;;
8349
8350 gnu*)
8351   version_type=linux
8352   need_lib_prefix=no
8353   need_version=no
8354   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8355   soname_spec='${libname}${release}${shared_ext}$major'
8356   shlibpath_var=LD_LIBRARY_PATH
8357   hardcode_into_libs=yes
8358   ;;
8359
8360 hpux9* | hpux10* | hpux11*)
8361   # Give a soname corresponding to the major version so that dld.sl refuses to
8362   # link against other versions.
8363   version_type=sunos
8364   need_lib_prefix=no
8365   need_version=no
8366   case $host_cpu in
8367   ia64*)
8368     shrext_cmds='.so'
8369     hardcode_into_libs=yes
8370     dynamic_linker="$host_os dld.so"
8371     shlibpath_var=LD_LIBRARY_PATH
8372     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8373     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8374     soname_spec='${libname}${release}${shared_ext}$major'
8375     if test "X$HPUX_IA64_MODE" = X32; then
8376       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8377     else
8378       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8379     fi
8380     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8381     ;;
8382    hppa*64*)
8383      shrext_cmds='.sl'
8384      hardcode_into_libs=yes
8385      dynamic_linker="$host_os dld.sl"
8386      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8387      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8388      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8389      soname_spec='${libname}${release}${shared_ext}$major'
8390      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8391      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8392      ;;
8393    *)
8394     shrext_cmds='.sl'
8395     dynamic_linker="$host_os dld.sl"
8396     shlibpath_var=SHLIB_PATH
8397     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8398     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8399     soname_spec='${libname}${release}${shared_ext}$major'
8400     ;;
8401   esac
8402   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8403   postinstall_cmds='chmod 555 $lib'
8404   ;;
8405
8406 interix3*)
8407   version_type=linux
8408   need_lib_prefix=no
8409   need_version=no
8410   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8411   soname_spec='${libname}${release}${shared_ext}$major'
8412   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8413   shlibpath_var=LD_LIBRARY_PATH
8414   shlibpath_overrides_runpath=no
8415   hardcode_into_libs=yes
8416   ;;
8417
8418 irix5* | irix6* | nonstopux*)
8419   case $host_os in
8420     nonstopux*) version_type=nonstopux ;;
8421     *)
8422         if test "$lt_cv_prog_gnu_ld" = yes; then
8423                 version_type=linux
8424         else
8425                 version_type=irix
8426         fi ;;
8427   esac
8428   need_lib_prefix=no
8429   need_version=no
8430   soname_spec='${libname}${release}${shared_ext}$major'
8431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8432   case $host_os in
8433   irix5* | nonstopux*)
8434     libsuff= shlibsuff=
8435     ;;
8436   *)
8437     case $LD in # libtool.m4 will add one of these switches to LD
8438     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8439       libsuff= shlibsuff= libmagic=32-bit;;
8440     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8441       libsuff=32 shlibsuff=N32 libmagic=N32;;
8442     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8443       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8444     *) libsuff= shlibsuff= libmagic=never-match;;
8445     esac
8446     ;;
8447   esac
8448   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8449   shlibpath_overrides_runpath=no
8450   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8451   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8452   hardcode_into_libs=yes
8453   ;;
8454
8455 # No shared lib support for Linux oldld, aout, or coff.
8456 linux*oldld* | linux*aout* | linux*coff*)
8457   dynamic_linker=no
8458   ;;
8459
8460 # This must be Linux ELF.
8461 linux*)
8462   version_type=linux
8463   need_lib_prefix=no
8464   need_version=no
8465   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8466   soname_spec='${libname}${release}${shared_ext}$major'
8467   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8468   shlibpath_var=LD_LIBRARY_PATH
8469   shlibpath_overrides_runpath=no
8470   # This implies no fast_install, which is unacceptable.
8471   # Some rework will be needed to allow for fast_install
8472   # before this can be enabled.
8473   hardcode_into_libs=yes
8474
8475   # Append ld.so.conf contents to the search path
8476   if test -f /etc/ld.so.conf; then
8477     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8478     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8479   fi
8480
8481   # We used to test for /lib/ld.so.1 and disable shared libraries on
8482   # powerpc, because MkLinux only supported shared libraries with the
8483   # GNU dynamic linker.  Since this was broken with cross compilers,
8484   # most powerpc-linux boxes support dynamic linking these days and
8485   # people can always --disable-shared, the test was removed, and we
8486   # assume the GNU/Linux dynamic linker is in use.
8487   dynamic_linker='GNU/Linux ld.so'
8488   ;;
8489
8490 netbsdelf*-gnu)
8491   version_type=linux
8492   need_lib_prefix=no
8493   need_version=no
8494   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8495   soname_spec='${libname}${release}${shared_ext}$major'
8496   shlibpath_var=LD_LIBRARY_PATH
8497   shlibpath_overrides_runpath=no
8498   hardcode_into_libs=yes
8499   dynamic_linker='NetBSD ld.elf_so'
8500   ;;
8501
8502 knetbsd*-gnu)
8503   version_type=linux
8504   need_lib_prefix=no
8505   need_version=no
8506   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8507   soname_spec='${libname}${release}${shared_ext}$major'
8508   shlibpath_var=LD_LIBRARY_PATH
8509   shlibpath_overrides_runpath=no
8510   hardcode_into_libs=yes
8511   dynamic_linker='GNU ld.so'
8512   ;;
8513
8514 netbsd*)
8515   version_type=sunos
8516   need_lib_prefix=no
8517   need_version=no
8518   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8519     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8520     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8521     dynamic_linker='NetBSD (a.out) ld.so'
8522   else
8523     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8524     soname_spec='${libname}${release}${shared_ext}$major'
8525     dynamic_linker='NetBSD ld.elf_so'
8526   fi
8527   shlibpath_var=LD_LIBRARY_PATH
8528   shlibpath_overrides_runpath=yes
8529   hardcode_into_libs=yes
8530   ;;
8531
8532 newsos6)
8533   version_type=linux
8534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8535   shlibpath_var=LD_LIBRARY_PATH
8536   shlibpath_overrides_runpath=yes
8537   ;;
8538
8539 nto-qnx*)
8540   version_type=linux
8541   need_lib_prefix=no
8542   need_version=no
8543   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8544   soname_spec='${libname}${release}${shared_ext}$major'
8545   shlibpath_var=LD_LIBRARY_PATH
8546   shlibpath_overrides_runpath=yes
8547   ;;
8548
8549 openbsd*)
8550   version_type=sunos
8551   sys_lib_dlsearch_path_spec="/usr/lib"
8552   need_lib_prefix=no
8553   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8554   case $host_os in
8555     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8556     *)                         need_version=no  ;;
8557   esac
8558   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8559   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8560   shlibpath_var=LD_LIBRARY_PATH
8561   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8562     case $host_os in
8563       openbsd2.[89] | openbsd2.[89].*)
8564         shlibpath_overrides_runpath=no
8565         ;;
8566       *)
8567         shlibpath_overrides_runpath=yes
8568         ;;
8569       esac
8570   else
8571     shlibpath_overrides_runpath=yes
8572   fi
8573   ;;
8574
8575 os2*)
8576   libname_spec='$name'
8577   shrext_cmds=".dll"
8578   need_lib_prefix=no
8579   library_names_spec='$libname${shared_ext} $libname.a'
8580   dynamic_linker='OS/2 ld.exe'
8581   shlibpath_var=LIBPATH
8582   ;;
8583
8584 osf3* | osf4* | osf5*)
8585   version_type=osf
8586   need_lib_prefix=no
8587   need_version=no
8588   soname_spec='${libname}${release}${shared_ext}$major'
8589   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8590   shlibpath_var=LD_LIBRARY_PATH
8591   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8592   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8593   ;;
8594
8595 solaris*)
8596   version_type=linux
8597   need_lib_prefix=no
8598   need_version=no
8599   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8600   soname_spec='${libname}${release}${shared_ext}$major'
8601   shlibpath_var=LD_LIBRARY_PATH
8602   shlibpath_overrides_runpath=yes
8603   hardcode_into_libs=yes
8604   # ldd complains unless libraries are executable
8605   postinstall_cmds='chmod +x $lib'
8606   ;;
8607
8608 sunos4*)
8609   version_type=sunos
8610   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8611   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8612   shlibpath_var=LD_LIBRARY_PATH
8613   shlibpath_overrides_runpath=yes
8614   if test "$with_gnu_ld" = yes; then
8615     need_lib_prefix=no
8616   fi
8617   need_version=yes
8618   ;;
8619
8620 sysv4 | sysv4.3*)
8621   version_type=linux
8622   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8623   soname_spec='${libname}${release}${shared_ext}$major'
8624   shlibpath_var=LD_LIBRARY_PATH
8625   case $host_vendor in
8626     sni)
8627       shlibpath_overrides_runpath=no
8628       need_lib_prefix=no
8629       export_dynamic_flag_spec='${wl}-Blargedynsym'
8630       runpath_var=LD_RUN_PATH
8631       ;;
8632     siemens)
8633       need_lib_prefix=no
8634       ;;
8635     motorola)
8636       need_lib_prefix=no
8637       need_version=no
8638       shlibpath_overrides_runpath=no
8639       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8640       ;;
8641   esac
8642   ;;
8643
8644 sysv4*MP*)
8645   if test -d /usr/nec ;then
8646     version_type=linux
8647     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8648     soname_spec='$libname${shared_ext}.$major'
8649     shlibpath_var=LD_LIBRARY_PATH
8650   fi
8651   ;;
8652
8653 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8654   version_type=freebsd-elf
8655   need_lib_prefix=no
8656   need_version=no
8657   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8658   soname_spec='${libname}${release}${shared_ext}$major'
8659   shlibpath_var=LD_LIBRARY_PATH
8660   hardcode_into_libs=yes
8661   if test "$with_gnu_ld" = yes; then
8662     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8663     shlibpath_overrides_runpath=no
8664   else
8665     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8666     shlibpath_overrides_runpath=yes
8667     case $host_os in
8668       sco3.2v5*)
8669         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8670         ;;
8671     esac
8672   fi
8673   sys_lib_dlsearch_path_spec='/usr/lib'
8674   ;;
8675
8676 uts4*)
8677   version_type=linux
8678   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8679   soname_spec='${libname}${release}${shared_ext}$major'
8680   shlibpath_var=LD_LIBRARY_PATH
8681   ;;
8682
8683 *)
8684   dynamic_linker=no
8685   ;;
8686 esac
8687 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8688 echo "${ECHO_T}$dynamic_linker" >&6
8689 test "$dynamic_linker" = no && can_build_shared=no
8690
8691 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8692 if test "$GCC" = yes; then
8693   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8694 fi
8695
8696 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8697 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8698 hardcode_action=
8699 if test -n "$hardcode_libdir_flag_spec" || \
8700    test -n "$runpath_var" || \
8701    test "X$hardcode_automatic" = "Xyes" ; then
8702
8703   # We can hardcode non-existant directories.
8704   if test "$hardcode_direct" != no &&
8705      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8706      # have to relink, otherwise we might link with an installed library
8707      # when we should be linking with a yet-to-be-installed one
8708      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8709      test "$hardcode_minus_L" != no; then
8710     # Linking always hardcodes the temporary library directory.
8711     hardcode_action=relink
8712   else
8713     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8714     hardcode_action=immediate
8715   fi
8716 else
8717   # We cannot hardcode anything, or else we can only hardcode existing
8718   # directories.
8719   hardcode_action=unsupported
8720 fi
8721 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8722 echo "${ECHO_T}$hardcode_action" >&6
8723
8724 if test "$hardcode_action" = relink; then
8725   # Fast installation is not supported
8726   enable_fast_install=no
8727 elif test "$shlibpath_overrides_runpath" = yes ||
8728      test "$enable_shared" = no; then
8729   # Fast installation is not necessary
8730   enable_fast_install=needless
8731 fi
8732
8733 striplib=
8734 old_striplib=
8735 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8736 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8737 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8738   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8739   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8740   echo "$as_me:$LINENO: result: yes" >&5
8741 echo "${ECHO_T}yes" >&6
8742 else
8743 # FIXME - insert some real tests, host_os isn't really good enough
8744   case $host_os in
8745    darwin*)
8746        if test -n "$STRIP" ; then
8747          striplib="$STRIP -x"
8748          echo "$as_me:$LINENO: result: yes" >&5
8749 echo "${ECHO_T}yes" >&6
8750        else
8751   echo "$as_me:$LINENO: result: no" >&5
8752 echo "${ECHO_T}no" >&6
8753 fi
8754        ;;
8755    *)
8756   echo "$as_me:$LINENO: result: no" >&5
8757 echo "${ECHO_T}no" >&6
8758     ;;
8759   esac
8760 fi
8761
8762 if test "x$enable_dlopen" != xyes; then
8763   enable_dlopen=unknown
8764   enable_dlopen_self=unknown
8765   enable_dlopen_self_static=unknown
8766 else
8767   lt_cv_dlopen=no
8768   lt_cv_dlopen_libs=
8769
8770   case $host_os in
8771   beos*)
8772     lt_cv_dlopen="load_add_on"
8773     lt_cv_dlopen_libs=
8774     lt_cv_dlopen_self=yes
8775     ;;
8776
8777   mingw* | pw32*)
8778     lt_cv_dlopen="LoadLibrary"
8779     lt_cv_dlopen_libs=
8780    ;;
8781
8782   cygwin*)
8783     lt_cv_dlopen="dlopen"
8784     lt_cv_dlopen_libs=
8785    ;;
8786
8787   darwin*)
8788   # if libdl is installed we need to link against it
8789     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8790 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8791 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8792   echo $ECHO_N "(cached) $ECHO_C" >&6
8793 else
8794   ac_check_lib_save_LIBS=$LIBS
8795 LIBS="-ldl  $LIBS"
8796 cat >conftest.$ac_ext <<_ACEOF
8797 /* confdefs.h.  */
8798 _ACEOF
8799 cat confdefs.h >>conftest.$ac_ext
8800 cat >>conftest.$ac_ext <<_ACEOF
8801 /* end confdefs.h.  */
8802
8803 /* Override any gcc2 internal prototype to avoid an error.  */
8804 #ifdef __cplusplus
8805 extern "C"
8806 #endif
8807 /* We use char because int might match the return type of a gcc2
8808    builtin and then its argument prototype would still apply.  */
8809 char dlopen ();
8810 int
8811 main ()
8812 {
8813 dlopen ();
8814   ;
8815   return 0;
8816 }
8817 _ACEOF
8818 rm -f conftest.$ac_objext conftest$ac_exeext
8819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8820   (eval $ac_link) 2>conftest.er1
8821   ac_status=$?
8822   grep -v '^ *+' conftest.er1 >conftest.err
8823   rm -f conftest.er1
8824   cat conftest.err >&5
8825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826   (exit $ac_status); } &&
8827          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8829   (eval $ac_try) 2>&5
8830   ac_status=$?
8831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832   (exit $ac_status); }; } &&
8833          { ac_try='test -s conftest$ac_exeext'
8834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8835   (eval $ac_try) 2>&5
8836   ac_status=$?
8837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838   (exit $ac_status); }; }; then
8839   ac_cv_lib_dl_dlopen=yes
8840 else
8841   echo "$as_me: failed program was:" >&5
8842 sed 's/^/| /' conftest.$ac_ext >&5
8843
8844 ac_cv_lib_dl_dlopen=no
8845 fi
8846 rm -f conftest.err conftest.$ac_objext \
8847       conftest$ac_exeext conftest.$ac_ext
8848 LIBS=$ac_check_lib_save_LIBS
8849 fi
8850 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8851 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8852 if test $ac_cv_lib_dl_dlopen = yes; then
8853   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8854 else
8855
8856     lt_cv_dlopen="dyld"
8857     lt_cv_dlopen_libs=
8858     lt_cv_dlopen_self=yes
8859
8860 fi
8861
8862    ;;
8863
8864   *)
8865     echo "$as_me:$LINENO: checking for shl_load" >&5
8866 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8867 if test "${ac_cv_func_shl_load+set}" = set; then
8868   echo $ECHO_N "(cached) $ECHO_C" >&6
8869 else
8870   cat >conftest.$ac_ext <<_ACEOF
8871 /* confdefs.h.  */
8872 _ACEOF
8873 cat confdefs.h >>conftest.$ac_ext
8874 cat >>conftest.$ac_ext <<_ACEOF
8875 /* end confdefs.h.  */
8876 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8877    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8878 #define shl_load innocuous_shl_load
8879
8880 /* System header to define __stub macros and hopefully few prototypes,
8881     which can conflict with char shl_load (); below.
8882     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8883     <limits.h> exists even on freestanding compilers.  */
8884
8885 #ifdef __STDC__
8886 # include <limits.h>
8887 #else
8888 # include <assert.h>
8889 #endif
8890
8891 #undef shl_load
8892
8893 /* Override any gcc2 internal prototype to avoid an error.  */
8894 #ifdef __cplusplus
8895 extern "C"
8896 {
8897 #endif
8898 /* We use char because int might match the return type of a gcc2
8899    builtin and then its argument prototype would still apply.  */
8900 char shl_load ();
8901 /* The GNU C library defines this for functions which it implements
8902     to always fail with ENOSYS.  Some functions are actually named
8903     something starting with __ and the normal name is an alias.  */
8904 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8905 choke me
8906 #else
8907 char (*f) () = shl_load;
8908 #endif
8909 #ifdef __cplusplus
8910 }
8911 #endif
8912
8913 int
8914 main ()
8915 {
8916 return f != shl_load;
8917   ;
8918   return 0;
8919 }
8920 _ACEOF
8921 rm -f conftest.$ac_objext conftest$ac_exeext
8922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8923   (eval $ac_link) 2>conftest.er1
8924   ac_status=$?
8925   grep -v '^ *+' conftest.er1 >conftest.err
8926   rm -f conftest.er1
8927   cat conftest.err >&5
8928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929   (exit $ac_status); } &&
8930          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932   (eval $ac_try) 2>&5
8933   ac_status=$?
8934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935   (exit $ac_status); }; } &&
8936          { ac_try='test -s conftest$ac_exeext'
8937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8938   (eval $ac_try) 2>&5
8939   ac_status=$?
8940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941   (exit $ac_status); }; }; then
8942   ac_cv_func_shl_load=yes
8943 else
8944   echo "$as_me: failed program was:" >&5
8945 sed 's/^/| /' conftest.$ac_ext >&5
8946
8947 ac_cv_func_shl_load=no
8948 fi
8949 rm -f conftest.err conftest.$ac_objext \
8950       conftest$ac_exeext conftest.$ac_ext
8951 fi
8952 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8953 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8954 if test $ac_cv_func_shl_load = yes; then
8955   lt_cv_dlopen="shl_load"
8956 else
8957   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8958 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8959 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8960   echo $ECHO_N "(cached) $ECHO_C" >&6
8961 else
8962   ac_check_lib_save_LIBS=$LIBS
8963 LIBS="-ldld  $LIBS"
8964 cat >conftest.$ac_ext <<_ACEOF
8965 /* confdefs.h.  */
8966 _ACEOF
8967 cat confdefs.h >>conftest.$ac_ext
8968 cat >>conftest.$ac_ext <<_ACEOF
8969 /* end confdefs.h.  */
8970
8971 /* Override any gcc2 internal prototype to avoid an error.  */
8972 #ifdef __cplusplus
8973 extern "C"
8974 #endif
8975 /* We use char because int might match the return type of a gcc2
8976    builtin and then its argument prototype would still apply.  */
8977 char shl_load ();
8978 int
8979 main ()
8980 {
8981 shl_load ();
8982   ;
8983   return 0;
8984 }
8985 _ACEOF
8986 rm -f conftest.$ac_objext conftest$ac_exeext
8987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8988   (eval $ac_link) 2>conftest.er1
8989   ac_status=$?
8990   grep -v '^ *+' conftest.er1 >conftest.err
8991   rm -f conftest.er1
8992   cat conftest.err >&5
8993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994   (exit $ac_status); } &&
8995          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8997   (eval $ac_try) 2>&5
8998   ac_status=$?
8999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000   (exit $ac_status); }; } &&
9001          { ac_try='test -s conftest$ac_exeext'
9002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9003   (eval $ac_try) 2>&5
9004   ac_status=$?
9005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006   (exit $ac_status); }; }; then
9007   ac_cv_lib_dld_shl_load=yes
9008 else
9009   echo "$as_me: failed program was:" >&5
9010 sed 's/^/| /' conftest.$ac_ext >&5
9011
9012 ac_cv_lib_dld_shl_load=no
9013 fi
9014 rm -f conftest.err conftest.$ac_objext \
9015       conftest$ac_exeext conftest.$ac_ext
9016 LIBS=$ac_check_lib_save_LIBS
9017 fi
9018 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9019 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9020 if test $ac_cv_lib_dld_shl_load = yes; then
9021   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9022 else
9023   echo "$as_me:$LINENO: checking for dlopen" >&5
9024 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9025 if test "${ac_cv_func_dlopen+set}" = set; then
9026   echo $ECHO_N "(cached) $ECHO_C" >&6
9027 else
9028   cat >conftest.$ac_ext <<_ACEOF
9029 /* confdefs.h.  */
9030 _ACEOF
9031 cat confdefs.h >>conftest.$ac_ext
9032 cat >>conftest.$ac_ext <<_ACEOF
9033 /* end confdefs.h.  */
9034 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9035    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9036 #define dlopen innocuous_dlopen
9037
9038 /* System header to define __stub macros and hopefully few prototypes,
9039     which can conflict with char dlopen (); below.
9040     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9041     <limits.h> exists even on freestanding compilers.  */
9042
9043 #ifdef __STDC__
9044 # include <limits.h>
9045 #else
9046 # include <assert.h>
9047 #endif
9048
9049 #undef dlopen
9050
9051 /* Override any gcc2 internal prototype to avoid an error.  */
9052 #ifdef __cplusplus
9053 extern "C"
9054 {
9055 #endif
9056 /* We use char because int might match the return type of a gcc2
9057    builtin and then its argument prototype would still apply.  */
9058 char dlopen ();
9059 /* The GNU C library defines this for functions which it implements
9060     to always fail with ENOSYS.  Some functions are actually named
9061     something starting with __ and the normal name is an alias.  */
9062 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9063 choke me
9064 #else
9065 char (*f) () = dlopen;
9066 #endif
9067 #ifdef __cplusplus
9068 }
9069 #endif
9070
9071 int
9072 main ()
9073 {
9074 return f != dlopen;
9075   ;
9076   return 0;
9077 }
9078 _ACEOF
9079 rm -f conftest.$ac_objext conftest$ac_exeext
9080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9081   (eval $ac_link) 2>conftest.er1
9082   ac_status=$?
9083   grep -v '^ *+' conftest.er1 >conftest.err
9084   rm -f conftest.er1
9085   cat conftest.err >&5
9086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087   (exit $ac_status); } &&
9088          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9090   (eval $ac_try) 2>&5
9091   ac_status=$?
9092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093   (exit $ac_status); }; } &&
9094          { ac_try='test -s conftest$ac_exeext'
9095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9096   (eval $ac_try) 2>&5
9097   ac_status=$?
9098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099   (exit $ac_status); }; }; then
9100   ac_cv_func_dlopen=yes
9101 else
9102   echo "$as_me: failed program was:" >&5
9103 sed 's/^/| /' conftest.$ac_ext >&5
9104
9105 ac_cv_func_dlopen=no
9106 fi
9107 rm -f conftest.err conftest.$ac_objext \
9108       conftest$ac_exeext conftest.$ac_ext
9109 fi
9110 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9111 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9112 if test $ac_cv_func_dlopen = yes; then
9113   lt_cv_dlopen="dlopen"
9114 else
9115   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9116 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9117 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9118   echo $ECHO_N "(cached) $ECHO_C" >&6
9119 else
9120   ac_check_lib_save_LIBS=$LIBS
9121 LIBS="-ldl  $LIBS"
9122 cat >conftest.$ac_ext <<_ACEOF
9123 /* confdefs.h.  */
9124 _ACEOF
9125 cat confdefs.h >>conftest.$ac_ext
9126 cat >>conftest.$ac_ext <<_ACEOF
9127 /* end confdefs.h.  */
9128
9129 /* Override any gcc2 internal prototype to avoid an error.  */
9130 #ifdef __cplusplus
9131 extern "C"
9132 #endif
9133 /* We use char because int might match the return type of a gcc2
9134    builtin and then its argument prototype would still apply.  */
9135 char dlopen ();
9136 int
9137 main ()
9138 {
9139 dlopen ();
9140   ;
9141   return 0;
9142 }
9143 _ACEOF
9144 rm -f conftest.$ac_objext conftest$ac_exeext
9145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9146   (eval $ac_link) 2>conftest.er1
9147   ac_status=$?
9148   grep -v '^ *+' conftest.er1 >conftest.err
9149   rm -f conftest.er1
9150   cat conftest.err >&5
9151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152   (exit $ac_status); } &&
9153          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9155   (eval $ac_try) 2>&5
9156   ac_status=$?
9157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158   (exit $ac_status); }; } &&
9159          { ac_try='test -s conftest$ac_exeext'
9160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9161   (eval $ac_try) 2>&5
9162   ac_status=$?
9163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164   (exit $ac_status); }; }; then
9165   ac_cv_lib_dl_dlopen=yes
9166 else
9167   echo "$as_me: failed program was:" >&5
9168 sed 's/^/| /' conftest.$ac_ext >&5
9169
9170 ac_cv_lib_dl_dlopen=no
9171 fi
9172 rm -f conftest.err conftest.$ac_objext \
9173       conftest$ac_exeext conftest.$ac_ext
9174 LIBS=$ac_check_lib_save_LIBS
9175 fi
9176 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9177 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9178 if test $ac_cv_lib_dl_dlopen = yes; then
9179   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9180 else
9181   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9182 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9183 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9184   echo $ECHO_N "(cached) $ECHO_C" >&6
9185 else
9186   ac_check_lib_save_LIBS=$LIBS
9187 LIBS="-lsvld  $LIBS"
9188 cat >conftest.$ac_ext <<_ACEOF
9189 /* confdefs.h.  */
9190 _ACEOF
9191 cat confdefs.h >>conftest.$ac_ext
9192 cat >>conftest.$ac_ext <<_ACEOF
9193 /* end confdefs.h.  */
9194
9195 /* Override any gcc2 internal prototype to avoid an error.  */
9196 #ifdef __cplusplus
9197 extern "C"
9198 #endif
9199 /* We use char because int might match the return type of a gcc2
9200    builtin and then its argument prototype would still apply.  */
9201 char dlopen ();
9202 int
9203 main ()
9204 {
9205 dlopen ();
9206   ;
9207   return 0;
9208 }
9209 _ACEOF
9210 rm -f conftest.$ac_objext conftest$ac_exeext
9211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9212   (eval $ac_link) 2>conftest.er1
9213   ac_status=$?
9214   grep -v '^ *+' conftest.er1 >conftest.err
9215   rm -f conftest.er1
9216   cat conftest.err >&5
9217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218   (exit $ac_status); } &&
9219          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9221   (eval $ac_try) 2>&5
9222   ac_status=$?
9223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224   (exit $ac_status); }; } &&
9225          { ac_try='test -s conftest$ac_exeext'
9226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9227   (eval $ac_try) 2>&5
9228   ac_status=$?
9229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230   (exit $ac_status); }; }; then
9231   ac_cv_lib_svld_dlopen=yes
9232 else
9233   echo "$as_me: failed program was:" >&5
9234 sed 's/^/| /' conftest.$ac_ext >&5
9235
9236 ac_cv_lib_svld_dlopen=no
9237 fi
9238 rm -f conftest.err conftest.$ac_objext \
9239       conftest$ac_exeext conftest.$ac_ext
9240 LIBS=$ac_check_lib_save_LIBS
9241 fi
9242 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9243 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9244 if test $ac_cv_lib_svld_dlopen = yes; then
9245   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9246 else
9247   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9248 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9249 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9250   echo $ECHO_N "(cached) $ECHO_C" >&6
9251 else
9252   ac_check_lib_save_LIBS=$LIBS
9253 LIBS="-ldld  $LIBS"
9254 cat >conftest.$ac_ext <<_ACEOF
9255 /* confdefs.h.  */
9256 _ACEOF
9257 cat confdefs.h >>conftest.$ac_ext
9258 cat >>conftest.$ac_ext <<_ACEOF
9259 /* end confdefs.h.  */
9260
9261 /* Override any gcc2 internal prototype to avoid an error.  */
9262 #ifdef __cplusplus
9263 extern "C"
9264 #endif
9265 /* We use char because int might match the return type of a gcc2
9266    builtin and then its argument prototype would still apply.  */
9267 char dld_link ();
9268 int
9269 main ()
9270 {
9271 dld_link ();
9272   ;
9273   return 0;
9274 }
9275 _ACEOF
9276 rm -f conftest.$ac_objext conftest$ac_exeext
9277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9278   (eval $ac_link) 2>conftest.er1
9279   ac_status=$?
9280   grep -v '^ *+' conftest.er1 >conftest.err
9281   rm -f conftest.er1
9282   cat conftest.err >&5
9283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284   (exit $ac_status); } &&
9285          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9287   (eval $ac_try) 2>&5
9288   ac_status=$?
9289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290   (exit $ac_status); }; } &&
9291          { ac_try='test -s conftest$ac_exeext'
9292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9293   (eval $ac_try) 2>&5
9294   ac_status=$?
9295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296   (exit $ac_status); }; }; then
9297   ac_cv_lib_dld_dld_link=yes
9298 else
9299   echo "$as_me: failed program was:" >&5
9300 sed 's/^/| /' conftest.$ac_ext >&5
9301
9302 ac_cv_lib_dld_dld_link=no
9303 fi
9304 rm -f conftest.err conftest.$ac_objext \
9305       conftest$ac_exeext conftest.$ac_ext
9306 LIBS=$ac_check_lib_save_LIBS
9307 fi
9308 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9309 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9310 if test $ac_cv_lib_dld_dld_link = yes; then
9311   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9312 fi
9313
9314
9315 fi
9316
9317
9318 fi
9319
9320
9321 fi
9322
9323
9324 fi
9325
9326
9327 fi
9328
9329     ;;
9330   esac
9331
9332   if test "x$lt_cv_dlopen" != xno; then
9333     enable_dlopen=yes
9334   else
9335     enable_dlopen=no
9336   fi
9337
9338   case $lt_cv_dlopen in
9339   dlopen)
9340     save_CPPFLAGS="$CPPFLAGS"
9341     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9342
9343     save_LDFLAGS="$LDFLAGS"
9344     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9345
9346     save_LIBS="$LIBS"
9347     LIBS="$lt_cv_dlopen_libs $LIBS"
9348
9349     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9350 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9351 if test "${lt_cv_dlopen_self+set}" = set; then
9352   echo $ECHO_N "(cached) $ECHO_C" >&6
9353 else
9354           if test "$cross_compiling" = yes; then :
9355   lt_cv_dlopen_self=cross
9356 else
9357   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9358   lt_status=$lt_dlunknown
9359   cat > conftest.$ac_ext <<EOF
9360 #line 9360 "configure"
9361 #include "confdefs.h"
9362
9363 #if HAVE_DLFCN_H
9364 #include <dlfcn.h>
9365 #endif
9366
9367 #include <stdio.h>
9368
9369 #ifdef RTLD_GLOBAL
9370 #  define LT_DLGLOBAL           RTLD_GLOBAL
9371 #else
9372 #  ifdef DL_GLOBAL
9373 #    define LT_DLGLOBAL         DL_GLOBAL
9374 #  else
9375 #    define LT_DLGLOBAL         0
9376 #  endif
9377 #endif
9378
9379 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9380    find out it does not work in some platform. */
9381 #ifndef LT_DLLAZY_OR_NOW
9382 #  ifdef RTLD_LAZY
9383 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9384 #  else
9385 #    ifdef DL_LAZY
9386 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9387 #    else
9388 #      ifdef RTLD_NOW
9389 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9390 #      else
9391 #        ifdef DL_NOW
9392 #          define LT_DLLAZY_OR_NOW      DL_NOW
9393 #        else
9394 #          define LT_DLLAZY_OR_NOW      0
9395 #        endif
9396 #      endif
9397 #    endif
9398 #  endif
9399 #endif
9400
9401 #ifdef __cplusplus
9402 extern "C" void exit (int);
9403 #endif
9404
9405 void fnord() { int i=42;}
9406 int main ()
9407 {
9408   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9409   int status = $lt_dlunknown;
9410
9411   if (self)
9412     {
9413       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9414       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9415       /* dlclose (self); */
9416     }
9417   else
9418     puts (dlerror ());
9419
9420     exit (status);
9421 }
9422 EOF
9423   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9424   (eval $ac_link) 2>&5
9425   ac_status=$?
9426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9428     (./conftest; exit; ) >&5 2>/dev/null
9429     lt_status=$?
9430     case x$lt_status in
9431       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9432       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9433       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9434     esac
9435   else :
9436     # compilation failed
9437     lt_cv_dlopen_self=no
9438   fi
9439 fi
9440 rm -fr conftest*
9441
9442
9443 fi
9444 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9445 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9446
9447     if test "x$lt_cv_dlopen_self" = xyes; then
9448       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9449       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9450 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9451 if test "${lt_cv_dlopen_self_static+set}" = set; then
9452   echo $ECHO_N "(cached) $ECHO_C" >&6
9453 else
9454           if test "$cross_compiling" = yes; then :
9455   lt_cv_dlopen_self_static=cross
9456 else
9457   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9458   lt_status=$lt_dlunknown
9459   cat > conftest.$ac_ext <<EOF
9460 #line 9460 "configure"
9461 #include "confdefs.h"
9462
9463 #if HAVE_DLFCN_H
9464 #include <dlfcn.h>
9465 #endif
9466
9467 #include <stdio.h>
9468
9469 #ifdef RTLD_GLOBAL
9470 #  define LT_DLGLOBAL           RTLD_GLOBAL
9471 #else
9472 #  ifdef DL_GLOBAL
9473 #    define LT_DLGLOBAL         DL_GLOBAL
9474 #  else
9475 #    define LT_DLGLOBAL         0
9476 #  endif
9477 #endif
9478
9479 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9480    find out it does not work in some platform. */
9481 #ifndef LT_DLLAZY_OR_NOW
9482 #  ifdef RTLD_LAZY
9483 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9484 #  else
9485 #    ifdef DL_LAZY
9486 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9487 #    else
9488 #      ifdef RTLD_NOW
9489 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9490 #      else
9491 #        ifdef DL_NOW
9492 #          define LT_DLLAZY_OR_NOW      DL_NOW
9493 #        else
9494 #          define LT_DLLAZY_OR_NOW      0
9495 #        endif
9496 #      endif
9497 #    endif
9498 #  endif
9499 #endif
9500
9501 #ifdef __cplusplus
9502 extern "C" void exit (int);
9503 #endif
9504
9505 void fnord() { int i=42;}
9506 int main ()
9507 {
9508   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9509   int status = $lt_dlunknown;
9510
9511   if (self)
9512     {
9513       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9514       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9515       /* dlclose (self); */
9516     }
9517   else
9518     puts (dlerror ());
9519
9520     exit (status);
9521 }
9522 EOF
9523   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9524   (eval $ac_link) 2>&5
9525   ac_status=$?
9526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9528     (./conftest; exit; ) >&5 2>/dev/null
9529     lt_status=$?
9530     case x$lt_status in
9531       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9532       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9533       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9534     esac
9535   else :
9536     # compilation failed
9537     lt_cv_dlopen_self_static=no
9538   fi
9539 fi
9540 rm -fr conftest*
9541
9542
9543 fi
9544 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9545 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9546     fi
9547
9548     CPPFLAGS="$save_CPPFLAGS"
9549     LDFLAGS="$save_LDFLAGS"
9550     LIBS="$save_LIBS"
9551     ;;
9552   esac
9553
9554   case $lt_cv_dlopen_self in
9555   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9556   *) enable_dlopen_self=unknown ;;
9557   esac
9558
9559   case $lt_cv_dlopen_self_static in
9560   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9561   *) enable_dlopen_self_static=unknown ;;
9562   esac
9563 fi
9564
9565
9566 # Report which library types will actually be built
9567 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9568 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9569 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9570 echo "${ECHO_T}$can_build_shared" >&6
9571
9572 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9573 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9574 test "$can_build_shared" = "no" && enable_shared=no
9575
9576 # On AIX, shared libraries and static libraries use the same namespace, and
9577 # are all built from PIC.
9578 case $host_os in
9579 aix3*)
9580   test "$enable_shared" = yes && enable_static=no
9581   if test -n "$RANLIB"; then
9582     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9583     postinstall_cmds='$RANLIB $lib'
9584   fi
9585   ;;
9586
9587 aix4* | aix5*)
9588   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9589     test "$enable_shared" = yes && enable_static=no
9590   fi
9591     ;;
9592 esac
9593 echo "$as_me:$LINENO: result: $enable_shared" >&5
9594 echo "${ECHO_T}$enable_shared" >&6
9595
9596 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9597 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9598 # Make sure either enable_shared or enable_static is yes.
9599 test "$enable_shared" = yes || enable_static=yes
9600 echo "$as_me:$LINENO: result: $enable_static" >&5
9601 echo "${ECHO_T}$enable_static" >&6
9602
9603 # The else clause should only fire when bootstrapping the
9604 # libtool distribution, otherwise you forgot to ship ltmain.sh
9605 # with your package, and you will get complaints that there are
9606 # no rules to generate ltmain.sh.
9607 if test -f "$ltmain"; then
9608   # See if we are running on zsh, and set the options which allow our commands through
9609   # without removal of \ escapes.
9610   if test -n "${ZSH_VERSION+set}" ; then
9611     setopt NO_GLOB_SUBST
9612   fi
9613   # Now quote all the things that may contain metacharacters while being
9614   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9615   # variables and quote the copies for generation of the libtool script.
9616   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9617     SED SHELL STRIP \
9618     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9619     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9620     deplibs_check_method reload_flag reload_cmds need_locks \
9621     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9622     lt_cv_sys_global_symbol_to_c_name_address \
9623     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9624     old_postinstall_cmds old_postuninstall_cmds \
9625     compiler \
9626     CC \
9627     LD \
9628     lt_prog_compiler_wl \
9629     lt_prog_compiler_pic \
9630     lt_prog_compiler_static \
9631     lt_prog_compiler_no_builtin_flag \
9632     export_dynamic_flag_spec \
9633     thread_safe_flag_spec \
9634     whole_archive_flag_spec \
9635     enable_shared_with_static_runtimes \
9636     old_archive_cmds \
9637     old_archive_from_new_cmds \
9638     predep_objects \
9639     postdep_objects \
9640     predeps \
9641     postdeps \
9642     compiler_lib_search_path \
9643     archive_cmds \
9644     archive_expsym_cmds \
9645     postinstall_cmds \
9646     postuninstall_cmds \
9647     old_archive_from_expsyms_cmds \
9648     allow_undefined_flag \
9649     no_undefined_flag \
9650     export_symbols_cmds \
9651     hardcode_libdir_flag_spec \
9652     hardcode_libdir_flag_spec_ld \
9653     hardcode_libdir_separator \
9654     hardcode_automatic \
9655     module_cmds \
9656     module_expsym_cmds \
9657     lt_cv_prog_compiler_c_o \
9658     exclude_expsyms \
9659     include_expsyms; do
9660
9661     case $var in
9662     old_archive_cmds | \
9663     old_archive_from_new_cmds | \
9664     archive_cmds | \
9665     archive_expsym_cmds | \
9666     module_cmds | \
9667     module_expsym_cmds | \
9668     old_archive_from_expsyms_cmds | \
9669     export_symbols_cmds | \
9670     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9671     postinstall_cmds | postuninstall_cmds | \
9672     old_postinstall_cmds | old_postuninstall_cmds | \
9673     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9674       # Double-quote double-evaled strings.
9675       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9676       ;;
9677     *)
9678       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9679       ;;
9680     esac
9681   done
9682
9683   case $lt_echo in
9684   *'\$0 --fallback-echo"')
9685     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9686     ;;
9687   esac
9688
9689 cfgfile="${ofile}T"
9690   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9691   $rm -f "$cfgfile"
9692   { echo "$as_me:$LINENO: creating $ofile" >&5
9693 echo "$as_me: creating $ofile" >&6;}
9694
9695   cat <<__EOF__ >> "$cfgfile"
9696 #! $SHELL
9697
9698 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9699 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9700 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9701 #
9702 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9703 # Free Software Foundation, Inc.
9704 #
9705 # This file is part of GNU Libtool:
9706 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9707 #
9708 # This program is free software; you can redistribute it and/or modify
9709 # it under the terms of the GNU General Public License as published by
9710 # the Free Software Foundation; either version 2 of the License, or
9711 # (at your option) any later version.
9712 #
9713 # This program is distributed in the hope that it will be useful, but
9714 # WITHOUT ANY WARRANTY; without even the implied warranty of
9715 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9716 # General Public License for more details.
9717 #
9718 # You should have received a copy of the GNU General Public License
9719 # along with this program; if not, write to the Free Software
9720 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9721 #
9722 # As a special exception to the GNU General Public License, if you
9723 # distribute this file as part of a program that contains a
9724 # configuration script generated by Autoconf, you may include it under
9725 # the same distribution terms that you use for the rest of that program.
9726
9727 # A sed program that does not truncate output.
9728 SED=$lt_SED
9729
9730 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9731 Xsed="$SED -e 1s/^X//"
9732
9733 # The HP-UX ksh and POSIX shell print the target directory to stdout
9734 # if CDPATH is set.
9735 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9736
9737 # The names of the tagged configurations supported by this script.
9738 available_tags=
9739
9740 # ### BEGIN LIBTOOL CONFIG
9741
9742 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9743
9744 # Shell to use when invoking shell scripts.
9745 SHELL=$lt_SHELL
9746
9747 # Whether or not to build shared libraries.
9748 build_libtool_libs=$enable_shared
9749
9750 # Whether or not to build static libraries.
9751 build_old_libs=$enable_static
9752
9753 # Whether or not to add -lc for building shared libraries.
9754 build_libtool_need_lc=$archive_cmds_need_lc
9755
9756 # Whether or not to disallow shared libs when runtime libs are static
9757 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9758
9759 # Whether or not to optimize for fast installation.
9760 fast_install=$enable_fast_install
9761
9762 # The host system.
9763 host_alias=$host_alias
9764 host=$host
9765 host_os=$host_os
9766
9767 # The build system.
9768 build_alias=$build_alias
9769 build=$build
9770 build_os=$build_os
9771
9772 # An echo program that does not interpret backslashes.
9773 echo=$lt_echo
9774
9775 # The archiver.
9776 AR=$lt_AR
9777 AR_FLAGS=$lt_AR_FLAGS
9778
9779 # A C compiler.
9780 LTCC=$lt_LTCC
9781
9782 # LTCC compiler flags.
9783 LTCFLAGS=$lt_LTCFLAGS
9784
9785 # A language-specific compiler.
9786 CC=$lt_compiler
9787
9788 # Is the compiler the GNU C compiler?
9789 with_gcc=$GCC
9790
9791 # An ERE matcher.
9792 EGREP=$lt_EGREP
9793
9794 # The linker used to build libraries.
9795 LD=$lt_LD
9796
9797 # Whether we need hard or soft links.
9798 LN_S=$lt_LN_S
9799
9800 # A BSD-compatible nm program.
9801 NM=$lt_NM
9802
9803 # A symbol stripping program
9804 STRIP=$lt_STRIP
9805
9806 # Used to examine libraries when file_magic_cmd begins "file"
9807 MAGIC_CMD=$MAGIC_CMD
9808
9809 # Used on cygwin: DLL creation program.
9810 DLLTOOL="$DLLTOOL"
9811
9812 # Used on cygwin: object dumper.
9813 OBJDUMP="$OBJDUMP"
9814
9815 # Used on cygwin: assembler.
9816 AS="$AS"
9817
9818 # The name of the directory that contains temporary libtool files.
9819 objdir=$objdir
9820
9821 # How to create reloadable object files.
9822 reload_flag=$lt_reload_flag
9823 reload_cmds=$lt_reload_cmds
9824
9825 # How to pass a linker flag through the compiler.
9826 wl=$lt_lt_prog_compiler_wl
9827
9828 # Object file suffix (normally "o").
9829 objext="$ac_objext"
9830
9831 # Old archive suffix (normally "a").
9832 libext="$libext"
9833
9834 # Shared library suffix (normally ".so").
9835 shrext_cmds='$shrext_cmds'
9836
9837 # Executable file suffix (normally "").
9838 exeext="$exeext"
9839
9840 # Additional compiler flags for building library objects.
9841 pic_flag=$lt_lt_prog_compiler_pic
9842 pic_mode=$pic_mode
9843
9844 # What is the maximum length of a command?
9845 max_cmd_len=$lt_cv_sys_max_cmd_len
9846
9847 # Does compiler simultaneously support -c and -o options?
9848 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9849
9850 # Must we lock files when doing compilation?
9851 need_locks=$lt_need_locks
9852
9853 # Do we need the lib prefix for modules?
9854 need_lib_prefix=$need_lib_prefix
9855
9856 # Do we need a version for libraries?
9857 need_version=$need_version
9858
9859 # Whether dlopen is supported.
9860 dlopen_support=$enable_dlopen
9861
9862 # Whether dlopen of programs is supported.
9863 dlopen_self=$enable_dlopen_self
9864
9865 # Whether dlopen of statically linked programs is supported.
9866 dlopen_self_static=$enable_dlopen_self_static
9867
9868 # Compiler flag to prevent dynamic linking.
9869 link_static_flag=$lt_lt_prog_compiler_static
9870
9871 # Compiler flag to turn off builtin functions.
9872 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9873
9874 # Compiler flag to allow reflexive dlopens.
9875 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9876
9877 # Compiler flag to generate shared objects directly from archives.
9878 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9879
9880 # Compiler flag to generate thread-safe objects.
9881 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9882
9883 # Library versioning type.
9884 version_type=$version_type
9885
9886 # Format of library name prefix.
9887 libname_spec=$lt_libname_spec
9888
9889 # List of archive names.  First name is the real one, the rest are links.
9890 # The last name is the one that the linker finds with -lNAME.
9891 library_names_spec=$lt_library_names_spec
9892
9893 # The coded name of the library, if different from the real name.
9894 soname_spec=$lt_soname_spec
9895
9896 # Commands used to build and install an old-style archive.
9897 RANLIB=$lt_RANLIB
9898 old_archive_cmds=$lt_old_archive_cmds
9899 old_postinstall_cmds=$lt_old_postinstall_cmds
9900 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9901
9902 # Create an old-style archive from a shared archive.
9903 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9904
9905 # Create a temporary old-style archive to link instead of a shared archive.
9906 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9907
9908 # Commands used to build and install a shared archive.
9909 archive_cmds=$lt_archive_cmds
9910 archive_expsym_cmds=$lt_archive_expsym_cmds
9911 postinstall_cmds=$lt_postinstall_cmds
9912 postuninstall_cmds=$lt_postuninstall_cmds
9913
9914 # Commands used to build a loadable module (assumed same as above if empty)
9915 module_cmds=$lt_module_cmds
9916 module_expsym_cmds=$lt_module_expsym_cmds
9917
9918 # Commands to strip libraries.
9919 old_striplib=$lt_old_striplib
9920 striplib=$lt_striplib
9921
9922 # Dependencies to place before the objects being linked to create a
9923 # shared library.
9924 predep_objects=$lt_predep_objects
9925
9926 # Dependencies to place after the objects being linked to create a
9927 # shared library.
9928 postdep_objects=$lt_postdep_objects
9929
9930 # Dependencies to place before the objects being linked to create a
9931 # shared library.
9932 predeps=$lt_predeps
9933
9934 # Dependencies to place after the objects being linked to create a
9935 # shared library.
9936 postdeps=$lt_postdeps
9937
9938 # The library search path used internally by the compiler when linking
9939 # a shared library.
9940 compiler_lib_search_path=$lt_compiler_lib_search_path
9941
9942 # Method to check whether dependent libraries are shared objects.
9943 deplibs_check_method=$lt_deplibs_check_method
9944
9945 # Command to use when deplibs_check_method == file_magic.
9946 file_magic_cmd=$lt_file_magic_cmd
9947
9948 # Flag that allows shared libraries with undefined symbols to be built.
9949 allow_undefined_flag=$lt_allow_undefined_flag
9950
9951 # Flag that forces no undefined symbols.
9952 no_undefined_flag=$lt_no_undefined_flag
9953
9954 # Commands used to finish a libtool library installation in a directory.
9955 finish_cmds=$lt_finish_cmds
9956
9957 # Same as above, but a single script fragment to be evaled but not shown.
9958 finish_eval=$lt_finish_eval
9959
9960 # Take the output of nm and produce a listing of raw symbols and C names.
9961 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9962
9963 # Transform the output of nm in a proper C declaration
9964 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9965
9966 # Transform the output of nm in a C name address pair
9967 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9968
9969 # This is the shared library runtime path variable.
9970 runpath_var=$runpath_var
9971
9972 # This is the shared library path variable.
9973 shlibpath_var=$shlibpath_var
9974
9975 # Is shlibpath searched before the hard-coded library search path?
9976 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9977
9978 # How to hardcode a shared library path into an executable.
9979 hardcode_action=$hardcode_action
9980
9981 # Whether we should hardcode library paths into libraries.
9982 hardcode_into_libs=$hardcode_into_libs
9983
9984 # Flag to hardcode \$libdir into a binary during linking.
9985 # This must work even if \$libdir does not exist.
9986 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9987
9988 # If ld is used when linking, flag to hardcode \$libdir into
9989 # a binary during linking. This must work even if \$libdir does
9990 # not exist.
9991 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9992
9993 # Whether we need a single -rpath flag with a separated argument.
9994 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9995
9996 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9997 # resulting binary.
9998 hardcode_direct=$hardcode_direct
9999
10000 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10001 # resulting binary.
10002 hardcode_minus_L=$hardcode_minus_L
10003
10004 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10005 # the resulting binary.
10006 hardcode_shlibpath_var=$hardcode_shlibpath_var
10007
10008 # Set to yes if building a shared library automatically hardcodes DIR into the library
10009 # and all subsequent libraries and executables linked against it.
10010 hardcode_automatic=$hardcode_automatic
10011
10012 # Variables whose values should be saved in libtool wrapper scripts and
10013 # restored at relink time.
10014 variables_saved_for_relink="$variables_saved_for_relink"
10015
10016 # Whether libtool must link a program against all its dependency libraries.
10017 link_all_deplibs=$link_all_deplibs
10018
10019 # Compile-time system search path for libraries
10020 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10021
10022 # Run-time system search path for libraries
10023 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10024
10025 # Fix the shell variable \$srcfile for the compiler.
10026 fix_srcfile_path="$fix_srcfile_path"
10027
10028 # Set to yes if exported symbols are required.
10029 always_export_symbols=$always_export_symbols
10030
10031 # The commands to list exported symbols.
10032 export_symbols_cmds=$lt_export_symbols_cmds
10033
10034 # The commands to extract the exported symbol list from a shared archive.
10035 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10036
10037 # Symbols that should not be listed in the preloaded symbols.
10038 exclude_expsyms=$lt_exclude_expsyms
10039
10040 # Symbols that must always be exported.
10041 include_expsyms=$lt_include_expsyms
10042
10043 # ### END LIBTOOL CONFIG
10044
10045 __EOF__
10046
10047
10048   case $host_os in
10049   aix3*)
10050     cat <<\EOF >> "$cfgfile"
10051
10052 # AIX sometimes has problems with the GCC collect2 program.  For some
10053 # reason, if we set the COLLECT_NAMES environment variable, the problems
10054 # vanish in a puff of smoke.
10055 if test "X${COLLECT_NAMES+set}" != Xset; then
10056   COLLECT_NAMES=
10057   export COLLECT_NAMES
10058 fi
10059 EOF
10060     ;;
10061   esac
10062
10063   # We use sed instead of cat because bash on DJGPP gets confused if
10064   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10065   # text mode, it properly converts lines to CR/LF.  This bash problem
10066   # is reportedly fixed, but why not run on old versions too?
10067   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10068
10069   mv -f "$cfgfile" "$ofile" || \
10070     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10071   chmod +x "$ofile"
10072
10073 else
10074   # If there is no Makefile yet, we rely on a make rule to execute
10075   # `config.status --recheck' to rerun these tests and create the
10076   # libtool script then.
10077   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10078   if test -f "$ltmain_in"; then
10079     test -f Makefile && make "$ltmain"
10080   fi
10081 fi
10082
10083
10084 ac_ext=c
10085 ac_cpp='$CPP $CPPFLAGS'
10086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10089
10090 CC="$lt_save_CC"
10091
10092
10093 # Check whether --with-tags or --without-tags was given.
10094 if test "${with_tags+set}" = set; then
10095   withval="$with_tags"
10096   tagnames="$withval"
10097 fi;
10098
10099 if test -f "$ltmain" && test -n "$tagnames"; then
10100   if test ! -f "${ofile}"; then
10101     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10102 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10103   fi
10104
10105   if test -z "$LTCC"; then
10106     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10107     if test -z "$LTCC"; then
10108       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10109 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10110     else
10111       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10112 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10113     fi
10114   fi
10115   if test -z "$LTCFLAGS"; then
10116     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10117   fi
10118
10119   # Extract list of available tagged configurations in $ofile.
10120   # Note that this assumes the entire list is on one line.
10121   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10122
10123   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10124   for tagname in $tagnames; do
10125     IFS="$lt_save_ifs"
10126     # Check whether tagname contains only valid characters
10127     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10128     "") ;;
10129     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10130 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10131    { (exit 1); exit 1; }; }
10132         ;;
10133     esac
10134
10135     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10136     then
10137       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10138 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10139    { (exit 1); exit 1; }; }
10140     fi
10141
10142     # Update the list of available tags.
10143     if test -n "$tagname"; then
10144       echo appending configuration tag \"$tagname\" to $ofile
10145
10146       case $tagname in
10147       CXX)
10148         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10149             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10150             (test "X$CXX" != "Xg++"))) ; then
10151           ac_ext=cc
10152 ac_cpp='$CXXCPP $CPPFLAGS'
10153 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10154 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10155 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10156
10157
10158
10159
10160 archive_cmds_need_lc_CXX=no
10161 allow_undefined_flag_CXX=
10162 always_export_symbols_CXX=no
10163 archive_expsym_cmds_CXX=
10164 export_dynamic_flag_spec_CXX=
10165 hardcode_direct_CXX=no
10166 hardcode_libdir_flag_spec_CXX=
10167 hardcode_libdir_flag_spec_ld_CXX=
10168 hardcode_libdir_separator_CXX=
10169 hardcode_minus_L_CXX=no
10170 hardcode_shlibpath_var_CXX=unsupported
10171 hardcode_automatic_CXX=no
10172 module_cmds_CXX=
10173 module_expsym_cmds_CXX=
10174 link_all_deplibs_CXX=unknown
10175 old_archive_cmds_CXX=$old_archive_cmds
10176 no_undefined_flag_CXX=
10177 whole_archive_flag_spec_CXX=
10178 enable_shared_with_static_runtimes_CXX=no
10179
10180 # Dependencies to place before and after the object being linked:
10181 predep_objects_CXX=
10182 postdep_objects_CXX=
10183 predeps_CXX=
10184 postdeps_CXX=
10185 compiler_lib_search_path_CXX=
10186
10187 # Source file extension for C++ test sources.
10188 ac_ext=cpp
10189
10190 # Object file extension for compiled C++ test sources.
10191 objext=o
10192 objext_CXX=$objext
10193
10194 # Code to be used in simple compile tests
10195 lt_simple_compile_test_code="int some_variable = 0;\n"
10196
10197 # Code to be used in simple link tests
10198 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10199
10200 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10201
10202 # If no C compiler was specified, use CC.
10203 LTCC=${LTCC-"$CC"}
10204
10205 # If no C compiler flags were specified, use CFLAGS.
10206 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10207
10208 # Allow CC to be a program name with arguments.
10209 compiler=$CC
10210
10211
10212 # save warnings/boilerplate of simple test code
10213 ac_outfile=conftest.$ac_objext
10214 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10215 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10216 _lt_compiler_boilerplate=`cat conftest.err`
10217 $rm conftest*
10218
10219 ac_outfile=conftest.$ac_objext
10220 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10221 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10222 _lt_linker_boilerplate=`cat conftest.err`
10223 $rm conftest*
10224
10225
10226 # Allow CC to be a program name with arguments.
10227 lt_save_CC=$CC
10228 lt_save_LD=$LD
10229 lt_save_GCC=$GCC
10230 GCC=$GXX
10231 lt_save_with_gnu_ld=$with_gnu_ld
10232 lt_save_path_LD=$lt_cv_path_LD
10233 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10234   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10235 else
10236   $as_unset lt_cv_prog_gnu_ld
10237 fi
10238 if test -n "${lt_cv_path_LDCXX+set}"; then
10239   lt_cv_path_LD=$lt_cv_path_LDCXX
10240 else
10241   $as_unset lt_cv_path_LD
10242 fi
10243 test -z "${LDCXX+set}" || LD=$LDCXX
10244 CC=${CXX-"c++"}
10245 compiler=$CC
10246 compiler_CXX=$CC
10247 for cc_temp in $compiler""; do
10248   case $cc_temp in
10249     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10250     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10251     \-*) ;;
10252     *) break;;
10253   esac
10254 done
10255 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10256
10257
10258 # We don't want -fno-exception wen compiling C++ code, so set the
10259 # no_builtin_flag separately
10260 if test "$GXX" = yes; then
10261   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10262 else
10263   lt_prog_compiler_no_builtin_flag_CXX=
10264 fi
10265
10266 if test "$GXX" = yes; then
10267   # Set up default GNU C++ configuration
10268
10269
10270 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10271 if test "${with_gnu_ld+set}" = set; then
10272   withval="$with_gnu_ld"
10273   test "$withval" = no || with_gnu_ld=yes
10274 else
10275   with_gnu_ld=no
10276 fi;
10277 ac_prog=ld
10278 if test "$GCC" = yes; then
10279   # Check if gcc -print-prog-name=ld gives a path.
10280   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10281 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10282   case $host in
10283   *-*-mingw*)
10284     # gcc leaves a trailing carriage return which upsets mingw
10285     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10286   *)
10287     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10288   esac
10289   case $ac_prog in
10290     # Accept absolute paths.
10291     [\\/]* | ?:[\\/]*)
10292       re_direlt='/[^/][^/]*/\.\./'
10293       # Canonicalize the pathname of ld
10294       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10295       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10296         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10297       done
10298       test -z "$LD" && LD="$ac_prog"
10299       ;;
10300   "")
10301     # If it fails, then pretend we aren't using GCC.
10302     ac_prog=ld
10303     ;;
10304   *)
10305     # If it is relative, then search for the first ld in PATH.
10306     with_gnu_ld=unknown
10307     ;;
10308   esac
10309 elif test "$with_gnu_ld" = yes; then
10310   echo "$as_me:$LINENO: checking for GNU ld" >&5
10311 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10312 else
10313   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10314 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10315 fi
10316 if test "${lt_cv_path_LD+set}" = set; then
10317   echo $ECHO_N "(cached) $ECHO_C" >&6
10318 else
10319   if test -z "$LD"; then
10320   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10321   for ac_dir in $PATH; do
10322     IFS="$lt_save_ifs"
10323     test -z "$ac_dir" && ac_dir=.
10324     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10325       lt_cv_path_LD="$ac_dir/$ac_prog"
10326       # Check to see if the program is GNU ld.  I'd rather use --version,
10327       # but apparently some variants of GNU ld only accept -v.
10328       # Break only if it was the GNU/non-GNU ld that we prefer.
10329       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10330       *GNU* | *'with BFD'*)
10331         test "$with_gnu_ld" != no && break
10332         ;;
10333       *)
10334         test "$with_gnu_ld" != yes && break
10335         ;;
10336       esac
10337     fi
10338   done
10339   IFS="$lt_save_ifs"
10340 else
10341   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10342 fi
10343 fi
10344
10345 LD="$lt_cv_path_LD"
10346 if test -n "$LD"; then
10347   echo "$as_me:$LINENO: result: $LD" >&5
10348 echo "${ECHO_T}$LD" >&6
10349 else
10350   echo "$as_me:$LINENO: result: no" >&5
10351 echo "${ECHO_T}no" >&6
10352 fi
10353 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10354 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10355    { (exit 1); exit 1; }; }
10356 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10357 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10358 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10359   echo $ECHO_N "(cached) $ECHO_C" >&6
10360 else
10361   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10362 case `$LD -v 2>&1 </dev/null` in
10363 *GNU* | *'with BFD'*)
10364   lt_cv_prog_gnu_ld=yes
10365   ;;
10366 *)
10367   lt_cv_prog_gnu_ld=no
10368   ;;
10369 esac
10370 fi
10371 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10372 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10373 with_gnu_ld=$lt_cv_prog_gnu_ld
10374
10375
10376
10377   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10378   # archiving commands below assume that GNU ld is being used.
10379   if test "$with_gnu_ld" = yes; then
10380     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10381     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'
10382
10383     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10384     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10385
10386     # If archive_cmds runs LD, not CC, wlarc should be empty
10387     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10388     #     investigate it a little bit more. (MM)
10389     wlarc='${wl}'
10390
10391     # ancient GNU ld didn't support --whole-archive et. al.
10392     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10393         grep 'no-whole-archive' > /dev/null; then
10394       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10395     else
10396       whole_archive_flag_spec_CXX=
10397     fi
10398   else
10399     with_gnu_ld=no
10400     wlarc=
10401
10402     # A generic and very simple default shared library creation
10403     # command for GNU C++ for the case where it uses the native
10404     # linker, instead of GNU ld.  If possible, this setting should
10405     # overridden to take advantage of the native linker features on
10406     # the platform it is being used on.
10407     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10408   fi
10409
10410   # Commands to make compiler produce verbose output that lists
10411   # what "hidden" libraries, object files and flags are used when
10412   # linking a shared library.
10413   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10414
10415 else
10416   GXX=no
10417   with_gnu_ld=no
10418   wlarc=
10419 fi
10420
10421 # PORTME: fill in a description of your system's C++ link characteristics
10422 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10423 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10424 ld_shlibs_CXX=yes
10425 case $host_os in
10426   aix3*)
10427     # FIXME: insert proper C++ library support
10428     ld_shlibs_CXX=no
10429     ;;
10430   aix4* | aix5*)
10431     if test "$host_cpu" = ia64; then
10432       # On IA64, the linker does run time linking by default, so we don't
10433       # have to do anything special.
10434       aix_use_runtimelinking=no
10435       exp_sym_flag='-Bexport'
10436       no_entry_flag=""
10437     else
10438       aix_use_runtimelinking=no
10439
10440       # Test if we are trying to use run time linking or normal
10441       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10442       # need to do runtime linking.
10443       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10444         for ld_flag in $LDFLAGS; do
10445           case $ld_flag in
10446           *-brtl*)
10447             aix_use_runtimelinking=yes
10448             break
10449             ;;
10450           esac
10451         done
10452         ;;
10453       esac
10454
10455       exp_sym_flag='-bexport'
10456       no_entry_flag='-bnoentry'
10457     fi
10458
10459     # When large executables or shared objects are built, AIX ld can
10460     # have problems creating the table of contents.  If linking a library
10461     # or program results in "error TOC overflow" add -mminimal-toc to
10462     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10463     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10464
10465     archive_cmds_CXX=''
10466     hardcode_direct_CXX=yes
10467     hardcode_libdir_separator_CXX=':'
10468     link_all_deplibs_CXX=yes
10469
10470     if test "$GXX" = yes; then
10471       case $host_os in aix4.[012]|aix4.[012].*)
10472       # We only want to do this on AIX 4.2 and lower, the check
10473       # below for broken collect2 doesn't work under 4.3+
10474         collect2name=`${CC} -print-prog-name=collect2`
10475         if test -f "$collect2name" && \
10476            strings "$collect2name" | grep resolve_lib_name >/dev/null
10477         then
10478           # We have reworked collect2
10479           hardcode_direct_CXX=yes
10480         else
10481           # We have old collect2
10482           hardcode_direct_CXX=unsupported
10483           # It fails to find uninstalled libraries when the uninstalled
10484           # path is not listed in the libpath.  Setting hardcode_minus_L
10485           # to unsupported forces relinking
10486           hardcode_minus_L_CXX=yes
10487           hardcode_libdir_flag_spec_CXX='-L$libdir'
10488           hardcode_libdir_separator_CXX=
10489         fi
10490         ;;
10491       esac
10492       shared_flag='-shared'
10493       if test "$aix_use_runtimelinking" = yes; then
10494         shared_flag="$shared_flag "'${wl}-G'
10495       fi
10496     else
10497       # not using gcc
10498       if test "$host_cpu" = ia64; then
10499         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10500         # chokes on -Wl,-G. The following line is correct:
10501         shared_flag='-G'
10502       else
10503         if test "$aix_use_runtimelinking" = yes; then
10504           shared_flag='${wl}-G'
10505         else
10506           shared_flag='${wl}-bM:SRE'
10507         fi
10508       fi
10509     fi
10510
10511     # It seems that -bexpall does not export symbols beginning with
10512     # underscore (_), so it is better to generate a list of symbols to export.
10513     always_export_symbols_CXX=yes
10514     if test "$aix_use_runtimelinking" = yes; then
10515       # Warning - without using the other runtime loading flags (-brtl),
10516       # -berok will link without error, but may produce a broken library.
10517       allow_undefined_flag_CXX='-berok'
10518       # Determine the default libpath from the value encoded in an empty executable.
10519       cat >conftest.$ac_ext <<_ACEOF
10520 /* confdefs.h.  */
10521 _ACEOF
10522 cat confdefs.h >>conftest.$ac_ext
10523 cat >>conftest.$ac_ext <<_ACEOF
10524 /* end confdefs.h.  */
10525
10526 int
10527 main ()
10528 {
10529
10530   ;
10531   return 0;
10532 }
10533 _ACEOF
10534 rm -f conftest.$ac_objext conftest$ac_exeext
10535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10536   (eval $ac_link) 2>conftest.er1
10537   ac_status=$?
10538   grep -v '^ *+' conftest.er1 >conftest.err
10539   rm -f conftest.er1
10540   cat conftest.err >&5
10541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542   (exit $ac_status); } &&
10543          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
10544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10545   (eval $ac_try) 2>&5
10546   ac_status=$?
10547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548   (exit $ac_status); }; } &&
10549          { ac_try='test -s conftest$ac_exeext'
10550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10551   (eval $ac_try) 2>&5
10552   ac_status=$?
10553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554   (exit $ac_status); }; }; then
10555
10556 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10557 }'`
10558 # Check for a 64-bit object if we didn't find anything.
10559 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; }
10560 }'`; fi
10561 else
10562   echo "$as_me: failed program was:" >&5
10563 sed 's/^/| /' conftest.$ac_ext >&5
10564
10565 fi
10566 rm -f conftest.err conftest.$ac_objext \
10567       conftest$ac_exeext conftest.$ac_ext
10568 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10569
10570       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10571
10572       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10573      else
10574       if test "$host_cpu" = ia64; then
10575         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10576         allow_undefined_flag_CXX="-z nodefs"
10577         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10578       else
10579         # Determine the default libpath from the value encoded in an empty executable.
10580         cat >conftest.$ac_ext <<_ACEOF
10581 /* confdefs.h.  */
10582 _ACEOF
10583 cat confdefs.h >>conftest.$ac_ext
10584 cat >>conftest.$ac_ext <<_ACEOF
10585 /* end confdefs.h.  */
10586
10587 int
10588 main ()
10589 {
10590
10591   ;
10592   return 0;
10593 }
10594 _ACEOF
10595 rm -f conftest.$ac_objext conftest$ac_exeext
10596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10597   (eval $ac_link) 2>conftest.er1
10598   ac_status=$?
10599   grep -v '^ *+' conftest.er1 >conftest.err
10600   rm -f conftest.er1
10601   cat conftest.err >&5
10602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603   (exit $ac_status); } &&
10604          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
10605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10606   (eval $ac_try) 2>&5
10607   ac_status=$?
10608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609   (exit $ac_status); }; } &&
10610          { ac_try='test -s conftest$ac_exeext'
10611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10612   (eval $ac_try) 2>&5
10613   ac_status=$?
10614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615   (exit $ac_status); }; }; then
10616
10617 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10618 }'`
10619 # Check for a 64-bit object if we didn't find anything.
10620 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; }
10621 }'`; fi
10622 else
10623   echo "$as_me: failed program was:" >&5
10624 sed 's/^/| /' conftest.$ac_ext >&5
10625
10626 fi
10627 rm -f conftest.err conftest.$ac_objext \
10628       conftest$ac_exeext conftest.$ac_ext
10629 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10630
10631         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10632         # Warning - without using the other run time loading flags,
10633         # -berok will link without error, but may produce a broken library.
10634         no_undefined_flag_CXX=' ${wl}-bernotok'
10635         allow_undefined_flag_CXX=' ${wl}-berok'
10636         # Exported symbols can be pulled into shared objects from archives
10637         whole_archive_flag_spec_CXX='$convenience'
10638         archive_cmds_need_lc_CXX=yes
10639         # This is similar to how AIX traditionally builds its shared libraries.
10640         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10641       fi
10642     fi
10643     ;;
10644
10645   beos*)
10646     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10647       allow_undefined_flag_CXX=unsupported
10648       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10649       # support --undefined.  This deserves some investigation.  FIXME
10650       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10651     else
10652       ld_shlibs_CXX=no
10653     fi
10654     ;;
10655
10656   chorus*)
10657     case $cc_basename in
10658       *)
10659         # FIXME: insert proper C++ library support
10660         ld_shlibs_CXX=no
10661         ;;
10662     esac
10663     ;;
10664
10665   cygwin* | mingw* | pw32*)
10666     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10667     # as there is no search path for DLLs.
10668     hardcode_libdir_flag_spec_CXX='-L$libdir'
10669     allow_undefined_flag_CXX=unsupported
10670     always_export_symbols_CXX=no
10671     enable_shared_with_static_runtimes_CXX=yes
10672
10673     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10674       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10675       # If the export-symbols file already is a .def file (1st line
10676       # is EXPORTS), use it as is; otherwise, prepend...
10677       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10678         cp $export_symbols $output_objdir/$soname.def;
10679       else
10680         echo EXPORTS > $output_objdir/$soname.def;
10681         cat $export_symbols >> $output_objdir/$soname.def;
10682       fi~
10683       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10684     else
10685       ld_shlibs_CXX=no
10686     fi
10687   ;;
10688       darwin* | rhapsody*)
10689         case $host_os in
10690         rhapsody* | darwin1.[012])
10691          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10692          ;;
10693        *) # Darwin 1.3 on
10694          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10695            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10696          else
10697            case ${MACOSX_DEPLOYMENT_TARGET} in
10698              10.[012])
10699                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10700                ;;
10701              10.*)
10702                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10703                ;;
10704            esac
10705          fi
10706          ;;
10707         esac
10708       archive_cmds_need_lc_CXX=no
10709       hardcode_direct_CXX=no
10710       hardcode_automatic_CXX=yes
10711       hardcode_shlibpath_var_CXX=unsupported
10712       whole_archive_flag_spec_CXX=''
10713       link_all_deplibs_CXX=yes
10714
10715     if test "$GXX" = yes ; then
10716       lt_int_apple_cc_single_mod=no
10717       output_verbose_link_cmd='echo'
10718       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10719        lt_int_apple_cc_single_mod=yes
10720       fi
10721       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10722        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10723       else
10724           archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10725         fi
10726         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10727         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10728           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10729             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}'
10730           else
10731             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10732           fi
10733             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}'
10734       else
10735       case $cc_basename in
10736         xlc*)
10737          output_verbose_link_cmd='echo'
10738           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10739           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10740           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10741           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10742           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}'
10743           ;;
10744        *)
10745          ld_shlibs_CXX=no
10746           ;;
10747       esac
10748       fi
10749         ;;
10750
10751   dgux*)
10752     case $cc_basename in
10753       ec++*)
10754         # FIXME: insert proper C++ library support
10755         ld_shlibs_CXX=no
10756         ;;
10757       ghcx*)
10758         # Green Hills C++ Compiler
10759         # FIXME: insert proper C++ library support
10760         ld_shlibs_CXX=no
10761         ;;
10762       *)
10763         # FIXME: insert proper C++ library support
10764         ld_shlibs_CXX=no
10765         ;;
10766     esac
10767     ;;
10768   freebsd[12]*)
10769     # C++ shared libraries reported to be fairly broken before switch to ELF
10770     ld_shlibs_CXX=no
10771     ;;
10772   freebsd-elf*)
10773     archive_cmds_need_lc_CXX=no
10774     ;;
10775   freebsd* | kfreebsd*-gnu | dragonfly*)
10776     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10777     # conventions
10778     ld_shlibs_CXX=yes
10779     ;;
10780   gnu*)
10781     ;;
10782   hpux9*)
10783     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10784     hardcode_libdir_separator_CXX=:
10785     export_dynamic_flag_spec_CXX='${wl}-E'
10786     hardcode_direct_CXX=yes
10787     hardcode_minus_L_CXX=yes # Not in the search PATH,
10788                                 # but as the default
10789                                 # location of the library.
10790
10791     case $cc_basename in
10792     CC*)
10793       # FIXME: insert proper C++ library support
10794       ld_shlibs_CXX=no
10795       ;;
10796     aCC*)
10797       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'
10798       # Commands to make compiler produce verbose output that lists
10799       # what "hidden" libraries, object files and flags are used when
10800       # linking a shared library.
10801       #
10802       # There doesn't appear to be a way to prevent this compiler from
10803       # explicitly linking system object files so we need to strip them
10804       # from the output so that they don't get included in the library
10805       # dependencies.
10806       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'
10807       ;;
10808     *)
10809       if test "$GXX" = yes; then
10810         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'
10811       else
10812         # FIXME: insert proper C++ library support
10813         ld_shlibs_CXX=no
10814       fi
10815       ;;
10816     esac
10817     ;;
10818   hpux10*|hpux11*)
10819     if test $with_gnu_ld = no; then
10820       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10821       hardcode_libdir_separator_CXX=:
10822
10823       case $host_cpu in
10824       hppa*64*|ia64*)
10825         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10826         ;;
10827       *)
10828         export_dynamic_flag_spec_CXX='${wl}-E'
10829         ;;
10830       esac
10831     fi
10832     case $host_cpu in
10833     hppa*64*|ia64*)
10834       hardcode_direct_CXX=no
10835       hardcode_shlibpath_var_CXX=no
10836       ;;
10837     *)
10838       hardcode_direct_CXX=yes
10839       hardcode_minus_L_CXX=yes # Not in the search PATH,
10840                                               # but as the default
10841                                               # location of the library.
10842       ;;
10843     esac
10844
10845     case $cc_basename in
10846       CC*)
10847         # FIXME: insert proper C++ library support
10848         ld_shlibs_CXX=no
10849         ;;
10850       aCC*)
10851         case $host_cpu in
10852         hppa*64*)
10853           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10854           ;;
10855         ia64*)
10856           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10857           ;;
10858         *)
10859           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10860           ;;
10861         esac
10862         # Commands to make compiler produce verbose output that lists
10863         # what "hidden" libraries, object files and flags are used when
10864         # linking a shared library.
10865         #
10866         # There doesn't appear to be a way to prevent this compiler from
10867         # explicitly linking system object files so we need to strip them
10868         # from the output so that they don't get included in the library
10869         # dependencies.
10870         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'
10871         ;;
10872       *)
10873         if test "$GXX" = yes; then
10874           if test $with_gnu_ld = no; then
10875             case $host_cpu in
10876             hppa*64*)
10877               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10878               ;;
10879             ia64*)
10880               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10881               ;;
10882             *)
10883               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'
10884               ;;
10885             esac
10886           fi
10887         else
10888           # FIXME: insert proper C++ library support
10889           ld_shlibs_CXX=no
10890         fi
10891         ;;
10892     esac
10893     ;;
10894   interix3*)
10895     hardcode_direct_CXX=no
10896     hardcode_shlibpath_var_CXX=no
10897     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10898     export_dynamic_flag_spec_CXX='${wl}-E'
10899     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10900     # Instead, shared libraries are loaded at an image base (0x10000000 by
10901     # default) and relocated if they conflict, which is a slow very memory
10902     # consuming and fragmenting process.  To avoid this, we pick a random,
10903     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10904     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10905     archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10906     archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10907     ;;
10908   irix5* | irix6*)
10909     case $cc_basename in
10910       CC*)
10911         # SGI C++
10912         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10913
10914         # Archives containing C++ object files must be created using
10915         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10916         # necessary to make sure instantiated templates are included
10917         # in the archive.
10918         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10919         ;;
10920       *)
10921         if test "$GXX" = yes; then
10922           if test "$with_gnu_ld" = no; then
10923             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10924           else
10925             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'
10926           fi
10927         fi
10928         link_all_deplibs_CXX=yes
10929         ;;
10930     esac
10931     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10932     hardcode_libdir_separator_CXX=:
10933     ;;
10934   linux*)
10935     case $cc_basename in
10936       KCC*)
10937         # Kuck and Associates, Inc. (KAI) C++ Compiler
10938
10939         # KCC will only create a shared library if the output file
10940         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10941         # to its proper name (with version) after linking.
10942         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'
10943         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'
10944         # Commands to make compiler produce verbose output that lists
10945         # what "hidden" libraries, object files and flags are used when
10946         # linking a shared library.
10947         #
10948         # There doesn't appear to be a way to prevent this compiler from
10949         # explicitly linking system object files so we need to strip them
10950         # from the output so that they don't get included in the library
10951         # dependencies.
10952         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'
10953
10954         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10955         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10956
10957         # Archives containing C++ object files must be created using
10958         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10959         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10960         ;;
10961       icpc*)
10962         # Intel C++
10963         with_gnu_ld=yes
10964         # version 8.0 and above of icpc choke on multiply defined symbols
10965         # if we add $predep_objects and $postdep_objects, however 7.1 and
10966         # earlier do not add the objects themselves.
10967         case `$CC -V 2>&1` in
10968         *"Version 7."*)
10969           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10970           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'
10971           ;;
10972         *)  # Version 8.0 or newer
10973           tmp_idyn=
10974           case $host_cpu in
10975             ia64*) tmp_idyn=' -i_dynamic';;
10976           esac
10977           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10978           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10979           ;;
10980         esac
10981         archive_cmds_need_lc_CXX=no
10982         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10983         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10984         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10985         ;;
10986       pgCC*)
10987         # Portland Group C++ compiler
10988         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10989         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10990
10991         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10992         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10993         whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10994         ;;
10995       cxx*)
10996         # Compaq C++
10997         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10998         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'
10999
11000         runpath_var=LD_RUN_PATH
11001         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11002         hardcode_libdir_separator_CXX=:
11003
11004         # Commands to make compiler produce verbose output that lists
11005         # what "hidden" libraries, object files and flags are used when
11006         # linking a shared library.
11007         #
11008         # There doesn't appear to be a way to prevent this compiler from
11009         # explicitly linking system object files so we need to strip them
11010         # from the output so that they don't get included in the library
11011         # dependencies.
11012         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'
11013         ;;
11014     esac
11015     ;;
11016   lynxos*)
11017     # FIXME: insert proper C++ library support
11018     ld_shlibs_CXX=no
11019     ;;
11020   m88k*)
11021     # FIXME: insert proper C++ library support
11022     ld_shlibs_CXX=no
11023     ;;
11024   mvs*)
11025     case $cc_basename in
11026       cxx*)
11027         # FIXME: insert proper C++ library support
11028         ld_shlibs_CXX=no
11029         ;;
11030       *)
11031         # FIXME: insert proper C++ library support
11032         ld_shlibs_CXX=no
11033         ;;
11034     esac
11035     ;;
11036   netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11037     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11038       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11039       wlarc=
11040       hardcode_libdir_flag_spec_CXX='-R$libdir'
11041       hardcode_direct_CXX=yes
11042       hardcode_shlibpath_var_CXX=no
11043     fi
11044     # Workaround some broken pre-1.5 toolchains
11045     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11046     ;;
11047   openbsd2*)
11048     # C++ shared libraries are fairly broken
11049     ld_shlibs_CXX=no
11050     ;;
11051   openbsd*)
11052     hardcode_direct_CXX=yes
11053     hardcode_shlibpath_var_CXX=no
11054     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11055     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11056     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11057       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11058       export_dynamic_flag_spec_CXX='${wl}-E'
11059       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11060     fi
11061     output_verbose_link_cmd='echo'
11062     ;;
11063   osf3*)
11064     case $cc_basename in
11065       KCC*)
11066         # Kuck and Associates, Inc. (KAI) C++ Compiler
11067
11068         # KCC will only create a shared library if the output file
11069         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11070         # to its proper name (with version) after linking.
11071         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'
11072
11073         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11074         hardcode_libdir_separator_CXX=:
11075
11076         # Archives containing C++ object files must be created using
11077         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11078         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11079
11080         ;;
11081       RCC*)
11082         # Rational C++ 2.4.1
11083         # FIXME: insert proper C++ library support
11084         ld_shlibs_CXX=no
11085         ;;
11086       cxx*)
11087         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11088         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11089
11090         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11091         hardcode_libdir_separator_CXX=:
11092
11093         # Commands to make compiler produce verbose output that lists
11094         # what "hidden" libraries, object files and flags are used when
11095         # linking a shared library.
11096         #
11097         # There doesn't appear to be a way to prevent this compiler from
11098         # explicitly linking system object files so we need to strip them
11099         # from the output so that they don't get included in the library
11100         # dependencies.
11101         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'
11102         ;;
11103       *)
11104         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11105           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11106           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11107
11108           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11109           hardcode_libdir_separator_CXX=:
11110
11111           # Commands to make compiler produce verbose output that lists
11112           # what "hidden" libraries, object files and flags are used when
11113           # linking a shared library.
11114           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11115
11116         else
11117           # FIXME: insert proper C++ library support
11118           ld_shlibs_CXX=no
11119         fi
11120         ;;
11121     esac
11122     ;;
11123   osf4* | osf5*)
11124     case $cc_basename in
11125       KCC*)
11126         # Kuck and Associates, Inc. (KAI) C++ Compiler
11127
11128         # KCC will only create a shared library if the output file
11129         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11130         # to its proper name (with version) after linking.
11131         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'
11132
11133         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11134         hardcode_libdir_separator_CXX=:
11135
11136         # Archives containing C++ object files must be created using
11137         # the KAI C++ compiler.
11138         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11139         ;;
11140       RCC*)
11141         # Rational C++ 2.4.1
11142         # FIXME: insert proper C++ library support
11143         ld_shlibs_CXX=no
11144         ;;
11145       cxx*)
11146         allow_undefined_flag_CXX=' -expect_unresolved \*'
11147         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11148         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11149           echo "-hidden">> $lib.exp~
11150           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11151           $rm $lib.exp'
11152
11153         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11154         hardcode_libdir_separator_CXX=:
11155
11156         # Commands to make compiler produce verbose output that lists
11157         # what "hidden" libraries, object files and flags are used when
11158         # linking a shared library.
11159         #
11160         # There doesn't appear to be a way to prevent this compiler from
11161         # explicitly linking system object files so we need to strip them
11162         # from the output so that they don't get included in the library
11163         # dependencies.
11164         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'
11165         ;;
11166       *)
11167         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11168           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11169          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11170
11171           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11172           hardcode_libdir_separator_CXX=:
11173
11174           # Commands to make compiler produce verbose output that lists
11175           # what "hidden" libraries, object files and flags are used when
11176           # linking a shared library.
11177           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11178
11179         else
11180           # FIXME: insert proper C++ library support
11181           ld_shlibs_CXX=no
11182         fi
11183         ;;
11184     esac
11185     ;;
11186   psos*)
11187     # FIXME: insert proper C++ library support
11188     ld_shlibs_CXX=no
11189     ;;
11190   sunos4*)
11191     case $cc_basename in
11192       CC*)
11193         # Sun C++ 4.x
11194         # FIXME: insert proper C++ library support
11195         ld_shlibs_CXX=no
11196         ;;
11197       lcc*)
11198         # Lucid
11199         # FIXME: insert proper C++ library support
11200         ld_shlibs_CXX=no
11201         ;;
11202       *)
11203         # FIXME: insert proper C++ library support
11204         ld_shlibs_CXX=no
11205         ;;
11206     esac
11207     ;;
11208   solaris*)
11209     case $cc_basename in
11210       CC*)
11211         # Sun C++ 4.2, 5.x and Centerline C++
11212         archive_cmds_need_lc_CXX=yes
11213         no_undefined_flag_CXX=' -zdefs'
11214         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11215         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11216         $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11217
11218         hardcode_libdir_flag_spec_CXX='-R$libdir'
11219         hardcode_shlibpath_var_CXX=no
11220         case $host_os in
11221           solaris2.[0-5] | solaris2.[0-5].*) ;;
11222           *)
11223             # The C++ compiler is used as linker so we must use $wl
11224             # flag to pass the commands to the underlying system
11225             # linker. We must also pass each convience library through
11226             # to the system linker between allextract/defaultextract.
11227             # The C++ compiler will combine linker options so we
11228             # cannot just pass the convience library names through
11229             # without $wl.
11230             # Supported since Solaris 2.6 (maybe 2.5.1?)
11231             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11232             ;;
11233         esac
11234         link_all_deplibs_CXX=yes
11235
11236         output_verbose_link_cmd='echo'
11237
11238         # Archives containing C++ object files must be created using
11239         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11240         # necessary to make sure instantiated templates are included
11241         # in the archive.
11242         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11243         ;;
11244       gcx*)
11245         # Green Hills C++ Compiler
11246         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11247
11248         # The C++ compiler must be used to create the archive.
11249         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11250         ;;
11251       *)
11252         # GNU C++ compiler with Solaris linker
11253         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11254           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11255           if $CC --version | grep -v '^2\.7' > /dev/null; then
11256             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11257             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11258                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11259
11260             # Commands to make compiler produce verbose output that lists
11261             # what "hidden" libraries, object files and flags are used when
11262             # linking a shared library.
11263             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11264           else
11265             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11266             # platform.
11267             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11268             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11269                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11270
11271             # Commands to make compiler produce verbose output that lists
11272             # what "hidden" libraries, object files and flags are used when
11273             # linking a shared library.
11274             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11275           fi
11276
11277           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11278         fi
11279         ;;
11280     esac
11281     ;;
11282   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11283     no_undefined_flag_CXX='${wl}-z,text'
11284     archive_cmds_need_lc_CXX=no
11285     hardcode_shlibpath_var_CXX=no
11286     runpath_var='LD_RUN_PATH'
11287
11288     case $cc_basename in
11289       CC*)
11290         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11291         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11292         ;;
11293       *)
11294         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11295         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11296         ;;
11297     esac
11298     ;;
11299   sysv5* | sco3.2v5* | sco5v6*)
11300     # Note: We can NOT use -z defs as we might desire, because we do not
11301     # link with -lc, and that would cause any symbols used from libc to
11302     # always be unresolved, which means just about no library would
11303     # ever link correctly.  If we're not using GNU ld we use -z text
11304     # though, which does catch some bad symbols but isn't as heavy-handed
11305     # as -z defs.
11306     # For security reasons, it is highly recommended that you always
11307     # use absolute paths for naming shared libraries, and exclude the
11308     # DT_RUNPATH tag from executables and libraries.  But doing so
11309     # requires that you compile everything twice, which is a pain.
11310     # So that behaviour is only enabled if SCOABSPATH is set to a
11311     # non-empty value in the environment.  Most likely only useful for
11312     # creating official distributions of packages.
11313     # This is a hack until libtool officially supports absolute path
11314     # names for shared libraries.
11315     no_undefined_flag_CXX='${wl}-z,text'
11316     allow_undefined_flag_CXX='${wl}-z,nodefs'
11317     archive_cmds_need_lc_CXX=no
11318     hardcode_shlibpath_var_CXX=no
11319     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11320     hardcode_libdir_separator_CXX=':'
11321     link_all_deplibs_CXX=yes
11322     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11323     runpath_var='LD_RUN_PATH'
11324
11325     case $cc_basename in
11326       CC*)
11327         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11328         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11329         ;;
11330       *)
11331         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11332         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11333         ;;
11334     esac
11335     ;;
11336   tandem*)
11337     case $cc_basename in
11338       NCC*)
11339         # NonStop-UX NCC 3.20
11340         # FIXME: insert proper C++ library support
11341         ld_shlibs_CXX=no
11342         ;;
11343       *)
11344         # FIXME: insert proper C++ library support
11345         ld_shlibs_CXX=no
11346         ;;
11347     esac
11348     ;;
11349   vxworks*)
11350     # FIXME: insert proper C++ library support
11351     ld_shlibs_CXX=no
11352     ;;
11353   *)
11354     # FIXME: insert proper C++ library support
11355     ld_shlibs_CXX=no
11356     ;;
11357 esac
11358 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11359 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11360 test "$ld_shlibs_CXX" = no && can_build_shared=no
11361
11362 GCC_CXX="$GXX"
11363 LD_CXX="$LD"
11364
11365
11366 cat > conftest.$ac_ext <<EOF
11367 class Foo
11368 {
11369 public:
11370   Foo (void) { a = 0; }
11371 private:
11372   int a;
11373 };
11374 EOF
11375
11376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11377   (eval $ac_compile) 2>&5
11378   ac_status=$?
11379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380   (exit $ac_status); }; then
11381   # Parse the compiler output and extract the necessary
11382   # objects, libraries and library flags.
11383
11384   # Sentinel used to keep track of whether or not we are before
11385   # the conftest object file.
11386   pre_test_object_deps_done=no
11387
11388   # The `*' in the case matches for architectures that use `case' in
11389   # $output_verbose_cmd can trigger glob expansion during the loop
11390   # eval without this substitution.
11391   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11392
11393   for p in `eval $output_verbose_link_cmd`; do
11394     case $p in
11395
11396     -L* | -R* | -l*)
11397        # Some compilers place space between "-{L,R}" and the path.
11398        # Remove the space.
11399        if test $p = "-L" \
11400           || test $p = "-R"; then
11401          prev=$p
11402          continue
11403        else
11404          prev=
11405        fi
11406
11407        if test "$pre_test_object_deps_done" = no; then
11408          case $p in
11409          -L* | -R*)
11410            # Internal compiler library paths should come after those
11411            # provided the user.  The postdeps already come after the
11412            # user supplied libs so there is no need to process them.
11413            if test -z "$compiler_lib_search_path_CXX"; then
11414              compiler_lib_search_path_CXX="${prev}${p}"
11415            else
11416              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11417            fi
11418            ;;
11419          # The "-l" case would never come before the object being
11420          # linked, so don't bother handling this case.
11421          esac
11422        else
11423          if test -z "$postdeps_CXX"; then
11424            postdeps_CXX="${prev}${p}"
11425          else
11426            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11427          fi
11428        fi
11429        ;;
11430
11431     *.$objext)
11432        # This assumes that the test object file only shows up
11433        # once in the compiler output.
11434        if test "$p" = "conftest.$objext"; then
11435          pre_test_object_deps_done=yes
11436          continue
11437        fi
11438
11439        if test "$pre_test_object_deps_done" = no; then
11440          if test -z "$predep_objects_CXX"; then
11441            predep_objects_CXX="$p"
11442          else
11443            predep_objects_CXX="$predep_objects_CXX $p"
11444          fi
11445        else
11446          if test -z "$postdep_objects_CXX"; then
11447            postdep_objects_CXX="$p"
11448          else
11449            postdep_objects_CXX="$postdep_objects_CXX $p"
11450          fi
11451        fi
11452        ;;
11453
11454     *) ;; # Ignore the rest.
11455
11456     esac
11457   done
11458
11459   # Clean up.
11460   rm -f a.out a.exe
11461 else
11462   echo "libtool.m4: error: problem compiling CXX test program"
11463 fi
11464
11465 $rm -f confest.$objext
11466
11467 # PORTME: override above test on systems where it is broken
11468 case $host_os in
11469 interix3*)
11470   # Interix 3.5 installs completely hosed .la files for C++, so rather than
11471   # hack all around it, let's just trust "g++" to DTRT.
11472   predep_objects_CXX=
11473   postdep_objects_CXX=
11474   postdeps_CXX=
11475   ;;
11476
11477 solaris*)
11478   case $cc_basename in
11479   CC*)
11480     # Adding this requires a known-good setup of shared libraries for
11481     # Sun compiler versions before 5.6, else PIC objects from an old
11482     # archive will be linked into the output, leading to subtle bugs.
11483     postdeps_CXX='-lCstd -lCrun'
11484     ;;
11485   esac
11486   ;;
11487 esac
11488
11489
11490 case " $postdeps_CXX " in
11491 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11492 esac
11493
11494 lt_prog_compiler_wl_CXX=
11495 lt_prog_compiler_pic_CXX=
11496 lt_prog_compiler_static_CXX=
11497
11498 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11499 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11500
11501   # C++ specific cases for pic, static, wl, etc.
11502   if test "$GXX" = yes; then
11503     lt_prog_compiler_wl_CXX='-Wl,'
11504     lt_prog_compiler_static_CXX='-static'
11505
11506     case $host_os in
11507     aix*)
11508       # All AIX code is PIC.
11509       if test "$host_cpu" = ia64; then
11510         # AIX 5 now supports IA64 processor
11511         lt_prog_compiler_static_CXX='-Bstatic'
11512       fi
11513       ;;
11514     amigaos*)
11515       # FIXME: we need at least 68020 code to build shared libraries, but
11516       # adding the `-m68020' flag to GCC prevents building anything better,
11517       # like `-m68040'.
11518       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11519       ;;
11520     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11521       # PIC is the default for these OSes.
11522       ;;
11523     mingw* | os2* | pw32*)
11524       # This hack is so that the source file can tell whether it is being
11525       # built for inclusion in a dll (and should export symbols for example).
11526       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11527       ;;
11528     darwin* | rhapsody*)
11529       # PIC is the default on this platform
11530       # Common symbols not allowed in MH_DYLIB files
11531       lt_prog_compiler_pic_CXX='-fno-common'
11532       ;;
11533     *djgpp*)
11534       # DJGPP does not support shared libraries at all
11535       lt_prog_compiler_pic_CXX=
11536       ;;
11537     interix3*)
11538       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11539       # Instead, we relocate shared libraries at runtime.
11540       ;;
11541     sysv4*MP*)
11542       if test -d /usr/nec; then
11543         lt_prog_compiler_pic_CXX=-Kconform_pic
11544       fi
11545       ;;
11546     hpux*)
11547       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11548       # not for PA HP-UX.
11549       case $host_cpu in
11550       hppa*64*|ia64*)
11551         ;;
11552       *)
11553         lt_prog_compiler_pic_CXX='-fPIC'
11554         ;;
11555       esac
11556       ;;
11557     *)
11558       lt_prog_compiler_pic_CXX='-fPIC'
11559       ;;
11560     esac
11561   else
11562     case $host_os in
11563       aix4* | aix5*)
11564         # All AIX code is PIC.
11565         if test "$host_cpu" = ia64; then
11566           # AIX 5 now supports IA64 processor
11567           lt_prog_compiler_static_CXX='-Bstatic'
11568         else
11569           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11570         fi
11571         ;;
11572       chorus*)
11573         case $cc_basename in
11574         cxch68*)
11575           # Green Hills C++ Compiler
11576           # _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"
11577           ;;
11578         esac
11579         ;;
11580        darwin*)
11581          # PIC is the default on this platform
11582          # Common symbols not allowed in MH_DYLIB files
11583          case $cc_basename in
11584            xlc*)
11585            lt_prog_compiler_pic_CXX='-qnocommon'
11586            lt_prog_compiler_wl_CXX='-Wl,'
11587            ;;
11588          esac
11589        ;;
11590       dgux*)
11591         case $cc_basename in
11592           ec++*)
11593             lt_prog_compiler_pic_CXX='-KPIC'
11594             ;;
11595           ghcx*)
11596             # Green Hills C++ Compiler
11597             lt_prog_compiler_pic_CXX='-pic'
11598             ;;
11599           *)
11600             ;;
11601         esac
11602         ;;
11603       freebsd* | kfreebsd*-gnu | dragonfly*)
11604         # FreeBSD uses GNU C++
11605         ;;
11606       hpux9* | hpux10* | hpux11*)
11607         case $cc_basename in
11608           CC*)
11609             lt_prog_compiler_wl_CXX='-Wl,'
11610             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11611             if test "$host_cpu" != ia64; then
11612               lt_prog_compiler_pic_CXX='+Z'
11613             fi
11614             ;;
11615           aCC*)
11616             lt_prog_compiler_wl_CXX='-Wl,'
11617             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11618             case $host_cpu in
11619             hppa*64*|ia64*)
11620               # +Z the default
11621               ;;
11622             *)
11623               lt_prog_compiler_pic_CXX='+Z'
11624               ;;
11625             esac
11626             ;;
11627           *)
11628             ;;
11629         esac
11630         ;;
11631       interix*)
11632         # This is c89, which is MS Visual C++ (no shared libs)
11633         # Anyone wants to do a port?
11634         ;;
11635       irix5* | irix6* | nonstopux*)
11636         case $cc_basename in
11637           CC*)
11638             lt_prog_compiler_wl_CXX='-Wl,'
11639             lt_prog_compiler_static_CXX='-non_shared'
11640             # CC pic flag -KPIC is the default.
11641             ;;
11642           *)
11643             ;;
11644         esac
11645         ;;
11646       linux*)
11647         case $cc_basename in
11648           KCC*)
11649             # KAI C++ Compiler
11650             lt_prog_compiler_wl_CXX='--backend -Wl,'
11651             lt_prog_compiler_pic_CXX='-fPIC'
11652             ;;
11653           icpc* | ecpc*)
11654             # Intel C++
11655             lt_prog_compiler_wl_CXX='-Wl,'
11656             lt_prog_compiler_pic_CXX='-KPIC'
11657             lt_prog_compiler_static_CXX='-static'
11658             ;;
11659           pgCC*)
11660             # Portland Group C++ compiler.
11661             lt_prog_compiler_wl_CXX='-Wl,'
11662             lt_prog_compiler_pic_CXX='-fpic'
11663             lt_prog_compiler_static_CXX='-Bstatic'
11664             ;;
11665           cxx*)
11666             # Compaq C++
11667             # Make sure the PIC flag is empty.  It appears that all Alpha
11668             # Linux and Compaq Tru64 Unix objects are PIC.
11669             lt_prog_compiler_pic_CXX=
11670             lt_prog_compiler_static_CXX='-non_shared'
11671             ;;
11672           *)
11673             ;;
11674         esac
11675         ;;
11676       lynxos*)
11677         ;;
11678       m88k*)
11679         ;;
11680       mvs*)
11681         case $cc_basename in
11682           cxx*)
11683             lt_prog_compiler_pic_CXX='-W c,exportall'
11684             ;;
11685           *)
11686             ;;
11687         esac
11688         ;;
11689       netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11690         ;;
11691       osf3* | osf4* | osf5*)
11692         case $cc_basename in
11693           KCC*)
11694             lt_prog_compiler_wl_CXX='--backend -Wl,'
11695             ;;
11696           RCC*)
11697             # Rational C++ 2.4.1
11698             lt_prog_compiler_pic_CXX='-pic'
11699             ;;
11700           cxx*)
11701             # Digital/Compaq C++
11702             lt_prog_compiler_wl_CXX='-Wl,'
11703             # Make sure the PIC flag is empty.  It appears that all Alpha
11704             # Linux and Compaq Tru64 Unix objects are PIC.
11705             lt_prog_compiler_pic_CXX=
11706             lt_prog_compiler_static_CXX='-non_shared'
11707             ;;
11708           *)
11709             ;;
11710         esac
11711         ;;
11712       psos*)
11713         ;;
11714       solaris*)
11715         case $cc_basename in
11716           CC*)
11717             # Sun C++ 4.2, 5.x and Centerline C++
11718             lt_prog_compiler_pic_CXX='-KPIC'
11719             lt_prog_compiler_static_CXX='-Bstatic'
11720             lt_prog_compiler_wl_CXX='-Qoption ld '
11721             ;;
11722           gcx*)
11723             # Green Hills C++ Compiler
11724             lt_prog_compiler_pic_CXX='-PIC'
11725             ;;
11726           *)
11727             ;;
11728         esac
11729         ;;
11730       sunos4*)
11731         case $cc_basename in
11732           CC*)
11733             # Sun C++ 4.x
11734             lt_prog_compiler_pic_CXX='-pic'
11735             lt_prog_compiler_static_CXX='-Bstatic'
11736             ;;
11737           lcc*)
11738             # Lucid
11739             lt_prog_compiler_pic_CXX='-pic'
11740             ;;
11741           *)
11742             ;;
11743         esac
11744         ;;
11745       tandem*)
11746         case $cc_basename in
11747           NCC*)
11748             # NonStop-UX NCC 3.20
11749             lt_prog_compiler_pic_CXX='-KPIC'
11750             ;;
11751           *)
11752             ;;
11753         esac
11754         ;;
11755       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11756         case $cc_basename in
11757           CC*)
11758             lt_prog_compiler_wl_CXX='-Wl,'
11759             lt_prog_compiler_pic_CXX='-KPIC'
11760             lt_prog_compiler_static_CXX='-Bstatic'
11761             ;;
11762         esac
11763         ;;
11764       vxworks*)
11765         ;;
11766       *)
11767         lt_prog_compiler_can_build_shared_CXX=no
11768         ;;
11769     esac
11770   fi
11771
11772 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11773 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11774
11775 #
11776 # Check to make sure the PIC flag actually works.
11777 #
11778 if test -n "$lt_prog_compiler_pic_CXX"; then
11779
11780 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11781 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11782 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11783   echo $ECHO_N "(cached) $ECHO_C" >&6
11784 else
11785   lt_prog_compiler_pic_works_CXX=no
11786   ac_outfile=conftest.$ac_objext
11787    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11788    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11789    # Insert the option either (1) after the last *FLAGS variable, or
11790    # (2) before a word containing "conftest.", or (3) at the end.
11791    # Note that $ac_compile itself does not contain backslashes and begins
11792    # with a dollar sign (not a hyphen), so the echo should work correctly.
11793    # The option is referenced via a variable to avoid confusing sed.
11794    lt_compile=`echo "$ac_compile" | $SED \
11795    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11796    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11797    -e 's:$: $lt_compiler_flag:'`
11798    (eval echo "\"\$as_me:11798: $lt_compile\"" >&5)
11799    (eval "$lt_compile" 2>conftest.err)
11800    ac_status=$?
11801    cat conftest.err >&5
11802    echo "$as_me:11802: \$? = $ac_status" >&5
11803    if (exit $ac_status) && test -s "$ac_outfile"; then
11804      # The compiler can only warn and ignore the option if not recognized
11805      # So say no if there are warnings other than the usual output.
11806      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11807      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11808      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11809        lt_prog_compiler_pic_works_CXX=yes
11810      fi
11811    fi
11812    $rm conftest*
11813
11814 fi
11815 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11816 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11817
11818 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11819     case $lt_prog_compiler_pic_CXX in
11820      "" | " "*) ;;
11821      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11822      esac
11823 else
11824     lt_prog_compiler_pic_CXX=
11825      lt_prog_compiler_can_build_shared_CXX=no
11826 fi
11827
11828 fi
11829 case $host_os in
11830   # For platforms which do not support PIC, -DPIC is meaningless:
11831   *djgpp*)
11832     lt_prog_compiler_pic_CXX=
11833     ;;
11834   *)
11835     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11836     ;;
11837 esac
11838
11839 #
11840 # Check to make sure the static flag actually works.
11841 #
11842 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11843 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11844 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11845 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11846   echo $ECHO_N "(cached) $ECHO_C" >&6
11847 else
11848   lt_prog_compiler_static_works_CXX=no
11849    save_LDFLAGS="$LDFLAGS"
11850    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11851    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11852    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11853      # The linker can only warn and ignore the option if not recognized
11854      # So say no if there are warnings
11855      if test -s conftest.err; then
11856        # Append any errors to the config.log.
11857        cat conftest.err 1>&5
11858        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11859        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11860        if diff conftest.exp conftest.er2 >/dev/null; then
11861          lt_prog_compiler_static_works_CXX=yes
11862        fi
11863      else
11864        lt_prog_compiler_static_works_CXX=yes
11865      fi
11866    fi
11867    $rm conftest*
11868    LDFLAGS="$save_LDFLAGS"
11869
11870 fi
11871 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11872 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11873
11874 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11875     :
11876 else
11877     lt_prog_compiler_static_CXX=
11878 fi
11879
11880
11881 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11882 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11883 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11884   echo $ECHO_N "(cached) $ECHO_C" >&6
11885 else
11886   lt_cv_prog_compiler_c_o_CXX=no
11887    $rm -r conftest 2>/dev/null
11888    mkdir conftest
11889    cd conftest
11890    mkdir out
11891    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11892
11893    lt_compiler_flag="-o out/conftest2.$ac_objext"
11894    # Insert the option either (1) after the last *FLAGS variable, or
11895    # (2) before a word containing "conftest.", or (3) at the end.
11896    # Note that $ac_compile itself does not contain backslashes and begins
11897    # with a dollar sign (not a hyphen), so the echo should work correctly.
11898    lt_compile=`echo "$ac_compile" | $SED \
11899    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11900    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11901    -e 's:$: $lt_compiler_flag:'`
11902    (eval echo "\"\$as_me:11902: $lt_compile\"" >&5)
11903    (eval "$lt_compile" 2>out/conftest.err)
11904    ac_status=$?
11905    cat out/conftest.err >&5
11906    echo "$as_me:11906: \$? = $ac_status" >&5
11907    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11908    then
11909      # The compiler can only warn and ignore the option if not recognized
11910      # So say no if there are warnings
11911      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11912      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11913      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11914        lt_cv_prog_compiler_c_o_CXX=yes
11915      fi
11916    fi
11917    chmod u+w . 2>&5
11918    $rm conftest*
11919    # SGI C++ compiler will create directory out/ii_files/ for
11920    # template instantiation
11921    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11922    $rm out/* && rmdir out
11923    cd ..
11924    rmdir conftest
11925    $rm conftest*
11926
11927 fi
11928 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11929 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11930
11931
11932 hard_links="nottested"
11933 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11934   # do not overwrite the value of need_locks provided by the user
11935   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11936 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11937   hard_links=yes
11938   $rm conftest*
11939   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11940   touch conftest.a
11941   ln conftest.a conftest.b 2>&5 || hard_links=no
11942   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11943   echo "$as_me:$LINENO: result: $hard_links" >&5
11944 echo "${ECHO_T}$hard_links" >&6
11945   if test "$hard_links" = no; then
11946     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11947 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11948     need_locks=warn
11949   fi
11950 else
11951   need_locks=no
11952 fi
11953
11954 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11955 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11956
11957   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11958   case $host_os in
11959   aix4* | aix5*)
11960     # If we're using GNU nm, then we don't want the "-C" option.
11961     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11962     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11963       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'
11964     else
11965       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'
11966     fi
11967     ;;
11968   pw32*)
11969     export_symbols_cmds_CXX="$ltdll_cmds"
11970   ;;
11971   cygwin* | mingw*)
11972     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11973   ;;
11974   kfreebsd*-gnu)
11975     link_all_deplibs_CXX=no
11976   ;;
11977   linux*)
11978     link_all_deplibs_CXX=no
11979   ;;
11980   *)
11981     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11982   ;;
11983   esac
11984
11985 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11986 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11987 test "$ld_shlibs_CXX" = no && can_build_shared=no
11988
11989 #
11990 # Do we need to explicitly link libc?
11991 #
11992 case "x$archive_cmds_need_lc_CXX" in
11993 x|xyes)
11994   # Assume -lc should be added
11995   archive_cmds_need_lc_CXX=yes
11996
11997   if test "$enable_shared" = yes && test "$GCC" = yes; then
11998     case $archive_cmds_CXX in
11999     *'~'*)
12000       # FIXME: we may have to deal with multi-command sequences.
12001       ;;
12002     '$CC '*)
12003       # Test whether the compiler implicitly links with -lc since on some
12004       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12005       # to ld, don't add -lc before -lgcc.
12006       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12007 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12008       $rm conftest*
12009       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12010
12011       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12012   (eval $ac_compile) 2>&5
12013   ac_status=$?
12014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015   (exit $ac_status); } 2>conftest.err; then
12016         soname=conftest
12017         lib=conftest
12018         libobjs=conftest.$ac_objext
12019         deplibs=
12020         wl=$lt_prog_compiler_wl_CXX
12021         pic_flag=$lt_prog_compiler_pic_CXX
12022         compiler_flags=-v
12023         linker_flags=-v
12024         verstring=
12025         output_objdir=.
12026         libname=conftest
12027         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12028         allow_undefined_flag_CXX=
12029         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12030   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12031   ac_status=$?
12032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033   (exit $ac_status); }
12034         then
12035           archive_cmds_need_lc_CXX=no
12036         else
12037           archive_cmds_need_lc_CXX=yes
12038         fi
12039         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12040       else
12041         cat conftest.err 1>&5
12042       fi
12043       $rm conftest*
12044       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12045 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12046       ;;
12047     esac
12048   fi
12049   ;;
12050 esac
12051
12052 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12053 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12054 library_names_spec=
12055 libname_spec='lib$name'
12056 soname_spec=
12057 shrext_cmds=".so"
12058 postinstall_cmds=
12059 postuninstall_cmds=
12060 finish_cmds=
12061 finish_eval=
12062 shlibpath_var=
12063 shlibpath_overrides_runpath=unknown
12064 version_type=none
12065 dynamic_linker="$host_os ld.so"
12066 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12067 if test "$GCC" = yes; then
12068   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12069   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12070     # if the path contains ";" then we assume it to be the separator
12071     # otherwise default to the standard path separator (i.e. ":") - it is
12072     # assumed that no part of a normal pathname contains ";" but that should
12073     # okay in the real world where ";" in dirpaths is itself problematic.
12074     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12075   else
12076     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12077   fi
12078 else
12079   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12080 fi
12081 need_lib_prefix=unknown
12082 hardcode_into_libs=no
12083
12084 # when you set need_version to no, make sure it does not cause -set_version
12085 # flags to be left without arguments
12086 need_version=unknown
12087
12088 case $host_os in
12089 aix3*)
12090   version_type=linux
12091   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12092   shlibpath_var=LIBPATH
12093
12094   # AIX 3 has no versioning support, so we append a major version to the name.
12095   soname_spec='${libname}${release}${shared_ext}$major'
12096   ;;
12097
12098 aix4* | aix5*)
12099   version_type=linux
12100   need_lib_prefix=no
12101   need_version=no
12102   hardcode_into_libs=yes
12103   if test "$host_cpu" = ia64; then
12104     # AIX 5 supports IA64
12105     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12106     shlibpath_var=LD_LIBRARY_PATH
12107   else
12108     # With GCC up to 2.95.x, collect2 would create an import file
12109     # for dependence libraries.  The import file would start with
12110     # the line `#! .'.  This would cause the generated library to
12111     # depend on `.', always an invalid library.  This was fixed in
12112     # development snapshots of GCC prior to 3.0.
12113     case $host_os in
12114       aix4 | aix4.[01] | aix4.[01].*)
12115       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12116            echo ' yes '
12117            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12118         :
12119       else
12120         can_build_shared=no
12121       fi
12122       ;;
12123     esac
12124     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12125     # soname into executable. Probably we can add versioning support to
12126     # collect2, so additional links can be useful in future.
12127     if test "$aix_use_runtimelinking" = yes; then
12128       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12129       # instead of lib<name>.a to let people know that these are not
12130       # typical AIX shared libraries.
12131       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12132     else
12133       # We preserve .a as extension for shared libraries through AIX4.2
12134       # and later when we are not doing run time linking.
12135       library_names_spec='${libname}${release}.a $libname.a'
12136       soname_spec='${libname}${release}${shared_ext}$major'
12137     fi
12138     shlibpath_var=LIBPATH
12139   fi
12140   ;;
12141
12142 amigaos*)
12143   library_names_spec='$libname.ixlibrary $libname.a'
12144   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12145   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'
12146   ;;
12147
12148 beos*)
12149   library_names_spec='${libname}${shared_ext}'
12150   dynamic_linker="$host_os ld.so"
12151   shlibpath_var=LIBRARY_PATH
12152   ;;
12153
12154 bsdi[45]*)
12155   version_type=linux
12156   need_version=no
12157   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12158   soname_spec='${libname}${release}${shared_ext}$major'
12159   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12160   shlibpath_var=LD_LIBRARY_PATH
12161   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12162   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12163   # the default ld.so.conf also contains /usr/contrib/lib and
12164   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12165   # libtool to hard-code these into programs
12166   ;;
12167
12168 cygwin* | mingw* | pw32*)
12169   version_type=windows
12170   shrext_cmds=".dll"
12171   need_version=no
12172   need_lib_prefix=no
12173
12174   case $GCC,$host_os in
12175   yes,cygwin* | yes,mingw* | yes,pw32*)
12176     library_names_spec='$libname.dll.a'
12177     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12178     postinstall_cmds='base_file=`basename \${file}`~
12179       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12180       dldir=$destdir/`dirname \$dlpath`~
12181       test -d \$dldir || mkdir -p \$dldir~
12182       $install_prog $dir/$dlname \$dldir/$dlname~
12183       chmod a+x \$dldir/$dlname'
12184     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12185       dlpath=$dir/\$dldll~
12186        $rm \$dlpath'
12187     shlibpath_overrides_runpath=yes
12188
12189     case $host_os in
12190     cygwin*)
12191       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12192       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12193       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12194       ;;
12195     mingw*)
12196       # MinGW DLLs use traditional 'lib' prefix
12197       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12198       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12199       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12200         # It is most probably a Windows format PATH printed by
12201         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12202         # path with ; separators, and with drive letters. We can handle the
12203         # drive letters (cygwin fileutils understands them), so leave them,
12204         # especially as we might pass files found there to a mingw objdump,
12205         # which wouldn't understand a cygwinified path. Ahh.
12206         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12207       else
12208         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12209       fi
12210       ;;
12211     pw32*)
12212       # pw32 DLLs use 'pw' prefix rather than 'lib'
12213       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12214       ;;
12215     esac
12216     ;;
12217
12218   *)
12219     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12220     ;;
12221   esac
12222   dynamic_linker='Win32 ld.exe'
12223   # FIXME: first we should search . and the directory the executable is in
12224   shlibpath_var=PATH
12225   ;;
12226
12227 darwin* | rhapsody*)
12228   dynamic_linker="$host_os dyld"
12229   version_type=darwin
12230   need_lib_prefix=no
12231   need_version=no
12232   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12233   soname_spec='${libname}${release}${major}$shared_ext'
12234   shlibpath_overrides_runpath=yes
12235   shlibpath_var=DYLD_LIBRARY_PATH
12236   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12237   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12238   if test "$GCC" = yes; then
12239     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"`
12240   else
12241     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12242   fi
12243   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12244   ;;
12245
12246 dgux*)
12247   version_type=linux
12248   need_lib_prefix=no
12249   need_version=no
12250   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12251   soname_spec='${libname}${release}${shared_ext}$major'
12252   shlibpath_var=LD_LIBRARY_PATH
12253   ;;
12254
12255 freebsd1*)
12256   dynamic_linker=no
12257   ;;
12258
12259 kfreebsd*-gnu)
12260   version_type=linux
12261   need_lib_prefix=no
12262   need_version=no
12263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12264   soname_spec='${libname}${release}${shared_ext}$major'
12265   shlibpath_var=LD_LIBRARY_PATH
12266   shlibpath_overrides_runpath=no
12267   hardcode_into_libs=yes
12268   dynamic_linker='GNU ld.so'
12269   ;;
12270
12271 freebsd* | dragonfly*)
12272   # DragonFly does not have aout.  When/if they implement a new
12273   # versioning mechanism, adjust this.
12274   if test -x /usr/bin/objformat; then
12275     objformat=`/usr/bin/objformat`
12276   else
12277     case $host_os in
12278     freebsd[123]*) objformat=aout ;;
12279     *) objformat=elf ;;
12280     esac
12281   fi
12282   version_type=freebsd-$objformat
12283   case $version_type in
12284     freebsd-elf*)
12285       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12286       need_version=no
12287       need_lib_prefix=no
12288       ;;
12289     freebsd-*)
12290       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12291       need_version=yes
12292       ;;
12293   esac
12294   shlibpath_var=LD_LIBRARY_PATH
12295   case $host_os in
12296   freebsd2*)
12297     shlibpath_overrides_runpath=yes
12298     ;;
12299   freebsd3.[01]* | freebsdelf3.[01]*)
12300     shlibpath_overrides_runpath=yes
12301     hardcode_into_libs=yes
12302     ;;
12303   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12304   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12305     shlibpath_overrides_runpath=no
12306     hardcode_into_libs=yes
12307     ;;
12308   freebsd*) # from 4.6 on
12309     shlibpath_overrides_runpath=yes
12310     hardcode_into_libs=yes
12311     ;;
12312   esac
12313   ;;
12314
12315 gnu*)
12316   version_type=linux
12317   need_lib_prefix=no
12318   need_version=no
12319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12320   soname_spec='${libname}${release}${shared_ext}$major'
12321   shlibpath_var=LD_LIBRARY_PATH
12322   hardcode_into_libs=yes
12323   ;;
12324
12325 hpux9* | hpux10* | hpux11*)
12326   # Give a soname corresponding to the major version so that dld.sl refuses to
12327   # link against other versions.
12328   version_type=sunos
12329   need_lib_prefix=no
12330   need_version=no
12331   case $host_cpu in
12332   ia64*)
12333     shrext_cmds='.so'
12334     hardcode_into_libs=yes
12335     dynamic_linker="$host_os dld.so"
12336     shlibpath_var=LD_LIBRARY_PATH
12337     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12338     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12339     soname_spec='${libname}${release}${shared_ext}$major'
12340     if test "X$HPUX_IA64_MODE" = X32; then
12341       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12342     else
12343       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12344     fi
12345     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12346     ;;
12347    hppa*64*)
12348      shrext_cmds='.sl'
12349      hardcode_into_libs=yes
12350      dynamic_linker="$host_os dld.sl"
12351      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12352      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12353      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12354      soname_spec='${libname}${release}${shared_ext}$major'
12355      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12356      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12357      ;;
12358    *)
12359     shrext_cmds='.sl'
12360     dynamic_linker="$host_os dld.sl"
12361     shlibpath_var=SHLIB_PATH
12362     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12363     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12364     soname_spec='${libname}${release}${shared_ext}$major'
12365     ;;
12366   esac
12367   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12368   postinstall_cmds='chmod 555 $lib'
12369   ;;
12370
12371 interix3*)
12372   version_type=linux
12373   need_lib_prefix=no
12374   need_version=no
12375   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12376   soname_spec='${libname}${release}${shared_ext}$major'
12377   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12378   shlibpath_var=LD_LIBRARY_PATH
12379   shlibpath_overrides_runpath=no
12380   hardcode_into_libs=yes
12381   ;;
12382
12383 irix5* | irix6* | nonstopux*)
12384   case $host_os in
12385     nonstopux*) version_type=nonstopux ;;
12386     *)
12387         if test "$lt_cv_prog_gnu_ld" = yes; then
12388                 version_type=linux
12389         else
12390                 version_type=irix
12391         fi ;;
12392   esac
12393   need_lib_prefix=no
12394   need_version=no
12395   soname_spec='${libname}${release}${shared_ext}$major'
12396   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12397   case $host_os in
12398   irix5* | nonstopux*)
12399     libsuff= shlibsuff=
12400     ;;
12401   *)
12402     case $LD in # libtool.m4 will add one of these switches to LD
12403     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12404       libsuff= shlibsuff= libmagic=32-bit;;
12405     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12406       libsuff=32 shlibsuff=N32 libmagic=N32;;
12407     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12408       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12409     *) libsuff= shlibsuff= libmagic=never-match;;
12410     esac
12411     ;;
12412   esac
12413   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12414   shlibpath_overrides_runpath=no
12415   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12416   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12417   hardcode_into_libs=yes
12418   ;;
12419
12420 # No shared lib support for Linux oldld, aout, or coff.
12421 linux*oldld* | linux*aout* | linux*coff*)
12422   dynamic_linker=no
12423   ;;
12424
12425 # This must be Linux ELF.
12426 linux*)
12427   version_type=linux
12428   need_lib_prefix=no
12429   need_version=no
12430   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12431   soname_spec='${libname}${release}${shared_ext}$major'
12432   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12433   shlibpath_var=LD_LIBRARY_PATH
12434   shlibpath_overrides_runpath=no
12435   # This implies no fast_install, which is unacceptable.
12436   # Some rework will be needed to allow for fast_install
12437   # before this can be enabled.
12438   hardcode_into_libs=yes
12439
12440   # Append ld.so.conf contents to the search path
12441   if test -f /etc/ld.so.conf; then
12442     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12443     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12444   fi
12445
12446   # We used to test for /lib/ld.so.1 and disable shared libraries on
12447   # powerpc, because MkLinux only supported shared libraries with the
12448   # GNU dynamic linker.  Since this was broken with cross compilers,
12449   # most powerpc-linux boxes support dynamic linking these days and
12450   # people can always --disable-shared, the test was removed, and we
12451   # assume the GNU/Linux dynamic linker is in use.
12452   dynamic_linker='GNU/Linux ld.so'
12453   ;;
12454
12455 netbsdelf*-gnu)
12456   version_type=linux
12457   need_lib_prefix=no
12458   need_version=no
12459   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12460   soname_spec='${libname}${release}${shared_ext}$major'
12461   shlibpath_var=LD_LIBRARY_PATH
12462   shlibpath_overrides_runpath=no
12463   hardcode_into_libs=yes
12464   dynamic_linker='NetBSD ld.elf_so'
12465   ;;
12466
12467 knetbsd*-gnu)
12468   version_type=linux
12469   need_lib_prefix=no
12470   need_version=no
12471   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12472   soname_spec='${libname}${release}${shared_ext}$major'
12473   shlibpath_var=LD_LIBRARY_PATH
12474   shlibpath_overrides_runpath=no
12475   hardcode_into_libs=yes
12476   dynamic_linker='GNU ld.so'
12477   ;;
12478
12479 netbsd*)
12480   version_type=sunos
12481   need_lib_prefix=no
12482   need_version=no
12483   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12484     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12485     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12486     dynamic_linker='NetBSD (a.out) ld.so'
12487   else
12488     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12489     soname_spec='${libname}${release}${shared_ext}$major'
12490     dynamic_linker='NetBSD ld.elf_so'
12491   fi
12492   shlibpath_var=LD_LIBRARY_PATH
12493   shlibpath_overrides_runpath=yes
12494   hardcode_into_libs=yes
12495   ;;
12496
12497 newsos6)
12498   version_type=linux
12499   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12500   shlibpath_var=LD_LIBRARY_PATH
12501   shlibpath_overrides_runpath=yes
12502   ;;
12503
12504 nto-qnx*)
12505   version_type=linux
12506   need_lib_prefix=no
12507   need_version=no
12508   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12509   soname_spec='${libname}${release}${shared_ext}$major'
12510   shlibpath_var=LD_LIBRARY_PATH
12511   shlibpath_overrides_runpath=yes
12512   ;;
12513
12514 openbsd*)
12515   version_type=sunos
12516   sys_lib_dlsearch_path_spec="/usr/lib"
12517   need_lib_prefix=no
12518   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12519   case $host_os in
12520     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12521     *)                         need_version=no  ;;
12522   esac
12523   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12524   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12525   shlibpath_var=LD_LIBRARY_PATH
12526   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12527     case $host_os in
12528       openbsd2.[89] | openbsd2.[89].*)
12529         shlibpath_overrides_runpath=no
12530         ;;
12531       *)
12532         shlibpath_overrides_runpath=yes
12533         ;;
12534       esac
12535   else
12536     shlibpath_overrides_runpath=yes
12537   fi
12538   ;;
12539
12540 os2*)
12541   libname_spec='$name'
12542   shrext_cmds=".dll"
12543   need_lib_prefix=no
12544   library_names_spec='$libname${shared_ext} $libname.a'
12545   dynamic_linker='OS/2 ld.exe'
12546   shlibpath_var=LIBPATH
12547   ;;
12548
12549 osf3* | osf4* | osf5*)
12550   version_type=osf
12551   need_lib_prefix=no
12552   need_version=no
12553   soname_spec='${libname}${release}${shared_ext}$major'
12554   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12555   shlibpath_var=LD_LIBRARY_PATH
12556   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12557   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12558   ;;
12559
12560 solaris*)
12561   version_type=linux
12562   need_lib_prefix=no
12563   need_version=no
12564   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12565   soname_spec='${libname}${release}${shared_ext}$major'
12566   shlibpath_var=LD_LIBRARY_PATH
12567   shlibpath_overrides_runpath=yes
12568   hardcode_into_libs=yes
12569   # ldd complains unless libraries are executable
12570   postinstall_cmds='chmod +x $lib'
12571   ;;
12572
12573 sunos4*)
12574   version_type=sunos
12575   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12576   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12577   shlibpath_var=LD_LIBRARY_PATH
12578   shlibpath_overrides_runpath=yes
12579   if test "$with_gnu_ld" = yes; then
12580     need_lib_prefix=no
12581   fi
12582   need_version=yes
12583   ;;
12584
12585 sysv4 | sysv4.3*)
12586   version_type=linux
12587   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12588   soname_spec='${libname}${release}${shared_ext}$major'
12589   shlibpath_var=LD_LIBRARY_PATH
12590   case $host_vendor in
12591     sni)
12592       shlibpath_overrides_runpath=no
12593       need_lib_prefix=no
12594       export_dynamic_flag_spec='${wl}-Blargedynsym'
12595       runpath_var=LD_RUN_PATH
12596       ;;
12597     siemens)
12598       need_lib_prefix=no
12599       ;;
12600     motorola)
12601       need_lib_prefix=no
12602       need_version=no
12603       shlibpath_overrides_runpath=no
12604       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12605       ;;
12606   esac
12607   ;;
12608
12609 sysv4*MP*)
12610   if test -d /usr/nec ;then
12611     version_type=linux
12612     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12613     soname_spec='$libname${shared_ext}.$major'
12614     shlibpath_var=LD_LIBRARY_PATH
12615   fi
12616   ;;
12617
12618 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12619   version_type=freebsd-elf
12620   need_lib_prefix=no
12621   need_version=no
12622   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12623   soname_spec='${libname}${release}${shared_ext}$major'
12624   shlibpath_var=LD_LIBRARY_PATH
12625   hardcode_into_libs=yes
12626   if test "$with_gnu_ld" = yes; then
12627     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12628     shlibpath_overrides_runpath=no
12629   else
12630     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12631     shlibpath_overrides_runpath=yes
12632     case $host_os in
12633       sco3.2v5*)
12634         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12635         ;;
12636     esac
12637   fi
12638   sys_lib_dlsearch_path_spec='/usr/lib'
12639   ;;
12640
12641 uts4*)
12642   version_type=linux
12643   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12644   soname_spec='${libname}${release}${shared_ext}$major'
12645   shlibpath_var=LD_LIBRARY_PATH
12646   ;;
12647
12648 *)
12649   dynamic_linker=no
12650   ;;
12651 esac
12652 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12653 echo "${ECHO_T}$dynamic_linker" >&6
12654 test "$dynamic_linker" = no && can_build_shared=no
12655
12656 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12657 if test "$GCC" = yes; then
12658   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12659 fi
12660
12661 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12662 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12663 hardcode_action_CXX=
12664 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12665    test -n "$runpath_var_CXX" || \
12666    test "X$hardcode_automatic_CXX" = "Xyes" ; then
12667
12668   # We can hardcode non-existant directories.
12669   if test "$hardcode_direct_CXX" != no &&
12670      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12671      # have to relink, otherwise we might link with an installed library
12672      # when we should be linking with a yet-to-be-installed one
12673      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12674      test "$hardcode_minus_L_CXX" != no; then
12675     # Linking always hardcodes the temporary library directory.
12676     hardcode_action_CXX=relink
12677   else
12678     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12679     hardcode_action_CXX=immediate
12680   fi
12681 else
12682   # We cannot hardcode anything, or else we can only hardcode existing
12683   # directories.
12684   hardcode_action_CXX=unsupported
12685 fi
12686 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12687 echo "${ECHO_T}$hardcode_action_CXX" >&6
12688
12689 if test "$hardcode_action_CXX" = relink; then
12690   # Fast installation is not supported
12691   enable_fast_install=no
12692 elif test "$shlibpath_overrides_runpath" = yes ||
12693      test "$enable_shared" = no; then
12694   # Fast installation is not necessary
12695   enable_fast_install=needless
12696 fi
12697
12698
12699 # The else clause should only fire when bootstrapping the
12700 # libtool distribution, otherwise you forgot to ship ltmain.sh
12701 # with your package, and you will get complaints that there are
12702 # no rules to generate ltmain.sh.
12703 if test -f "$ltmain"; then
12704   # See if we are running on zsh, and set the options which allow our commands through
12705   # without removal of \ escapes.
12706   if test -n "${ZSH_VERSION+set}" ; then
12707     setopt NO_GLOB_SUBST
12708   fi
12709   # Now quote all the things that may contain metacharacters while being
12710   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12711   # variables and quote the copies for generation of the libtool script.
12712   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12713     SED SHELL STRIP \
12714     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12715     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12716     deplibs_check_method reload_flag reload_cmds need_locks \
12717     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12718     lt_cv_sys_global_symbol_to_c_name_address \
12719     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12720     old_postinstall_cmds old_postuninstall_cmds \
12721     compiler_CXX \
12722     CC_CXX \
12723     LD_CXX \
12724     lt_prog_compiler_wl_CXX \
12725     lt_prog_compiler_pic_CXX \
12726     lt_prog_compiler_static_CXX \
12727     lt_prog_compiler_no_builtin_flag_CXX \
12728     export_dynamic_flag_spec_CXX \
12729     thread_safe_flag_spec_CXX \
12730     whole_archive_flag_spec_CXX \
12731     enable_shared_with_static_runtimes_CXX \
12732     old_archive_cmds_CXX \
12733     old_archive_from_new_cmds_CXX \
12734     predep_objects_CXX \
12735     postdep_objects_CXX \
12736     predeps_CXX \
12737     postdeps_CXX \
12738     compiler_lib_search_path_CXX \
12739     archive_cmds_CXX \
12740     archive_expsym_cmds_CXX \
12741     postinstall_cmds_CXX \
12742     postuninstall_cmds_CXX \
12743     old_archive_from_expsyms_cmds_CXX \
12744     allow_undefined_flag_CXX \
12745     no_undefined_flag_CXX \
12746     export_symbols_cmds_CXX \
12747     hardcode_libdir_flag_spec_CXX \
12748     hardcode_libdir_flag_spec_ld_CXX \
12749     hardcode_libdir_separator_CXX \
12750     hardcode_automatic_CXX \
12751     module_cmds_CXX \
12752     module_expsym_cmds_CXX \
12753     lt_cv_prog_compiler_c_o_CXX \
12754     exclude_expsyms_CXX \
12755     include_expsyms_CXX; do
12756
12757     case $var in
12758     old_archive_cmds_CXX | \
12759     old_archive_from_new_cmds_CXX | \
12760     archive_cmds_CXX | \
12761     archive_expsym_cmds_CXX | \
12762     module_cmds_CXX | \
12763     module_expsym_cmds_CXX | \
12764     old_archive_from_expsyms_cmds_CXX | \
12765     export_symbols_cmds_CXX | \
12766     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12767     postinstall_cmds | postuninstall_cmds | \
12768     old_postinstall_cmds | old_postuninstall_cmds | \
12769     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12770       # Double-quote double-evaled strings.
12771       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12772       ;;
12773     *)
12774       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12775       ;;
12776     esac
12777   done
12778
12779   case $lt_echo in
12780   *'\$0 --fallback-echo"')
12781     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12782     ;;
12783   esac
12784
12785 cfgfile="$ofile"
12786
12787   cat <<__EOF__ >> "$cfgfile"
12788 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12789
12790 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12791
12792 # Shell to use when invoking shell scripts.
12793 SHELL=$lt_SHELL
12794
12795 # Whether or not to build shared libraries.
12796 build_libtool_libs=$enable_shared
12797
12798 # Whether or not to build static libraries.
12799 build_old_libs=$enable_static
12800
12801 # Whether or not to add -lc for building shared libraries.
12802 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12803
12804 # Whether or not to disallow shared libs when runtime libs are static
12805 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12806
12807 # Whether or not to optimize for fast installation.
12808 fast_install=$enable_fast_install
12809
12810 # The host system.
12811 host_alias=$host_alias
12812 host=$host
12813 host_os=$host_os
12814
12815 # The build system.
12816 build_alias=$build_alias
12817 build=$build
12818 build_os=$build_os
12819
12820 # An echo program that does not interpret backslashes.
12821 echo=$lt_echo
12822
12823 # The archiver.
12824 AR=$lt_AR
12825 AR_FLAGS=$lt_AR_FLAGS
12826
12827 # A C compiler.
12828 LTCC=$lt_LTCC
12829
12830 # LTCC compiler flags.
12831 LTCFLAGS=$lt_LTCFLAGS
12832
12833 # A language-specific compiler.
12834 CC=$lt_compiler_CXX
12835
12836 # Is the compiler the GNU C compiler?
12837 with_gcc=$GCC_CXX
12838
12839 # An ERE matcher.
12840 EGREP=$lt_EGREP
12841
12842 # The linker used to build libraries.
12843 LD=$lt_LD_CXX
12844
12845 # Whether we need hard or soft links.
12846 LN_S=$lt_LN_S
12847
12848 # A BSD-compatible nm program.
12849 NM=$lt_NM
12850
12851 # A symbol stripping program
12852 STRIP=$lt_STRIP
12853
12854 # Used to examine libraries when file_magic_cmd begins "file"
12855 MAGIC_CMD=$MAGIC_CMD
12856
12857 # Used on cygwin: DLL creation program.
12858 DLLTOOL="$DLLTOOL"
12859
12860 # Used on cygwin: object dumper.
12861 OBJDUMP="$OBJDUMP"
12862
12863 # Used on cygwin: assembler.
12864 AS="$AS"
12865
12866 # The name of the directory that contains temporary libtool files.
12867 objdir=$objdir
12868
12869 # How to create reloadable object files.
12870 reload_flag=$lt_reload_flag
12871 reload_cmds=$lt_reload_cmds
12872
12873 # How to pass a linker flag through the compiler.
12874 wl=$lt_lt_prog_compiler_wl_CXX
12875
12876 # Object file suffix (normally "o").
12877 objext="$ac_objext"
12878
12879 # Old archive suffix (normally "a").
12880 libext="$libext"
12881
12882 # Shared library suffix (normally ".so").
12883 shrext_cmds='$shrext_cmds'
12884
12885 # Executable file suffix (normally "").
12886 exeext="$exeext"
12887
12888 # Additional compiler flags for building library objects.
12889 pic_flag=$lt_lt_prog_compiler_pic_CXX
12890 pic_mode=$pic_mode
12891
12892 # What is the maximum length of a command?
12893 max_cmd_len=$lt_cv_sys_max_cmd_len
12894
12895 # Does compiler simultaneously support -c and -o options?
12896 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12897
12898 # Must we lock files when doing compilation?
12899 need_locks=$lt_need_locks
12900
12901 # Do we need the lib prefix for modules?
12902 need_lib_prefix=$need_lib_prefix
12903
12904 # Do we need a version for libraries?
12905 need_version=$need_version
12906
12907 # Whether dlopen is supported.
12908 dlopen_support=$enable_dlopen
12909
12910 # Whether dlopen of programs is supported.
12911 dlopen_self=$enable_dlopen_self
12912
12913 # Whether dlopen of statically linked programs is supported.
12914 dlopen_self_static=$enable_dlopen_self_static
12915
12916 # Compiler flag to prevent dynamic linking.
12917 link_static_flag=$lt_lt_prog_compiler_static_CXX
12918
12919 # Compiler flag to turn off builtin functions.
12920 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12921
12922 # Compiler flag to allow reflexive dlopens.
12923 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12924
12925 # Compiler flag to generate shared objects directly from archives.
12926 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12927
12928 # Compiler flag to generate thread-safe objects.
12929 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12930
12931 # Library versioning type.
12932 version_type=$version_type
12933
12934 # Format of library name prefix.
12935 libname_spec=$lt_libname_spec
12936
12937 # List of archive names.  First name is the real one, the rest are links.
12938 # The last name is the one that the linker finds with -lNAME.
12939 library_names_spec=$lt_library_names_spec
12940
12941 # The coded name of the library, if different from the real name.
12942 soname_spec=$lt_soname_spec
12943
12944 # Commands used to build and install an old-style archive.
12945 RANLIB=$lt_RANLIB
12946 old_archive_cmds=$lt_old_archive_cmds_CXX
12947 old_postinstall_cmds=$lt_old_postinstall_cmds
12948 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12949
12950 # Create an old-style archive from a shared archive.
12951 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12952
12953 # Create a temporary old-style archive to link instead of a shared archive.
12954 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12955
12956 # Commands used to build and install a shared archive.
12957 archive_cmds=$lt_archive_cmds_CXX
12958 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12959 postinstall_cmds=$lt_postinstall_cmds
12960 postuninstall_cmds=$lt_postuninstall_cmds
12961
12962 # Commands used to build a loadable module (assumed same as above if empty)
12963 module_cmds=$lt_module_cmds_CXX
12964 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12965
12966 # Commands to strip libraries.
12967 old_striplib=$lt_old_striplib
12968 striplib=$lt_striplib
12969
12970 # Dependencies to place before the objects being linked to create a
12971 # shared library.
12972 predep_objects=$lt_predep_objects_CXX
12973
12974 # Dependencies to place after the objects being linked to create a
12975 # shared library.
12976 postdep_objects=$lt_postdep_objects_CXX
12977
12978 # Dependencies to place before the objects being linked to create a
12979 # shared library.
12980 predeps=$lt_predeps_CXX
12981
12982 # Dependencies to place after the objects being linked to create a
12983 # shared library.
12984 postdeps=$lt_postdeps_CXX
12985
12986 # The library search path used internally by the compiler when linking
12987 # a shared library.
12988 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12989
12990 # Method to check whether dependent libraries are shared objects.
12991 deplibs_check_method=$lt_deplibs_check_method
12992
12993 # Command to use when deplibs_check_method == file_magic.
12994 file_magic_cmd=$lt_file_magic_cmd
12995
12996 # Flag that allows shared libraries with undefined symbols to be built.
12997 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12998
12999 # Flag that forces no undefined symbols.
13000 no_undefined_flag=$lt_no_undefined_flag_CXX
13001
13002 # Commands used to finish a libtool library installation in a directory.
13003 finish_cmds=$lt_finish_cmds
13004
13005 # Same as above, but a single script fragment to be evaled but not shown.
13006 finish_eval=$lt_finish_eval
13007
13008 # Take the output of nm and produce a listing of raw symbols and C names.
13009 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13010
13011 # Transform the output of nm in a proper C declaration
13012 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13013
13014 # Transform the output of nm in a C name address pair
13015 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13016
13017 # This is the shared library runtime path variable.
13018 runpath_var=$runpath_var
13019
13020 # This is the shared library path variable.
13021 shlibpath_var=$shlibpath_var
13022
13023 # Is shlibpath searched before the hard-coded library search path?
13024 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13025
13026 # How to hardcode a shared library path into an executable.
13027 hardcode_action=$hardcode_action_CXX
13028
13029 # Whether we should hardcode library paths into libraries.
13030 hardcode_into_libs=$hardcode_into_libs
13031
13032 # Flag to hardcode \$libdir into a binary during linking.
13033 # This must work even if \$libdir does not exist.
13034 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13035
13036 # If ld is used when linking, flag to hardcode \$libdir into
13037 # a binary during linking. This must work even if \$libdir does
13038 # not exist.
13039 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13040
13041 # Whether we need a single -rpath flag with a separated argument.
13042 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13043
13044 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13045 # resulting binary.
13046 hardcode_direct=$hardcode_direct_CXX
13047
13048 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13049 # resulting binary.
13050 hardcode_minus_L=$hardcode_minus_L_CXX
13051
13052 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13053 # the resulting binary.
13054 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13055
13056 # Set to yes if building a shared library automatically hardcodes DIR into the library
13057 # and all subsequent libraries and executables linked against it.
13058 hardcode_automatic=$hardcode_automatic_CXX
13059
13060 # Variables whose values should be saved in libtool wrapper scripts and
13061 # restored at relink time.
13062 variables_saved_for_relink="$variables_saved_for_relink"
13063
13064 # Whether libtool must link a program against all its dependency libraries.
13065 link_all_deplibs=$link_all_deplibs_CXX
13066
13067 # Compile-time system search path for libraries
13068 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13069
13070 # Run-time system search path for libraries
13071 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13072
13073 # Fix the shell variable \$srcfile for the compiler.
13074 fix_srcfile_path="$fix_srcfile_path_CXX"
13075
13076 # Set to yes if exported symbols are required.
13077 always_export_symbols=$always_export_symbols_CXX
13078
13079 # The commands to list exported symbols.
13080 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13081
13082 # The commands to extract the exported symbol list from a shared archive.
13083 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13084
13085 # Symbols that should not be listed in the preloaded symbols.
13086 exclude_expsyms=$lt_exclude_expsyms_CXX
13087
13088 # Symbols that must always be exported.
13089 include_expsyms=$lt_include_expsyms_CXX
13090
13091 # ### END LIBTOOL TAG CONFIG: $tagname
13092
13093 __EOF__
13094
13095
13096 else
13097   # If there is no Makefile yet, we rely on a make rule to execute
13098   # `config.status --recheck' to rerun these tests and create the
13099   # libtool script then.
13100   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13101   if test -f "$ltmain_in"; then
13102     test -f Makefile && make "$ltmain"
13103   fi
13104 fi
13105
13106
13107 ac_ext=c
13108 ac_cpp='$CPP $CPPFLAGS'
13109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13112
13113 CC=$lt_save_CC
13114 LDCXX=$LD
13115 LD=$lt_save_LD
13116 GCC=$lt_save_GCC
13117 with_gnu_ldcxx=$with_gnu_ld
13118 with_gnu_ld=$lt_save_with_gnu_ld
13119 lt_cv_path_LDCXX=$lt_cv_path_LD
13120 lt_cv_path_LD=$lt_save_path_LD
13121 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13122 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13123
13124         else
13125           tagname=""
13126         fi
13127         ;;
13128
13129       F77)
13130         if test -n "$F77" && test "X$F77" != "Xno"; then
13131
13132 ac_ext=f
13133 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13134 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13135 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13136
13137
13138 archive_cmds_need_lc_F77=no
13139 allow_undefined_flag_F77=
13140 always_export_symbols_F77=no
13141 archive_expsym_cmds_F77=
13142 export_dynamic_flag_spec_F77=
13143 hardcode_direct_F77=no
13144 hardcode_libdir_flag_spec_F77=
13145 hardcode_libdir_flag_spec_ld_F77=
13146 hardcode_libdir_separator_F77=
13147 hardcode_minus_L_F77=no
13148 hardcode_automatic_F77=no
13149 module_cmds_F77=
13150 module_expsym_cmds_F77=
13151 link_all_deplibs_F77=unknown
13152 old_archive_cmds_F77=$old_archive_cmds
13153 no_undefined_flag_F77=
13154 whole_archive_flag_spec_F77=
13155 enable_shared_with_static_runtimes_F77=no
13156
13157 # Source file extension for f77 test sources.
13158 ac_ext=f
13159
13160 # Object file extension for compiled f77 test sources.
13161 objext=o
13162 objext_F77=$objext
13163
13164 # Code to be used in simple compile tests
13165 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13166
13167 # Code to be used in simple link tests
13168 lt_simple_link_test_code="      program t\n      end\n"
13169
13170 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13171
13172 # If no C compiler was specified, use CC.
13173 LTCC=${LTCC-"$CC"}
13174
13175 # If no C compiler flags were specified, use CFLAGS.
13176 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13177
13178 # Allow CC to be a program name with arguments.
13179 compiler=$CC
13180
13181
13182 # save warnings/boilerplate of simple test code
13183 ac_outfile=conftest.$ac_objext
13184 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13185 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13186 _lt_compiler_boilerplate=`cat conftest.err`
13187 $rm conftest*
13188
13189 ac_outfile=conftest.$ac_objext
13190 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13191 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13192 _lt_linker_boilerplate=`cat conftest.err`
13193 $rm conftest*
13194
13195
13196 # Allow CC to be a program name with arguments.
13197 lt_save_CC="$CC"
13198 CC=${F77-"f77"}
13199 compiler=$CC
13200 compiler_F77=$CC
13201 for cc_temp in $compiler""; do
13202   case $cc_temp in
13203     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13204     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13205     \-*) ;;
13206     *) break;;
13207   esac
13208 done
13209 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13210
13211
13212 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13213 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13214 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13215 echo "${ECHO_T}$can_build_shared" >&6
13216
13217 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13218 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13219 test "$can_build_shared" = "no" && enable_shared=no
13220
13221 # On AIX, shared libraries and static libraries use the same namespace, and
13222 # are all built from PIC.
13223 case $host_os in
13224 aix3*)
13225   test "$enable_shared" = yes && enable_static=no
13226   if test -n "$RANLIB"; then
13227     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13228     postinstall_cmds='$RANLIB $lib'
13229   fi
13230   ;;
13231 aix4* | aix5*)
13232   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13233     test "$enable_shared" = yes && enable_static=no
13234   fi
13235   ;;
13236 esac
13237 echo "$as_me:$LINENO: result: $enable_shared" >&5
13238 echo "${ECHO_T}$enable_shared" >&6
13239
13240 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13241 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13242 # Make sure either enable_shared or enable_static is yes.
13243 test "$enable_shared" = yes || enable_static=yes
13244 echo "$as_me:$LINENO: result: $enable_static" >&5
13245 echo "${ECHO_T}$enable_static" >&6
13246
13247 GCC_F77="$G77"
13248 LD_F77="$LD"
13249
13250 lt_prog_compiler_wl_F77=
13251 lt_prog_compiler_pic_F77=
13252 lt_prog_compiler_static_F77=
13253
13254 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13255 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13256
13257   if test "$GCC" = yes; then
13258     lt_prog_compiler_wl_F77='-Wl,'
13259     lt_prog_compiler_static_F77='-static'
13260
13261     case $host_os in
13262       aix*)
13263       # All AIX code is PIC.
13264       if test "$host_cpu" = ia64; then
13265         # AIX 5 now supports IA64 processor
13266         lt_prog_compiler_static_F77='-Bstatic'
13267       fi
13268       ;;
13269
13270     amigaos*)
13271       # FIXME: we need at least 68020 code to build shared libraries, but
13272       # adding the `-m68020' flag to GCC prevents building anything better,
13273       # like `-m68040'.
13274       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13275       ;;
13276
13277     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13278       # PIC is the default for these OSes.
13279       ;;
13280
13281     mingw* | pw32* | os2*)
13282       # This hack is so that the source file can tell whether it is being
13283       # built for inclusion in a dll (and should export symbols for example).
13284       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13285       ;;
13286
13287     darwin* | rhapsody*)
13288       # PIC is the default on this platform
13289       # Common symbols not allowed in MH_DYLIB files
13290       lt_prog_compiler_pic_F77='-fno-common'
13291       ;;
13292
13293     interix3*)
13294       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13295       # Instead, we relocate shared libraries at runtime.
13296       ;;
13297
13298     msdosdjgpp*)
13299       # Just because we use GCC doesn't mean we suddenly get shared libraries
13300       # on systems that don't support them.
13301       lt_prog_compiler_can_build_shared_F77=no
13302       enable_shared=no
13303       ;;
13304
13305     sysv4*MP*)
13306       if test -d /usr/nec; then
13307         lt_prog_compiler_pic_F77=-Kconform_pic
13308       fi
13309       ;;
13310
13311     hpux*)
13312       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13313       # not for PA HP-UX.
13314       case $host_cpu in
13315       hppa*64*|ia64*)
13316         # +Z the default
13317         ;;
13318       *)
13319         lt_prog_compiler_pic_F77='-fPIC'
13320         ;;
13321       esac
13322       ;;
13323
13324     *)
13325       lt_prog_compiler_pic_F77='-fPIC'
13326       ;;
13327     esac
13328   else
13329     # PORTME Check for flag to pass linker flags through the system compiler.
13330     case $host_os in
13331     aix*)
13332       lt_prog_compiler_wl_F77='-Wl,'
13333       if test "$host_cpu" = ia64; then
13334         # AIX 5 now supports IA64 processor
13335         lt_prog_compiler_static_F77='-Bstatic'
13336       else
13337         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13338       fi
13339       ;;
13340       darwin*)
13341         # PIC is the default on this platform
13342         # Common symbols not allowed in MH_DYLIB files
13343        case $cc_basename in
13344          xlc*)
13345          lt_prog_compiler_pic_F77='-qnocommon'
13346          lt_prog_compiler_wl_F77='-Wl,'
13347          ;;
13348        esac
13349        ;;
13350
13351     mingw* | pw32* | os2*)
13352       # This hack is so that the source file can tell whether it is being
13353       # built for inclusion in a dll (and should export symbols for example).
13354       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13355       ;;
13356
13357     hpux9* | hpux10* | hpux11*)
13358       lt_prog_compiler_wl_F77='-Wl,'
13359       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13360       # not for PA HP-UX.
13361       case $host_cpu in
13362       hppa*64*|ia64*)
13363         # +Z the default
13364         ;;
13365       *)
13366         lt_prog_compiler_pic_F77='+Z'
13367         ;;
13368       esac
13369       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13370       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13371       ;;
13372
13373     irix5* | irix6* | nonstopux*)
13374       lt_prog_compiler_wl_F77='-Wl,'
13375       # PIC (with -KPIC) is the default.
13376       lt_prog_compiler_static_F77='-non_shared'
13377       ;;
13378
13379     newsos6)
13380       lt_prog_compiler_pic_F77='-KPIC'
13381       lt_prog_compiler_static_F77='-Bstatic'
13382       ;;
13383
13384     linux*)
13385       case $cc_basename in
13386       icc* | ecc*)
13387         lt_prog_compiler_wl_F77='-Wl,'
13388         lt_prog_compiler_pic_F77='-KPIC'
13389         lt_prog_compiler_static_F77='-static'
13390         ;;
13391       pgcc* | pgf77* | pgf90* | pgf95*)
13392         # Portland Group compilers (*not* the Pentium gcc compiler,
13393         # which looks to be a dead project)
13394         lt_prog_compiler_wl_F77='-Wl,'
13395         lt_prog_compiler_pic_F77='-fpic'
13396         lt_prog_compiler_static_F77='-Bstatic'
13397         ;;
13398       ccc*)
13399         lt_prog_compiler_wl_F77='-Wl,'
13400         # All Alpha code is PIC.
13401         lt_prog_compiler_static_F77='-non_shared'
13402         ;;
13403       esac
13404       ;;
13405
13406     osf3* | osf4* | osf5*)
13407       lt_prog_compiler_wl_F77='-Wl,'
13408       # All OSF/1 code is PIC.
13409       lt_prog_compiler_static_F77='-non_shared'
13410       ;;
13411
13412     solaris*)
13413       lt_prog_compiler_pic_F77='-KPIC'
13414       lt_prog_compiler_static_F77='-Bstatic'
13415       case $cc_basename in
13416       f77* | f90* | f95*)
13417         lt_prog_compiler_wl_F77='-Qoption ld ';;
13418       *)
13419         lt_prog_compiler_wl_F77='-Wl,';;
13420       esac
13421       ;;
13422
13423     sunos4*)
13424       lt_prog_compiler_wl_F77='-Qoption ld '
13425       lt_prog_compiler_pic_F77='-PIC'
13426       lt_prog_compiler_static_F77='-Bstatic'
13427       ;;
13428
13429     sysv4 | sysv4.2uw2* | sysv4.3*)
13430       lt_prog_compiler_wl_F77='-Wl,'
13431       lt_prog_compiler_pic_F77='-KPIC'
13432       lt_prog_compiler_static_F77='-Bstatic'
13433       ;;
13434
13435     sysv4*MP*)
13436       if test -d /usr/nec ;then
13437         lt_prog_compiler_pic_F77='-Kconform_pic'
13438         lt_prog_compiler_static_F77='-Bstatic'
13439       fi
13440       ;;
13441
13442     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13443       lt_prog_compiler_wl_F77='-Wl,'
13444       lt_prog_compiler_pic_F77='-KPIC'
13445       lt_prog_compiler_static_F77='-Bstatic'
13446       ;;
13447
13448     unicos*)
13449       lt_prog_compiler_wl_F77='-Wl,'
13450       lt_prog_compiler_can_build_shared_F77=no
13451       ;;
13452
13453     uts4*)
13454       lt_prog_compiler_pic_F77='-pic'
13455       lt_prog_compiler_static_F77='-Bstatic'
13456       ;;
13457
13458     *)
13459       lt_prog_compiler_can_build_shared_F77=no
13460       ;;
13461     esac
13462   fi
13463
13464 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13465 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13466
13467 #
13468 # Check to make sure the PIC flag actually works.
13469 #
13470 if test -n "$lt_prog_compiler_pic_F77"; then
13471
13472 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13473 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13474 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13475   echo $ECHO_N "(cached) $ECHO_C" >&6
13476 else
13477   lt_prog_compiler_pic_works_F77=no
13478   ac_outfile=conftest.$ac_objext
13479    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13480    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13481    # Insert the option either (1) after the last *FLAGS variable, or
13482    # (2) before a word containing "conftest.", or (3) at the end.
13483    # Note that $ac_compile itself does not contain backslashes and begins
13484    # with a dollar sign (not a hyphen), so the echo should work correctly.
13485    # The option is referenced via a variable to avoid confusing sed.
13486    lt_compile=`echo "$ac_compile" | $SED \
13487    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13488    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13489    -e 's:$: $lt_compiler_flag:'`
13490    (eval echo "\"\$as_me:13490: $lt_compile\"" >&5)
13491    (eval "$lt_compile" 2>conftest.err)
13492    ac_status=$?
13493    cat conftest.err >&5
13494    echo "$as_me:13494: \$? = $ac_status" >&5
13495    if (exit $ac_status) && test -s "$ac_outfile"; then
13496      # The compiler can only warn and ignore the option if not recognized
13497      # So say no if there are warnings other than the usual output.
13498      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13499      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13500      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13501        lt_prog_compiler_pic_works_F77=yes
13502      fi
13503    fi
13504    $rm conftest*
13505
13506 fi
13507 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13508 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13509
13510 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13511     case $lt_prog_compiler_pic_F77 in
13512      "" | " "*) ;;
13513      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13514      esac
13515 else
13516     lt_prog_compiler_pic_F77=
13517      lt_prog_compiler_can_build_shared_F77=no
13518 fi
13519
13520 fi
13521 case $host_os in
13522   # For platforms which do not support PIC, -DPIC is meaningless:
13523   *djgpp*)
13524     lt_prog_compiler_pic_F77=
13525     ;;
13526   *)
13527     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13528     ;;
13529 esac
13530
13531 #
13532 # Check to make sure the static flag actually works.
13533 #
13534 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13535 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13536 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13537 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13538   echo $ECHO_N "(cached) $ECHO_C" >&6
13539 else
13540   lt_prog_compiler_static_works_F77=no
13541    save_LDFLAGS="$LDFLAGS"
13542    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13543    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13544    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13545      # The linker can only warn and ignore the option if not recognized
13546      # So say no if there are warnings
13547      if test -s conftest.err; then
13548        # Append any errors to the config.log.
13549        cat conftest.err 1>&5
13550        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13551        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13552        if diff conftest.exp conftest.er2 >/dev/null; then
13553          lt_prog_compiler_static_works_F77=yes
13554        fi
13555      else
13556        lt_prog_compiler_static_works_F77=yes
13557      fi
13558    fi
13559    $rm conftest*
13560    LDFLAGS="$save_LDFLAGS"
13561
13562 fi
13563 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13564 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13565
13566 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13567     :
13568 else
13569     lt_prog_compiler_static_F77=
13570 fi
13571
13572
13573 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13574 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13575 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13576   echo $ECHO_N "(cached) $ECHO_C" >&6
13577 else
13578   lt_cv_prog_compiler_c_o_F77=no
13579    $rm -r conftest 2>/dev/null
13580    mkdir conftest
13581    cd conftest
13582    mkdir out
13583    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13584
13585    lt_compiler_flag="-o out/conftest2.$ac_objext"
13586    # Insert the option either (1) after the last *FLAGS variable, or
13587    # (2) before a word containing "conftest.", or (3) at the end.
13588    # Note that $ac_compile itself does not contain backslashes and begins
13589    # with a dollar sign (not a hyphen), so the echo should work correctly.
13590    lt_compile=`echo "$ac_compile" | $SED \
13591    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13592    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13593    -e 's:$: $lt_compiler_flag:'`
13594    (eval echo "\"\$as_me:13594: $lt_compile\"" >&5)
13595    (eval "$lt_compile" 2>out/conftest.err)
13596    ac_status=$?
13597    cat out/conftest.err >&5
13598    echo "$as_me:13598: \$? = $ac_status" >&5
13599    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13600    then
13601      # The compiler can only warn and ignore the option if not recognized
13602      # So say no if there are warnings
13603      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13604      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13605      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13606        lt_cv_prog_compiler_c_o_F77=yes
13607      fi
13608    fi
13609    chmod u+w . 2>&5
13610    $rm conftest*
13611    # SGI C++ compiler will create directory out/ii_files/ for
13612    # template instantiation
13613    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13614    $rm out/* && rmdir out
13615    cd ..
13616    rmdir conftest
13617    $rm conftest*
13618
13619 fi
13620 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13621 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13622
13623
13624 hard_links="nottested"
13625 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13626   # do not overwrite the value of need_locks provided by the user
13627   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13628 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13629   hard_links=yes
13630   $rm conftest*
13631   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13632   touch conftest.a
13633   ln conftest.a conftest.b 2>&5 || hard_links=no
13634   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13635   echo "$as_me:$LINENO: result: $hard_links" >&5
13636 echo "${ECHO_T}$hard_links" >&6
13637   if test "$hard_links" = no; then
13638     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13639 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13640     need_locks=warn
13641   fi
13642 else
13643   need_locks=no
13644 fi
13645
13646 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13647 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13648
13649   runpath_var=
13650   allow_undefined_flag_F77=
13651   enable_shared_with_static_runtimes_F77=no
13652   archive_cmds_F77=
13653   archive_expsym_cmds_F77=
13654   old_archive_From_new_cmds_F77=
13655   old_archive_from_expsyms_cmds_F77=
13656   export_dynamic_flag_spec_F77=
13657   whole_archive_flag_spec_F77=
13658   thread_safe_flag_spec_F77=
13659   hardcode_libdir_flag_spec_F77=
13660   hardcode_libdir_flag_spec_ld_F77=
13661   hardcode_libdir_separator_F77=
13662   hardcode_direct_F77=no
13663   hardcode_minus_L_F77=no
13664   hardcode_shlibpath_var_F77=unsupported
13665   link_all_deplibs_F77=unknown
13666   hardcode_automatic_F77=no
13667   module_cmds_F77=
13668   module_expsym_cmds_F77=
13669   always_export_symbols_F77=no
13670   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13671   # include_expsyms should be a list of space-separated symbols to be *always*
13672   # included in the symbol list
13673   include_expsyms_F77=
13674   # exclude_expsyms can be an extended regexp of symbols to exclude
13675   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13676   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13677   # as well as any symbol that contains `d'.
13678   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13679   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13680   # platforms (ab)use it in PIC code, but their linkers get confused if
13681   # the symbol is explicitly referenced.  Since portable code cannot
13682   # rely on this symbol name, it's probably fine to never include it in
13683   # preloaded symbol tables.
13684   extract_expsyms_cmds=
13685   # Just being paranoid about ensuring that cc_basename is set.
13686   for cc_temp in $compiler""; do
13687   case $cc_temp in
13688     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13689     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13690     \-*) ;;
13691     *) break;;
13692   esac
13693 done
13694 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13695
13696   case $host_os in
13697   cygwin* | mingw* | pw32*)
13698     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13699     # When not using gcc, we currently assume that we are using
13700     # Microsoft Visual C++.
13701     if test "$GCC" != yes; then
13702       with_gnu_ld=no
13703     fi
13704     ;;
13705   interix*)
13706     # we just hope/assume this is gcc and not c89 (= MSVC++)
13707     with_gnu_ld=yes
13708     ;;
13709   openbsd*)
13710     with_gnu_ld=no
13711     ;;
13712   esac
13713
13714   ld_shlibs_F77=yes
13715   if test "$with_gnu_ld" = yes; then
13716     # If archive_cmds runs LD, not CC, wlarc should be empty
13717     wlarc='${wl}'
13718
13719     # Set some defaults for GNU ld with shared library support. These
13720     # are reset later if shared libraries are not supported. Putting them
13721     # here allows them to be overridden if necessary.
13722     runpath_var=LD_RUN_PATH
13723     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13724     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13725     # ancient GNU ld didn't support --whole-archive et. al.
13726     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13727         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13728       else
13729         whole_archive_flag_spec_F77=
13730     fi
13731     supports_anon_versioning=no
13732     case `$LD -v 2>/dev/null` in
13733       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13734       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13735       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13736       *\ 2.11.*) ;; # other 2.11 versions
13737       *) supports_anon_versioning=yes ;;
13738     esac
13739
13740     # See if GNU ld supports shared libraries.
13741     case $host_os in
13742     aix3* | aix4* | aix5*)
13743       # On AIX/PPC, the GNU linker is very broken
13744       if test "$host_cpu" != ia64; then
13745         ld_shlibs_F77=no
13746         cat <<EOF 1>&2
13747
13748 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13749 *** to be unable to reliably create shared libraries on AIX.
13750 *** Therefore, libtool is disabling shared libraries support.  If you
13751 *** really care for shared libraries, you may want to modify your PATH
13752 *** so that a non-GNU linker is found, and then restart.
13753
13754 EOF
13755       fi
13756       ;;
13757
13758     amigaos*)
13759       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)'
13760       hardcode_libdir_flag_spec_F77='-L$libdir'
13761       hardcode_minus_L_F77=yes
13762
13763       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13764       # that the semantics of dynamic libraries on AmigaOS, at least up
13765       # to version 4, is to share data among multiple programs linked
13766       # with the same dynamic library.  Since this doesn't match the
13767       # behavior of shared libraries on other platforms, we can't use
13768       # them.
13769       ld_shlibs_F77=no
13770       ;;
13771
13772     beos*)
13773       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13774         allow_undefined_flag_F77=unsupported
13775         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13776         # support --undefined.  This deserves some investigation.  FIXME
13777         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13778       else
13779         ld_shlibs_F77=no
13780       fi
13781       ;;
13782
13783     cygwin* | mingw* | pw32*)
13784       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13785       # as there is no search path for DLLs.
13786       hardcode_libdir_flag_spec_F77='-L$libdir'
13787       allow_undefined_flag_F77=unsupported
13788       always_export_symbols_F77=no
13789       enable_shared_with_static_runtimes_F77=yes
13790       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13791
13792       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13793         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13794         # If the export-symbols file already is a .def file (1st line
13795         # is EXPORTS), use it as is; otherwise, prepend...
13796         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13797           cp $export_symbols $output_objdir/$soname.def;
13798         else
13799           echo EXPORTS > $output_objdir/$soname.def;
13800           cat $export_symbols >> $output_objdir/$soname.def;
13801         fi~
13802         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13803       else
13804         ld_shlibs_F77=no
13805       fi
13806       ;;
13807
13808     interix3*)
13809       hardcode_direct_F77=no
13810       hardcode_shlibpath_var_F77=no
13811       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13812       export_dynamic_flag_spec_F77='${wl}-E'
13813       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13814       # Instead, shared libraries are loaded at an image base (0x10000000 by
13815       # default) and relocated if they conflict, which is a slow very memory
13816       # consuming and fragmenting process.  To avoid this, we pick a random,
13817       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13818       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13819       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13820       archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13821       ;;
13822
13823     linux*)
13824       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13825         tmp_addflag=
13826         case $cc_basename,$host_cpu in
13827         pgcc*)                          # Portland Group C compiler
13828           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13829           tmp_addflag=' $pic_flag'
13830           ;;
13831         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
13832           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13833           tmp_addflag=' $pic_flag -Mnomain' ;;
13834         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
13835           tmp_addflag=' -i_dynamic' ;;
13836         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13837           tmp_addflag=' -i_dynamic -nofor_main' ;;
13838         ifc* | ifort*)                  # Intel Fortran compiler
13839           tmp_addflag=' -nofor_main' ;;
13840         esac
13841         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13842
13843         if test $supports_anon_versioning = yes; then
13844           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13845   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13846   $echo "local: *; };" >> $output_objdir/$libname.ver~
13847           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13848         fi
13849         link_all_deplibs_F77=no
13850       else
13851         ld_shlibs_F77=no
13852       fi
13853       ;;
13854
13855     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13856       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13857         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13858         wlarc=
13859       else
13860         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13861         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13862       fi
13863       ;;
13864
13865     solaris*)
13866       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13867         ld_shlibs_F77=no
13868         cat <<EOF 1>&2
13869
13870 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13871 *** create shared libraries on Solaris systems.  Therefore, libtool
13872 *** is disabling shared libraries support.  We urge you to upgrade GNU
13873 *** binutils to release 2.9.1 or newer.  Another option is to modify
13874 *** your PATH or compiler configuration so that the native linker is
13875 *** used, and then restart.
13876
13877 EOF
13878       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13879         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13880         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13881       else
13882         ld_shlibs_F77=no
13883       fi
13884       ;;
13885
13886     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13887       case `$LD -v 2>&1` in
13888         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13889         ld_shlibs_F77=no
13890         cat <<_LT_EOF 1>&2
13891
13892 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13893 *** reliably create shared libraries on SCO systems.  Therefore, libtool
13894 *** is disabling shared libraries support.  We urge you to upgrade GNU
13895 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13896 *** your PATH or compiler configuration so that the native linker is
13897 *** used, and then restart.
13898
13899 _LT_EOF
13900         ;;
13901         *)
13902           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13903             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13904             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13905             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13906           else
13907             ld_shlibs_F77=no
13908           fi
13909         ;;
13910       esac
13911       ;;
13912
13913     sunos4*)
13914       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13915       wlarc=
13916       hardcode_direct_F77=yes
13917       hardcode_shlibpath_var_F77=no
13918       ;;
13919
13920     *)
13921       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13922         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13923         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13924       else
13925         ld_shlibs_F77=no
13926       fi
13927       ;;
13928     esac
13929
13930     if test "$ld_shlibs_F77" = no; then
13931       runpath_var=
13932       hardcode_libdir_flag_spec_F77=
13933       export_dynamic_flag_spec_F77=
13934       whole_archive_flag_spec_F77=
13935     fi
13936   else
13937     # PORTME fill in a description of your system's linker (not GNU ld)
13938     case $host_os in
13939     aix3*)
13940       allow_undefined_flag_F77=unsupported
13941       always_export_symbols_F77=yes
13942       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'
13943       # Note: this linker hardcodes the directories in LIBPATH if there
13944       # are no directories specified by -L.
13945       hardcode_minus_L_F77=yes
13946       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13947         # Neither direct hardcoding nor static linking is supported with a
13948         # broken collect2.
13949         hardcode_direct_F77=unsupported
13950       fi
13951       ;;
13952
13953     aix4* | aix5*)
13954       if test "$host_cpu" = ia64; then
13955         # On IA64, the linker does run time linking by default, so we don't
13956         # have to do anything special.
13957         aix_use_runtimelinking=no
13958         exp_sym_flag='-Bexport'
13959         no_entry_flag=""
13960       else
13961         # If we're using GNU nm, then we don't want the "-C" option.
13962         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13963         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13964           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'
13965         else
13966           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'
13967         fi
13968         aix_use_runtimelinking=no
13969
13970         # Test if we are trying to use run time linking or normal
13971         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13972         # need to do runtime linking.
13973         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13974           for ld_flag in $LDFLAGS; do
13975           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13976             aix_use_runtimelinking=yes
13977             break
13978           fi
13979           done
13980           ;;
13981         esac
13982
13983         exp_sym_flag='-bexport'
13984         no_entry_flag='-bnoentry'
13985       fi
13986
13987       # When large executables or shared objects are built, AIX ld can
13988       # have problems creating the table of contents.  If linking a library
13989       # or program results in "error TOC overflow" add -mminimal-toc to
13990       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13991       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13992
13993       archive_cmds_F77=''
13994       hardcode_direct_F77=yes
13995       hardcode_libdir_separator_F77=':'
13996       link_all_deplibs_F77=yes
13997
13998       if test "$GCC" = yes; then
13999         case $host_os in aix4.[012]|aix4.[012].*)
14000         # We only want to do this on AIX 4.2 and lower, the check
14001         # below for broken collect2 doesn't work under 4.3+
14002           collect2name=`${CC} -print-prog-name=collect2`
14003           if test -f "$collect2name" && \
14004            strings "$collect2name" | grep resolve_lib_name >/dev/null
14005           then
14006           # We have reworked collect2
14007           hardcode_direct_F77=yes
14008           else
14009           # We have old collect2
14010           hardcode_direct_F77=unsupported
14011           # It fails to find uninstalled libraries when the uninstalled
14012           # path is not listed in the libpath.  Setting hardcode_minus_L
14013           # to unsupported forces relinking
14014           hardcode_minus_L_F77=yes
14015           hardcode_libdir_flag_spec_F77='-L$libdir'
14016           hardcode_libdir_separator_F77=
14017           fi
14018           ;;
14019         esac
14020         shared_flag='-shared'
14021         if test "$aix_use_runtimelinking" = yes; then
14022           shared_flag="$shared_flag "'${wl}-G'
14023         fi
14024       else
14025         # not using gcc
14026         if test "$host_cpu" = ia64; then
14027         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14028         # chokes on -Wl,-G. The following line is correct:
14029           shared_flag='-G'
14030         else
14031           if test "$aix_use_runtimelinking" = yes; then
14032             shared_flag='${wl}-G'
14033           else
14034             shared_flag='${wl}-bM:SRE'
14035           fi
14036         fi
14037       fi
14038
14039       # It seems that -bexpall does not export symbols beginning with
14040       # underscore (_), so it is better to generate a list of symbols to export.
14041       always_export_symbols_F77=yes
14042       if test "$aix_use_runtimelinking" = yes; then
14043         # Warning - without using the other runtime loading flags (-brtl),
14044         # -berok will link without error, but may produce a broken library.
14045         allow_undefined_flag_F77='-berok'
14046        # Determine the default libpath from the value encoded in an empty executable.
14047        cat >conftest.$ac_ext <<_ACEOF
14048       program main
14049
14050       end
14051 _ACEOF
14052 rm -f conftest.$ac_objext conftest$ac_exeext
14053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14054   (eval $ac_link) 2>conftest.er1
14055   ac_status=$?
14056   grep -v '^ *+' conftest.er1 >conftest.err
14057   rm -f conftest.er1
14058   cat conftest.err >&5
14059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060   (exit $ac_status); } &&
14061          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
14062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14063   (eval $ac_try) 2>&5
14064   ac_status=$?
14065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066   (exit $ac_status); }; } &&
14067          { ac_try='test -s conftest$ac_exeext'
14068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14069   (eval $ac_try) 2>&5
14070   ac_status=$?
14071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14072   (exit $ac_status); }; }; then
14073
14074 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14075 }'`
14076 # Check for a 64-bit object if we didn't find anything.
14077 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; }
14078 }'`; fi
14079 else
14080   echo "$as_me: failed program was:" >&5
14081 sed 's/^/| /' conftest.$ac_ext >&5
14082
14083 fi
14084 rm -f conftest.err conftest.$ac_objext \
14085       conftest$ac_exeext conftest.$ac_ext
14086 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14087
14088        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14089         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14090        else
14091         if test "$host_cpu" = ia64; then
14092           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14093           allow_undefined_flag_F77="-z nodefs"
14094           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14095         else
14096          # Determine the default libpath from the value encoded in an empty executable.
14097          cat >conftest.$ac_ext <<_ACEOF
14098       program main
14099
14100       end
14101 _ACEOF
14102 rm -f conftest.$ac_objext conftest$ac_exeext
14103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14104   (eval $ac_link) 2>conftest.er1
14105   ac_status=$?
14106   grep -v '^ *+' conftest.er1 >conftest.err
14107   rm -f conftest.er1
14108   cat conftest.err >&5
14109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110   (exit $ac_status); } &&
14111          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
14112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14113   (eval $ac_try) 2>&5
14114   ac_status=$?
14115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116   (exit $ac_status); }; } &&
14117          { ac_try='test -s conftest$ac_exeext'
14118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14119   (eval $ac_try) 2>&5
14120   ac_status=$?
14121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122   (exit $ac_status); }; }; then
14123
14124 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14125 }'`
14126 # Check for a 64-bit object if we didn't find anything.
14127 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; }
14128 }'`; fi
14129 else
14130   echo "$as_me: failed program was:" >&5
14131 sed 's/^/| /' conftest.$ac_ext >&5
14132
14133 fi
14134 rm -f conftest.err conftest.$ac_objext \
14135       conftest$ac_exeext conftest.$ac_ext
14136 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14137
14138          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14139           # Warning - without using the other run time loading flags,
14140           # -berok will link without error, but may produce a broken library.
14141           no_undefined_flag_F77=' ${wl}-bernotok'
14142           allow_undefined_flag_F77=' ${wl}-berok'
14143           # Exported symbols can be pulled into shared objects from archives
14144           whole_archive_flag_spec_F77='$convenience'
14145           archive_cmds_need_lc_F77=yes
14146           # This is similar to how AIX traditionally builds its shared libraries.
14147           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14148         fi
14149       fi
14150       ;;
14151
14152     amigaos*)
14153       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)'
14154       hardcode_libdir_flag_spec_F77='-L$libdir'
14155       hardcode_minus_L_F77=yes
14156       # see comment about different semantics on the GNU ld section
14157       ld_shlibs_F77=no
14158       ;;
14159
14160     bsdi[45]*)
14161       export_dynamic_flag_spec_F77=-rdynamic
14162       ;;
14163
14164     cygwin* | mingw* | pw32*)
14165       # When not using gcc, we currently assume that we are using
14166       # Microsoft Visual C++.
14167       # hardcode_libdir_flag_spec is actually meaningless, as there is
14168       # no search path for DLLs.
14169       hardcode_libdir_flag_spec_F77=' '
14170       allow_undefined_flag_F77=unsupported
14171       # Tell ltmain to make .lib files, not .a files.
14172       libext=lib
14173       # Tell ltmain to make .dll files, not .so files.
14174       shrext_cmds=".dll"
14175       # FIXME: Setting linknames here is a bad hack.
14176       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14177       # The linker will automatically build a .lib file if we build a DLL.
14178       old_archive_From_new_cmds_F77='true'
14179       # FIXME: Should let the user specify the lib program.
14180       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14181       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14182       enable_shared_with_static_runtimes_F77=yes
14183       ;;
14184
14185     darwin* | rhapsody*)
14186       case $host_os in
14187         rhapsody* | darwin1.[012])
14188          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14189          ;;
14190        *) # Darwin 1.3 on
14191          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14192            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14193          else
14194            case ${MACOSX_DEPLOYMENT_TARGET} in
14195              10.[012])
14196                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14197                ;;
14198              10.*)
14199                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14200                ;;
14201            esac
14202          fi
14203          ;;
14204       esac
14205       archive_cmds_need_lc_F77=no
14206       hardcode_direct_F77=no
14207       hardcode_automatic_F77=yes
14208       hardcode_shlibpath_var_F77=unsupported
14209       whole_archive_flag_spec_F77=''
14210       link_all_deplibs_F77=yes
14211     if test "$GCC" = yes ; then
14212         output_verbose_link_cmd='echo'
14213         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14214       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14215       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14216       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14217       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}'
14218     else
14219       case $cc_basename in
14220         xlc*)
14221          output_verbose_link_cmd='echo'
14222          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14223          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14224           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14225          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14226           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}'
14227           ;;
14228        *)
14229          ld_shlibs_F77=no
14230           ;;
14231       esac
14232     fi
14233       ;;
14234
14235     dgux*)
14236       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14237       hardcode_libdir_flag_spec_F77='-L$libdir'
14238       hardcode_shlibpath_var_F77=no
14239       ;;
14240
14241     freebsd1*)
14242       ld_shlibs_F77=no
14243       ;;
14244
14245     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14246     # support.  Future versions do this automatically, but an explicit c++rt0.o
14247     # does not break anything, and helps significantly (at the cost of a little
14248     # extra space).
14249     freebsd2.2*)
14250       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14251       hardcode_libdir_flag_spec_F77='-R$libdir'
14252       hardcode_direct_F77=yes
14253       hardcode_shlibpath_var_F77=no
14254       ;;
14255
14256     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14257     freebsd2*)
14258       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14259       hardcode_direct_F77=yes
14260       hardcode_minus_L_F77=yes
14261       hardcode_shlibpath_var_F77=no
14262       ;;
14263
14264     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14265     freebsd* | dragonfly*)
14266       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14267       hardcode_libdir_flag_spec_F77='-R$libdir'
14268       hardcode_direct_F77=yes
14269       hardcode_shlibpath_var_F77=no
14270       ;;
14271
14272     # GNU/kFreeBSD uses gcc -shared to do shared libraries.
14273     kfreebsd*-gnu)
14274       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14275       hardcode_libdir_flag_spec_F77='-R$libdir'
14276       hardcode_direct_F77=yes
14277       hardcode_shlibpath_var_F77=no
14278       link_all_deplibs_F77=no
14279       ;;
14280
14281     hpux9*)
14282       if test "$GCC" = yes; then
14283         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'
14284       else
14285         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'
14286       fi
14287       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14288       hardcode_libdir_separator_F77=:
14289       hardcode_direct_F77=yes
14290
14291       # hardcode_minus_L: Not really in the search PATH,
14292       # but as the default location of the library.
14293       hardcode_minus_L_F77=yes
14294       export_dynamic_flag_spec_F77='${wl}-E'
14295       ;;
14296
14297     hpux10*)
14298       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14299         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14300       else
14301         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14302       fi
14303       if test "$with_gnu_ld" = no; then
14304         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14305         hardcode_libdir_separator_F77=:
14306
14307         hardcode_direct_F77=yes
14308         export_dynamic_flag_spec_F77='${wl}-E'
14309
14310         # hardcode_minus_L: Not really in the search PATH,
14311         # but as the default location of the library.
14312         hardcode_minus_L_F77=yes
14313       fi
14314       ;;
14315
14316     hpux11*)
14317       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14318         case $host_cpu in
14319         hppa*64*)
14320           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14321           ;;
14322         ia64*)
14323           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14324           ;;
14325         *)
14326           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14327           ;;
14328         esac
14329       else
14330         case $host_cpu in
14331         hppa*64*)
14332           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14333           ;;
14334         ia64*)
14335           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14336           ;;
14337         *)
14338           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14339           ;;
14340         esac
14341       fi
14342       if test "$with_gnu_ld" = no; then
14343         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14344         hardcode_libdir_separator_F77=:
14345
14346         case $host_cpu in
14347         hppa*64*|ia64*)
14348           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14349           hardcode_direct_F77=no
14350           hardcode_shlibpath_var_F77=no
14351           ;;
14352         *)
14353           hardcode_direct_F77=yes
14354           export_dynamic_flag_spec_F77='${wl}-E'
14355
14356           # hardcode_minus_L: Not really in the search PATH,
14357           # but as the default location of the library.
14358           hardcode_minus_L_F77=yes
14359           ;;
14360         esac
14361       fi
14362       ;;
14363
14364     irix5* | irix6* | nonstopux*)
14365       if test "$GCC" = yes; then
14366         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'
14367       else
14368         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'
14369         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14370       fi
14371       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14372       hardcode_libdir_separator_F77=:
14373       link_all_deplibs_F77=yes
14374       ;;
14375
14376     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14377       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14378         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14379       else
14380         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14381       fi
14382       hardcode_libdir_flag_spec_F77='-R$libdir'
14383       hardcode_direct_F77=yes
14384       hardcode_shlibpath_var_F77=no
14385       ;;
14386
14387     newsos6)
14388       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14389       hardcode_direct_F77=yes
14390       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14391       hardcode_libdir_separator_F77=:
14392       hardcode_shlibpath_var_F77=no
14393       ;;
14394
14395     openbsd*)
14396       hardcode_direct_F77=yes
14397       hardcode_shlibpath_var_F77=no
14398       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14399         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14400         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14401         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14402         export_dynamic_flag_spec_F77='${wl}-E'
14403       else
14404        case $host_os in
14405          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14406            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14407            hardcode_libdir_flag_spec_F77='-R$libdir'
14408            ;;
14409          *)
14410            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14411            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14412            ;;
14413        esac
14414       fi
14415       ;;
14416
14417     os2*)
14418       hardcode_libdir_flag_spec_F77='-L$libdir'
14419       hardcode_minus_L_F77=yes
14420       allow_undefined_flag_F77=unsupported
14421       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'
14422       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14423       ;;
14424
14425     osf3*)
14426       if test "$GCC" = yes; then
14427         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14428         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'
14429       else
14430         allow_undefined_flag_F77=' -expect_unresolved \*'
14431         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'
14432       fi
14433       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14434       hardcode_libdir_separator_F77=:
14435       ;;
14436
14437     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14438       if test "$GCC" = yes; then
14439         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14440         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'
14441         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14442       else
14443         allow_undefined_flag_F77=' -expect_unresolved \*'
14444         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'
14445         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~
14446         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14447
14448         # Both c and cxx compiler support -rpath directly
14449         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14450       fi
14451       hardcode_libdir_separator_F77=:
14452       ;;
14453
14454     solaris*)
14455       no_undefined_flag_F77=' -z text'
14456       if test "$GCC" = yes; then
14457         wlarc='${wl}'
14458         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14459         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14460           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14461       else
14462         wlarc=''
14463         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14464         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14465         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14466       fi
14467       hardcode_libdir_flag_spec_F77='-R$libdir'
14468       hardcode_shlibpath_var_F77=no
14469       case $host_os in
14470       solaris2.[0-5] | solaris2.[0-5].*) ;;
14471       *)
14472         # The compiler driver will combine linker options so we
14473         # cannot just pass the convience library names through
14474         # without $wl, iff we do not link with $LD.
14475         # Luckily, gcc supports the same syntax we need for Sun Studio.
14476         # Supported since Solaris 2.6 (maybe 2.5.1?)
14477         case $wlarc in
14478         '')
14479           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14480         *)
14481           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14482         esac ;;
14483       esac
14484       link_all_deplibs_F77=yes
14485       ;;
14486
14487     sunos4*)
14488       if test "x$host_vendor" = xsequent; then
14489         # Use $CC to link under sequent, because it throws in some extra .o
14490         # files that make .init and .fini sections work.
14491         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14492       else
14493         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14494       fi
14495       hardcode_libdir_flag_spec_F77='-L$libdir'
14496       hardcode_direct_F77=yes
14497       hardcode_minus_L_F77=yes
14498       hardcode_shlibpath_var_F77=no
14499       ;;
14500
14501     sysv4)
14502       case $host_vendor in
14503         sni)
14504           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14505           hardcode_direct_F77=yes # is this really true???
14506         ;;
14507         siemens)
14508           ## LD is ld it makes a PLAMLIB
14509           ## CC just makes a GrossModule.
14510           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14511           reload_cmds_F77='$CC -r -o $output$reload_objs'
14512           hardcode_direct_F77=no
14513         ;;
14514         motorola)
14515           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14516           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14517         ;;
14518       esac
14519       runpath_var='LD_RUN_PATH'
14520       hardcode_shlibpath_var_F77=no
14521       ;;
14522
14523     sysv4.3*)
14524       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14525       hardcode_shlibpath_var_F77=no
14526       export_dynamic_flag_spec_F77='-Bexport'
14527       ;;
14528
14529     sysv4*MP*)
14530       if test -d /usr/nec; then
14531         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14532         hardcode_shlibpath_var_F77=no
14533         runpath_var=LD_RUN_PATH
14534         hardcode_runpath_var=yes
14535         ld_shlibs_F77=yes
14536       fi
14537       ;;
14538
14539     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14540       no_undefined_flag_F77='${wl}-z,text'
14541       archive_cmds_need_lc_F77=no
14542       hardcode_shlibpath_var_F77=no
14543       runpath_var='LD_RUN_PATH'
14544
14545       if test "$GCC" = yes; then
14546         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14547         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14548       else
14549         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14550         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14551       fi
14552       ;;
14553
14554     sysv5* | sco3.2v5* | sco5v6*)
14555       # Note: We can NOT use -z defs as we might desire, because we do not
14556       # link with -lc, and that would cause any symbols used from libc to
14557       # always be unresolved, which means just about no library would
14558       # ever link correctly.  If we're not using GNU ld we use -z text
14559       # though, which does catch some bad symbols but isn't as heavy-handed
14560       # as -z defs.
14561       no_undefined_flag_F77='${wl}-z,text'
14562       allow_undefined_flag_F77='${wl}-z,nodefs'
14563       archive_cmds_need_lc_F77=no
14564       hardcode_shlibpath_var_F77=no
14565       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14566       hardcode_libdir_separator_F77=':'
14567       link_all_deplibs_F77=yes
14568       export_dynamic_flag_spec_F77='${wl}-Bexport'
14569       runpath_var='LD_RUN_PATH'
14570
14571       if test "$GCC" = yes; then
14572         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14573         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14574       else
14575         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14576         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14577       fi
14578       ;;
14579
14580     uts4*)
14581       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14582       hardcode_libdir_flag_spec_F77='-L$libdir'
14583       hardcode_shlibpath_var_F77=no
14584       ;;
14585
14586     *)
14587       ld_shlibs_F77=no
14588       ;;
14589     esac
14590   fi
14591
14592 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14593 echo "${ECHO_T}$ld_shlibs_F77" >&6
14594 test "$ld_shlibs_F77" = no && can_build_shared=no
14595
14596 #
14597 # Do we need to explicitly link libc?
14598 #
14599 case "x$archive_cmds_need_lc_F77" in
14600 x|xyes)
14601   # Assume -lc should be added
14602   archive_cmds_need_lc_F77=yes
14603
14604   if test "$enable_shared" = yes && test "$GCC" = yes; then
14605     case $archive_cmds_F77 in
14606     *'~'*)
14607       # FIXME: we may have to deal with multi-command sequences.
14608       ;;
14609     '$CC '*)
14610       # Test whether the compiler implicitly links with -lc since on some
14611       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14612       # to ld, don't add -lc before -lgcc.
14613       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14614 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14615       $rm conftest*
14616       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14617
14618       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14619   (eval $ac_compile) 2>&5
14620   ac_status=$?
14621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622   (exit $ac_status); } 2>conftest.err; then
14623         soname=conftest
14624         lib=conftest
14625         libobjs=conftest.$ac_objext
14626         deplibs=
14627         wl=$lt_prog_compiler_wl_F77
14628         pic_flag=$lt_prog_compiler_pic_F77
14629         compiler_flags=-v
14630         linker_flags=-v
14631         verstring=
14632         output_objdir=.
14633         libname=conftest
14634         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14635         allow_undefined_flag_F77=
14636         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14637   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14638   ac_status=$?
14639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640   (exit $ac_status); }
14641         then
14642           archive_cmds_need_lc_F77=no
14643         else
14644           archive_cmds_need_lc_F77=yes
14645         fi
14646         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14647       else
14648         cat conftest.err 1>&5
14649       fi
14650       $rm conftest*
14651       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14652 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14653       ;;
14654     esac
14655   fi
14656   ;;
14657 esac
14658
14659 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14660 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14661 library_names_spec=
14662 libname_spec='lib$name'
14663 soname_spec=
14664 shrext_cmds=".so"
14665 postinstall_cmds=
14666 postuninstall_cmds=
14667 finish_cmds=
14668 finish_eval=
14669 shlibpath_var=
14670 shlibpath_overrides_runpath=unknown
14671 version_type=none
14672 dynamic_linker="$host_os ld.so"
14673 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14674 if test "$GCC" = yes; then
14675   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14676   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14677     # if the path contains ";" then we assume it to be the separator
14678     # otherwise default to the standard path separator (i.e. ":") - it is
14679     # assumed that no part of a normal pathname contains ";" but that should
14680     # okay in the real world where ";" in dirpaths is itself problematic.
14681     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14682   else
14683     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14684   fi
14685 else
14686   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14687 fi
14688 need_lib_prefix=unknown
14689 hardcode_into_libs=no
14690
14691 # when you set need_version to no, make sure it does not cause -set_version
14692 # flags to be left without arguments
14693 need_version=unknown
14694
14695 case $host_os in
14696 aix3*)
14697   version_type=linux
14698   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14699   shlibpath_var=LIBPATH
14700
14701   # AIX 3 has no versioning support, so we append a major version to the name.
14702   soname_spec='${libname}${release}${shared_ext}$major'
14703   ;;
14704
14705 aix4* | aix5*)
14706   version_type=linux
14707   need_lib_prefix=no
14708   need_version=no
14709   hardcode_into_libs=yes
14710   if test "$host_cpu" = ia64; then
14711     # AIX 5 supports IA64
14712     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14713     shlibpath_var=LD_LIBRARY_PATH
14714   else
14715     # With GCC up to 2.95.x, collect2 would create an import file
14716     # for dependence libraries.  The import file would start with
14717     # the line `#! .'.  This would cause the generated library to
14718     # depend on `.', always an invalid library.  This was fixed in
14719     # development snapshots of GCC prior to 3.0.
14720     case $host_os in
14721       aix4 | aix4.[01] | aix4.[01].*)
14722       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14723            echo ' yes '
14724            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14725         :
14726       else
14727         can_build_shared=no
14728       fi
14729       ;;
14730     esac
14731     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14732     # soname into executable. Probably we can add versioning support to
14733     # collect2, so additional links can be useful in future.
14734     if test "$aix_use_runtimelinking" = yes; then
14735       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14736       # instead of lib<name>.a to let people know that these are not
14737       # typical AIX shared libraries.
14738       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14739     else
14740       # We preserve .a as extension for shared libraries through AIX4.2
14741       # and later when we are not doing run time linking.
14742       library_names_spec='${libname}${release}.a $libname.a'
14743       soname_spec='${libname}${release}${shared_ext}$major'
14744     fi
14745     shlibpath_var=LIBPATH
14746   fi
14747   ;;
14748
14749 amigaos*)
14750   library_names_spec='$libname.ixlibrary $libname.a'
14751   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14752   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'
14753   ;;
14754
14755 beos*)
14756   library_names_spec='${libname}${shared_ext}'
14757   dynamic_linker="$host_os ld.so"
14758   shlibpath_var=LIBRARY_PATH
14759   ;;
14760
14761 bsdi[45]*)
14762   version_type=linux
14763   need_version=no
14764   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14765   soname_spec='${libname}${release}${shared_ext}$major'
14766   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14767   shlibpath_var=LD_LIBRARY_PATH
14768   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14769   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14770   # the default ld.so.conf also contains /usr/contrib/lib and
14771   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14772   # libtool to hard-code these into programs
14773   ;;
14774
14775 cygwin* | mingw* | pw32*)
14776   version_type=windows
14777   shrext_cmds=".dll"
14778   need_version=no
14779   need_lib_prefix=no
14780
14781   case $GCC,$host_os in
14782   yes,cygwin* | yes,mingw* | yes,pw32*)
14783     library_names_spec='$libname.dll.a'
14784     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14785     postinstall_cmds='base_file=`basename \${file}`~
14786       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14787       dldir=$destdir/`dirname \$dlpath`~
14788       test -d \$dldir || mkdir -p \$dldir~
14789       $install_prog $dir/$dlname \$dldir/$dlname~
14790       chmod a+x \$dldir/$dlname'
14791     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14792       dlpath=$dir/\$dldll~
14793        $rm \$dlpath'
14794     shlibpath_overrides_runpath=yes
14795
14796     case $host_os in
14797     cygwin*)
14798       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14799       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14800       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14801       ;;
14802     mingw*)
14803       # MinGW DLLs use traditional 'lib' prefix
14804       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14805       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14806       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14807         # It is most probably a Windows format PATH printed by
14808         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14809         # path with ; separators, and with drive letters. We can handle the
14810         # drive letters (cygwin fileutils understands them), so leave them,
14811         # especially as we might pass files found there to a mingw objdump,
14812         # which wouldn't understand a cygwinified path. Ahh.
14813         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14814       else
14815         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14816       fi
14817       ;;
14818     pw32*)
14819       # pw32 DLLs use 'pw' prefix rather than 'lib'
14820       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14821       ;;
14822     esac
14823     ;;
14824
14825   *)
14826     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14827     ;;
14828   esac
14829   dynamic_linker='Win32 ld.exe'
14830   # FIXME: first we should search . and the directory the executable is in
14831   shlibpath_var=PATH
14832   ;;
14833
14834 darwin* | rhapsody*)
14835   dynamic_linker="$host_os dyld"
14836   version_type=darwin
14837   need_lib_prefix=no
14838   need_version=no
14839   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14840   soname_spec='${libname}${release}${major}$shared_ext'
14841   shlibpath_overrides_runpath=yes
14842   shlibpath_var=DYLD_LIBRARY_PATH
14843   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14844   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14845   if test "$GCC" = yes; then
14846     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"`
14847   else
14848     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14849   fi
14850   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14851   ;;
14852
14853 dgux*)
14854   version_type=linux
14855   need_lib_prefix=no
14856   need_version=no
14857   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14858   soname_spec='${libname}${release}${shared_ext}$major'
14859   shlibpath_var=LD_LIBRARY_PATH
14860   ;;
14861
14862 freebsd1*)
14863   dynamic_linker=no
14864   ;;
14865
14866 kfreebsd*-gnu)
14867   version_type=linux
14868   need_lib_prefix=no
14869   need_version=no
14870   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14871   soname_spec='${libname}${release}${shared_ext}$major'
14872   shlibpath_var=LD_LIBRARY_PATH
14873   shlibpath_overrides_runpath=no
14874   hardcode_into_libs=yes
14875   dynamic_linker='GNU ld.so'
14876   ;;
14877
14878 freebsd* | dragonfly*)
14879   # DragonFly does not have aout.  When/if they implement a new
14880   # versioning mechanism, adjust this.
14881   if test -x /usr/bin/objformat; then
14882     objformat=`/usr/bin/objformat`
14883   else
14884     case $host_os in
14885     freebsd[123]*) objformat=aout ;;
14886     *) objformat=elf ;;
14887     esac
14888   fi
14889   version_type=freebsd-$objformat
14890   case $version_type in
14891     freebsd-elf*)
14892       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14893       need_version=no
14894       need_lib_prefix=no
14895       ;;
14896     freebsd-*)
14897       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14898       need_version=yes
14899       ;;
14900   esac
14901   shlibpath_var=LD_LIBRARY_PATH
14902   case $host_os in
14903   freebsd2*)
14904     shlibpath_overrides_runpath=yes
14905     ;;
14906   freebsd3.[01]* | freebsdelf3.[01]*)
14907     shlibpath_overrides_runpath=yes
14908     hardcode_into_libs=yes
14909     ;;
14910   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14911   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14912     shlibpath_overrides_runpath=no
14913     hardcode_into_libs=yes
14914     ;;
14915   freebsd*) # from 4.6 on
14916     shlibpath_overrides_runpath=yes
14917     hardcode_into_libs=yes
14918     ;;
14919   esac
14920   ;;
14921
14922 gnu*)
14923   version_type=linux
14924   need_lib_prefix=no
14925   need_version=no
14926   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14927   soname_spec='${libname}${release}${shared_ext}$major'
14928   shlibpath_var=LD_LIBRARY_PATH
14929   hardcode_into_libs=yes
14930   ;;
14931
14932 hpux9* | hpux10* | hpux11*)
14933   # Give a soname corresponding to the major version so that dld.sl refuses to
14934   # link against other versions.
14935   version_type=sunos
14936   need_lib_prefix=no
14937   need_version=no
14938   case $host_cpu in
14939   ia64*)
14940     shrext_cmds='.so'
14941     hardcode_into_libs=yes
14942     dynamic_linker="$host_os dld.so"
14943     shlibpath_var=LD_LIBRARY_PATH
14944     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14945     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14946     soname_spec='${libname}${release}${shared_ext}$major'
14947     if test "X$HPUX_IA64_MODE" = X32; then
14948       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14949     else
14950       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14951     fi
14952     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14953     ;;
14954    hppa*64*)
14955      shrext_cmds='.sl'
14956      hardcode_into_libs=yes
14957      dynamic_linker="$host_os dld.sl"
14958      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14959      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14960      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14961      soname_spec='${libname}${release}${shared_ext}$major'
14962      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14963      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14964      ;;
14965    *)
14966     shrext_cmds='.sl'
14967     dynamic_linker="$host_os dld.sl"
14968     shlibpath_var=SHLIB_PATH
14969     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14970     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14971     soname_spec='${libname}${release}${shared_ext}$major'
14972     ;;
14973   esac
14974   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14975   postinstall_cmds='chmod 555 $lib'
14976   ;;
14977
14978 interix3*)
14979   version_type=linux
14980   need_lib_prefix=no
14981   need_version=no
14982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14983   soname_spec='${libname}${release}${shared_ext}$major'
14984   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14985   shlibpath_var=LD_LIBRARY_PATH
14986   shlibpath_overrides_runpath=no
14987   hardcode_into_libs=yes
14988   ;;
14989
14990 irix5* | irix6* | nonstopux*)
14991   case $host_os in
14992     nonstopux*) version_type=nonstopux ;;
14993     *)
14994         if test "$lt_cv_prog_gnu_ld" = yes; then
14995                 version_type=linux
14996         else
14997                 version_type=irix
14998         fi ;;
14999   esac
15000   need_lib_prefix=no
15001   need_version=no
15002   soname_spec='${libname}${release}${shared_ext}$major'
15003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15004   case $host_os in
15005   irix5* | nonstopux*)
15006     libsuff= shlibsuff=
15007     ;;
15008   *)
15009     case $LD in # libtool.m4 will add one of these switches to LD
15010     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15011       libsuff= shlibsuff= libmagic=32-bit;;
15012     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15013       libsuff=32 shlibsuff=N32 libmagic=N32;;
15014     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15015       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15016     *) libsuff= shlibsuff= libmagic=never-match;;
15017     esac
15018     ;;
15019   esac
15020   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15021   shlibpath_overrides_runpath=no
15022   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15023   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15024   hardcode_into_libs=yes
15025   ;;
15026
15027 # No shared lib support for Linux oldld, aout, or coff.
15028 linux*oldld* | linux*aout* | linux*coff*)
15029   dynamic_linker=no
15030   ;;
15031
15032 # This must be Linux ELF.
15033 linux*)
15034   version_type=linux
15035   need_lib_prefix=no
15036   need_version=no
15037   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15038   soname_spec='${libname}${release}${shared_ext}$major'
15039   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15040   shlibpath_var=LD_LIBRARY_PATH
15041   shlibpath_overrides_runpath=no
15042   # This implies no fast_install, which is unacceptable.
15043   # Some rework will be needed to allow for fast_install
15044   # before this can be enabled.
15045   hardcode_into_libs=yes
15046
15047   # Append ld.so.conf contents to the search path
15048   if test -f /etc/ld.so.conf; then
15049     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15050     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15051   fi
15052
15053   # We used to test for /lib/ld.so.1 and disable shared libraries on
15054   # powerpc, because MkLinux only supported shared libraries with the
15055   # GNU dynamic linker.  Since this was broken with cross compilers,
15056   # most powerpc-linux boxes support dynamic linking these days and
15057   # people can always --disable-shared, the test was removed, and we
15058   # assume the GNU/Linux dynamic linker is in use.
15059   dynamic_linker='GNU/Linux ld.so'
15060   ;;
15061
15062 netbsdelf*-gnu)
15063   version_type=linux
15064   need_lib_prefix=no
15065   need_version=no
15066   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15067   soname_spec='${libname}${release}${shared_ext}$major'
15068   shlibpath_var=LD_LIBRARY_PATH
15069   shlibpath_overrides_runpath=no
15070   hardcode_into_libs=yes
15071   dynamic_linker='NetBSD ld.elf_so'
15072   ;;
15073
15074 knetbsd*-gnu)
15075   version_type=linux
15076   need_lib_prefix=no
15077   need_version=no
15078   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15079   soname_spec='${libname}${release}${shared_ext}$major'
15080   shlibpath_var=LD_LIBRARY_PATH
15081   shlibpath_overrides_runpath=no
15082   hardcode_into_libs=yes
15083   dynamic_linker='GNU ld.so'
15084   ;;
15085
15086 netbsd*)
15087   version_type=sunos
15088   need_lib_prefix=no
15089   need_version=no
15090   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15091     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15092     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15093     dynamic_linker='NetBSD (a.out) ld.so'
15094   else
15095     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15096     soname_spec='${libname}${release}${shared_ext}$major'
15097     dynamic_linker='NetBSD ld.elf_so'
15098   fi
15099   shlibpath_var=LD_LIBRARY_PATH
15100   shlibpath_overrides_runpath=yes
15101   hardcode_into_libs=yes
15102   ;;
15103
15104 newsos6)
15105   version_type=linux
15106   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15107   shlibpath_var=LD_LIBRARY_PATH
15108   shlibpath_overrides_runpath=yes
15109   ;;
15110
15111 nto-qnx*)
15112   version_type=linux
15113   need_lib_prefix=no
15114   need_version=no
15115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15116   soname_spec='${libname}${release}${shared_ext}$major'
15117   shlibpath_var=LD_LIBRARY_PATH
15118   shlibpath_overrides_runpath=yes
15119   ;;
15120
15121 openbsd*)
15122   version_type=sunos
15123   sys_lib_dlsearch_path_spec="/usr/lib"
15124   need_lib_prefix=no
15125   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15126   case $host_os in
15127     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15128     *)                         need_version=no  ;;
15129   esac
15130   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15131   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15132   shlibpath_var=LD_LIBRARY_PATH
15133   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15134     case $host_os in
15135       openbsd2.[89] | openbsd2.[89].*)
15136         shlibpath_overrides_runpath=no
15137         ;;
15138       *)
15139         shlibpath_overrides_runpath=yes
15140         ;;
15141       esac
15142   else
15143     shlibpath_overrides_runpath=yes
15144   fi
15145   ;;
15146
15147 os2*)
15148   libname_spec='$name'
15149   shrext_cmds=".dll"
15150   need_lib_prefix=no
15151   library_names_spec='$libname${shared_ext} $libname.a'
15152   dynamic_linker='OS/2 ld.exe'
15153   shlibpath_var=LIBPATH
15154   ;;
15155
15156 osf3* | osf4* | osf5*)
15157   version_type=osf
15158   need_lib_prefix=no
15159   need_version=no
15160   soname_spec='${libname}${release}${shared_ext}$major'
15161   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15162   shlibpath_var=LD_LIBRARY_PATH
15163   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15164   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15165   ;;
15166
15167 solaris*)
15168   version_type=linux
15169   need_lib_prefix=no
15170   need_version=no
15171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15172   soname_spec='${libname}${release}${shared_ext}$major'
15173   shlibpath_var=LD_LIBRARY_PATH
15174   shlibpath_overrides_runpath=yes
15175   hardcode_into_libs=yes
15176   # ldd complains unless libraries are executable
15177   postinstall_cmds='chmod +x $lib'
15178   ;;
15179
15180 sunos4*)
15181   version_type=sunos
15182   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15183   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15184   shlibpath_var=LD_LIBRARY_PATH
15185   shlibpath_overrides_runpath=yes
15186   if test "$with_gnu_ld" = yes; then
15187     need_lib_prefix=no
15188   fi
15189   need_version=yes
15190   ;;
15191
15192 sysv4 | sysv4.3*)
15193   version_type=linux
15194   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15195   soname_spec='${libname}${release}${shared_ext}$major'
15196   shlibpath_var=LD_LIBRARY_PATH
15197   case $host_vendor in
15198     sni)
15199       shlibpath_overrides_runpath=no
15200       need_lib_prefix=no
15201       export_dynamic_flag_spec='${wl}-Blargedynsym'
15202       runpath_var=LD_RUN_PATH
15203       ;;
15204     siemens)
15205       need_lib_prefix=no
15206       ;;
15207     motorola)
15208       need_lib_prefix=no
15209       need_version=no
15210       shlibpath_overrides_runpath=no
15211       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15212       ;;
15213   esac
15214   ;;
15215
15216 sysv4*MP*)
15217   if test -d /usr/nec ;then
15218     version_type=linux
15219     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15220     soname_spec='$libname${shared_ext}.$major'
15221     shlibpath_var=LD_LIBRARY_PATH
15222   fi
15223   ;;
15224
15225 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15226   version_type=freebsd-elf
15227   need_lib_prefix=no
15228   need_version=no
15229   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15230   soname_spec='${libname}${release}${shared_ext}$major'
15231   shlibpath_var=LD_LIBRARY_PATH
15232   hardcode_into_libs=yes
15233   if test "$with_gnu_ld" = yes; then
15234     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15235     shlibpath_overrides_runpath=no
15236   else
15237     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15238     shlibpath_overrides_runpath=yes
15239     case $host_os in
15240       sco3.2v5*)
15241         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15242         ;;
15243     esac
15244   fi
15245   sys_lib_dlsearch_path_spec='/usr/lib'
15246   ;;
15247
15248 uts4*)
15249   version_type=linux
15250   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15251   soname_spec='${libname}${release}${shared_ext}$major'
15252   shlibpath_var=LD_LIBRARY_PATH
15253   ;;
15254
15255 *)
15256   dynamic_linker=no
15257   ;;
15258 esac
15259 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15260 echo "${ECHO_T}$dynamic_linker" >&6
15261 test "$dynamic_linker" = no && can_build_shared=no
15262
15263 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15264 if test "$GCC" = yes; then
15265   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15266 fi
15267
15268 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15269 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15270 hardcode_action_F77=
15271 if test -n "$hardcode_libdir_flag_spec_F77" || \
15272    test -n "$runpath_var_F77" || \
15273    test "X$hardcode_automatic_F77" = "Xyes" ; then
15274
15275   # We can hardcode non-existant directories.
15276   if test "$hardcode_direct_F77" != no &&
15277      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15278      # have to relink, otherwise we might link with an installed library
15279      # when we should be linking with a yet-to-be-installed one
15280      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15281      test "$hardcode_minus_L_F77" != no; then
15282     # Linking always hardcodes the temporary library directory.
15283     hardcode_action_F77=relink
15284   else
15285     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15286     hardcode_action_F77=immediate
15287   fi
15288 else
15289   # We cannot hardcode anything, or else we can only hardcode existing
15290   # directories.
15291   hardcode_action_F77=unsupported
15292 fi
15293 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15294 echo "${ECHO_T}$hardcode_action_F77" >&6
15295
15296 if test "$hardcode_action_F77" = relink; then
15297   # Fast installation is not supported
15298   enable_fast_install=no
15299 elif test "$shlibpath_overrides_runpath" = yes ||
15300      test "$enable_shared" = no; then
15301   # Fast installation is not necessary
15302   enable_fast_install=needless
15303 fi
15304
15305
15306 # The else clause should only fire when bootstrapping the
15307 # libtool distribution, otherwise you forgot to ship ltmain.sh
15308 # with your package, and you will get complaints that there are
15309 # no rules to generate ltmain.sh.
15310 if test -f "$ltmain"; then
15311   # See if we are running on zsh, and set the options which allow our commands through
15312   # without removal of \ escapes.
15313   if test -n "${ZSH_VERSION+set}" ; then
15314     setopt NO_GLOB_SUBST
15315   fi
15316   # Now quote all the things that may contain metacharacters while being
15317   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15318   # variables and quote the copies for generation of the libtool script.
15319   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15320     SED SHELL STRIP \
15321     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15322     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15323     deplibs_check_method reload_flag reload_cmds need_locks \
15324     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15325     lt_cv_sys_global_symbol_to_c_name_address \
15326     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15327     old_postinstall_cmds old_postuninstall_cmds \
15328     compiler_F77 \
15329     CC_F77 \
15330     LD_F77 \
15331     lt_prog_compiler_wl_F77 \
15332     lt_prog_compiler_pic_F77 \
15333     lt_prog_compiler_static_F77 \
15334     lt_prog_compiler_no_builtin_flag_F77 \
15335     export_dynamic_flag_spec_F77 \
15336     thread_safe_flag_spec_F77 \
15337     whole_archive_flag_spec_F77 \
15338     enable_shared_with_static_runtimes_F77 \
15339     old_archive_cmds_F77 \
15340     old_archive_from_new_cmds_F77 \
15341     predep_objects_F77 \
15342     postdep_objects_F77 \
15343     predeps_F77 \
15344     postdeps_F77 \
15345     compiler_lib_search_path_F77 \
15346     archive_cmds_F77 \
15347     archive_expsym_cmds_F77 \
15348     postinstall_cmds_F77 \
15349     postuninstall_cmds_F77 \
15350     old_archive_from_expsyms_cmds_F77 \
15351     allow_undefined_flag_F77 \
15352     no_undefined_flag_F77 \
15353     export_symbols_cmds_F77 \
15354     hardcode_libdir_flag_spec_F77 \
15355     hardcode_libdir_flag_spec_ld_F77 \
15356     hardcode_libdir_separator_F77 \
15357     hardcode_automatic_F77 \
15358     module_cmds_F77 \
15359     module_expsym_cmds_F77 \
15360     lt_cv_prog_compiler_c_o_F77 \
15361     exclude_expsyms_F77 \
15362     include_expsyms_F77; do
15363
15364     case $var in
15365     old_archive_cmds_F77 | \
15366     old_archive_from_new_cmds_F77 | \
15367     archive_cmds_F77 | \
15368     archive_expsym_cmds_F77 | \
15369     module_cmds_F77 | \
15370     module_expsym_cmds_F77 | \
15371     old_archive_from_expsyms_cmds_F77 | \
15372     export_symbols_cmds_F77 | \
15373     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15374     postinstall_cmds | postuninstall_cmds | \
15375     old_postinstall_cmds | old_postuninstall_cmds | \
15376     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15377       # Double-quote double-evaled strings.
15378       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15379       ;;
15380     *)
15381       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15382       ;;
15383     esac
15384   done
15385
15386   case $lt_echo in
15387   *'\$0 --fallback-echo"')
15388     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15389     ;;
15390   esac
15391
15392 cfgfile="$ofile"
15393
15394   cat <<__EOF__ >> "$cfgfile"
15395 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15396
15397 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15398
15399 # Shell to use when invoking shell scripts.
15400 SHELL=$lt_SHELL
15401
15402 # Whether or not to build shared libraries.
15403 build_libtool_libs=$enable_shared
15404
15405 # Whether or not to build static libraries.
15406 build_old_libs=$enable_static
15407
15408 # Whether or not to add -lc for building shared libraries.
15409 build_libtool_need_lc=$archive_cmds_need_lc_F77
15410
15411 # Whether or not to disallow shared libs when runtime libs are static
15412 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15413
15414 # Whether or not to optimize for fast installation.
15415 fast_install=$enable_fast_install
15416
15417 # The host system.
15418 host_alias=$host_alias
15419 host=$host
15420 host_os=$host_os
15421
15422 # The build system.
15423 build_alias=$build_alias
15424 build=$build
15425 build_os=$build_os
15426
15427 # An echo program that does not interpret backslashes.
15428 echo=$lt_echo
15429
15430 # The archiver.
15431 AR=$lt_AR
15432 AR_FLAGS=$lt_AR_FLAGS
15433
15434 # A C compiler.
15435 LTCC=$lt_LTCC
15436
15437 # LTCC compiler flags.
15438 LTCFLAGS=$lt_LTCFLAGS
15439
15440 # A language-specific compiler.
15441 CC=$lt_compiler_F77
15442
15443 # Is the compiler the GNU C compiler?
15444 with_gcc=$GCC_F77
15445
15446 # An ERE matcher.
15447 EGREP=$lt_EGREP
15448
15449 # The linker used to build libraries.
15450 LD=$lt_LD_F77
15451
15452 # Whether we need hard or soft links.
15453 LN_S=$lt_LN_S
15454
15455 # A BSD-compatible nm program.
15456 NM=$lt_NM
15457
15458 # A symbol stripping program
15459 STRIP=$lt_STRIP
15460
15461 # Used to examine libraries when file_magic_cmd begins "file"
15462 MAGIC_CMD=$MAGIC_CMD
15463
15464 # Used on cygwin: DLL creation program.
15465 DLLTOOL="$DLLTOOL"
15466
15467 # Used on cygwin: object dumper.
15468 OBJDUMP="$OBJDUMP"
15469
15470 # Used on cygwin: assembler.
15471 AS="$AS"
15472
15473 # The name of the directory that contains temporary libtool files.
15474 objdir=$objdir
15475
15476 # How to create reloadable object files.
15477 reload_flag=$lt_reload_flag
15478 reload_cmds=$lt_reload_cmds
15479
15480 # How to pass a linker flag through the compiler.
15481 wl=$lt_lt_prog_compiler_wl_F77
15482
15483 # Object file suffix (normally "o").
15484 objext="$ac_objext"
15485
15486 # Old archive suffix (normally "a").
15487 libext="$libext"
15488
15489 # Shared library suffix (normally ".so").
15490 shrext_cmds='$shrext_cmds'
15491
15492 # Executable file suffix (normally "").
15493 exeext="$exeext"
15494
15495 # Additional compiler flags for building library objects.
15496 pic_flag=$lt_lt_prog_compiler_pic_F77
15497 pic_mode=$pic_mode
15498
15499 # What is the maximum length of a command?
15500 max_cmd_len=$lt_cv_sys_max_cmd_len
15501
15502 # Does compiler simultaneously support -c and -o options?
15503 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15504
15505 # Must we lock files when doing compilation?
15506 need_locks=$lt_need_locks
15507
15508 # Do we need the lib prefix for modules?
15509 need_lib_prefix=$need_lib_prefix
15510
15511 # Do we need a version for libraries?
15512 need_version=$need_version
15513
15514 # Whether dlopen is supported.
15515 dlopen_support=$enable_dlopen
15516
15517 # Whether dlopen of programs is supported.
15518 dlopen_self=$enable_dlopen_self
15519
15520 # Whether dlopen of statically linked programs is supported.
15521 dlopen_self_static=$enable_dlopen_self_static
15522
15523 # Compiler flag to prevent dynamic linking.
15524 link_static_flag=$lt_lt_prog_compiler_static_F77
15525
15526 # Compiler flag to turn off builtin functions.
15527 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15528
15529 # Compiler flag to allow reflexive dlopens.
15530 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15531
15532 # Compiler flag to generate shared objects directly from archives.
15533 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15534
15535 # Compiler flag to generate thread-safe objects.
15536 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15537
15538 # Library versioning type.
15539 version_type=$version_type
15540
15541 # Format of library name prefix.
15542 libname_spec=$lt_libname_spec
15543
15544 # List of archive names.  First name is the real one, the rest are links.
15545 # The last name is the one that the linker finds with -lNAME.
15546 library_names_spec=$lt_library_names_spec
15547
15548 # The coded name of the library, if different from the real name.
15549 soname_spec=$lt_soname_spec
15550
15551 # Commands used to build and install an old-style archive.
15552 RANLIB=$lt_RANLIB
15553 old_archive_cmds=$lt_old_archive_cmds_F77
15554 old_postinstall_cmds=$lt_old_postinstall_cmds
15555 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15556
15557 # Create an old-style archive from a shared archive.
15558 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15559
15560 # Create a temporary old-style archive to link instead of a shared archive.
15561 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15562
15563 # Commands used to build and install a shared archive.
15564 archive_cmds=$lt_archive_cmds_F77
15565 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15566 postinstall_cmds=$lt_postinstall_cmds
15567 postuninstall_cmds=$lt_postuninstall_cmds
15568
15569 # Commands used to build a loadable module (assumed same as above if empty)
15570 module_cmds=$lt_module_cmds_F77
15571 module_expsym_cmds=$lt_module_expsym_cmds_F77
15572
15573 # Commands to strip libraries.
15574 old_striplib=$lt_old_striplib
15575 striplib=$lt_striplib
15576
15577 # Dependencies to place before the objects being linked to create a
15578 # shared library.
15579 predep_objects=$lt_predep_objects_F77
15580
15581 # Dependencies to place after the objects being linked to create a
15582 # shared library.
15583 postdep_objects=$lt_postdep_objects_F77
15584
15585 # Dependencies to place before the objects being linked to create a
15586 # shared library.
15587 predeps=$lt_predeps_F77
15588
15589 # Dependencies to place after the objects being linked to create a
15590 # shared library.
15591 postdeps=$lt_postdeps_F77
15592
15593 # The library search path used internally by the compiler when linking
15594 # a shared library.
15595 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15596
15597 # Method to check whether dependent libraries are shared objects.
15598 deplibs_check_method=$lt_deplibs_check_method
15599
15600 # Command to use when deplibs_check_method == file_magic.
15601 file_magic_cmd=$lt_file_magic_cmd
15602
15603 # Flag that allows shared libraries with undefined symbols to be built.
15604 allow_undefined_flag=$lt_allow_undefined_flag_F77
15605
15606 # Flag that forces no undefined symbols.
15607 no_undefined_flag=$lt_no_undefined_flag_F77
15608
15609 # Commands used to finish a libtool library installation in a directory.
15610 finish_cmds=$lt_finish_cmds
15611
15612 # Same as above, but a single script fragment to be evaled but not shown.
15613 finish_eval=$lt_finish_eval
15614
15615 # Take the output of nm and produce a listing of raw symbols and C names.
15616 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15617
15618 # Transform the output of nm in a proper C declaration
15619 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15620
15621 # Transform the output of nm in a C name address pair
15622 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15623
15624 # This is the shared library runtime path variable.
15625 runpath_var=$runpath_var
15626
15627 # This is the shared library path variable.
15628 shlibpath_var=$shlibpath_var
15629
15630 # Is shlibpath searched before the hard-coded library search path?
15631 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15632
15633 # How to hardcode a shared library path into an executable.
15634 hardcode_action=$hardcode_action_F77
15635
15636 # Whether we should hardcode library paths into libraries.
15637 hardcode_into_libs=$hardcode_into_libs
15638
15639 # Flag to hardcode \$libdir into a binary during linking.
15640 # This must work even if \$libdir does not exist.
15641 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15642
15643 # If ld is used when linking, flag to hardcode \$libdir into
15644 # a binary during linking. This must work even if \$libdir does
15645 # not exist.
15646 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15647
15648 # Whether we need a single -rpath flag with a separated argument.
15649 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15650
15651 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15652 # resulting binary.
15653 hardcode_direct=$hardcode_direct_F77
15654
15655 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15656 # resulting binary.
15657 hardcode_minus_L=$hardcode_minus_L_F77
15658
15659 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15660 # the resulting binary.
15661 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15662
15663 # Set to yes if building a shared library automatically hardcodes DIR into the library
15664 # and all subsequent libraries and executables linked against it.
15665 hardcode_automatic=$hardcode_automatic_F77
15666
15667 # Variables whose values should be saved in libtool wrapper scripts and
15668 # restored at relink time.
15669 variables_saved_for_relink="$variables_saved_for_relink"
15670
15671 # Whether libtool must link a program against all its dependency libraries.
15672 link_all_deplibs=$link_all_deplibs_F77
15673
15674 # Compile-time system search path for libraries
15675 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15676
15677 # Run-time system search path for libraries
15678 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15679
15680 # Fix the shell variable \$srcfile for the compiler.
15681 fix_srcfile_path="$fix_srcfile_path_F77"
15682
15683 # Set to yes if exported symbols are required.
15684 always_export_symbols=$always_export_symbols_F77
15685
15686 # The commands to list exported symbols.
15687 export_symbols_cmds=$lt_export_symbols_cmds_F77
15688
15689 # The commands to extract the exported symbol list from a shared archive.
15690 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15691
15692 # Symbols that should not be listed in the preloaded symbols.
15693 exclude_expsyms=$lt_exclude_expsyms_F77
15694
15695 # Symbols that must always be exported.
15696 include_expsyms=$lt_include_expsyms_F77
15697
15698 # ### END LIBTOOL TAG CONFIG: $tagname
15699
15700 __EOF__
15701
15702
15703 else
15704   # If there is no Makefile yet, we rely on a make rule to execute
15705   # `config.status --recheck' to rerun these tests and create the
15706   # libtool script then.
15707   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15708   if test -f "$ltmain_in"; then
15709     test -f Makefile && make "$ltmain"
15710   fi
15711 fi
15712
15713
15714 ac_ext=c
15715 ac_cpp='$CPP $CPPFLAGS'
15716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15719
15720 CC="$lt_save_CC"
15721
15722         else
15723           tagname=""
15724         fi
15725         ;;
15726
15727       GCJ)
15728         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15729
15730
15731
15732 # Source file extension for Java test sources.
15733 ac_ext=java
15734
15735 # Object file extension for compiled Java test sources.
15736 objext=o
15737 objext_GCJ=$objext
15738
15739 # Code to be used in simple compile tests
15740 lt_simple_compile_test_code="class foo {}\n"
15741
15742 # Code to be used in simple link tests
15743 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15744
15745 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15746
15747 # If no C compiler was specified, use CC.
15748 LTCC=${LTCC-"$CC"}
15749
15750 # If no C compiler flags were specified, use CFLAGS.
15751 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15752
15753 # Allow CC to be a program name with arguments.
15754 compiler=$CC
15755
15756
15757 # save warnings/boilerplate of simple test code
15758 ac_outfile=conftest.$ac_objext
15759 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15760 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15761 _lt_compiler_boilerplate=`cat conftest.err`
15762 $rm conftest*
15763
15764 ac_outfile=conftest.$ac_objext
15765 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15766 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15767 _lt_linker_boilerplate=`cat conftest.err`
15768 $rm conftest*
15769
15770
15771 # Allow CC to be a program name with arguments.
15772 lt_save_CC="$CC"
15773 CC=${GCJ-"gcj"}
15774 compiler=$CC
15775 compiler_GCJ=$CC
15776 for cc_temp in $compiler""; do
15777   case $cc_temp in
15778     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15779     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15780     \-*) ;;
15781     *) break;;
15782   esac
15783 done
15784 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15785
15786
15787 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15788 archive_cmds_need_lc_GCJ=no
15789
15790 old_archive_cmds_GCJ=$old_archive_cmds
15791
15792
15793 lt_prog_compiler_no_builtin_flag_GCJ=
15794
15795 if test "$GCC" = yes; then
15796   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15797
15798
15799 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15800 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15801 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15802   echo $ECHO_N "(cached) $ECHO_C" >&6
15803 else
15804   lt_cv_prog_compiler_rtti_exceptions=no
15805   ac_outfile=conftest.$ac_objext
15806    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15807    lt_compiler_flag="-fno-rtti -fno-exceptions"
15808    # Insert the option either (1) after the last *FLAGS variable, or
15809    # (2) before a word containing "conftest.", or (3) at the end.
15810    # Note that $ac_compile itself does not contain backslashes and begins
15811    # with a dollar sign (not a hyphen), so the echo should work correctly.
15812    # The option is referenced via a variable to avoid confusing sed.
15813    lt_compile=`echo "$ac_compile" | $SED \
15814    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15815    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15816    -e 's:$: $lt_compiler_flag:'`
15817    (eval echo "\"\$as_me:15817: $lt_compile\"" >&5)
15818    (eval "$lt_compile" 2>conftest.err)
15819    ac_status=$?
15820    cat conftest.err >&5
15821    echo "$as_me:15821: \$? = $ac_status" >&5
15822    if (exit $ac_status) && test -s "$ac_outfile"; then
15823      # The compiler can only warn and ignore the option if not recognized
15824      # So say no if there are warnings other than the usual output.
15825      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15826      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15827      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15828        lt_cv_prog_compiler_rtti_exceptions=yes
15829      fi
15830    fi
15831    $rm conftest*
15832
15833 fi
15834 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15835 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15836
15837 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15838     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15839 else
15840     :
15841 fi
15842
15843 fi
15844
15845 lt_prog_compiler_wl_GCJ=
15846 lt_prog_compiler_pic_GCJ=
15847 lt_prog_compiler_static_GCJ=
15848
15849 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15850 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15851
15852   if test "$GCC" = yes; then
15853     lt_prog_compiler_wl_GCJ='-Wl,'
15854     lt_prog_compiler_static_GCJ='-static'
15855
15856     case $host_os in
15857       aix*)
15858       # All AIX code is PIC.
15859       if test "$host_cpu" = ia64; then
15860         # AIX 5 now supports IA64 processor
15861         lt_prog_compiler_static_GCJ='-Bstatic'
15862       fi
15863       ;;
15864
15865     amigaos*)
15866       # FIXME: we need at least 68020 code to build shared libraries, but
15867       # adding the `-m68020' flag to GCC prevents building anything better,
15868       # like `-m68040'.
15869       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15870       ;;
15871
15872     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15873       # PIC is the default for these OSes.
15874       ;;
15875
15876     mingw* | pw32* | os2*)
15877       # This hack is so that the source file can tell whether it is being
15878       # built for inclusion in a dll (and should export symbols for example).
15879       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15880       ;;
15881
15882     darwin* | rhapsody*)
15883       # PIC is the default on this platform
15884       # Common symbols not allowed in MH_DYLIB files
15885       lt_prog_compiler_pic_GCJ='-fno-common'
15886       ;;
15887
15888     interix3*)
15889       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15890       # Instead, we relocate shared libraries at runtime.
15891       ;;
15892
15893     msdosdjgpp*)
15894       # Just because we use GCC doesn't mean we suddenly get shared libraries
15895       # on systems that don't support them.
15896       lt_prog_compiler_can_build_shared_GCJ=no
15897       enable_shared=no
15898       ;;
15899
15900     sysv4*MP*)
15901       if test -d /usr/nec; then
15902         lt_prog_compiler_pic_GCJ=-Kconform_pic
15903       fi
15904       ;;
15905
15906     hpux*)
15907       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15908       # not for PA HP-UX.
15909       case $host_cpu in
15910       hppa*64*|ia64*)
15911         # +Z the default
15912         ;;
15913       *)
15914         lt_prog_compiler_pic_GCJ='-fPIC'
15915         ;;
15916       esac
15917       ;;
15918
15919     *)
15920       lt_prog_compiler_pic_GCJ='-fPIC'
15921       ;;
15922     esac
15923   else
15924     # PORTME Check for flag to pass linker flags through the system compiler.
15925     case $host_os in
15926     aix*)
15927       lt_prog_compiler_wl_GCJ='-Wl,'
15928       if test "$host_cpu" = ia64; then
15929         # AIX 5 now supports IA64 processor
15930         lt_prog_compiler_static_GCJ='-Bstatic'
15931       else
15932         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15933       fi
15934       ;;
15935       darwin*)
15936         # PIC is the default on this platform
15937         # Common symbols not allowed in MH_DYLIB files
15938        case $cc_basename in
15939          xlc*)
15940          lt_prog_compiler_pic_GCJ='-qnocommon'
15941          lt_prog_compiler_wl_GCJ='-Wl,'
15942          ;;
15943        esac
15944        ;;
15945
15946     mingw* | pw32* | os2*)
15947       # This hack is so that the source file can tell whether it is being
15948       # built for inclusion in a dll (and should export symbols for example).
15949       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15950       ;;
15951
15952     hpux9* | hpux10* | hpux11*)
15953       lt_prog_compiler_wl_GCJ='-Wl,'
15954       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15955       # not for PA HP-UX.
15956       case $host_cpu in
15957       hppa*64*|ia64*)
15958         # +Z the default
15959         ;;
15960       *)
15961         lt_prog_compiler_pic_GCJ='+Z'
15962         ;;
15963       esac
15964       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15965       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15966       ;;
15967
15968     irix5* | irix6* | nonstopux*)
15969       lt_prog_compiler_wl_GCJ='-Wl,'
15970       # PIC (with -KPIC) is the default.
15971       lt_prog_compiler_static_GCJ='-non_shared'
15972       ;;
15973
15974     newsos6)
15975       lt_prog_compiler_pic_GCJ='-KPIC'
15976       lt_prog_compiler_static_GCJ='-Bstatic'
15977       ;;
15978
15979     linux*)
15980       case $cc_basename in
15981       icc* | ecc*)
15982         lt_prog_compiler_wl_GCJ='-Wl,'
15983         lt_prog_compiler_pic_GCJ='-KPIC'
15984         lt_prog_compiler_static_GCJ='-static'
15985         ;;
15986       pgcc* | pgf77* | pgf90* | pgf95*)
15987         # Portland Group compilers (*not* the Pentium gcc compiler,
15988         # which looks to be a dead project)
15989         lt_prog_compiler_wl_GCJ='-Wl,'
15990         lt_prog_compiler_pic_GCJ='-fpic'
15991         lt_prog_compiler_static_GCJ='-Bstatic'
15992         ;;
15993       ccc*)
15994         lt_prog_compiler_wl_GCJ='-Wl,'
15995         # All Alpha code is PIC.
15996         lt_prog_compiler_static_GCJ='-non_shared'
15997         ;;
15998       esac
15999       ;;
16000
16001     osf3* | osf4* | osf5*)
16002       lt_prog_compiler_wl_GCJ='-Wl,'
16003       # All OSF/1 code is PIC.
16004       lt_prog_compiler_static_GCJ='-non_shared'
16005       ;;
16006
16007     solaris*)
16008       lt_prog_compiler_pic_GCJ='-KPIC'
16009       lt_prog_compiler_static_GCJ='-Bstatic'
16010       case $cc_basename in
16011       f77* | f90* | f95*)
16012         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16013       *)
16014         lt_prog_compiler_wl_GCJ='-Wl,';;
16015       esac
16016       ;;
16017
16018     sunos4*)
16019       lt_prog_compiler_wl_GCJ='-Qoption ld '
16020       lt_prog_compiler_pic_GCJ='-PIC'
16021       lt_prog_compiler_static_GCJ='-Bstatic'
16022       ;;
16023
16024     sysv4 | sysv4.2uw2* | sysv4.3*)
16025       lt_prog_compiler_wl_GCJ='-Wl,'
16026       lt_prog_compiler_pic_GCJ='-KPIC'
16027       lt_prog_compiler_static_GCJ='-Bstatic'
16028       ;;
16029
16030     sysv4*MP*)
16031       if test -d /usr/nec ;then
16032         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16033         lt_prog_compiler_static_GCJ='-Bstatic'
16034       fi
16035       ;;
16036
16037     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16038       lt_prog_compiler_wl_GCJ='-Wl,'
16039       lt_prog_compiler_pic_GCJ='-KPIC'
16040       lt_prog_compiler_static_GCJ='-Bstatic'
16041       ;;
16042
16043     unicos*)
16044       lt_prog_compiler_wl_GCJ='-Wl,'
16045       lt_prog_compiler_can_build_shared_GCJ=no
16046       ;;
16047
16048     uts4*)
16049       lt_prog_compiler_pic_GCJ='-pic'
16050       lt_prog_compiler_static_GCJ='-Bstatic'
16051       ;;
16052
16053     *)
16054       lt_prog_compiler_can_build_shared_GCJ=no
16055       ;;
16056     esac
16057   fi
16058
16059 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16060 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16061
16062 #
16063 # Check to make sure the PIC flag actually works.
16064 #
16065 if test -n "$lt_prog_compiler_pic_GCJ"; then
16066
16067 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16068 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16069 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16070   echo $ECHO_N "(cached) $ECHO_C" >&6
16071 else
16072   lt_prog_compiler_pic_works_GCJ=no
16073   ac_outfile=conftest.$ac_objext
16074    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16075    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16076    # Insert the option either (1) after the last *FLAGS variable, or
16077    # (2) before a word containing "conftest.", or (3) at the end.
16078    # Note that $ac_compile itself does not contain backslashes and begins
16079    # with a dollar sign (not a hyphen), so the echo should work correctly.
16080    # The option is referenced via a variable to avoid confusing sed.
16081    lt_compile=`echo "$ac_compile" | $SED \
16082    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16083    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16084    -e 's:$: $lt_compiler_flag:'`
16085    (eval echo "\"\$as_me:16085: $lt_compile\"" >&5)
16086    (eval "$lt_compile" 2>conftest.err)
16087    ac_status=$?
16088    cat conftest.err >&5
16089    echo "$as_me:16089: \$? = $ac_status" >&5
16090    if (exit $ac_status) && test -s "$ac_outfile"; then
16091      # The compiler can only warn and ignore the option if not recognized
16092      # So say no if there are warnings other than the usual output.
16093      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16094      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16095      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16096        lt_prog_compiler_pic_works_GCJ=yes
16097      fi
16098    fi
16099    $rm conftest*
16100
16101 fi
16102 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16103 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16104
16105 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16106     case $lt_prog_compiler_pic_GCJ in
16107      "" | " "*) ;;
16108      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16109      esac
16110 else
16111     lt_prog_compiler_pic_GCJ=
16112      lt_prog_compiler_can_build_shared_GCJ=no
16113 fi
16114
16115 fi
16116 case $host_os in
16117   # For platforms which do not support PIC, -DPIC is meaningless:
16118   *djgpp*)
16119     lt_prog_compiler_pic_GCJ=
16120     ;;
16121   *)
16122     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16123     ;;
16124 esac
16125
16126 #
16127 # Check to make sure the static flag actually works.
16128 #
16129 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16130 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16131 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16132 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16133   echo $ECHO_N "(cached) $ECHO_C" >&6
16134 else
16135   lt_prog_compiler_static_works_GCJ=no
16136    save_LDFLAGS="$LDFLAGS"
16137    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16138    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16139    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16140      # The linker can only warn and ignore the option if not recognized
16141      # So say no if there are warnings
16142      if test -s conftest.err; then
16143        # Append any errors to the config.log.
16144        cat conftest.err 1>&5
16145        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16146        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16147        if diff conftest.exp conftest.er2 >/dev/null; then
16148          lt_prog_compiler_static_works_GCJ=yes
16149        fi
16150      else
16151        lt_prog_compiler_static_works_GCJ=yes
16152      fi
16153    fi
16154    $rm conftest*
16155    LDFLAGS="$save_LDFLAGS"
16156
16157 fi
16158 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16159 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16160
16161 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16162     :
16163 else
16164     lt_prog_compiler_static_GCJ=
16165 fi
16166
16167
16168 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16169 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16170 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16171   echo $ECHO_N "(cached) $ECHO_C" >&6
16172 else
16173   lt_cv_prog_compiler_c_o_GCJ=no
16174    $rm -r conftest 2>/dev/null
16175    mkdir conftest
16176    cd conftest
16177    mkdir out
16178    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16179
16180    lt_compiler_flag="-o out/conftest2.$ac_objext"
16181    # Insert the option either (1) after the last *FLAGS variable, or
16182    # (2) before a word containing "conftest.", or (3) at the end.
16183    # Note that $ac_compile itself does not contain backslashes and begins
16184    # with a dollar sign (not a hyphen), so the echo should work correctly.
16185    lt_compile=`echo "$ac_compile" | $SED \
16186    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16187    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16188    -e 's:$: $lt_compiler_flag:'`
16189    (eval echo "\"\$as_me:16189: $lt_compile\"" >&5)
16190    (eval "$lt_compile" 2>out/conftest.err)
16191    ac_status=$?
16192    cat out/conftest.err >&5
16193    echo "$as_me:16193: \$? = $ac_status" >&5
16194    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16195    then
16196      # The compiler can only warn and ignore the option if not recognized
16197      # So say no if there are warnings
16198      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16199      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16200      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16201        lt_cv_prog_compiler_c_o_GCJ=yes
16202      fi
16203    fi
16204    chmod u+w . 2>&5
16205    $rm conftest*
16206    # SGI C++ compiler will create directory out/ii_files/ for
16207    # template instantiation
16208    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16209    $rm out/* && rmdir out
16210    cd ..
16211    rmdir conftest
16212    $rm conftest*
16213
16214 fi
16215 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16216 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16217
16218
16219 hard_links="nottested"
16220 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16221   # do not overwrite the value of need_locks provided by the user
16222   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16223 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16224   hard_links=yes
16225   $rm conftest*
16226   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16227   touch conftest.a
16228   ln conftest.a conftest.b 2>&5 || hard_links=no
16229   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16230   echo "$as_me:$LINENO: result: $hard_links" >&5
16231 echo "${ECHO_T}$hard_links" >&6
16232   if test "$hard_links" = no; then
16233     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16234 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16235     need_locks=warn
16236   fi
16237 else
16238   need_locks=no
16239 fi
16240
16241 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16242 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16243
16244   runpath_var=
16245   allow_undefined_flag_GCJ=
16246   enable_shared_with_static_runtimes_GCJ=no
16247   archive_cmds_GCJ=
16248   archive_expsym_cmds_GCJ=
16249   old_archive_From_new_cmds_GCJ=
16250   old_archive_from_expsyms_cmds_GCJ=
16251   export_dynamic_flag_spec_GCJ=
16252   whole_archive_flag_spec_GCJ=
16253   thread_safe_flag_spec_GCJ=
16254   hardcode_libdir_flag_spec_GCJ=
16255   hardcode_libdir_flag_spec_ld_GCJ=
16256   hardcode_libdir_separator_GCJ=
16257   hardcode_direct_GCJ=no
16258   hardcode_minus_L_GCJ=no
16259   hardcode_shlibpath_var_GCJ=unsupported
16260   link_all_deplibs_GCJ=unknown
16261   hardcode_automatic_GCJ=no
16262   module_cmds_GCJ=
16263   module_expsym_cmds_GCJ=
16264   always_export_symbols_GCJ=no
16265   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16266   # include_expsyms should be a list of space-separated symbols to be *always*
16267   # included in the symbol list
16268   include_expsyms_GCJ=
16269   # exclude_expsyms can be an extended regexp of symbols to exclude
16270   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16271   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16272   # as well as any symbol that contains `d'.
16273   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16274   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16275   # platforms (ab)use it in PIC code, but their linkers get confused if
16276   # the symbol is explicitly referenced.  Since portable code cannot
16277   # rely on this symbol name, it's probably fine to never include it in
16278   # preloaded symbol tables.
16279   extract_expsyms_cmds=
16280   # Just being paranoid about ensuring that cc_basename is set.
16281   for cc_temp in $compiler""; do
16282   case $cc_temp in
16283     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16284     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16285     \-*) ;;
16286     *) break;;
16287   esac
16288 done
16289 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16290
16291   case $host_os in
16292   cygwin* | mingw* | pw32*)
16293     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16294     # When not using gcc, we currently assume that we are using
16295     # Microsoft Visual C++.
16296     if test "$GCC" != yes; then
16297       with_gnu_ld=no
16298     fi
16299     ;;
16300   interix*)
16301     # we just hope/assume this is gcc and not c89 (= MSVC++)
16302     with_gnu_ld=yes
16303     ;;
16304   openbsd*)
16305     with_gnu_ld=no
16306     ;;
16307   esac
16308
16309   ld_shlibs_GCJ=yes
16310   if test "$with_gnu_ld" = yes; then
16311     # If archive_cmds runs LD, not CC, wlarc should be empty
16312     wlarc='${wl}'
16313
16314     # Set some defaults for GNU ld with shared library support. These
16315     # are reset later if shared libraries are not supported. Putting them
16316     # here allows them to be overridden if necessary.
16317     runpath_var=LD_RUN_PATH
16318     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16319     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16320     # ancient GNU ld didn't support --whole-archive et. al.
16321     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16322         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16323       else
16324         whole_archive_flag_spec_GCJ=
16325     fi
16326     supports_anon_versioning=no
16327     case `$LD -v 2>/dev/null` in
16328       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16329       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16330       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16331       *\ 2.11.*) ;; # other 2.11 versions
16332       *) supports_anon_versioning=yes ;;
16333     esac
16334
16335     # See if GNU ld supports shared libraries.
16336     case $host_os in
16337     aix3* | aix4* | aix5*)
16338       # On AIX/PPC, the GNU linker is very broken
16339       if test "$host_cpu" != ia64; then
16340         ld_shlibs_GCJ=no
16341         cat <<EOF 1>&2
16342
16343 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16344 *** to be unable to reliably create shared libraries on AIX.
16345 *** Therefore, libtool is disabling shared libraries support.  If you
16346 *** really care for shared libraries, you may want to modify your PATH
16347 *** so that a non-GNU linker is found, and then restart.
16348
16349 EOF
16350       fi
16351       ;;
16352
16353     amigaos*)
16354       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)'
16355       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16356       hardcode_minus_L_GCJ=yes
16357
16358       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16359       # that the semantics of dynamic libraries on AmigaOS, at least up
16360       # to version 4, is to share data among multiple programs linked
16361       # with the same dynamic library.  Since this doesn't match the
16362       # behavior of shared libraries on other platforms, we can't use
16363       # them.
16364       ld_shlibs_GCJ=no
16365       ;;
16366
16367     beos*)
16368       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16369         allow_undefined_flag_GCJ=unsupported
16370         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16371         # support --undefined.  This deserves some investigation.  FIXME
16372         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16373       else
16374         ld_shlibs_GCJ=no
16375       fi
16376       ;;
16377
16378     cygwin* | mingw* | pw32*)
16379       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16380       # as there is no search path for DLLs.
16381       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16382       allow_undefined_flag_GCJ=unsupported
16383       always_export_symbols_GCJ=no
16384       enable_shared_with_static_runtimes_GCJ=yes
16385       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16386
16387       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16388         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16389         # If the export-symbols file already is a .def file (1st line
16390         # is EXPORTS), use it as is; otherwise, prepend...
16391         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16392           cp $export_symbols $output_objdir/$soname.def;
16393         else
16394           echo EXPORTS > $output_objdir/$soname.def;
16395           cat $export_symbols >> $output_objdir/$soname.def;
16396         fi~
16397         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16398       else
16399         ld_shlibs_GCJ=no
16400       fi
16401       ;;
16402
16403     interix3*)
16404       hardcode_direct_GCJ=no
16405       hardcode_shlibpath_var_GCJ=no
16406       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16407       export_dynamic_flag_spec_GCJ='${wl}-E'
16408       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16409       # Instead, shared libraries are loaded at an image base (0x10000000 by
16410       # default) and relocated if they conflict, which is a slow very memory
16411       # consuming and fragmenting process.  To avoid this, we pick a random,
16412       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16413       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16414       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16415       archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16416       ;;
16417
16418     linux*)
16419       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16420         tmp_addflag=
16421         case $cc_basename,$host_cpu in
16422         pgcc*)                          # Portland Group C compiler
16423           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16424           tmp_addflag=' $pic_flag'
16425           ;;
16426         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16427           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16428           tmp_addflag=' $pic_flag -Mnomain' ;;
16429         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16430           tmp_addflag=' -i_dynamic' ;;
16431         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16432           tmp_addflag=' -i_dynamic -nofor_main' ;;
16433         ifc* | ifort*)                  # Intel Fortran compiler
16434           tmp_addflag=' -nofor_main' ;;
16435         esac
16436         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16437
16438         if test $supports_anon_versioning = yes; then
16439           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16440   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16441   $echo "local: *; };" >> $output_objdir/$libname.ver~
16442           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16443         fi
16444         link_all_deplibs_GCJ=no
16445       else
16446         ld_shlibs_GCJ=no
16447       fi
16448       ;;
16449
16450     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16451       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16452         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16453         wlarc=
16454       else
16455         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16456         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16457       fi
16458       ;;
16459
16460     solaris*)
16461       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16462         ld_shlibs_GCJ=no
16463         cat <<EOF 1>&2
16464
16465 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16466 *** create shared libraries on Solaris systems.  Therefore, libtool
16467 *** is disabling shared libraries support.  We urge you to upgrade GNU
16468 *** binutils to release 2.9.1 or newer.  Another option is to modify
16469 *** your PATH or compiler configuration so that the native linker is
16470 *** used, and then restart.
16471
16472 EOF
16473       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16474         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16475         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16476       else
16477         ld_shlibs_GCJ=no
16478       fi
16479       ;;
16480
16481     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16482       case `$LD -v 2>&1` in
16483         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16484         ld_shlibs_GCJ=no
16485         cat <<_LT_EOF 1>&2
16486
16487 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16488 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16489 *** is disabling shared libraries support.  We urge you to upgrade GNU
16490 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16491 *** your PATH or compiler configuration so that the native linker is
16492 *** used, and then restart.
16493
16494 _LT_EOF
16495         ;;
16496         *)
16497           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16498             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16499             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16500             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16501           else
16502             ld_shlibs_GCJ=no
16503           fi
16504         ;;
16505       esac
16506       ;;
16507
16508     sunos4*)
16509       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16510       wlarc=
16511       hardcode_direct_GCJ=yes
16512       hardcode_shlibpath_var_GCJ=no
16513       ;;
16514
16515     *)
16516       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16517         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16518         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16519       else
16520         ld_shlibs_GCJ=no
16521       fi
16522       ;;
16523     esac
16524
16525     if test "$ld_shlibs_GCJ" = no; then
16526       runpath_var=
16527       hardcode_libdir_flag_spec_GCJ=
16528       export_dynamic_flag_spec_GCJ=
16529       whole_archive_flag_spec_GCJ=
16530     fi
16531   else
16532     # PORTME fill in a description of your system's linker (not GNU ld)
16533     case $host_os in
16534     aix3*)
16535       allow_undefined_flag_GCJ=unsupported
16536       always_export_symbols_GCJ=yes
16537       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'
16538       # Note: this linker hardcodes the directories in LIBPATH if there
16539       # are no directories specified by -L.
16540       hardcode_minus_L_GCJ=yes
16541       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16542         # Neither direct hardcoding nor static linking is supported with a
16543         # broken collect2.
16544         hardcode_direct_GCJ=unsupported
16545       fi
16546       ;;
16547
16548     aix4* | aix5*)
16549       if test "$host_cpu" = ia64; then
16550         # On IA64, the linker does run time linking by default, so we don't
16551         # have to do anything special.
16552         aix_use_runtimelinking=no
16553         exp_sym_flag='-Bexport'
16554         no_entry_flag=""
16555       else
16556         # If we're using GNU nm, then we don't want the "-C" option.
16557         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16558         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16559           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'
16560         else
16561           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'
16562         fi
16563         aix_use_runtimelinking=no
16564
16565         # Test if we are trying to use run time linking or normal
16566         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16567         # need to do runtime linking.
16568         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16569           for ld_flag in $LDFLAGS; do
16570           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16571             aix_use_runtimelinking=yes
16572             break
16573           fi
16574           done
16575           ;;
16576         esac
16577
16578         exp_sym_flag='-bexport'
16579         no_entry_flag='-bnoentry'
16580       fi
16581
16582       # When large executables or shared objects are built, AIX ld can
16583       # have problems creating the table of contents.  If linking a library
16584       # or program results in "error TOC overflow" add -mminimal-toc to
16585       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16586       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16587
16588       archive_cmds_GCJ=''
16589       hardcode_direct_GCJ=yes
16590       hardcode_libdir_separator_GCJ=':'
16591       link_all_deplibs_GCJ=yes
16592
16593       if test "$GCC" = yes; then
16594         case $host_os in aix4.[012]|aix4.[012].*)
16595         # We only want to do this on AIX 4.2 and lower, the check
16596         # below for broken collect2 doesn't work under 4.3+
16597           collect2name=`${CC} -print-prog-name=collect2`
16598           if test -f "$collect2name" && \
16599            strings "$collect2name" | grep resolve_lib_name >/dev/null
16600           then
16601           # We have reworked collect2
16602           hardcode_direct_GCJ=yes
16603           else
16604           # We have old collect2
16605           hardcode_direct_GCJ=unsupported
16606           # It fails to find uninstalled libraries when the uninstalled
16607           # path is not listed in the libpath.  Setting hardcode_minus_L
16608           # to unsupported forces relinking
16609           hardcode_minus_L_GCJ=yes
16610           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16611           hardcode_libdir_separator_GCJ=
16612           fi
16613           ;;
16614         esac
16615         shared_flag='-shared'
16616         if test "$aix_use_runtimelinking" = yes; then
16617           shared_flag="$shared_flag "'${wl}-G'
16618         fi
16619       else
16620         # not using gcc
16621         if test "$host_cpu" = ia64; then
16622         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16623         # chokes on -Wl,-G. The following line is correct:
16624           shared_flag='-G'
16625         else
16626           if test "$aix_use_runtimelinking" = yes; then
16627             shared_flag='${wl}-G'
16628           else
16629             shared_flag='${wl}-bM:SRE'
16630           fi
16631         fi
16632       fi
16633
16634       # It seems that -bexpall does not export symbols beginning with
16635       # underscore (_), so it is better to generate a list of symbols to export.
16636       always_export_symbols_GCJ=yes
16637       if test "$aix_use_runtimelinking" = yes; then
16638         # Warning - without using the other runtime loading flags (-brtl),
16639         # -berok will link without error, but may produce a broken library.
16640         allow_undefined_flag_GCJ='-berok'
16641        # Determine the default libpath from the value encoded in an empty executable.
16642        cat >conftest.$ac_ext <<_ACEOF
16643 /* confdefs.h.  */
16644 _ACEOF
16645 cat confdefs.h >>conftest.$ac_ext
16646 cat >>conftest.$ac_ext <<_ACEOF
16647 /* end confdefs.h.  */
16648
16649 int
16650 main ()
16651 {
16652
16653   ;
16654   return 0;
16655 }
16656 _ACEOF
16657 rm -f conftest.$ac_objext conftest$ac_exeext
16658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16659   (eval $ac_link) 2>conftest.er1
16660   ac_status=$?
16661   grep -v '^ *+' conftest.er1 >conftest.err
16662   rm -f conftest.er1
16663   cat conftest.err >&5
16664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16665   (exit $ac_status); } &&
16666          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16668   (eval $ac_try) 2>&5
16669   ac_status=$?
16670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671   (exit $ac_status); }; } &&
16672          { ac_try='test -s conftest$ac_exeext'
16673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16674   (eval $ac_try) 2>&5
16675   ac_status=$?
16676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677   (exit $ac_status); }; }; then
16678
16679 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16680 }'`
16681 # Check for a 64-bit object if we didn't find anything.
16682 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; }
16683 }'`; fi
16684 else
16685   echo "$as_me: failed program was:" >&5
16686 sed 's/^/| /' conftest.$ac_ext >&5
16687
16688 fi
16689 rm -f conftest.err conftest.$ac_objext \
16690       conftest$ac_exeext conftest.$ac_ext
16691 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16692
16693        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16694         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16695        else
16696         if test "$host_cpu" = ia64; then
16697           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16698           allow_undefined_flag_GCJ="-z nodefs"
16699           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16700         else
16701          # Determine the default libpath from the value encoded in an empty executable.
16702          cat >conftest.$ac_ext <<_ACEOF
16703 /* confdefs.h.  */
16704 _ACEOF
16705 cat confdefs.h >>conftest.$ac_ext
16706 cat >>conftest.$ac_ext <<_ACEOF
16707 /* end confdefs.h.  */
16708
16709 int
16710 main ()
16711 {
16712
16713   ;
16714   return 0;
16715 }
16716 _ACEOF
16717 rm -f conftest.$ac_objext conftest$ac_exeext
16718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16719   (eval $ac_link) 2>conftest.er1
16720   ac_status=$?
16721   grep -v '^ *+' conftest.er1 >conftest.err
16722   rm -f conftest.er1
16723   cat conftest.err >&5
16724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725   (exit $ac_status); } &&
16726          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16728   (eval $ac_try) 2>&5
16729   ac_status=$?
16730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731   (exit $ac_status); }; } &&
16732          { ac_try='test -s conftest$ac_exeext'
16733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16734   (eval $ac_try) 2>&5
16735   ac_status=$?
16736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737   (exit $ac_status); }; }; then
16738
16739 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16740 }'`
16741 # Check for a 64-bit object if we didn't find anything.
16742 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; }
16743 }'`; fi
16744 else
16745   echo "$as_me: failed program was:" >&5
16746 sed 's/^/| /' conftest.$ac_ext >&5
16747
16748 fi
16749 rm -f conftest.err conftest.$ac_objext \
16750       conftest$ac_exeext conftest.$ac_ext
16751 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16752
16753          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16754           # Warning - without using the other run time loading flags,
16755           # -berok will link without error, but may produce a broken library.
16756           no_undefined_flag_GCJ=' ${wl}-bernotok'
16757           allow_undefined_flag_GCJ=' ${wl}-berok'
16758           # Exported symbols can be pulled into shared objects from archives
16759           whole_archive_flag_spec_GCJ='$convenience'
16760           archive_cmds_need_lc_GCJ=yes
16761           # This is similar to how AIX traditionally builds its shared libraries.
16762           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16763         fi
16764       fi
16765       ;;
16766
16767     amigaos*)
16768       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)'
16769       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16770       hardcode_minus_L_GCJ=yes
16771       # see comment about different semantics on the GNU ld section
16772       ld_shlibs_GCJ=no
16773       ;;
16774
16775     bsdi[45]*)
16776       export_dynamic_flag_spec_GCJ=-rdynamic
16777       ;;
16778
16779     cygwin* | mingw* | pw32*)
16780       # When not using gcc, we currently assume that we are using
16781       # Microsoft Visual C++.
16782       # hardcode_libdir_flag_spec is actually meaningless, as there is
16783       # no search path for DLLs.
16784       hardcode_libdir_flag_spec_GCJ=' '
16785       allow_undefined_flag_GCJ=unsupported
16786       # Tell ltmain to make .lib files, not .a files.
16787       libext=lib
16788       # Tell ltmain to make .dll files, not .so files.
16789       shrext_cmds=".dll"
16790       # FIXME: Setting linknames here is a bad hack.
16791       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16792       # The linker will automatically build a .lib file if we build a DLL.
16793       old_archive_From_new_cmds_GCJ='true'
16794       # FIXME: Should let the user specify the lib program.
16795       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16796       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16797       enable_shared_with_static_runtimes_GCJ=yes
16798       ;;
16799
16800     darwin* | rhapsody*)
16801       case $host_os in
16802         rhapsody* | darwin1.[012])
16803          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16804          ;;
16805        *) # Darwin 1.3 on
16806          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16807            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16808          else
16809            case ${MACOSX_DEPLOYMENT_TARGET} in
16810              10.[012])
16811                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16812                ;;
16813              10.*)
16814                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16815                ;;
16816            esac
16817          fi
16818          ;;
16819       esac
16820       archive_cmds_need_lc_GCJ=no
16821       hardcode_direct_GCJ=no
16822       hardcode_automatic_GCJ=yes
16823       hardcode_shlibpath_var_GCJ=unsupported
16824       whole_archive_flag_spec_GCJ=''
16825       link_all_deplibs_GCJ=yes
16826     if test "$GCC" = yes ; then
16827         output_verbose_link_cmd='echo'
16828         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16829       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16830       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16831       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16832       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}'
16833     else
16834       case $cc_basename in
16835         xlc*)
16836          output_verbose_link_cmd='echo'
16837          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16838          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16839           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16840          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16841           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}'
16842           ;;
16843        *)
16844          ld_shlibs_GCJ=no
16845           ;;
16846       esac
16847     fi
16848       ;;
16849
16850     dgux*)
16851       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16852       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16853       hardcode_shlibpath_var_GCJ=no
16854       ;;
16855
16856     freebsd1*)
16857       ld_shlibs_GCJ=no
16858       ;;
16859
16860     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16861     # support.  Future versions do this automatically, but an explicit c++rt0.o
16862     # does not break anything, and helps significantly (at the cost of a little
16863     # extra space).
16864     freebsd2.2*)
16865       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16866       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16867       hardcode_direct_GCJ=yes
16868       hardcode_shlibpath_var_GCJ=no
16869       ;;
16870
16871     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16872     freebsd2*)
16873       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16874       hardcode_direct_GCJ=yes
16875       hardcode_minus_L_GCJ=yes
16876       hardcode_shlibpath_var_GCJ=no
16877       ;;
16878
16879     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16880     freebsd* | dragonfly*)
16881       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16882       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16883       hardcode_direct_GCJ=yes
16884       hardcode_shlibpath_var_GCJ=no
16885       ;;
16886
16887     # GNU/kFreeBSD uses gcc -shared to do shared libraries.
16888     kfreebsd*-gnu)
16889       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16890       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16891       hardcode_direct_GCJ=yes
16892       hardcode_shlibpath_var_GCJ=no
16893       link_all_deplibs_GCJ=no
16894       ;;
16895
16896     hpux9*)
16897       if test "$GCC" = yes; then
16898         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'
16899       else
16900         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'
16901       fi
16902       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16903       hardcode_libdir_separator_GCJ=:
16904       hardcode_direct_GCJ=yes
16905
16906       # hardcode_minus_L: Not really in the search PATH,
16907       # but as the default location of the library.
16908       hardcode_minus_L_GCJ=yes
16909       export_dynamic_flag_spec_GCJ='${wl}-E'
16910       ;;
16911
16912     hpux10*)
16913       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16914         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16915       else
16916         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16917       fi
16918       if test "$with_gnu_ld" = no; then
16919         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16920         hardcode_libdir_separator_GCJ=:
16921
16922         hardcode_direct_GCJ=yes
16923         export_dynamic_flag_spec_GCJ='${wl}-E'
16924
16925         # hardcode_minus_L: Not really in the search PATH,
16926         # but as the default location of the library.
16927         hardcode_minus_L_GCJ=yes
16928       fi
16929       ;;
16930
16931     hpux11*)
16932       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16933         case $host_cpu in
16934         hppa*64*)
16935           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16936           ;;
16937         ia64*)
16938           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16939           ;;
16940         *)
16941           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16942           ;;
16943         esac
16944       else
16945         case $host_cpu in
16946         hppa*64*)
16947           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16948           ;;
16949         ia64*)
16950           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16951           ;;
16952         *)
16953           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16954           ;;
16955         esac
16956       fi
16957       if test "$with_gnu_ld" = no; then
16958         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16959         hardcode_libdir_separator_GCJ=:
16960
16961         case $host_cpu in
16962         hppa*64*|ia64*)
16963           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16964           hardcode_direct_GCJ=no
16965           hardcode_shlibpath_var_GCJ=no
16966           ;;
16967         *)
16968           hardcode_direct_GCJ=yes
16969           export_dynamic_flag_spec_GCJ='${wl}-E'
16970
16971           # hardcode_minus_L: Not really in the search PATH,
16972           # but as the default location of the library.
16973           hardcode_minus_L_GCJ=yes
16974           ;;
16975         esac
16976       fi
16977       ;;
16978
16979     irix5* | irix6* | nonstopux*)
16980       if test "$GCC" = yes; then
16981         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'
16982       else
16983         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'
16984         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16985       fi
16986       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16987       hardcode_libdir_separator_GCJ=:
16988       link_all_deplibs_GCJ=yes
16989       ;;
16990
16991     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16992       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16993         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16994       else
16995         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16996       fi
16997       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16998       hardcode_direct_GCJ=yes
16999       hardcode_shlibpath_var_GCJ=no
17000       ;;
17001
17002     newsos6)
17003       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17004       hardcode_direct_GCJ=yes
17005       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17006       hardcode_libdir_separator_GCJ=:
17007       hardcode_shlibpath_var_GCJ=no
17008       ;;
17009
17010     openbsd*)
17011       hardcode_direct_GCJ=yes
17012       hardcode_shlibpath_var_GCJ=no
17013       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17014         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17015         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17016         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17017         export_dynamic_flag_spec_GCJ='${wl}-E'
17018       else
17019        case $host_os in
17020          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17021            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17022            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17023            ;;
17024          *)
17025            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17026            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17027            ;;
17028        esac
17029       fi
17030       ;;
17031
17032     os2*)
17033       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17034       hardcode_minus_L_GCJ=yes
17035       allow_undefined_flag_GCJ=unsupported
17036       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'
17037       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17038       ;;
17039
17040     osf3*)
17041       if test "$GCC" = yes; then
17042         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17043         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'
17044       else
17045         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17046         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'
17047       fi
17048       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17049       hardcode_libdir_separator_GCJ=:
17050       ;;
17051
17052     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17053       if test "$GCC" = yes; then
17054         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17055         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'
17056         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17057       else
17058         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17059         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'
17060         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~
17061         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17062
17063         # Both c and cxx compiler support -rpath directly
17064         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17065       fi
17066       hardcode_libdir_separator_GCJ=:
17067       ;;
17068
17069     solaris*)
17070       no_undefined_flag_GCJ=' -z text'
17071       if test "$GCC" = yes; then
17072         wlarc='${wl}'
17073         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17074         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17075           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17076       else
17077         wlarc=''
17078         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17079         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17080         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17081       fi
17082       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17083       hardcode_shlibpath_var_GCJ=no
17084       case $host_os in
17085       solaris2.[0-5] | solaris2.[0-5].*) ;;
17086       *)
17087         # The compiler driver will combine linker options so we
17088         # cannot just pass the convience library names through
17089         # without $wl, iff we do not link with $LD.
17090         # Luckily, gcc supports the same syntax we need for Sun Studio.
17091         # Supported since Solaris 2.6 (maybe 2.5.1?)
17092         case $wlarc in
17093         '')
17094           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17095         *)
17096           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17097         esac ;;
17098       esac
17099       link_all_deplibs_GCJ=yes
17100       ;;
17101
17102     sunos4*)
17103       if test "x$host_vendor" = xsequent; then
17104         # Use $CC to link under sequent, because it throws in some extra .o
17105         # files that make .init and .fini sections work.
17106         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17107       else
17108         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17109       fi
17110       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17111       hardcode_direct_GCJ=yes
17112       hardcode_minus_L_GCJ=yes
17113       hardcode_shlibpath_var_GCJ=no
17114       ;;
17115
17116     sysv4)
17117       case $host_vendor in
17118         sni)
17119           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17120           hardcode_direct_GCJ=yes # is this really true???
17121         ;;
17122         siemens)
17123           ## LD is ld it makes a PLAMLIB
17124           ## CC just makes a GrossModule.
17125           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17126           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17127           hardcode_direct_GCJ=no
17128         ;;
17129         motorola)
17130           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17131           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17132         ;;
17133       esac
17134       runpath_var='LD_RUN_PATH'
17135       hardcode_shlibpath_var_GCJ=no
17136       ;;
17137
17138     sysv4.3*)
17139       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17140       hardcode_shlibpath_var_GCJ=no
17141       export_dynamic_flag_spec_GCJ='-Bexport'
17142       ;;
17143
17144     sysv4*MP*)
17145       if test -d /usr/nec; then
17146         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17147         hardcode_shlibpath_var_GCJ=no
17148         runpath_var=LD_RUN_PATH
17149         hardcode_runpath_var=yes
17150         ld_shlibs_GCJ=yes
17151       fi
17152       ;;
17153
17154     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17155       no_undefined_flag_GCJ='${wl}-z,text'
17156       archive_cmds_need_lc_GCJ=no
17157       hardcode_shlibpath_var_GCJ=no
17158       runpath_var='LD_RUN_PATH'
17159
17160       if test "$GCC" = yes; then
17161         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17162         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17163       else
17164         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17165         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17166       fi
17167       ;;
17168
17169     sysv5* | sco3.2v5* | sco5v6*)
17170       # Note: We can NOT use -z defs as we might desire, because we do not
17171       # link with -lc, and that would cause any symbols used from libc to
17172       # always be unresolved, which means just about no library would
17173       # ever link correctly.  If we're not using GNU ld we use -z text
17174       # though, which does catch some bad symbols but isn't as heavy-handed
17175       # as -z defs.
17176       no_undefined_flag_GCJ='${wl}-z,text'
17177       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17178       archive_cmds_need_lc_GCJ=no
17179       hardcode_shlibpath_var_GCJ=no
17180       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17181       hardcode_libdir_separator_GCJ=':'
17182       link_all_deplibs_GCJ=yes
17183       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17184       runpath_var='LD_RUN_PATH'
17185
17186       if test "$GCC" = yes; then
17187         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17188         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17189       else
17190         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17191         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17192       fi
17193       ;;
17194
17195     uts4*)
17196       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17197       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17198       hardcode_shlibpath_var_GCJ=no
17199       ;;
17200
17201     *)
17202       ld_shlibs_GCJ=no
17203       ;;
17204     esac
17205   fi
17206
17207 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17208 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17209 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17210
17211 #
17212 # Do we need to explicitly link libc?
17213 #
17214 case "x$archive_cmds_need_lc_GCJ" in
17215 x|xyes)
17216   # Assume -lc should be added
17217   archive_cmds_need_lc_GCJ=yes
17218
17219   if test "$enable_shared" = yes && test "$GCC" = yes; then
17220     case $archive_cmds_GCJ in
17221     *'~'*)
17222       # FIXME: we may have to deal with multi-command sequences.
17223       ;;
17224     '$CC '*)
17225       # Test whether the compiler implicitly links with -lc since on some
17226       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17227       # to ld, don't add -lc before -lgcc.
17228       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17229 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17230       $rm conftest*
17231       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17232
17233       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17234   (eval $ac_compile) 2>&5
17235   ac_status=$?
17236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237   (exit $ac_status); } 2>conftest.err; then
17238         soname=conftest
17239         lib=conftest
17240         libobjs=conftest.$ac_objext
17241         deplibs=
17242         wl=$lt_prog_compiler_wl_GCJ
17243         pic_flag=$lt_prog_compiler_pic_GCJ
17244         compiler_flags=-v
17245         linker_flags=-v
17246         verstring=
17247         output_objdir=.
17248         libname=conftest
17249         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17250         allow_undefined_flag_GCJ=
17251         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17252   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17253   ac_status=$?
17254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255   (exit $ac_status); }
17256         then
17257           archive_cmds_need_lc_GCJ=no
17258         else
17259           archive_cmds_need_lc_GCJ=yes
17260         fi
17261         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17262       else
17263         cat conftest.err 1>&5
17264       fi
17265       $rm conftest*
17266       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17267 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17268       ;;
17269     esac
17270   fi
17271   ;;
17272 esac
17273
17274 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17275 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17276 library_names_spec=
17277 libname_spec='lib$name'
17278 soname_spec=
17279 shrext_cmds=".so"
17280 postinstall_cmds=
17281 postuninstall_cmds=
17282 finish_cmds=
17283 finish_eval=
17284 shlibpath_var=
17285 shlibpath_overrides_runpath=unknown
17286 version_type=none
17287 dynamic_linker="$host_os ld.so"
17288 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17289 if test "$GCC" = yes; then
17290   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17291   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17292     # if the path contains ";" then we assume it to be the separator
17293     # otherwise default to the standard path separator (i.e. ":") - it is
17294     # assumed that no part of a normal pathname contains ";" but that should
17295     # okay in the real world where ";" in dirpaths is itself problematic.
17296     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17297   else
17298     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17299   fi
17300 else
17301   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17302 fi
17303 need_lib_prefix=unknown
17304 hardcode_into_libs=no
17305
17306 # when you set need_version to no, make sure it does not cause -set_version
17307 # flags to be left without arguments
17308 need_version=unknown
17309
17310 case $host_os in
17311 aix3*)
17312   version_type=linux
17313   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17314   shlibpath_var=LIBPATH
17315
17316   # AIX 3 has no versioning support, so we append a major version to the name.
17317   soname_spec='${libname}${release}${shared_ext}$major'
17318   ;;
17319
17320 aix4* | aix5*)
17321   version_type=linux
17322   need_lib_prefix=no
17323   need_version=no
17324   hardcode_into_libs=yes
17325   if test "$host_cpu" = ia64; then
17326     # AIX 5 supports IA64
17327     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17328     shlibpath_var=LD_LIBRARY_PATH
17329   else
17330     # With GCC up to 2.95.x, collect2 would create an import file
17331     # for dependence libraries.  The import file would start with
17332     # the line `#! .'.  This would cause the generated library to
17333     # depend on `.', always an invalid library.  This was fixed in
17334     # development snapshots of GCC prior to 3.0.
17335     case $host_os in
17336       aix4 | aix4.[01] | aix4.[01].*)
17337       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17338            echo ' yes '
17339            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17340         :
17341       else
17342         can_build_shared=no
17343       fi
17344       ;;
17345     esac
17346     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17347     # soname into executable. Probably we can add versioning support to
17348     # collect2, so additional links can be useful in future.
17349     if test "$aix_use_runtimelinking" = yes; then
17350       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17351       # instead of lib<name>.a to let people know that these are not
17352       # typical AIX shared libraries.
17353       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17354     else
17355       # We preserve .a as extension for shared libraries through AIX4.2
17356       # and later when we are not doing run time linking.
17357       library_names_spec='${libname}${release}.a $libname.a'
17358       soname_spec='${libname}${release}${shared_ext}$major'
17359     fi
17360     shlibpath_var=LIBPATH
17361   fi
17362   ;;
17363
17364 amigaos*)
17365   library_names_spec='$libname.ixlibrary $libname.a'
17366   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17367   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'
17368   ;;
17369
17370 beos*)
17371   library_names_spec='${libname}${shared_ext}'
17372   dynamic_linker="$host_os ld.so"
17373   shlibpath_var=LIBRARY_PATH
17374   ;;
17375
17376 bsdi[45]*)
17377   version_type=linux
17378   need_version=no
17379   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17380   soname_spec='${libname}${release}${shared_ext}$major'
17381   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17382   shlibpath_var=LD_LIBRARY_PATH
17383   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17384   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17385   # the default ld.so.conf also contains /usr/contrib/lib and
17386   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17387   # libtool to hard-code these into programs
17388   ;;
17389
17390 cygwin* | mingw* | pw32*)
17391   version_type=windows
17392   shrext_cmds=".dll"
17393   need_version=no
17394   need_lib_prefix=no
17395
17396   case $GCC,$host_os in
17397   yes,cygwin* | yes,mingw* | yes,pw32*)
17398     library_names_spec='$libname.dll.a'
17399     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17400     postinstall_cmds='base_file=`basename \${file}`~
17401       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17402       dldir=$destdir/`dirname \$dlpath`~
17403       test -d \$dldir || mkdir -p \$dldir~
17404       $install_prog $dir/$dlname \$dldir/$dlname~
17405       chmod a+x \$dldir/$dlname'
17406     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17407       dlpath=$dir/\$dldll~
17408        $rm \$dlpath'
17409     shlibpath_overrides_runpath=yes
17410
17411     case $host_os in
17412     cygwin*)
17413       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17414       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17415       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17416       ;;
17417     mingw*)
17418       # MinGW DLLs use traditional 'lib' prefix
17419       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17420       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17421       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17422         # It is most probably a Windows format PATH printed by
17423         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17424         # path with ; separators, and with drive letters. We can handle the
17425         # drive letters (cygwin fileutils understands them), so leave them,
17426         # especially as we might pass files found there to a mingw objdump,
17427         # which wouldn't understand a cygwinified path. Ahh.
17428         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17429       else
17430         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17431       fi
17432       ;;
17433     pw32*)
17434       # pw32 DLLs use 'pw' prefix rather than 'lib'
17435       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17436       ;;
17437     esac
17438     ;;
17439
17440   *)
17441     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17442     ;;
17443   esac
17444   dynamic_linker='Win32 ld.exe'
17445   # FIXME: first we should search . and the directory the executable is in
17446   shlibpath_var=PATH
17447   ;;
17448
17449 darwin* | rhapsody*)
17450   dynamic_linker="$host_os dyld"
17451   version_type=darwin
17452   need_lib_prefix=no
17453   need_version=no
17454   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17455   soname_spec='${libname}${release}${major}$shared_ext'
17456   shlibpath_overrides_runpath=yes
17457   shlibpath_var=DYLD_LIBRARY_PATH
17458   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17459   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17460   if test "$GCC" = yes; then
17461     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"`
17462   else
17463     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17464   fi
17465   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17466   ;;
17467
17468 dgux*)
17469   version_type=linux
17470   need_lib_prefix=no
17471   need_version=no
17472   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17473   soname_spec='${libname}${release}${shared_ext}$major'
17474   shlibpath_var=LD_LIBRARY_PATH
17475   ;;
17476
17477 freebsd1*)
17478   dynamic_linker=no
17479   ;;
17480
17481 kfreebsd*-gnu)
17482   version_type=linux
17483   need_lib_prefix=no
17484   need_version=no
17485   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17486   soname_spec='${libname}${release}${shared_ext}$major'
17487   shlibpath_var=LD_LIBRARY_PATH
17488   shlibpath_overrides_runpath=no
17489   hardcode_into_libs=yes
17490   dynamic_linker='GNU ld.so'
17491   ;;
17492
17493 freebsd* | dragonfly*)
17494   # DragonFly does not have aout.  When/if they implement a new
17495   # versioning mechanism, adjust this.
17496   if test -x /usr/bin/objformat; then
17497     objformat=`/usr/bin/objformat`
17498   else
17499     case $host_os in
17500     freebsd[123]*) objformat=aout ;;
17501     *) objformat=elf ;;
17502     esac
17503   fi
17504   version_type=freebsd-$objformat
17505   case $version_type in
17506     freebsd-elf*)
17507       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17508       need_version=no
17509       need_lib_prefix=no
17510       ;;
17511     freebsd-*)
17512       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17513       need_version=yes
17514       ;;
17515   esac
17516   shlibpath_var=LD_LIBRARY_PATH
17517   case $host_os in
17518   freebsd2*)
17519     shlibpath_overrides_runpath=yes
17520     ;;
17521   freebsd3.[01]* | freebsdelf3.[01]*)
17522     shlibpath_overrides_runpath=yes
17523     hardcode_into_libs=yes
17524     ;;
17525   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17526   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17527     shlibpath_overrides_runpath=no
17528     hardcode_into_libs=yes
17529     ;;
17530   freebsd*) # from 4.6 on
17531     shlibpath_overrides_runpath=yes
17532     hardcode_into_libs=yes
17533     ;;
17534   esac
17535   ;;
17536
17537 gnu*)
17538   version_type=linux
17539   need_lib_prefix=no
17540   need_version=no
17541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17542   soname_spec='${libname}${release}${shared_ext}$major'
17543   shlibpath_var=LD_LIBRARY_PATH
17544   hardcode_into_libs=yes
17545   ;;
17546
17547 hpux9* | hpux10* | hpux11*)
17548   # Give a soname corresponding to the major version so that dld.sl refuses to
17549   # link against other versions.
17550   version_type=sunos
17551   need_lib_prefix=no
17552   need_version=no
17553   case $host_cpu in
17554   ia64*)
17555     shrext_cmds='.so'
17556     hardcode_into_libs=yes
17557     dynamic_linker="$host_os dld.so"
17558     shlibpath_var=LD_LIBRARY_PATH
17559     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17560     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17561     soname_spec='${libname}${release}${shared_ext}$major'
17562     if test "X$HPUX_IA64_MODE" = X32; then
17563       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17564     else
17565       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17566     fi
17567     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17568     ;;
17569    hppa*64*)
17570      shrext_cmds='.sl'
17571      hardcode_into_libs=yes
17572      dynamic_linker="$host_os dld.sl"
17573      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17574      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17575      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17576      soname_spec='${libname}${release}${shared_ext}$major'
17577      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17578      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17579      ;;
17580    *)
17581     shrext_cmds='.sl'
17582     dynamic_linker="$host_os dld.sl"
17583     shlibpath_var=SHLIB_PATH
17584     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17585     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17586     soname_spec='${libname}${release}${shared_ext}$major'
17587     ;;
17588   esac
17589   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17590   postinstall_cmds='chmod 555 $lib'
17591   ;;
17592
17593 interix3*)
17594   version_type=linux
17595   need_lib_prefix=no
17596   need_version=no
17597   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17598   soname_spec='${libname}${release}${shared_ext}$major'
17599   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17600   shlibpath_var=LD_LIBRARY_PATH
17601   shlibpath_overrides_runpath=no
17602   hardcode_into_libs=yes
17603   ;;
17604
17605 irix5* | irix6* | nonstopux*)
17606   case $host_os in
17607     nonstopux*) version_type=nonstopux ;;
17608     *)
17609         if test "$lt_cv_prog_gnu_ld" = yes; then
17610                 version_type=linux
17611         else
17612                 version_type=irix
17613         fi ;;
17614   esac
17615   need_lib_prefix=no
17616   need_version=no
17617   soname_spec='${libname}${release}${shared_ext}$major'
17618   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17619   case $host_os in
17620   irix5* | nonstopux*)
17621     libsuff= shlibsuff=
17622     ;;
17623   *)
17624     case $LD in # libtool.m4 will add one of these switches to LD
17625     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17626       libsuff= shlibsuff= libmagic=32-bit;;
17627     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17628       libsuff=32 shlibsuff=N32 libmagic=N32;;
17629     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17630       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17631     *) libsuff= shlibsuff= libmagic=never-match;;
17632     esac
17633     ;;
17634   esac
17635   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17636   shlibpath_overrides_runpath=no
17637   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17638   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17639   hardcode_into_libs=yes
17640   ;;
17641
17642 # No shared lib support for Linux oldld, aout, or coff.
17643 linux*oldld* | linux*aout* | linux*coff*)
17644   dynamic_linker=no
17645   ;;
17646
17647 # This must be Linux ELF.
17648 linux*)
17649   version_type=linux
17650   need_lib_prefix=no
17651   need_version=no
17652   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17653   soname_spec='${libname}${release}${shared_ext}$major'
17654   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17655   shlibpath_var=LD_LIBRARY_PATH
17656   shlibpath_overrides_runpath=no
17657   # This implies no fast_install, which is unacceptable.
17658   # Some rework will be needed to allow for fast_install
17659   # before this can be enabled.
17660   hardcode_into_libs=yes
17661
17662   # Append ld.so.conf contents to the search path
17663   if test -f /etc/ld.so.conf; then
17664     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17665     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17666   fi
17667
17668   # We used to test for /lib/ld.so.1 and disable shared libraries on
17669   # powerpc, because MkLinux only supported shared libraries with the
17670   # GNU dynamic linker.  Since this was broken with cross compilers,
17671   # most powerpc-linux boxes support dynamic linking these days and
17672   # people can always --disable-shared, the test was removed, and we
17673   # assume the GNU/Linux dynamic linker is in use.
17674   dynamic_linker='GNU/Linux ld.so'
17675   ;;
17676
17677 netbsdelf*-gnu)
17678   version_type=linux
17679   need_lib_prefix=no
17680   need_version=no
17681   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17682   soname_spec='${libname}${release}${shared_ext}$major'
17683   shlibpath_var=LD_LIBRARY_PATH
17684   shlibpath_overrides_runpath=no
17685   hardcode_into_libs=yes
17686   dynamic_linker='NetBSD ld.elf_so'
17687   ;;
17688
17689 knetbsd*-gnu)
17690   version_type=linux
17691   need_lib_prefix=no
17692   need_version=no
17693   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17694   soname_spec='${libname}${release}${shared_ext}$major'
17695   shlibpath_var=LD_LIBRARY_PATH
17696   shlibpath_overrides_runpath=no
17697   hardcode_into_libs=yes
17698   dynamic_linker='GNU ld.so'
17699   ;;
17700
17701 netbsd*)
17702   version_type=sunos
17703   need_lib_prefix=no
17704   need_version=no
17705   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17706     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17707     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17708     dynamic_linker='NetBSD (a.out) ld.so'
17709   else
17710     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17711     soname_spec='${libname}${release}${shared_ext}$major'
17712     dynamic_linker='NetBSD ld.elf_so'
17713   fi
17714   shlibpath_var=LD_LIBRARY_PATH
17715   shlibpath_overrides_runpath=yes
17716   hardcode_into_libs=yes
17717   ;;
17718
17719 newsos6)
17720   version_type=linux
17721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17722   shlibpath_var=LD_LIBRARY_PATH
17723   shlibpath_overrides_runpath=yes
17724   ;;
17725
17726 nto-qnx*)
17727   version_type=linux
17728   need_lib_prefix=no
17729   need_version=no
17730   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17731   soname_spec='${libname}${release}${shared_ext}$major'
17732   shlibpath_var=LD_LIBRARY_PATH
17733   shlibpath_overrides_runpath=yes
17734   ;;
17735
17736 openbsd*)
17737   version_type=sunos
17738   sys_lib_dlsearch_path_spec="/usr/lib"
17739   need_lib_prefix=no
17740   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17741   case $host_os in
17742     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17743     *)                         need_version=no  ;;
17744   esac
17745   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17746   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17747   shlibpath_var=LD_LIBRARY_PATH
17748   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17749     case $host_os in
17750       openbsd2.[89] | openbsd2.[89].*)
17751         shlibpath_overrides_runpath=no
17752         ;;
17753       *)
17754         shlibpath_overrides_runpath=yes
17755         ;;
17756       esac
17757   else
17758     shlibpath_overrides_runpath=yes
17759   fi
17760   ;;
17761
17762 os2*)
17763   libname_spec='$name'
17764   shrext_cmds=".dll"
17765   need_lib_prefix=no
17766   library_names_spec='$libname${shared_ext} $libname.a'
17767   dynamic_linker='OS/2 ld.exe'
17768   shlibpath_var=LIBPATH
17769   ;;
17770
17771 osf3* | osf4* | osf5*)
17772   version_type=osf
17773   need_lib_prefix=no
17774   need_version=no
17775   soname_spec='${libname}${release}${shared_ext}$major'
17776   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17777   shlibpath_var=LD_LIBRARY_PATH
17778   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17779   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17780   ;;
17781
17782 solaris*)
17783   version_type=linux
17784   need_lib_prefix=no
17785   need_version=no
17786   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17787   soname_spec='${libname}${release}${shared_ext}$major'
17788   shlibpath_var=LD_LIBRARY_PATH
17789   shlibpath_overrides_runpath=yes
17790   hardcode_into_libs=yes
17791   # ldd complains unless libraries are executable
17792   postinstall_cmds='chmod +x $lib'
17793   ;;
17794
17795 sunos4*)
17796   version_type=sunos
17797   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17798   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17799   shlibpath_var=LD_LIBRARY_PATH
17800   shlibpath_overrides_runpath=yes
17801   if test "$with_gnu_ld" = yes; then
17802     need_lib_prefix=no
17803   fi
17804   need_version=yes
17805   ;;
17806
17807 sysv4 | sysv4.3*)
17808   version_type=linux
17809   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17810   soname_spec='${libname}${release}${shared_ext}$major'
17811   shlibpath_var=LD_LIBRARY_PATH
17812   case $host_vendor in
17813     sni)
17814       shlibpath_overrides_runpath=no
17815       need_lib_prefix=no
17816       export_dynamic_flag_spec='${wl}-Blargedynsym'
17817       runpath_var=LD_RUN_PATH
17818       ;;
17819     siemens)
17820       need_lib_prefix=no
17821       ;;
17822     motorola)
17823       need_lib_prefix=no
17824       need_version=no
17825       shlibpath_overrides_runpath=no
17826       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17827       ;;
17828   esac
17829   ;;
17830
17831 sysv4*MP*)
17832   if test -d /usr/nec ;then
17833     version_type=linux
17834     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17835     soname_spec='$libname${shared_ext}.$major'
17836     shlibpath_var=LD_LIBRARY_PATH
17837   fi
17838   ;;
17839
17840 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17841   version_type=freebsd-elf
17842   need_lib_prefix=no
17843   need_version=no
17844   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17845   soname_spec='${libname}${release}${shared_ext}$major'
17846   shlibpath_var=LD_LIBRARY_PATH
17847   hardcode_into_libs=yes
17848   if test "$with_gnu_ld" = yes; then
17849     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17850     shlibpath_overrides_runpath=no
17851   else
17852     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17853     shlibpath_overrides_runpath=yes
17854     case $host_os in
17855       sco3.2v5*)
17856         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17857         ;;
17858     esac
17859   fi
17860   sys_lib_dlsearch_path_spec='/usr/lib'
17861   ;;
17862
17863 uts4*)
17864   version_type=linux
17865   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17866   soname_spec='${libname}${release}${shared_ext}$major'
17867   shlibpath_var=LD_LIBRARY_PATH
17868   ;;
17869
17870 *)
17871   dynamic_linker=no
17872   ;;
17873 esac
17874 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17875 echo "${ECHO_T}$dynamic_linker" >&6
17876 test "$dynamic_linker" = no && can_build_shared=no
17877
17878 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17879 if test "$GCC" = yes; then
17880   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17881 fi
17882
17883 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17884 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17885 hardcode_action_GCJ=
17886 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17887    test -n "$runpath_var_GCJ" || \
17888    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17889
17890   # We can hardcode non-existant directories.
17891   if test "$hardcode_direct_GCJ" != no &&
17892      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17893      # have to relink, otherwise we might link with an installed library
17894      # when we should be linking with a yet-to-be-installed one
17895      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17896      test "$hardcode_minus_L_GCJ" != no; then
17897     # Linking always hardcodes the temporary library directory.
17898     hardcode_action_GCJ=relink
17899   else
17900     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17901     hardcode_action_GCJ=immediate
17902   fi
17903 else
17904   # We cannot hardcode anything, or else we can only hardcode existing
17905   # directories.
17906   hardcode_action_GCJ=unsupported
17907 fi
17908 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17909 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17910
17911 if test "$hardcode_action_GCJ" = relink; then
17912   # Fast installation is not supported
17913   enable_fast_install=no
17914 elif test "$shlibpath_overrides_runpath" = yes ||
17915      test "$enable_shared" = no; then
17916   # Fast installation is not necessary
17917   enable_fast_install=needless
17918 fi
17919
17920
17921 # The else clause should only fire when bootstrapping the
17922 # libtool distribution, otherwise you forgot to ship ltmain.sh
17923 # with your package, and you will get complaints that there are
17924 # no rules to generate ltmain.sh.
17925 if test -f "$ltmain"; then
17926   # See if we are running on zsh, and set the options which allow our commands through
17927   # without removal of \ escapes.
17928   if test -n "${ZSH_VERSION+set}" ; then
17929     setopt NO_GLOB_SUBST
17930   fi
17931   # Now quote all the things that may contain metacharacters while being
17932   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17933   # variables and quote the copies for generation of the libtool script.
17934   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17935     SED SHELL STRIP \
17936     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17937     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17938     deplibs_check_method reload_flag reload_cmds need_locks \
17939     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17940     lt_cv_sys_global_symbol_to_c_name_address \
17941     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17942     old_postinstall_cmds old_postuninstall_cmds \
17943     compiler_GCJ \
17944     CC_GCJ \
17945     LD_GCJ \
17946     lt_prog_compiler_wl_GCJ \
17947     lt_prog_compiler_pic_GCJ \
17948     lt_prog_compiler_static_GCJ \
17949     lt_prog_compiler_no_builtin_flag_GCJ \
17950     export_dynamic_flag_spec_GCJ \
17951     thread_safe_flag_spec_GCJ \
17952     whole_archive_flag_spec_GCJ \
17953     enable_shared_with_static_runtimes_GCJ \
17954     old_archive_cmds_GCJ \
17955     old_archive_from_new_cmds_GCJ \
17956     predep_objects_GCJ \
17957     postdep_objects_GCJ \
17958     predeps_GCJ \
17959     postdeps_GCJ \
17960     compiler_lib_search_path_GCJ \
17961     archive_cmds_GCJ \
17962     archive_expsym_cmds_GCJ \
17963     postinstall_cmds_GCJ \
17964     postuninstall_cmds_GCJ \
17965     old_archive_from_expsyms_cmds_GCJ \
17966     allow_undefined_flag_GCJ \
17967     no_undefined_flag_GCJ \
17968     export_symbols_cmds_GCJ \
17969     hardcode_libdir_flag_spec_GCJ \
17970     hardcode_libdir_flag_spec_ld_GCJ \
17971     hardcode_libdir_separator_GCJ \
17972     hardcode_automatic_GCJ \
17973     module_cmds_GCJ \
17974     module_expsym_cmds_GCJ \
17975     lt_cv_prog_compiler_c_o_GCJ \
17976     exclude_expsyms_GCJ \
17977     include_expsyms_GCJ; do
17978
17979     case $var in
17980     old_archive_cmds_GCJ | \
17981     old_archive_from_new_cmds_GCJ | \
17982     archive_cmds_GCJ | \
17983     archive_expsym_cmds_GCJ | \
17984     module_cmds_GCJ | \
17985     module_expsym_cmds_GCJ | \
17986     old_archive_from_expsyms_cmds_GCJ | \
17987     export_symbols_cmds_GCJ | \
17988     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17989     postinstall_cmds | postuninstall_cmds | \
17990     old_postinstall_cmds | old_postuninstall_cmds | \
17991     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17992       # Double-quote double-evaled strings.
17993       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17994       ;;
17995     *)
17996       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17997       ;;
17998     esac
17999   done
18000
18001   case $lt_echo in
18002   *'\$0 --fallback-echo"')
18003     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18004     ;;
18005   esac
18006
18007 cfgfile="$ofile"
18008
18009   cat <<__EOF__ >> "$cfgfile"
18010 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18011
18012 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18013
18014 # Shell to use when invoking shell scripts.
18015 SHELL=$lt_SHELL
18016
18017 # Whether or not to build shared libraries.
18018 build_libtool_libs=$enable_shared
18019
18020 # Whether or not to build static libraries.
18021 build_old_libs=$enable_static
18022
18023 # Whether or not to add -lc for building shared libraries.
18024 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18025
18026 # Whether or not to disallow shared libs when runtime libs are static
18027 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18028
18029 # Whether or not to optimize for fast installation.
18030 fast_install=$enable_fast_install
18031
18032 # The host system.
18033 host_alias=$host_alias
18034 host=$host
18035 host_os=$host_os
18036
18037 # The build system.
18038 build_alias=$build_alias
18039 build=$build
18040 build_os=$build_os
18041
18042 # An echo program that does not interpret backslashes.
18043 echo=$lt_echo
18044
18045 # The archiver.
18046 AR=$lt_AR
18047 AR_FLAGS=$lt_AR_FLAGS
18048
18049 # A C compiler.
18050 LTCC=$lt_LTCC
18051
18052 # LTCC compiler flags.
18053 LTCFLAGS=$lt_LTCFLAGS
18054
18055 # A language-specific compiler.
18056 CC=$lt_compiler_GCJ
18057
18058 # Is the compiler the GNU C compiler?
18059 with_gcc=$GCC_GCJ
18060
18061 # An ERE matcher.
18062 EGREP=$lt_EGREP
18063
18064 # The linker used to build libraries.
18065 LD=$lt_LD_GCJ
18066
18067 # Whether we need hard or soft links.
18068 LN_S=$lt_LN_S
18069
18070 # A BSD-compatible nm program.
18071 NM=$lt_NM
18072
18073 # A symbol stripping program
18074 STRIP=$lt_STRIP
18075
18076 # Used to examine libraries when file_magic_cmd begins "file"
18077 MAGIC_CMD=$MAGIC_CMD
18078
18079 # Used on cygwin: DLL creation program.
18080 DLLTOOL="$DLLTOOL"
18081
18082 # Used on cygwin: object dumper.
18083 OBJDUMP="$OBJDUMP"
18084
18085 # Used on cygwin: assembler.
18086 AS="$AS"
18087
18088 # The name of the directory that contains temporary libtool files.
18089 objdir=$objdir
18090
18091 # How to create reloadable object files.
18092 reload_flag=$lt_reload_flag
18093 reload_cmds=$lt_reload_cmds
18094
18095 # How to pass a linker flag through the compiler.
18096 wl=$lt_lt_prog_compiler_wl_GCJ
18097
18098 # Object file suffix (normally "o").
18099 objext="$ac_objext"
18100
18101 # Old archive suffix (normally "a").
18102 libext="$libext"
18103
18104 # Shared library suffix (normally ".so").
18105 shrext_cmds='$shrext_cmds'
18106
18107 # Executable file suffix (normally "").
18108 exeext="$exeext"
18109
18110 # Additional compiler flags for building library objects.
18111 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18112 pic_mode=$pic_mode
18113
18114 # What is the maximum length of a command?
18115 max_cmd_len=$lt_cv_sys_max_cmd_len
18116
18117 # Does compiler simultaneously support -c and -o options?
18118 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18119
18120 # Must we lock files when doing compilation?
18121 need_locks=$lt_need_locks
18122
18123 # Do we need the lib prefix for modules?
18124 need_lib_prefix=$need_lib_prefix
18125
18126 # Do we need a version for libraries?
18127 need_version=$need_version
18128
18129 # Whether dlopen is supported.
18130 dlopen_support=$enable_dlopen
18131
18132 # Whether dlopen of programs is supported.
18133 dlopen_self=$enable_dlopen_self
18134
18135 # Whether dlopen of statically linked programs is supported.
18136 dlopen_self_static=$enable_dlopen_self_static
18137
18138 # Compiler flag to prevent dynamic linking.
18139 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18140
18141 # Compiler flag to turn off builtin functions.
18142 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18143
18144 # Compiler flag to allow reflexive dlopens.
18145 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18146
18147 # Compiler flag to generate shared objects directly from archives.
18148 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18149
18150 # Compiler flag to generate thread-safe objects.
18151 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18152
18153 # Library versioning type.
18154 version_type=$version_type
18155
18156 # Format of library name prefix.
18157 libname_spec=$lt_libname_spec
18158
18159 # List of archive names.  First name is the real one, the rest are links.
18160 # The last name is the one that the linker finds with -lNAME.
18161 library_names_spec=$lt_library_names_spec
18162
18163 # The coded name of the library, if different from the real name.
18164 soname_spec=$lt_soname_spec
18165
18166 # Commands used to build and install an old-style archive.
18167 RANLIB=$lt_RANLIB
18168 old_archive_cmds=$lt_old_archive_cmds_GCJ
18169 old_postinstall_cmds=$lt_old_postinstall_cmds
18170 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18171
18172 # Create an old-style archive from a shared archive.
18173 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18174
18175 # Create a temporary old-style archive to link instead of a shared archive.
18176 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18177
18178 # Commands used to build and install a shared archive.
18179 archive_cmds=$lt_archive_cmds_GCJ
18180 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18181 postinstall_cmds=$lt_postinstall_cmds
18182 postuninstall_cmds=$lt_postuninstall_cmds
18183
18184 # Commands used to build a loadable module (assumed same as above if empty)
18185 module_cmds=$lt_module_cmds_GCJ
18186 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18187
18188 # Commands to strip libraries.
18189 old_striplib=$lt_old_striplib
18190 striplib=$lt_striplib
18191
18192 # Dependencies to place before the objects being linked to create a
18193 # shared library.
18194 predep_objects=$lt_predep_objects_GCJ
18195
18196 # Dependencies to place after the objects being linked to create a
18197 # shared library.
18198 postdep_objects=$lt_postdep_objects_GCJ
18199
18200 # Dependencies to place before the objects being linked to create a
18201 # shared library.
18202 predeps=$lt_predeps_GCJ
18203
18204 # Dependencies to place after the objects being linked to create a
18205 # shared library.
18206 postdeps=$lt_postdeps_GCJ
18207
18208 # The library search path used internally by the compiler when linking
18209 # a shared library.
18210 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18211
18212 # Method to check whether dependent libraries are shared objects.
18213 deplibs_check_method=$lt_deplibs_check_method
18214
18215 # Command to use when deplibs_check_method == file_magic.
18216 file_magic_cmd=$lt_file_magic_cmd
18217
18218 # Flag that allows shared libraries with undefined symbols to be built.
18219 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18220
18221 # Flag that forces no undefined symbols.
18222 no_undefined_flag=$lt_no_undefined_flag_GCJ
18223
18224 # Commands used to finish a libtool library installation in a directory.
18225 finish_cmds=$lt_finish_cmds
18226
18227 # Same as above, but a single script fragment to be evaled but not shown.
18228 finish_eval=$lt_finish_eval
18229
18230 # Take the output of nm and produce a listing of raw symbols and C names.
18231 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18232
18233 # Transform the output of nm in a proper C declaration
18234 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18235
18236 # Transform the output of nm in a C name address pair
18237 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18238
18239 # This is the shared library runtime path variable.
18240 runpath_var=$runpath_var
18241
18242 # This is the shared library path variable.
18243 shlibpath_var=$shlibpath_var
18244
18245 # Is shlibpath searched before the hard-coded library search path?
18246 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18247
18248 # How to hardcode a shared library path into an executable.
18249 hardcode_action=$hardcode_action_GCJ
18250
18251 # Whether we should hardcode library paths into libraries.
18252 hardcode_into_libs=$hardcode_into_libs
18253
18254 # Flag to hardcode \$libdir into a binary during linking.
18255 # This must work even if \$libdir does not exist.
18256 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18257
18258 # If ld is used when linking, flag to hardcode \$libdir into
18259 # a binary during linking. This must work even if \$libdir does
18260 # not exist.
18261 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18262
18263 # Whether we need a single -rpath flag with a separated argument.
18264 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18265
18266 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18267 # resulting binary.
18268 hardcode_direct=$hardcode_direct_GCJ
18269
18270 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18271 # resulting binary.
18272 hardcode_minus_L=$hardcode_minus_L_GCJ
18273
18274 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18275 # the resulting binary.
18276 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18277
18278 # Set to yes if building a shared library automatically hardcodes DIR into the library
18279 # and all subsequent libraries and executables linked against it.
18280 hardcode_automatic=$hardcode_automatic_GCJ
18281
18282 # Variables whose values should be saved in libtool wrapper scripts and
18283 # restored at relink time.
18284 variables_saved_for_relink="$variables_saved_for_relink"
18285
18286 # Whether libtool must link a program against all its dependency libraries.
18287 link_all_deplibs=$link_all_deplibs_GCJ
18288
18289 # Compile-time system search path for libraries
18290 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18291
18292 # Run-time system search path for libraries
18293 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18294
18295 # Fix the shell variable \$srcfile for the compiler.
18296 fix_srcfile_path="$fix_srcfile_path_GCJ"
18297
18298 # Set to yes if exported symbols are required.
18299 always_export_symbols=$always_export_symbols_GCJ
18300
18301 # The commands to list exported symbols.
18302 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18303
18304 # The commands to extract the exported symbol list from a shared archive.
18305 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18306
18307 # Symbols that should not be listed in the preloaded symbols.
18308 exclude_expsyms=$lt_exclude_expsyms_GCJ
18309
18310 # Symbols that must always be exported.
18311 include_expsyms=$lt_include_expsyms_GCJ
18312
18313 # ### END LIBTOOL TAG CONFIG: $tagname
18314
18315 __EOF__
18316
18317
18318 else
18319   # If there is no Makefile yet, we rely on a make rule to execute
18320   # `config.status --recheck' to rerun these tests and create the
18321   # libtool script then.
18322   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18323   if test -f "$ltmain_in"; then
18324     test -f Makefile && make "$ltmain"
18325   fi
18326 fi
18327
18328
18329 ac_ext=c
18330 ac_cpp='$CPP $CPPFLAGS'
18331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18334
18335 CC="$lt_save_CC"
18336
18337         else
18338           tagname=""
18339         fi
18340         ;;
18341
18342       RC)
18343
18344
18345
18346 # Source file extension for RC test sources.
18347 ac_ext=rc
18348
18349 # Object file extension for compiled RC test sources.
18350 objext=o
18351 objext_RC=$objext
18352
18353 # Code to be used in simple compile tests
18354 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18355
18356 # Code to be used in simple link tests
18357 lt_simple_link_test_code="$lt_simple_compile_test_code"
18358
18359 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18360
18361 # If no C compiler was specified, use CC.
18362 LTCC=${LTCC-"$CC"}
18363
18364 # If no C compiler flags were specified, use CFLAGS.
18365 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18366
18367 # Allow CC to be a program name with arguments.
18368 compiler=$CC
18369
18370
18371 # save warnings/boilerplate of simple test code
18372 ac_outfile=conftest.$ac_objext
18373 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18374 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18375 _lt_compiler_boilerplate=`cat conftest.err`
18376 $rm conftest*
18377
18378 ac_outfile=conftest.$ac_objext
18379 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18380 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18381 _lt_linker_boilerplate=`cat conftest.err`
18382 $rm conftest*
18383
18384
18385 # Allow CC to be a program name with arguments.
18386 lt_save_CC="$CC"
18387 CC=${RC-"windres"}
18388 compiler=$CC
18389 compiler_RC=$CC
18390 for cc_temp in $compiler""; do
18391   case $cc_temp in
18392     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18393     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18394     \-*) ;;
18395     *) break;;
18396   esac
18397 done
18398 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18399
18400 lt_cv_prog_compiler_c_o_RC=yes
18401
18402 # The else clause should only fire when bootstrapping the
18403 # libtool distribution, otherwise you forgot to ship ltmain.sh
18404 # with your package, and you will get complaints that there are
18405 # no rules to generate ltmain.sh.
18406 if test -f "$ltmain"; then
18407   # See if we are running on zsh, and set the options which allow our commands through
18408   # without removal of \ escapes.
18409   if test -n "${ZSH_VERSION+set}" ; then
18410     setopt NO_GLOB_SUBST
18411   fi
18412   # Now quote all the things that may contain metacharacters while being
18413   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18414   # variables and quote the copies for generation of the libtool script.
18415   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18416     SED SHELL STRIP \
18417     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18418     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18419     deplibs_check_method reload_flag reload_cmds need_locks \
18420     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18421     lt_cv_sys_global_symbol_to_c_name_address \
18422     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18423     old_postinstall_cmds old_postuninstall_cmds \
18424     compiler_RC \
18425     CC_RC \
18426     LD_RC \
18427     lt_prog_compiler_wl_RC \
18428     lt_prog_compiler_pic_RC \
18429     lt_prog_compiler_static_RC \
18430     lt_prog_compiler_no_builtin_flag_RC \
18431     export_dynamic_flag_spec_RC \
18432     thread_safe_flag_spec_RC \
18433     whole_archive_flag_spec_RC \
18434     enable_shared_with_static_runtimes_RC \
18435     old_archive_cmds_RC \
18436     old_archive_from_new_cmds_RC \
18437     predep_objects_RC \
18438     postdep_objects_RC \
18439     predeps_RC \
18440     postdeps_RC \
18441     compiler_lib_search_path_RC \
18442     archive_cmds_RC \
18443     archive_expsym_cmds_RC \
18444     postinstall_cmds_RC \
18445     postuninstall_cmds_RC \
18446     old_archive_from_expsyms_cmds_RC \
18447     allow_undefined_flag_RC \
18448     no_undefined_flag_RC \
18449     export_symbols_cmds_RC \
18450     hardcode_libdir_flag_spec_RC \
18451     hardcode_libdir_flag_spec_ld_RC \
18452     hardcode_libdir_separator_RC \
18453     hardcode_automatic_RC \
18454     module_cmds_RC \
18455     module_expsym_cmds_RC \
18456     lt_cv_prog_compiler_c_o_RC \
18457     exclude_expsyms_RC \
18458     include_expsyms_RC; do
18459
18460     case $var in
18461     old_archive_cmds_RC | \
18462     old_archive_from_new_cmds_RC | \
18463     archive_cmds_RC | \
18464     archive_expsym_cmds_RC | \
18465     module_cmds_RC | \
18466     module_expsym_cmds_RC | \
18467     old_archive_from_expsyms_cmds_RC | \
18468     export_symbols_cmds_RC | \
18469     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18470     postinstall_cmds | postuninstall_cmds | \
18471     old_postinstall_cmds | old_postuninstall_cmds | \
18472     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18473       # Double-quote double-evaled strings.
18474       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18475       ;;
18476     *)
18477       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18478       ;;
18479     esac
18480   done
18481
18482   case $lt_echo in
18483   *'\$0 --fallback-echo"')
18484     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18485     ;;
18486   esac
18487
18488 cfgfile="$ofile"
18489
18490   cat <<__EOF__ >> "$cfgfile"
18491 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18492
18493 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18494
18495 # Shell to use when invoking shell scripts.
18496 SHELL=$lt_SHELL
18497
18498 # Whether or not to build shared libraries.
18499 build_libtool_libs=$enable_shared
18500
18501 # Whether or not to build static libraries.
18502 build_old_libs=$enable_static
18503
18504 # Whether or not to add -lc for building shared libraries.
18505 build_libtool_need_lc=$archive_cmds_need_lc_RC
18506
18507 # Whether or not to disallow shared libs when runtime libs are static
18508 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18509
18510 # Whether or not to optimize for fast installation.
18511 fast_install=$enable_fast_install
18512
18513 # The host system.
18514 host_alias=$host_alias
18515 host=$host
18516 host_os=$host_os
18517
18518 # The build system.
18519 build_alias=$build_alias
18520 build=$build
18521 build_os=$build_os
18522
18523 # An echo program that does not interpret backslashes.
18524 echo=$lt_echo
18525
18526 # The archiver.
18527 AR=$lt_AR
18528 AR_FLAGS=$lt_AR_FLAGS
18529
18530 # A C compiler.
18531 LTCC=$lt_LTCC
18532
18533 # LTCC compiler flags.
18534 LTCFLAGS=$lt_LTCFLAGS
18535
18536 # A language-specific compiler.
18537 CC=$lt_compiler_RC
18538
18539 # Is the compiler the GNU C compiler?
18540 with_gcc=$GCC_RC
18541
18542 # An ERE matcher.
18543 EGREP=$lt_EGREP
18544
18545 # The linker used to build libraries.
18546 LD=$lt_LD_RC
18547
18548 # Whether we need hard or soft links.
18549 LN_S=$lt_LN_S
18550
18551 # A BSD-compatible nm program.
18552 NM=$lt_NM
18553
18554 # A symbol stripping program
18555 STRIP=$lt_STRIP
18556
18557 # Used to examine libraries when file_magic_cmd begins "file"
18558 MAGIC_CMD=$MAGIC_CMD
18559
18560 # Used on cygwin: DLL creation program.
18561 DLLTOOL="$DLLTOOL"
18562
18563 # Used on cygwin: object dumper.
18564 OBJDUMP="$OBJDUMP"
18565
18566 # Used on cygwin: assembler.
18567 AS="$AS"
18568
18569 # The name of the directory that contains temporary libtool files.
18570 objdir=$objdir
18571
18572 # How to create reloadable object files.
18573 reload_flag=$lt_reload_flag
18574 reload_cmds=$lt_reload_cmds
18575
18576 # How to pass a linker flag through the compiler.
18577 wl=$lt_lt_prog_compiler_wl_RC
18578
18579 # Object file suffix (normally "o").
18580 objext="$ac_objext"
18581
18582 # Old archive suffix (normally "a").
18583 libext="$libext"
18584
18585 # Shared library suffix (normally ".so").
18586 shrext_cmds='$shrext_cmds'
18587
18588 # Executable file suffix (normally "").
18589 exeext="$exeext"
18590
18591 # Additional compiler flags for building library objects.
18592 pic_flag=$lt_lt_prog_compiler_pic_RC
18593 pic_mode=$pic_mode
18594
18595 # What is the maximum length of a command?
18596 max_cmd_len=$lt_cv_sys_max_cmd_len
18597
18598 # Does compiler simultaneously support -c and -o options?
18599 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18600
18601 # Must we lock files when doing compilation?
18602 need_locks=$lt_need_locks
18603
18604 # Do we need the lib prefix for modules?
18605 need_lib_prefix=$need_lib_prefix
18606
18607 # Do we need a version for libraries?
18608 need_version=$need_version
18609
18610 # Whether dlopen is supported.
18611 dlopen_support=$enable_dlopen
18612
18613 # Whether dlopen of programs is supported.
18614 dlopen_self=$enable_dlopen_self
18615
18616 # Whether dlopen of statically linked programs is supported.
18617 dlopen_self_static=$enable_dlopen_self_static
18618
18619 # Compiler flag to prevent dynamic linking.
18620 link_static_flag=$lt_lt_prog_compiler_static_RC
18621
18622 # Compiler flag to turn off builtin functions.
18623 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18624
18625 # Compiler flag to allow reflexive dlopens.
18626 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18627
18628 # Compiler flag to generate shared objects directly from archives.
18629 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18630
18631 # Compiler flag to generate thread-safe objects.
18632 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18633
18634 # Library versioning type.
18635 version_type=$version_type
18636
18637 # Format of library name prefix.
18638 libname_spec=$lt_libname_spec
18639
18640 # List of archive names.  First name is the real one, the rest are links.
18641 # The last name is the one that the linker finds with -lNAME.
18642 library_names_spec=$lt_library_names_spec
18643
18644 # The coded name of the library, if different from the real name.
18645 soname_spec=$lt_soname_spec
18646
18647 # Commands used to build and install an old-style archive.
18648 RANLIB=$lt_RANLIB
18649 old_archive_cmds=$lt_old_archive_cmds_RC
18650 old_postinstall_cmds=$lt_old_postinstall_cmds
18651 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18652
18653 # Create an old-style archive from a shared archive.
18654 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18655
18656 # Create a temporary old-style archive to link instead of a shared archive.
18657 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18658
18659 # Commands used to build and install a shared archive.
18660 archive_cmds=$lt_archive_cmds_RC
18661 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18662 postinstall_cmds=$lt_postinstall_cmds
18663 postuninstall_cmds=$lt_postuninstall_cmds
18664
18665 # Commands used to build a loadable module (assumed same as above if empty)
18666 module_cmds=$lt_module_cmds_RC
18667 module_expsym_cmds=$lt_module_expsym_cmds_RC
18668
18669 # Commands to strip libraries.
18670 old_striplib=$lt_old_striplib
18671 striplib=$lt_striplib
18672
18673 # Dependencies to place before the objects being linked to create a
18674 # shared library.
18675 predep_objects=$lt_predep_objects_RC
18676
18677 # Dependencies to place after the objects being linked to create a
18678 # shared library.
18679 postdep_objects=$lt_postdep_objects_RC
18680
18681 # Dependencies to place before the objects being linked to create a
18682 # shared library.
18683 predeps=$lt_predeps_RC
18684
18685 # Dependencies to place after the objects being linked to create a
18686 # shared library.
18687 postdeps=$lt_postdeps_RC
18688
18689 # The library search path used internally by the compiler when linking
18690 # a shared library.
18691 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18692
18693 # Method to check whether dependent libraries are shared objects.
18694 deplibs_check_method=$lt_deplibs_check_method
18695
18696 # Command to use when deplibs_check_method == file_magic.
18697 file_magic_cmd=$lt_file_magic_cmd
18698
18699 # Flag that allows shared libraries with undefined symbols to be built.
18700 allow_undefined_flag=$lt_allow_undefined_flag_RC
18701
18702 # Flag that forces no undefined symbols.
18703 no_undefined_flag=$lt_no_undefined_flag_RC
18704
18705 # Commands used to finish a libtool library installation in a directory.
18706 finish_cmds=$lt_finish_cmds
18707
18708 # Same as above, but a single script fragment to be evaled but not shown.
18709 finish_eval=$lt_finish_eval
18710
18711 # Take the output of nm and produce a listing of raw symbols and C names.
18712 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18713
18714 # Transform the output of nm in a proper C declaration
18715 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18716
18717 # Transform the output of nm in a C name address pair
18718 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18719
18720 # This is the shared library runtime path variable.
18721 runpath_var=$runpath_var
18722
18723 # This is the shared library path variable.
18724 shlibpath_var=$shlibpath_var
18725
18726 # Is shlibpath searched before the hard-coded library search path?
18727 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18728
18729 # How to hardcode a shared library path into an executable.
18730 hardcode_action=$hardcode_action_RC
18731
18732 # Whether we should hardcode library paths into libraries.
18733 hardcode_into_libs=$hardcode_into_libs
18734
18735 # Flag to hardcode \$libdir into a binary during linking.
18736 # This must work even if \$libdir does not exist.
18737 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18738
18739 # If ld is used when linking, flag to hardcode \$libdir into
18740 # a binary during linking. This must work even if \$libdir does
18741 # not exist.
18742 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18743
18744 # Whether we need a single -rpath flag with a separated argument.
18745 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18746
18747 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18748 # resulting binary.
18749 hardcode_direct=$hardcode_direct_RC
18750
18751 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18752 # resulting binary.
18753 hardcode_minus_L=$hardcode_minus_L_RC
18754
18755 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18756 # the resulting binary.
18757 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18758
18759 # Set to yes if building a shared library automatically hardcodes DIR into the library
18760 # and all subsequent libraries and executables linked against it.
18761 hardcode_automatic=$hardcode_automatic_RC
18762
18763 # Variables whose values should be saved in libtool wrapper scripts and
18764 # restored at relink time.
18765 variables_saved_for_relink="$variables_saved_for_relink"
18766
18767 # Whether libtool must link a program against all its dependency libraries.
18768 link_all_deplibs=$link_all_deplibs_RC
18769
18770 # Compile-time system search path for libraries
18771 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18772
18773 # Run-time system search path for libraries
18774 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18775
18776 # Fix the shell variable \$srcfile for the compiler.
18777 fix_srcfile_path="$fix_srcfile_path_RC"
18778
18779 # Set to yes if exported symbols are required.
18780 always_export_symbols=$always_export_symbols_RC
18781
18782 # The commands to list exported symbols.
18783 export_symbols_cmds=$lt_export_symbols_cmds_RC
18784
18785 # The commands to extract the exported symbol list from a shared archive.
18786 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18787
18788 # Symbols that should not be listed in the preloaded symbols.
18789 exclude_expsyms=$lt_exclude_expsyms_RC
18790
18791 # Symbols that must always be exported.
18792 include_expsyms=$lt_include_expsyms_RC
18793
18794 # ### END LIBTOOL TAG CONFIG: $tagname
18795
18796 __EOF__
18797
18798
18799 else
18800   # If there is no Makefile yet, we rely on a make rule to execute
18801   # `config.status --recheck' to rerun these tests and create the
18802   # libtool script then.
18803   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18804   if test -f "$ltmain_in"; then
18805     test -f Makefile && make "$ltmain"
18806   fi
18807 fi
18808
18809
18810 ac_ext=c
18811 ac_cpp='$CPP $CPPFLAGS'
18812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18815
18816 CC="$lt_save_CC"
18817
18818         ;;
18819
18820       *)
18821         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18822 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18823    { (exit 1); exit 1; }; }
18824         ;;
18825       esac
18826
18827       # Append the new tag name to the list of available tags.
18828       if test -n "$tagname" ; then
18829       available_tags="$available_tags $tagname"
18830     fi
18831     fi
18832   done
18833   IFS="$lt_save_ifs"
18834
18835   # Now substitute the updated list of available tags.
18836   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18837     mv "${ofile}T" "$ofile"
18838     chmod +x "$ofile"
18839   else
18840     rm -f "${ofile}T"
18841     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18842 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18843    { (exit 1); exit 1; }; }
18844   fi
18845 fi
18846
18847
18848
18849 # This can be used to rebuild libtool when needed
18850 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18851
18852 # Always use our own libtool.
18853 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18854
18855 # Prevent multiple expansion
18856
18857
18858
18859
18860
18861
18862
18863
18864
18865
18866
18867
18868
18869
18870
18871
18872
18873
18874
18875
18876
18877 ###############
18878 ## System checks
18879 ##
18880
18881   echo "$as_me:$LINENO: result: " >&5
18882 echo "${ECHO_T}" >&6
18883   echo "$as_me:$LINENO: result: ${T_MD}System checks...${T_ME}" >&5
18884 echo "${ECHO_T}${T_MD}System checks...${T_ME}" >&6
18885
18886 ac_ext=c
18887 ac_cpp='$CPP $CPPFLAGS'
18888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18891 if test -n "$ac_tool_prefix"; then
18892   for ac_prog in xlC gcc cc
18893   do
18894     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18895 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18896 echo "$as_me:$LINENO: checking for $ac_word" >&5
18897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18898 if test "${ac_cv_prog_CC+set}" = set; then
18899   echo $ECHO_N "(cached) $ECHO_C" >&6
18900 else
18901   if test -n "$CC"; then
18902   ac_cv_prog_CC="$CC" # Let the user override the test.
18903 else
18904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18905 for as_dir in $PATH
18906 do
18907   IFS=$as_save_IFS
18908   test -z "$as_dir" && as_dir=.
18909   for ac_exec_ext in '' $ac_executable_extensions; do
18910   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18911     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
18912     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18913     break 2
18914   fi
18915 done
18916 done
18917
18918 fi
18919 fi
18920 CC=$ac_cv_prog_CC
18921 if test -n "$CC"; then
18922   echo "$as_me:$LINENO: result: $CC" >&5
18923 echo "${ECHO_T}$CC" >&6
18924 else
18925   echo "$as_me:$LINENO: result: no" >&5
18926 echo "${ECHO_T}no" >&6
18927 fi
18928
18929     test -n "$CC" && break
18930   done
18931 fi
18932 if test -z "$CC"; then
18933   ac_ct_CC=$CC
18934   for ac_prog in xlC gcc cc
18935 do
18936   # Extract the first word of "$ac_prog", so it can be a program name with args.
18937 set dummy $ac_prog; ac_word=$2
18938 echo "$as_me:$LINENO: checking for $ac_word" >&5
18939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18940 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18941   echo $ECHO_N "(cached) $ECHO_C" >&6
18942 else
18943   if test -n "$ac_ct_CC"; then
18944   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18945 else
18946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18947 for as_dir in $PATH
18948 do
18949   IFS=$as_save_IFS
18950   test -z "$as_dir" && as_dir=.
18951   for ac_exec_ext in '' $ac_executable_extensions; do
18952   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18953     ac_cv_prog_ac_ct_CC="$ac_prog"
18954     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18955     break 2
18956   fi
18957 done
18958 done
18959
18960 fi
18961 fi
18962 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18963 if test -n "$ac_ct_CC"; then
18964   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18965 echo "${ECHO_T}$ac_ct_CC" >&6
18966 else
18967   echo "$as_me:$LINENO: result: no" >&5
18968 echo "${ECHO_T}no" >&6
18969 fi
18970
18971   test -n "$ac_ct_CC" && break
18972 done
18973
18974   CC=$ac_ct_CC
18975 fi
18976
18977
18978 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
18979 See \`config.log' for more details." >&5
18980 echo "$as_me: error: no acceptable C compiler found in \$PATH
18981 See \`config.log' for more details." >&2;}
18982    { (exit 1); exit 1; }; }
18983
18984 # Provide some information about the compiler.
18985 echo "$as_me:$LINENO:" \
18986      "checking for C compiler version" >&5
18987 ac_compiler=`set X $ac_compile; echo $2`
18988 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
18989   (eval $ac_compiler --version </dev/null >&5) 2>&5
18990   ac_status=$?
18991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18992   (exit $ac_status); }
18993 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
18994   (eval $ac_compiler -v </dev/null >&5) 2>&5
18995   ac_status=$?
18996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18997   (exit $ac_status); }
18998 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
18999   (eval $ac_compiler -V </dev/null >&5) 2>&5
19000   ac_status=$?
19001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002   (exit $ac_status); }
19003
19004 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19005 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19006 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19007   echo $ECHO_N "(cached) $ECHO_C" >&6
19008 else
19009   cat >conftest.$ac_ext <<_ACEOF
19010 /* confdefs.h.  */
19011 _ACEOF
19012 cat confdefs.h >>conftest.$ac_ext
19013 cat >>conftest.$ac_ext <<_ACEOF
19014 /* end confdefs.h.  */
19015
19016 int
19017 main ()
19018 {
19019 #ifndef __GNUC__
19020        choke me
19021 #endif
19022
19023   ;
19024   return 0;
19025 }
19026 _ACEOF
19027 rm -f conftest.$ac_objext
19028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19029   (eval $ac_compile) 2>conftest.er1
19030   ac_status=$?
19031   grep -v '^ *+' conftest.er1 >conftest.err
19032   rm -f conftest.er1
19033   cat conftest.err >&5
19034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035   (exit $ac_status); } &&
19036          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19038   (eval $ac_try) 2>&5
19039   ac_status=$?
19040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041   (exit $ac_status); }; } &&
19042          { ac_try='test -s conftest.$ac_objext'
19043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19044   (eval $ac_try) 2>&5
19045   ac_status=$?
19046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047   (exit $ac_status); }; }; then
19048   ac_compiler_gnu=yes
19049 else
19050   echo "$as_me: failed program was:" >&5
19051 sed 's/^/| /' conftest.$ac_ext >&5
19052
19053 ac_compiler_gnu=no
19054 fi
19055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19056 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19057
19058 fi
19059 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19060 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19061 GCC=`test $ac_compiler_gnu = yes && echo yes`
19062 ac_test_CFLAGS=${CFLAGS+set}
19063 ac_save_CFLAGS=$CFLAGS
19064 CFLAGS="-g"
19065 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19066 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19067 if test "${ac_cv_prog_cc_g+set}" = set; then
19068   echo $ECHO_N "(cached) $ECHO_C" >&6
19069 else
19070   cat >conftest.$ac_ext <<_ACEOF
19071 /* confdefs.h.  */
19072 _ACEOF
19073 cat confdefs.h >>conftest.$ac_ext
19074 cat >>conftest.$ac_ext <<_ACEOF
19075 /* end confdefs.h.  */
19076
19077 int
19078 main ()
19079 {
19080
19081   ;
19082   return 0;
19083 }
19084 _ACEOF
19085 rm -f conftest.$ac_objext
19086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19087   (eval $ac_compile) 2>conftest.er1
19088   ac_status=$?
19089   grep -v '^ *+' conftest.er1 >conftest.err
19090   rm -f conftest.er1
19091   cat conftest.err >&5
19092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19093   (exit $ac_status); } &&
19094          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19096   (eval $ac_try) 2>&5
19097   ac_status=$?
19098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099   (exit $ac_status); }; } &&
19100          { ac_try='test -s conftest.$ac_objext'
19101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19102   (eval $ac_try) 2>&5
19103   ac_status=$?
19104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105   (exit $ac_status); }; }; then
19106   ac_cv_prog_cc_g=yes
19107 else
19108   echo "$as_me: failed program was:" >&5
19109 sed 's/^/| /' conftest.$ac_ext >&5
19110
19111 ac_cv_prog_cc_g=no
19112 fi
19113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19114 fi
19115 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19116 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19117 if test "$ac_test_CFLAGS" = set; then
19118   CFLAGS=$ac_save_CFLAGS
19119 elif test $ac_cv_prog_cc_g = yes; then
19120   if test "$GCC" = yes; then
19121     CFLAGS="-g -O2"
19122   else
19123     CFLAGS="-g"
19124   fi
19125 else
19126   if test "$GCC" = yes; then
19127     CFLAGS="-O2"
19128   else
19129     CFLAGS=
19130   fi
19131 fi
19132 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19133 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19134 if test "${ac_cv_prog_cc_stdc+set}" = set; then
19135   echo $ECHO_N "(cached) $ECHO_C" >&6
19136 else
19137   ac_cv_prog_cc_stdc=no
19138 ac_save_CC=$CC
19139 cat >conftest.$ac_ext <<_ACEOF
19140 /* confdefs.h.  */
19141 _ACEOF
19142 cat confdefs.h >>conftest.$ac_ext
19143 cat >>conftest.$ac_ext <<_ACEOF
19144 /* end confdefs.h.  */
19145 #include <stdarg.h>
19146 #include <stdio.h>
19147 #include <sys/types.h>
19148 #include <sys/stat.h>
19149 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19150 struct buf { int x; };
19151 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19152 static char *e (p, i)
19153      char **p;
19154      int i;
19155 {
19156   return p[i];
19157 }
19158 static char *f (char * (*g) (char **, int), char **p, ...)
19159 {
19160   char *s;
19161   va_list v;
19162   va_start (v,p);
19163   s = g (p, va_arg (v,int));
19164   va_end (v);
19165   return s;
19166 }
19167
19168 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
19169    function prototypes and stuff, but not '\xHH' hex character constants.
19170    These don't provoke an error unfortunately, instead are silently treated
19171    as 'x'.  The following induces an error, until -std1 is added to get
19172    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
19173    array size at least.  It's necessary to write '\x00'==0 to get something
19174    that's true only with -std1.  */
19175 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19176
19177 int test (int i, double x);
19178 struct s1 {int (*f) (int a);};
19179 struct s2 {int (*f) (double a);};
19180 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19181 int argc;
19182 char **argv;
19183 int
19184 main ()
19185 {
19186 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
19187   ;
19188   return 0;
19189 }
19190 _ACEOF
19191 # Don't try gcc -ansi; that turns off useful extensions and
19192 # breaks some systems' header files.
19193 # AIX                   -qlanglvl=ansi
19194 # Ultrix and OSF/1      -std1
19195 # HP-UX 10.20 and later -Ae
19196 # HP-UX older versions  -Aa -D_HPUX_SOURCE
19197 # SVR4                  -Xc -D__EXTENSIONS__
19198 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19199 do
19200   CC="$ac_save_CC $ac_arg"
19201   rm -f conftest.$ac_objext
19202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19203   (eval $ac_compile) 2>conftest.er1
19204   ac_status=$?
19205   grep -v '^ *+' conftest.er1 >conftest.err
19206   rm -f conftest.er1
19207   cat conftest.err >&5
19208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209   (exit $ac_status); } &&
19210          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19212   (eval $ac_try) 2>&5
19213   ac_status=$?
19214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19215   (exit $ac_status); }; } &&
19216          { ac_try='test -s conftest.$ac_objext'
19217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19218   (eval $ac_try) 2>&5
19219   ac_status=$?
19220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221   (exit $ac_status); }; }; then
19222   ac_cv_prog_cc_stdc=$ac_arg
19223 break
19224 else
19225   echo "$as_me: failed program was:" >&5
19226 sed 's/^/| /' conftest.$ac_ext >&5
19227
19228 fi
19229 rm -f conftest.err conftest.$ac_objext
19230 done
19231 rm -f conftest.$ac_ext conftest.$ac_objext
19232 CC=$ac_save_CC
19233
19234 fi
19235
19236 case "x$ac_cv_prog_cc_stdc" in
19237   x|xno)
19238     echo "$as_me:$LINENO: result: none needed" >&5
19239 echo "${ECHO_T}none needed" >&6 ;;
19240   *)
19241     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19242 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19243     CC="$CC $ac_cv_prog_cc_stdc" ;;
19244 esac
19245
19246 # Some people use a C++ compiler to compile C.  Since we use `exit',
19247 # in C++ we need to declare it.  In case someone uses the same compiler
19248 # for both compiling C and C++ we need to have the C++ compiler decide
19249 # the declaration of exit, since it's the most demanding environment.
19250 cat >conftest.$ac_ext <<_ACEOF
19251 #ifndef __cplusplus
19252   choke me
19253 #endif
19254 _ACEOF
19255 rm -f conftest.$ac_objext
19256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19257   (eval $ac_compile) 2>conftest.er1
19258   ac_status=$?
19259   grep -v '^ *+' conftest.er1 >conftest.err
19260   rm -f conftest.er1
19261   cat conftest.err >&5
19262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263   (exit $ac_status); } &&
19264          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19266   (eval $ac_try) 2>&5
19267   ac_status=$?
19268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269   (exit $ac_status); }; } &&
19270          { ac_try='test -s conftest.$ac_objext'
19271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19272   (eval $ac_try) 2>&5
19273   ac_status=$?
19274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275   (exit $ac_status); }; }; then
19276   for ac_declaration in \
19277    '' \
19278    'extern "C" void std::exit (int) throw (); using std::exit;' \
19279    'extern "C" void std::exit (int); using std::exit;' \
19280    'extern "C" void exit (int) throw ();' \
19281    'extern "C" void exit (int);' \
19282    'void exit (int);'
19283 do
19284   cat >conftest.$ac_ext <<_ACEOF
19285 /* confdefs.h.  */
19286 _ACEOF
19287 cat confdefs.h >>conftest.$ac_ext
19288 cat >>conftest.$ac_ext <<_ACEOF
19289 /* end confdefs.h.  */
19290 $ac_declaration
19291 #include <stdlib.h>
19292 int
19293 main ()
19294 {
19295 exit (42);
19296   ;
19297   return 0;
19298 }
19299 _ACEOF
19300 rm -f conftest.$ac_objext
19301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19302   (eval $ac_compile) 2>conftest.er1
19303   ac_status=$?
19304   grep -v '^ *+' conftest.er1 >conftest.err
19305   rm -f conftest.er1
19306   cat conftest.err >&5
19307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308   (exit $ac_status); } &&
19309          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19311   (eval $ac_try) 2>&5
19312   ac_status=$?
19313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314   (exit $ac_status); }; } &&
19315          { ac_try='test -s conftest.$ac_objext'
19316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19317   (eval $ac_try) 2>&5
19318   ac_status=$?
19319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19320   (exit $ac_status); }; }; then
19321   :
19322 else
19323   echo "$as_me: failed program was:" >&5
19324 sed 's/^/| /' conftest.$ac_ext >&5
19325
19326 continue
19327 fi
19328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19329   cat >conftest.$ac_ext <<_ACEOF
19330 /* confdefs.h.  */
19331 _ACEOF
19332 cat confdefs.h >>conftest.$ac_ext
19333 cat >>conftest.$ac_ext <<_ACEOF
19334 /* end confdefs.h.  */
19335 $ac_declaration
19336 int
19337 main ()
19338 {
19339 exit (42);
19340   ;
19341   return 0;
19342 }
19343 _ACEOF
19344 rm -f conftest.$ac_objext
19345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19346   (eval $ac_compile) 2>conftest.er1
19347   ac_status=$?
19348   grep -v '^ *+' conftest.er1 >conftest.err
19349   rm -f conftest.er1
19350   cat conftest.err >&5
19351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352   (exit $ac_status); } &&
19353          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19355   (eval $ac_try) 2>&5
19356   ac_status=$?
19357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358   (exit $ac_status); }; } &&
19359          { ac_try='test -s conftest.$ac_objext'
19360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19361   (eval $ac_try) 2>&5
19362   ac_status=$?
19363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364   (exit $ac_status); }; }; then
19365   break
19366 else
19367   echo "$as_me: failed program was:" >&5
19368 sed 's/^/| /' conftest.$ac_ext >&5
19369
19370 fi
19371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19372 done
19373 rm -f conftest*
19374 if test -n "$ac_declaration"; then
19375   echo '#ifdef __cplusplus' >>confdefs.h
19376   echo $ac_declaration      >>confdefs.h
19377   echo '#endif'             >>confdefs.h
19378 fi
19379
19380 else
19381   echo "$as_me: failed program was:" >&5
19382 sed 's/^/| /' conftest.$ac_ext >&5
19383
19384 fi
19385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19386 ac_ext=c
19387 ac_cpp='$CPP $CPPFLAGS'
19388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19391
19392 depcc="$CC"   am_compiler_list=
19393
19394 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19395 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19396 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19397   echo $ECHO_N "(cached) $ECHO_C" >&6
19398 else
19399   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19400   # We make a subdir and do the tests there.  Otherwise we can end up
19401   # making bogus files that we don't know about and never remove.  For
19402   # instance it was reported that on HP-UX the gcc test will end up
19403   # making a dummy file named `D' -- because `-MD' means `put the output
19404   # in D'.
19405   mkdir conftest.dir
19406   # Copy depcomp to subdir because otherwise we won't find it if we're
19407   # using a relative directory.
19408   cp "$am_depcomp" conftest.dir
19409   cd conftest.dir
19410   # We will build objects and dependencies in a subdirectory because
19411   # it helps to detect inapplicable dependency modes.  For instance
19412   # both Tru64's cc and ICC support -MD to output dependencies as a
19413   # side effect of compilation, but ICC will put the dependencies in
19414   # the current directory while Tru64 will put them in the object
19415   # directory.
19416   mkdir sub
19417
19418   am_cv_CC_dependencies_compiler_type=none
19419   if test "$am_compiler_list" = ""; then
19420      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19421   fi
19422   for depmode in $am_compiler_list; do
19423     # Setup a source with many dependencies, because some compilers
19424     # like to wrap large dependency lists on column 80 (with \), and
19425     # we should not choose a depcomp mode which is confused by this.
19426     #
19427     # We need to recreate these files for each test, as the compiler may
19428     # overwrite some of them when testing with obscure command lines.
19429     # This happens at least with the AIX C compiler.
19430     : > sub/conftest.c
19431     for i in 1 2 3 4 5 6; do
19432       echo '#include "conftst'$i'.h"' >> sub/conftest.c
19433       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19434       # Solaris 8's {/usr,}/bin/sh.
19435       touch sub/conftst$i.h
19436     done
19437     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19438
19439     case $depmode in
19440     nosideeffect)
19441       # after this tag, mechanisms are not by side-effect, so they'll
19442       # only be used when explicitly requested
19443       if test "x$enable_dependency_tracking" = xyes; then
19444         continue
19445       else
19446         break
19447       fi
19448       ;;
19449     none) break ;;
19450     esac
19451     # We check with `-c' and `-o' for the sake of the "dashmstdout"
19452     # mode.  It turns out that the SunPro C++ compiler does not properly
19453     # handle `-M -o', and we need to detect this.
19454     if depmode=$depmode \
19455        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19456        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19457        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19458          >/dev/null 2>conftest.err &&
19459        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19460        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19461        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19462       # icc doesn't choke on unknown options, it will just issue warnings
19463       # or remarks (even with -Werror).  So we grep stderr for any message
19464       # that says an option was ignored or not supported.
19465       # When given -MP, icc 7.0 and 7.1 complain thusly:
19466       #   icc: Command line warning: ignoring option '-M'; no argument required
19467       # The diagnosis changed in icc 8.0:
19468       #   icc: Command line remark: option '-MP' not supported
19469       if (grep 'ignoring option' conftest.err ||
19470           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19471         am_cv_CC_dependencies_compiler_type=$depmode
19472         break
19473       fi
19474     fi
19475   done
19476
19477   cd ..
19478   rm -rf conftest.dir
19479 else
19480   am_cv_CC_dependencies_compiler_type=none
19481 fi
19482
19483 fi
19484 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19485 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19486 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19487
19488
19489
19490 if
19491   test "x$enable_dependency_tracking" != xno \
19492   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19493   am__fastdepCC_TRUE=
19494   am__fastdepCC_FALSE='#'
19495 else
19496   am__fastdepCC_TRUE='#'
19497   am__fastdepCC_FALSE=
19498 fi
19499
19500
19501 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
19502 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
19503 # Just in case
19504 sleep 1
19505 echo timestamp > conftest.file
19506 # Do `set' in a subshell so we don't clobber the current shell's
19507 # arguments.  Must try -L first in case configure is actually a
19508 # symlink; some systems play weird games with the mod time of symlinks
19509 # (eg FreeBSD returns the mod time of the symlink's containing
19510 # directory).
19511 if (
19512    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
19513    if test "$*" = "X"; then
19514       # -L didn't work.
19515       set X `ls -t $srcdir/configure conftest.file`
19516    fi
19517    rm -f conftest.file
19518    if test "$*" != "X $srcdir/configure conftest.file" \
19519       && test "$*" != "X conftest.file $srcdir/configure"; then
19520
19521       # If neither matched, then we have a broken ls.  This can happen
19522       # if, for instance, CONFIG_SHELL is bash and it inherits a
19523       # broken ls alias from the environment.  This has actually
19524       # happened.  Such a system could not be considered "sane".
19525       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
19526 alias in your environment" >&5
19527 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
19528 alias in your environment" >&2;}
19529    { (exit 1); exit 1; }; }
19530    fi
19531
19532    test "$2" = conftest.file
19533    )
19534 then
19535    # Ok.
19536    :
19537 else
19538    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
19539 Check your system clock" >&5
19540 echo "$as_me: error: newly created file is older than distributed files!
19541 Check your system clock" >&2;}
19542    { (exit 1); exit 1; }; }
19543 fi
19544 echo "$as_me:$LINENO: result: yes" >&5
19545 echo "${ECHO_T}yes" >&6
19546 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19547 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
19548 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
19549 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
19550   echo $ECHO_N "(cached) $ECHO_C" >&6
19551 else
19552   cat >conftest.make <<\_ACEOF
19553 all:
19554         @echo 'ac_maketemp="$(MAKE)"'
19555 _ACEOF
19556 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19557 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
19558 if test -n "$ac_maketemp"; then
19559   eval ac_cv_prog_make_${ac_make}_set=yes
19560 else
19561   eval ac_cv_prog_make_${ac_make}_set=no
19562 fi
19563 rm -f conftest.make
19564 fi
19565 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
19566   echo "$as_me:$LINENO: result: yes" >&5
19567 echo "${ECHO_T}yes" >&6
19568   SET_MAKE=
19569 else
19570   echo "$as_me:$LINENO: result: no" >&5
19571 echo "${ECHO_T}no" >&6
19572   SET_MAKE="MAKE=${MAKE-make}"
19573 fi
19574
19575
19576 echo "$as_me:$LINENO: checking whether printf(\"%s\",NULL) works..." >&5
19577 echo $ECHO_N "checking whether printf(\"%s\",NULL) works...... $ECHO_C" >&6
19578 if test "$cross_compiling" = yes; then
19579   echo "$as_me:$LINENO: result: assuming the worse in cross-compilation" >&5
19580 echo "${ECHO_T}assuming the worse in cross-compilation" >&6
19581 else
19582   cat >conftest.$ac_ext <<_ACEOF
19583 /* confdefs.h.  */
19584 _ACEOF
19585 cat confdefs.h >>conftest.$ac_ext
19586 cat >>conftest.$ac_ext <<_ACEOF
19587 /* end confdefs.h.  */
19588 #include <stdio.h>
19589 int
19590 main ()
19591 {
19592 printf("%s",NULL);
19593   ;
19594   return 0;
19595 }
19596 _ACEOF
19597 rm -f conftest$ac_exeext
19598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19599   (eval $ac_link) 2>&5
19600   ac_status=$?
19601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19604   (eval $ac_try) 2>&5
19605   ac_status=$?
19606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607   (exit $ac_status); }; }; then
19608
19609 cat >>confdefs.h <<\_ACEOF
19610 #define PRINTF_NULL_WORKING 1
19611 _ACEOF
19612
19613               echo "$as_me:$LINENO: result: yes" >&5
19614 echo "${ECHO_T}yes" >&6
19615 else
19616   echo "$as_me: program exited with status $ac_status" >&5
19617 echo "$as_me: failed program was:" >&5
19618 sed 's/^/| /' conftest.$ac_ext >&5
19619
19620 ( exit $ac_status )
19621 echo "$as_me:$LINENO: result: no" >&5
19622 echo "${ECHO_T}no" >&6
19623 fi
19624 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19625 fi
19626
19627
19628     echo "$as_me:$LINENO: checking for va_copy() function" >&5
19629 echo $ECHO_N "checking for va_copy() function... $ECHO_C" >&6
19630     if test "${ac_cv_va_copy+set}" = set; then
19631   echo $ECHO_N "(cached) $ECHO_C" >&6
19632 else
19633
19634     ac_cv_va_copy=""
19635
19636
19637
19638     if test ".$ac_cv_va_copy" = .; then
19639         if test "$cross_compiling" = yes; then
19640   ac_cv_va_copy="C99"
19641 else
19642   cat >conftest.$ac_ext <<_ACEOF
19643 /* confdefs.h.  */
19644 _ACEOF
19645 cat confdefs.h >>conftest.$ac_ext
19646 cat >>conftest.$ac_ext <<_ACEOF
19647 /* end confdefs.h.  */
19648
19649 #include <stdlib.h>
19650 #include <stdarg.h>
19651 #include <string.h>
19652 #define DO_VA_COPY(d, s) va_copy((d), (s))
19653 void test(char *str, ...)
19654 {
19655     va_list ap, ap2;
19656     int i;
19657     va_start(ap, str);
19658     DO_VA_COPY(ap2, ap);
19659     for (i = 1; i <= 9; i++) {
19660         int k = (int)va_arg(ap, int);
19661         if (k != i)
19662             abort();
19663     }
19664     DO_VA_COPY(ap, ap2);
19665     for (i = 1; i <= 9; i++) {
19666         int k = (int)va_arg(ap, int);
19667         if (k != i)
19668             abort();
19669     }
19670     va_end(ap);
19671 }
19672 int main(int argc, char *argv[])
19673 {
19674     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
19675     exit(0);
19676 }
19677
19678 _ACEOF
19679 rm -f conftest$ac_exeext
19680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19681   (eval $ac_link) 2>&5
19682   ac_status=$?
19683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
19690   ac_cv_va_copy="C99"
19691 else
19692   echo "$as_me: program exited with status $ac_status" >&5
19693 echo "$as_me: failed program was:" >&5
19694 sed 's/^/| /' conftest.$ac_ext >&5
19695
19696 fi
19697 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19698 fi
19699             fi
19700
19701
19702
19703
19704     if test ".$ac_cv_va_copy" = .; then
19705         if test "$cross_compiling" = yes; then
19706   ac_cv_va_copy="GCM"
19707 else
19708   cat >conftest.$ac_ext <<_ACEOF
19709 /* confdefs.h.  */
19710 _ACEOF
19711 cat confdefs.h >>conftest.$ac_ext
19712 cat >>conftest.$ac_ext <<_ACEOF
19713 /* end confdefs.h.  */
19714
19715 #include <stdlib.h>
19716 #include <stdarg.h>
19717 #include <string.h>
19718 #define DO_VA_COPY(d, s) VA_COPY((d), (s))
19719 void test(char *str, ...)
19720 {
19721     va_list ap, ap2;
19722     int i;
19723     va_start(ap, str);
19724     DO_VA_COPY(ap2, ap);
19725     for (i = 1; i <= 9; i++) {
19726         int k = (int)va_arg(ap, int);
19727         if (k != i)
19728             abort();
19729     }
19730     DO_VA_COPY(ap, ap2);
19731     for (i = 1; i <= 9; i++) {
19732         int k = (int)va_arg(ap, int);
19733         if (k != i)
19734             abort();
19735     }
19736     va_end(ap);
19737 }
19738 int main(int argc, char *argv[])
19739 {
19740     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
19741     exit(0);
19742 }
19743
19744 _ACEOF
19745 rm -f conftest$ac_exeext
19746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19747   (eval $ac_link) 2>&5
19748   ac_status=$?
19749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19750   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19752   (eval $ac_try) 2>&5
19753   ac_status=$?
19754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19755   (exit $ac_status); }; }; then
19756   ac_cv_va_copy="GCM"
19757 else
19758   echo "$as_me: program exited with status $ac_status" >&5
19759 echo "$as_me: failed program was:" >&5
19760 sed 's/^/| /' conftest.$ac_ext >&5
19761
19762 fi
19763 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19764 fi
19765             fi
19766
19767
19768
19769
19770     if test ".$ac_cv_va_copy" = .; then
19771         if test "$cross_compiling" = yes; then
19772   ac_cv_va_copy="GCH"
19773 else
19774   cat >conftest.$ac_ext <<_ACEOF
19775 /* confdefs.h.  */
19776 _ACEOF
19777 cat confdefs.h >>conftest.$ac_ext
19778 cat >>conftest.$ac_ext <<_ACEOF
19779 /* end confdefs.h.  */
19780
19781 #include <stdlib.h>
19782 #include <stdarg.h>
19783 #include <string.h>
19784 #define DO_VA_COPY(d, s) __va_copy((d), (s))
19785 void test(char *str, ...)
19786 {
19787     va_list ap, ap2;
19788     int i;
19789     va_start(ap, str);
19790     DO_VA_COPY(ap2, ap);
19791     for (i = 1; i <= 9; i++) {
19792         int k = (int)va_arg(ap, int);
19793         if (k != i)
19794             abort();
19795     }
19796     DO_VA_COPY(ap, ap2);
19797     for (i = 1; i <= 9; i++) {
19798         int k = (int)va_arg(ap, int);
19799         if (k != i)
19800             abort();
19801     }
19802     va_end(ap);
19803 }
19804 int main(int argc, char *argv[])
19805 {
19806     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
19807     exit(0);
19808 }
19809
19810 _ACEOF
19811 rm -f conftest$ac_exeext
19812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19813   (eval $ac_link) 2>&5
19814   ac_status=$?
19815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19818   (eval $ac_try) 2>&5
19819   ac_status=$?
19820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821   (exit $ac_status); }; }; then
19822   ac_cv_va_copy="GCH"
19823 else
19824   echo "$as_me: program exited with status $ac_status" >&5
19825 echo "$as_me: failed program was:" >&5
19826 sed 's/^/| /' conftest.$ac_ext >&5
19827
19828 fi
19829 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19830 fi
19831             fi
19832
19833
19834
19835
19836     if test ".$ac_cv_va_copy" = .; then
19837         if test "$cross_compiling" = yes; then
19838   ac_cv_va_copy="GCB"
19839 else
19840   cat >conftest.$ac_ext <<_ACEOF
19841 /* confdefs.h.  */
19842 _ACEOF
19843 cat confdefs.h >>conftest.$ac_ext
19844 cat >>conftest.$ac_ext <<_ACEOF
19845 /* end confdefs.h.  */
19846
19847 #include <stdlib.h>
19848 #include <stdarg.h>
19849 #include <string.h>
19850 #define DO_VA_COPY(d, s) __builtin_va_copy((d), (s))
19851 void test(char *str, ...)
19852 {
19853     va_list ap, ap2;
19854     int i;
19855     va_start(ap, str);
19856     DO_VA_COPY(ap2, ap);
19857     for (i = 1; i <= 9; i++) {
19858         int k = (int)va_arg(ap, int);
19859         if (k != i)
19860             abort();
19861     }
19862     DO_VA_COPY(ap, ap2);
19863     for (i = 1; i <= 9; i++) {
19864         int k = (int)va_arg(ap, int);
19865         if (k != i)
19866             abort();
19867     }
19868     va_end(ap);
19869 }
19870 int main(int argc, char *argv[])
19871 {
19872     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
19873     exit(0);
19874 }
19875
19876 _ACEOF
19877 rm -f conftest$ac_exeext
19878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19879   (eval $ac_link) 2>&5
19880   ac_status=$?
19881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19884   (eval $ac_try) 2>&5
19885   ac_status=$?
19886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887   (exit $ac_status); }; }; then
19888   ac_cv_va_copy="GCB"
19889 else
19890   echo "$as_me: program exited with status $ac_status" >&5
19891 echo "$as_me: failed program was:" >&5
19892 sed 's/^/| /' conftest.$ac_ext >&5
19893
19894 fi
19895 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19896 fi
19897             fi
19898
19899
19900
19901
19902     if test ".$ac_cv_va_copy" = .; then
19903         if test "$cross_compiling" = yes; then
19904   ac_cv_va_copy="ASS"
19905 else
19906   cat >conftest.$ac_ext <<_ACEOF
19907 /* confdefs.h.  */
19908 _ACEOF
19909 cat confdefs.h >>conftest.$ac_ext
19910 cat >>conftest.$ac_ext <<_ACEOF
19911 /* end confdefs.h.  */
19912
19913 #include <stdlib.h>
19914 #include <stdarg.h>
19915 #include <string.h>
19916 #define DO_VA_COPY(d, s) do { (d) = (s); } while (0)
19917 void test(char *str, ...)
19918 {
19919     va_list ap, ap2;
19920     int i;
19921     va_start(ap, str);
19922     DO_VA_COPY(ap2, ap);
19923     for (i = 1; i <= 9; i++) {
19924         int k = (int)va_arg(ap, int);
19925         if (k != i)
19926             abort();
19927     }
19928     DO_VA_COPY(ap, ap2);
19929     for (i = 1; i <= 9; i++) {
19930         int k = (int)va_arg(ap, int);
19931         if (k != i)
19932             abort();
19933     }
19934     va_end(ap);
19935 }
19936 int main(int argc, char *argv[])
19937 {
19938     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
19939     exit(0);
19940 }
19941
19942 _ACEOF
19943 rm -f conftest$ac_exeext
19944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19945   (eval $ac_link) 2>&5
19946   ac_status=$?
19947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19950   (eval $ac_try) 2>&5
19951   ac_status=$?
19952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953   (exit $ac_status); }; }; then
19954   ac_cv_va_copy="ASS"
19955 else
19956   echo "$as_me: program exited with status $ac_status" >&5
19957 echo "$as_me: failed program was:" >&5
19958 sed 's/^/| /' conftest.$ac_ext >&5
19959
19960 fi
19961 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19962 fi
19963             fi
19964
19965
19966
19967
19968     if test ".$ac_cv_va_copy" = .; then
19969         if test "$cross_compiling" = yes; then
19970   ac_cv_va_copy="ASP"
19971 else
19972   cat >conftest.$ac_ext <<_ACEOF
19973 /* confdefs.h.  */
19974 _ACEOF
19975 cat confdefs.h >>conftest.$ac_ext
19976 cat >>conftest.$ac_ext <<_ACEOF
19977 /* end confdefs.h.  */
19978
19979 #include <stdlib.h>
19980 #include <stdarg.h>
19981 #include <string.h>
19982 #define DO_VA_COPY(d, s) do { *(d) = *(s); } while (0)
19983 void test(char *str, ...)
19984 {
19985     va_list ap, ap2;
19986     int i;
19987     va_start(ap, str);
19988     DO_VA_COPY(ap2, ap);
19989     for (i = 1; i <= 9; i++) {
19990         int k = (int)va_arg(ap, int);
19991         if (k != i)
19992             abort();
19993     }
19994     DO_VA_COPY(ap, ap2);
19995     for (i = 1; i <= 9; i++) {
19996         int k = (int)va_arg(ap, int);
19997         if (k != i)
19998             abort();
19999     }
20000     va_end(ap);
20001 }
20002 int main(int argc, char *argv[])
20003 {
20004     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20005     exit(0);
20006 }
20007
20008 _ACEOF
20009 rm -f conftest$ac_exeext
20010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20011   (eval $ac_link) 2>&5
20012   ac_status=$?
20013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20014   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20016   (eval $ac_try) 2>&5
20017   ac_status=$?
20018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019   (exit $ac_status); }; }; then
20020   ac_cv_va_copy="ASP"
20021 else
20022   echo "$as_me: program exited with status $ac_status" >&5
20023 echo "$as_me: failed program was:" >&5
20024 sed 's/^/| /' conftest.$ac_ext >&5
20025
20026 fi
20027 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20028 fi
20029             fi
20030
20031
20032
20033
20034     if test ".$ac_cv_va_copy" = .; then
20035         if test "$cross_compiling" = yes; then
20036   ac_cv_va_copy="CPS"
20037 else
20038   cat >conftest.$ac_ext <<_ACEOF
20039 /* confdefs.h.  */
20040 _ACEOF
20041 cat confdefs.h >>conftest.$ac_ext
20042 cat >>conftest.$ac_ext <<_ACEOF
20043 /* end confdefs.h.  */
20044
20045 #include <stdlib.h>
20046 #include <stdarg.h>
20047 #include <string.h>
20048 #define DO_VA_COPY(d, s) memcpy((void *)&(d), (void *)&(s))
20049 void test(char *str, ...)
20050 {
20051     va_list ap, ap2;
20052     int i;
20053     va_start(ap, str);
20054     DO_VA_COPY(ap2, ap);
20055     for (i = 1; i <= 9; i++) {
20056         int k = (int)va_arg(ap, int);
20057         if (k != i)
20058             abort();
20059     }
20060     DO_VA_COPY(ap, ap2);
20061     for (i = 1; i <= 9; i++) {
20062         int k = (int)va_arg(ap, int);
20063         if (k != i)
20064             abort();
20065     }
20066     va_end(ap);
20067 }
20068 int main(int argc, char *argv[])
20069 {
20070     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20071     exit(0);
20072 }
20073
20074 _ACEOF
20075 rm -f conftest$ac_exeext
20076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20077   (eval $ac_link) 2>&5
20078   ac_status=$?
20079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20082   (eval $ac_try) 2>&5
20083   ac_status=$?
20084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20085   (exit $ac_status); }; }; then
20086   ac_cv_va_copy="CPS"
20087 else
20088   echo "$as_me: program exited with status $ac_status" >&5
20089 echo "$as_me: failed program was:" >&5
20090 sed 's/^/| /' conftest.$ac_ext >&5
20091
20092 fi
20093 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20094 fi
20095             fi
20096
20097
20098
20099
20100     if test ".$ac_cv_va_copy" = .; then
20101         if test "$cross_compiling" = yes; then
20102   ac_cv_va_copy="CPP"
20103 else
20104   cat >conftest.$ac_ext <<_ACEOF
20105 /* confdefs.h.  */
20106 _ACEOF
20107 cat confdefs.h >>conftest.$ac_ext
20108 cat >>conftest.$ac_ext <<_ACEOF
20109 /* end confdefs.h.  */
20110
20111 #include <stdlib.h>
20112 #include <stdarg.h>
20113 #include <string.h>
20114 #define DO_VA_COPY(d, s) memcpy((void *)(d), (void *)(s))
20115 void test(char *str, ...)
20116 {
20117     va_list ap, ap2;
20118     int i;
20119     va_start(ap, str);
20120     DO_VA_COPY(ap2, ap);
20121     for (i = 1; i <= 9; i++) {
20122         int k = (int)va_arg(ap, int);
20123         if (k != i)
20124             abort();
20125     }
20126     DO_VA_COPY(ap, ap2);
20127     for (i = 1; i <= 9; i++) {
20128         int k = (int)va_arg(ap, int);
20129         if (k != i)
20130             abort();
20131     }
20132     va_end(ap);
20133 }
20134 int main(int argc, char *argv[])
20135 {
20136     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20137     exit(0);
20138 }
20139
20140 _ACEOF
20141 rm -f conftest$ac_exeext
20142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20143   (eval $ac_link) 2>&5
20144   ac_status=$?
20145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20148   (eval $ac_try) 2>&5
20149   ac_status=$?
20150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151   (exit $ac_status); }; }; then
20152   ac_cv_va_copy="CPP"
20153 else
20154   echo "$as_me: program exited with status $ac_status" >&5
20155 echo "$as_me: failed program was:" >&5
20156 sed 's/^/| /' conftest.$ac_ext >&5
20157
20158 fi
20159 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20160 fi
20161             fi
20162
20163     if test ".$ac_cv_va_copy" = .; then
20164         { { echo "$as_me:$LINENO: error: no working implementation found" >&5
20165 echo "$as_me: error: no working implementation found" >&2;}
20166    { (exit 1); exit 1; }; }
20167     fi
20168
20169 fi
20170
20171     if test ".$ac_cv_va_copy" = ".C99"; then
20172
20173 cat >>confdefs.h <<\_ACEOF
20174 #define HAVE_VA_COPY 1
20175 _ACEOF
20176
20177   fi
20178
20179 cat >>confdefs.h <<_ACEOF
20180 #define __VA_COPY_USE __VA_COPY_USE_$ac_cv_va_copy
20181 _ACEOF
20182
20183
20184
20185     if test ".$ac_cv_va_copy" = ".C99"; then
20186       echo "$as_me:$LINENO: result: yes" >&5
20187 echo "${ECHO_T}yes" >&6
20188   else
20189       echo "$as_me:$LINENO: result: no (using fallback implementation)" >&5
20190 echo "${ECHO_T}no (using fallback implementation)" >&6
20191   fi
20192
20193
20194 # Checks for header files.
20195 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20196 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20197 if test "${ac_cv_header_stdc+set}" = set; then
20198   echo $ECHO_N "(cached) $ECHO_C" >&6
20199 else
20200   cat >conftest.$ac_ext <<_ACEOF
20201 /* confdefs.h.  */
20202 _ACEOF
20203 cat confdefs.h >>conftest.$ac_ext
20204 cat >>conftest.$ac_ext <<_ACEOF
20205 /* end confdefs.h.  */
20206 #include <stdlib.h>
20207 #include <stdarg.h>
20208 #include <string.h>
20209 #include <float.h>
20210
20211 int
20212 main ()
20213 {
20214
20215   ;
20216   return 0;
20217 }
20218 _ACEOF
20219 rm -f conftest.$ac_objext
20220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20221   (eval $ac_compile) 2>conftest.er1
20222   ac_status=$?
20223   grep -v '^ *+' conftest.er1 >conftest.err
20224   rm -f conftest.er1
20225   cat conftest.err >&5
20226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227   (exit $ac_status); } &&
20228          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20230   (eval $ac_try) 2>&5
20231   ac_status=$?
20232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233   (exit $ac_status); }; } &&
20234          { ac_try='test -s conftest.$ac_objext'
20235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20236   (eval $ac_try) 2>&5
20237   ac_status=$?
20238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239   (exit $ac_status); }; }; then
20240   ac_cv_header_stdc=yes
20241 else
20242   echo "$as_me: failed program was:" >&5
20243 sed 's/^/| /' conftest.$ac_ext >&5
20244
20245 ac_cv_header_stdc=no
20246 fi
20247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20248
20249 if test $ac_cv_header_stdc = yes; then
20250   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20251   cat >conftest.$ac_ext <<_ACEOF
20252 /* confdefs.h.  */
20253 _ACEOF
20254 cat confdefs.h >>conftest.$ac_ext
20255 cat >>conftest.$ac_ext <<_ACEOF
20256 /* end confdefs.h.  */
20257 #include <string.h>
20258
20259 _ACEOF
20260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20261   $EGREP "memchr" >/dev/null 2>&1; then
20262   :
20263 else
20264   ac_cv_header_stdc=no
20265 fi
20266 rm -f conftest*
20267
20268 fi
20269
20270 if test $ac_cv_header_stdc = yes; then
20271   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20272   cat >conftest.$ac_ext <<_ACEOF
20273 /* confdefs.h.  */
20274 _ACEOF
20275 cat confdefs.h >>conftest.$ac_ext
20276 cat >>conftest.$ac_ext <<_ACEOF
20277 /* end confdefs.h.  */
20278 #include <stdlib.h>
20279
20280 _ACEOF
20281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20282   $EGREP "free" >/dev/null 2>&1; then
20283   :
20284 else
20285   ac_cv_header_stdc=no
20286 fi
20287 rm -f conftest*
20288
20289 fi
20290
20291 if test $ac_cv_header_stdc = yes; then
20292   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20293   if test "$cross_compiling" = yes; then
20294   :
20295 else
20296   cat >conftest.$ac_ext <<_ACEOF
20297 /* confdefs.h.  */
20298 _ACEOF
20299 cat confdefs.h >>conftest.$ac_ext
20300 cat >>conftest.$ac_ext <<_ACEOF
20301 /* end confdefs.h.  */
20302 #include <ctype.h>
20303 #if ((' ' & 0x0FF) == 0x020)
20304 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20305 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20306 #else
20307 # define ISLOWER(c) \
20308                    (('a' <= (c) && (c) <= 'i') \
20309                      || ('j' <= (c) && (c) <= 'r') \
20310                      || ('s' <= (c) && (c) <= 'z'))
20311 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20312 #endif
20313
20314 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20315 int
20316 main ()
20317 {
20318   int i;
20319   for (i = 0; i < 256; i++)
20320     if (XOR (islower (i), ISLOWER (i))
20321         || toupper (i) != TOUPPER (i))
20322       exit(2);
20323   exit (0);
20324 }
20325 _ACEOF
20326 rm -f conftest$ac_exeext
20327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20328   (eval $ac_link) 2>&5
20329   ac_status=$?
20330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20331   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20333   (eval $ac_try) 2>&5
20334   ac_status=$?
20335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336   (exit $ac_status); }; }; then
20337   :
20338 else
20339   echo "$as_me: program exited with status $ac_status" >&5
20340 echo "$as_me: failed program was:" >&5
20341 sed 's/^/| /' conftest.$ac_ext >&5
20342
20343 ( exit $ac_status )
20344 ac_cv_header_stdc=no
20345 fi
20346 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20347 fi
20348 fi
20349 fi
20350 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20351 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20352 if test $ac_cv_header_stdc = yes; then
20353
20354 cat >>confdefs.h <<\_ACEOF
20355 #define STDC_HEADERS 1
20356 _ACEOF
20357
20358 fi
20359
20360 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20361 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20362 if test "${ac_cv_header_time+set}" = set; then
20363   echo $ECHO_N "(cached) $ECHO_C" >&6
20364 else
20365   cat >conftest.$ac_ext <<_ACEOF
20366 /* confdefs.h.  */
20367 _ACEOF
20368 cat confdefs.h >>conftest.$ac_ext
20369 cat >>conftest.$ac_ext <<_ACEOF
20370 /* end confdefs.h.  */
20371 #include <sys/types.h>
20372 #include <sys/time.h>
20373 #include <time.h>
20374
20375 int
20376 main ()
20377 {
20378 if ((struct tm *) 0)
20379 return 0;
20380   ;
20381   return 0;
20382 }
20383 _ACEOF
20384 rm -f conftest.$ac_objext
20385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20386   (eval $ac_compile) 2>conftest.er1
20387   ac_status=$?
20388   grep -v '^ *+' conftest.er1 >conftest.err
20389   rm -f conftest.er1
20390   cat conftest.err >&5
20391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392   (exit $ac_status); } &&
20393          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20395   (eval $ac_try) 2>&5
20396   ac_status=$?
20397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20398   (exit $ac_status); }; } &&
20399          { ac_try='test -s conftest.$ac_objext'
20400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20401   (eval $ac_try) 2>&5
20402   ac_status=$?
20403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404   (exit $ac_status); }; }; then
20405   ac_cv_header_time=yes
20406 else
20407   echo "$as_me: failed program was:" >&5
20408 sed 's/^/| /' conftest.$ac_ext >&5
20409
20410 ac_cv_header_time=no
20411 fi
20412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20413 fi
20414 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20415 echo "${ECHO_T}$ac_cv_header_time" >&6
20416 if test $ac_cv_header_time = yes; then
20417
20418 cat >>confdefs.h <<\_ACEOF
20419 #define TIME_WITH_SYS_TIME 1
20420 _ACEOF
20421
20422 fi
20423
20424
20425
20426
20427
20428
20429
20430
20431
20432
20433
20434 for ac_header in sys/socket.h \
20435                   sys/stat.h \
20436                   windows.h winsock.h winsock2.h \
20437                   sys/time.h \
20438                   errno.h unistd.h \
20439                   execinfo.h\
20440                   signal.h
20441 do
20442 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20444   echo "$as_me:$LINENO: checking for $ac_header" >&5
20445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20447   echo $ECHO_N "(cached) $ECHO_C" >&6
20448 fi
20449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20450 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20451 else
20452   # Is the header compilable?
20453 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20454 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20455 cat >conftest.$ac_ext <<_ACEOF
20456 /* confdefs.h.  */
20457 _ACEOF
20458 cat confdefs.h >>conftest.$ac_ext
20459 cat >>conftest.$ac_ext <<_ACEOF
20460 /* end confdefs.h.  */
20461 $ac_includes_default
20462 #include <$ac_header>
20463 _ACEOF
20464 rm -f conftest.$ac_objext
20465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20466   (eval $ac_compile) 2>conftest.er1
20467   ac_status=$?
20468   grep -v '^ *+' conftest.er1 >conftest.err
20469   rm -f conftest.er1
20470   cat conftest.err >&5
20471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472   (exit $ac_status); } &&
20473          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20475   (eval $ac_try) 2>&5
20476   ac_status=$?
20477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478   (exit $ac_status); }; } &&
20479          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
20485   ac_header_compiler=yes
20486 else
20487   echo "$as_me: failed program was:" >&5
20488 sed 's/^/| /' conftest.$ac_ext >&5
20489
20490 ac_header_compiler=no
20491 fi
20492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20493 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20494 echo "${ECHO_T}$ac_header_compiler" >&6
20495
20496 # Is the header present?
20497 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20499 cat >conftest.$ac_ext <<_ACEOF
20500 /* confdefs.h.  */
20501 _ACEOF
20502 cat confdefs.h >>conftest.$ac_ext
20503 cat >>conftest.$ac_ext <<_ACEOF
20504 /* end confdefs.h.  */
20505 #include <$ac_header>
20506 _ACEOF
20507 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20508   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20509   ac_status=$?
20510   grep -v '^ *+' conftest.er1 >conftest.err
20511   rm -f conftest.er1
20512   cat conftest.err >&5
20513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20514   (exit $ac_status); } >/dev/null; then
20515   if test -s conftest.err; then
20516     ac_cpp_err=$ac_c_preproc_warn_flag
20517     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20518   else
20519     ac_cpp_err=
20520   fi
20521 else
20522   ac_cpp_err=yes
20523 fi
20524 if test -z "$ac_cpp_err"; then
20525   ac_header_preproc=yes
20526 else
20527   echo "$as_me: failed program was:" >&5
20528 sed 's/^/| /' conftest.$ac_ext >&5
20529
20530   ac_header_preproc=no
20531 fi
20532 rm -f conftest.err conftest.$ac_ext
20533 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20534 echo "${ECHO_T}$ac_header_preproc" >&6
20535
20536 # So?  What about this header?
20537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20538   yes:no: )
20539     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20541     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20542 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20543     ac_header_preproc=yes
20544     ;;
20545   no:yes:* )
20546     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20547 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20548     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20549 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20550     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20551 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20552     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20553 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20554     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20556     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20557 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20558     (
20559       cat <<\_ASBOX
20560 ## -------------------------------------------------- ##
20561 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
20562 ## -------------------------------------------------- ##
20563 _ASBOX
20564     ) |
20565       sed "s/^/$as_me: WARNING:     /" >&2
20566     ;;
20567 esac
20568 echo "$as_me:$LINENO: checking for $ac_header" >&5
20569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20571   echo $ECHO_N "(cached) $ECHO_C" >&6
20572 else
20573   eval "$as_ac_Header=\$ac_header_preproc"
20574 fi
20575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20577
20578 fi
20579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20580   cat >>confdefs.h <<_ACEOF
20581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20582 _ACEOF
20583
20584 fi
20585
20586 done
20587
20588
20589
20590
20591
20592
20593
20594
20595
20596 for ac_func in gettimeofday usleep \
20597                 getdtablesize \
20598                 sysconf\
20599                 readv\
20600                 popen\
20601                 signal\
20602                 getline
20603 do
20604 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20605 echo "$as_me:$LINENO: checking for $ac_func" >&5
20606 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20607 if eval "test \"\${$as_ac_var+set}\" = set"; then
20608   echo $ECHO_N "(cached) $ECHO_C" >&6
20609 else
20610   cat >conftest.$ac_ext <<_ACEOF
20611 /* confdefs.h.  */
20612 _ACEOF
20613 cat confdefs.h >>conftest.$ac_ext
20614 cat >>conftest.$ac_ext <<_ACEOF
20615 /* end confdefs.h.  */
20616 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20617    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20618 #define $ac_func innocuous_$ac_func
20619
20620 /* System header to define __stub macros and hopefully few prototypes,
20621     which can conflict with char $ac_func (); below.
20622     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20623     <limits.h> exists even on freestanding compilers.  */
20624
20625 #ifdef __STDC__
20626 # include <limits.h>
20627 #else
20628 # include <assert.h>
20629 #endif
20630
20631 #undef $ac_func
20632
20633 /* Override any gcc2 internal prototype to avoid an error.  */
20634 #ifdef __cplusplus
20635 extern "C"
20636 {
20637 #endif
20638 /* We use char because int might match the return type of a gcc2
20639    builtin and then its argument prototype would still apply.  */
20640 char $ac_func ();
20641 /* The GNU C library defines this for functions which it implements
20642     to always fail with ENOSYS.  Some functions are actually named
20643     something starting with __ and the normal name is an alias.  */
20644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20645 choke me
20646 #else
20647 char (*f) () = $ac_func;
20648 #endif
20649 #ifdef __cplusplus
20650 }
20651 #endif
20652
20653 int
20654 main ()
20655 {
20656 return f != $ac_func;
20657   ;
20658   return 0;
20659 }
20660 _ACEOF
20661 rm -f conftest.$ac_objext conftest$ac_exeext
20662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20663   (eval $ac_link) 2>conftest.er1
20664   ac_status=$?
20665   grep -v '^ *+' conftest.er1 >conftest.err
20666   rm -f conftest.er1
20667   cat conftest.err >&5
20668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669   (exit $ac_status); } &&
20670          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20672   (eval $ac_try) 2>&5
20673   ac_status=$?
20674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20675   (exit $ac_status); }; } &&
20676          { ac_try='test -s conftest$ac_exeext'
20677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20678   (eval $ac_try) 2>&5
20679   ac_status=$?
20680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20681   (exit $ac_status); }; }; then
20682   eval "$as_ac_var=yes"
20683 else
20684   echo "$as_me: failed program was:" >&5
20685 sed 's/^/| /' conftest.$ac_ext >&5
20686
20687 eval "$as_ac_var=no"
20688 fi
20689 rm -f conftest.err conftest.$ac_objext \
20690       conftest$ac_exeext conftest.$ac_ext
20691 fi
20692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20693 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20694 if test `eval echo '${'$as_ac_var'}'` = yes; then
20695   cat >>confdefs.h <<_ACEOF
20696 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20697 _ACEOF
20698
20699 fi
20700 done
20701
20702
20703 # check for a working snprintf (or use xbt/snprintf.c, which comes from http://www.ijs.si/software/snprintf/)
20704
20705
20706 for ac_func in snprintf vsnprintf
20707 do
20708 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20709 echo "$as_me:$LINENO: checking for $ac_func" >&5
20710 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20711 if eval "test \"\${$as_ac_var+set}\" = set"; then
20712   echo $ECHO_N "(cached) $ECHO_C" >&6
20713 else
20714   cat >conftest.$ac_ext <<_ACEOF
20715 /* confdefs.h.  */
20716 _ACEOF
20717 cat confdefs.h >>conftest.$ac_ext
20718 cat >>conftest.$ac_ext <<_ACEOF
20719 /* end confdefs.h.  */
20720 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20721    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20722 #define $ac_func innocuous_$ac_func
20723
20724 /* System header to define __stub macros and hopefully few prototypes,
20725     which can conflict with char $ac_func (); below.
20726     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20727     <limits.h> exists even on freestanding compilers.  */
20728
20729 #ifdef __STDC__
20730 # include <limits.h>
20731 #else
20732 # include <assert.h>
20733 #endif
20734
20735 #undef $ac_func
20736
20737 /* Override any gcc2 internal prototype to avoid an error.  */
20738 #ifdef __cplusplus
20739 extern "C"
20740 {
20741 #endif
20742 /* We use char because int might match the return type of a gcc2
20743    builtin and then its argument prototype would still apply.  */
20744 char $ac_func ();
20745 /* The GNU C library defines this for functions which it implements
20746     to always fail with ENOSYS.  Some functions are actually named
20747     something starting with __ and the normal name is an alias.  */
20748 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20749 choke me
20750 #else
20751 char (*f) () = $ac_func;
20752 #endif
20753 #ifdef __cplusplus
20754 }
20755 #endif
20756
20757 int
20758 main ()
20759 {
20760 return f != $ac_func;
20761   ;
20762   return 0;
20763 }
20764 _ACEOF
20765 rm -f conftest.$ac_objext conftest$ac_exeext
20766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20767   (eval $ac_link) 2>conftest.er1
20768   ac_status=$?
20769   grep -v '^ *+' conftest.er1 >conftest.err
20770   rm -f conftest.er1
20771   cat conftest.err >&5
20772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773   (exit $ac_status); } &&
20774          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20776   (eval $ac_try) 2>&5
20777   ac_status=$?
20778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20779   (exit $ac_status); }; } &&
20780          { ac_try='test -s conftest$ac_exeext'
20781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20782   (eval $ac_try) 2>&5
20783   ac_status=$?
20784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20785   (exit $ac_status); }; }; then
20786   eval "$as_ac_var=yes"
20787 else
20788   echo "$as_me: failed program was:" >&5
20789 sed 's/^/| /' conftest.$ac_ext >&5
20790
20791 eval "$as_ac_var=no"
20792 fi
20793 rm -f conftest.err conftest.$ac_objext \
20794       conftest$ac_exeext conftest.$ac_ext
20795 fi
20796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20797 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20798 if test `eval echo '${'$as_ac_var'}'` = yes; then
20799   cat >>confdefs.h <<_ACEOF
20800 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20801 _ACEOF
20802
20803 fi
20804 done
20805
20806 echo "$as_me:$LINENO: checking for working snprintf" >&5
20807 echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6
20808 if test "${ac_cv_have_working_snprintf+set}" = set; then
20809   echo $ECHO_N "(cached) $ECHO_C" >&6
20810 else
20811   if test "$cross_compiling" = yes; then
20812   ac_cv_have_working_snprintf=cross
20813 else
20814   cat >conftest.$ac_ext <<_ACEOF
20815 /* confdefs.h.  */
20816 _ACEOF
20817 cat confdefs.h >>conftest.$ac_ext
20818 cat >>conftest.$ac_ext <<_ACEOF
20819 /* end confdefs.h.  */
20820 #include <stdio.h>
20821
20822 int main(void)
20823 {
20824     char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
20825     char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
20826     int i;
20827     i = snprintf (bufs, 2, "%s", "111");
20828     if (strcmp (bufs, "1")) exit (1);
20829     if (i != 3) exit (1);
20830     i = snprintf (bufd, 2, "%d", 111);
20831     if (strcmp (bufd, "1")) exit (1);
20832     if (i != 3) exit (1);
20833     exit(0);
20834 }
20835 _ACEOF
20836 rm -f conftest$ac_exeext
20837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20838   (eval $ac_link) 2>&5
20839   ac_status=$?
20840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20841   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20843   (eval $ac_try) 2>&5
20844   ac_status=$?
20845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20846   (exit $ac_status); }; }; then
20847   ac_cv_have_working_snprintf=yes
20848 else
20849   echo "$as_me: program exited with status $ac_status" >&5
20850 echo "$as_me: failed program was:" >&5
20851 sed 's/^/| /' conftest.$ac_ext >&5
20852
20853 ( exit $ac_status )
20854 ac_cv_have_working_snprintf=no
20855 fi
20856 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20857 fi
20858 fi
20859
20860 echo "$as_me:$LINENO: result: $ac_cv_have_working_snprintf" >&5
20861 echo "${ECHO_T}$ac_cv_have_working_snprintf" >&6
20862 echo "$as_me:$LINENO: checking for working vsnprintf" >&5
20863 echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6
20864 if test "${ac_cv_have_working_vsnprintf+set}" = set; then
20865   echo $ECHO_N "(cached) $ECHO_C" >&6
20866 else
20867   if test "$cross_compiling" = yes; then
20868   ac_cv_have_working_vsnprintf=cross
20869 else
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 <stdio.h>
20877 #include <stdarg.h>
20878
20879 int my_vsnprintf (char *buf, const char *tmpl, ...)
20880 {
20881     int i;
20882     va_list args;
20883     va_start (args, tmpl);
20884     i = vsnprintf (buf, 2, tmpl, args);
20885     va_end (args);
20886     return i;
20887 }
20888
20889 int main(void)
20890 {
20891     char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
20892     char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
20893     int i;
20894     i = my_vsnprintf (bufs, "%s", "111");
20895     if (strcmp (bufs, "1")) exit (1);
20896     if (i != 3) exit (1);
20897     i = my_vsnprintf (bufd, "%d", 111);
20898     if (strcmp (bufd, "1")) exit (1);
20899     if (i != 3) exit (1);
20900     exit(0);
20901 }
20902 _ACEOF
20903 rm -f conftest$ac_exeext
20904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20905   (eval $ac_link) 2>&5
20906   ac_status=$?
20907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20910   (eval $ac_try) 2>&5
20911   ac_status=$?
20912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913   (exit $ac_status); }; }; then
20914   ac_cv_have_working_vsnprintf=yes
20915 else
20916   echo "$as_me: program exited with status $ac_status" >&5
20917 echo "$as_me: failed program was:" >&5
20918 sed 's/^/| /' conftest.$ac_ext >&5
20919
20920 ( exit $ac_status )
20921 ac_cv_have_working_vsnprintf=no
20922 fi
20923 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20924 fi
20925 fi
20926
20927 echo "$as_me:$LINENO: result: $ac_cv_have_working_vsnprintf" >&5
20928 echo "${ECHO_T}$ac_cv_have_working_vsnprintf" >&6
20929 if test x$ac_cv_have_working_snprintf$ac_cv_have_working_vsnprintf != "xyesyes"; then
20930   case $LIBOBJS in
20931     "snprintf.$ac_objext"   | \
20932   *" snprintf.$ac_objext"   | \
20933     "snprintf.$ac_objext "* | \
20934   *" snprintf.$ac_objext "* ) ;;
20935   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
20936 esac
20937
20938   { echo "$as_me:$LINENO: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&5
20939 echo "$as_me: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&2;}
20940
20941 cat >>confdefs.h <<\_ACEOF
20942 #define PREFER_PORTABLE_SNPRINTF 1
20943 _ACEOF
20944
20945 fi
20946 # check for asprintf function familly (or request the replacements from xbt/snprintf.c)
20947 echo "$as_me:$LINENO: checking for asprintf" >&5
20948 echo $ECHO_N "checking for asprintf... $ECHO_C" >&6
20949 if test "${ac_cv_func_asprintf+set}" = set; then
20950   echo $ECHO_N "(cached) $ECHO_C" >&6
20951 else
20952   cat >conftest.$ac_ext <<_ACEOF
20953 /* confdefs.h.  */
20954 _ACEOF
20955 cat confdefs.h >>conftest.$ac_ext
20956 cat >>conftest.$ac_ext <<_ACEOF
20957 /* end confdefs.h.  */
20958 /* Define asprintf to an innocuous variant, in case <limits.h> declares asprintf.
20959    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20960 #define asprintf innocuous_asprintf
20961
20962 /* System header to define __stub macros and hopefully few prototypes,
20963     which can conflict with char asprintf (); below.
20964     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20965     <limits.h> exists even on freestanding compilers.  */
20966
20967 #ifdef __STDC__
20968 # include <limits.h>
20969 #else
20970 # include <assert.h>
20971 #endif
20972
20973 #undef asprintf
20974
20975 /* Override any gcc2 internal prototype to avoid an error.  */
20976 #ifdef __cplusplus
20977 extern "C"
20978 {
20979 #endif
20980 /* We use char because int might match the return type of a gcc2
20981    builtin and then its argument prototype would still apply.  */
20982 char asprintf ();
20983 /* The GNU C library defines this for functions which it implements
20984     to always fail with ENOSYS.  Some functions are actually named
20985     something starting with __ and the normal name is an alias.  */
20986 #if defined (__stub_asprintf) || defined (__stub___asprintf)
20987 choke me
20988 #else
20989 char (*f) () = asprintf;
20990 #endif
20991 #ifdef __cplusplus
20992 }
20993 #endif
20994
20995 int
20996 main ()
20997 {
20998 return f != asprintf;
20999   ;
21000   return 0;
21001 }
21002 _ACEOF
21003 rm -f conftest.$ac_objext conftest$ac_exeext
21004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21005   (eval $ac_link) 2>conftest.er1
21006   ac_status=$?
21007   grep -v '^ *+' conftest.er1 >conftest.err
21008   rm -f conftest.er1
21009   cat conftest.err >&5
21010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21011   (exit $ac_status); } &&
21012          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21014   (eval $ac_try) 2>&5
21015   ac_status=$?
21016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017   (exit $ac_status); }; } &&
21018          { ac_try='test -s conftest$ac_exeext'
21019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21020   (eval $ac_try) 2>&5
21021   ac_status=$?
21022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023   (exit $ac_status); }; }; then
21024   ac_cv_func_asprintf=yes
21025 else
21026   echo "$as_me: failed program was:" >&5
21027 sed 's/^/| /' conftest.$ac_ext >&5
21028
21029 ac_cv_func_asprintf=no
21030 fi
21031 rm -f conftest.err conftest.$ac_objext \
21032       conftest$ac_exeext conftest.$ac_ext
21033 fi
21034 echo "$as_me:$LINENO: result: $ac_cv_func_asprintf" >&5
21035 echo "${ECHO_T}$ac_cv_func_asprintf" >&6
21036 if test $ac_cv_func_asprintf = yes; then
21037   :
21038 else
21039
21040 cat >>confdefs.h <<\_ACEOF
21041 #define NEED_ASPRINTF 1
21042 _ACEOF
21043
21044 fi
21045
21046 echo "$as_me:$LINENO: checking for vasprintf" >&5
21047 echo $ECHO_N "checking for vasprintf... $ECHO_C" >&6
21048 if test "${ac_cv_func_vasprintf+set}" = set; then
21049   echo $ECHO_N "(cached) $ECHO_C" >&6
21050 else
21051   cat >conftest.$ac_ext <<_ACEOF
21052 /* confdefs.h.  */
21053 _ACEOF
21054 cat confdefs.h >>conftest.$ac_ext
21055 cat >>conftest.$ac_ext <<_ACEOF
21056 /* end confdefs.h.  */
21057 /* Define vasprintf to an innocuous variant, in case <limits.h> declares vasprintf.
21058    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21059 #define vasprintf innocuous_vasprintf
21060
21061 /* System header to define __stub macros and hopefully few prototypes,
21062     which can conflict with char vasprintf (); below.
21063     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21064     <limits.h> exists even on freestanding compilers.  */
21065
21066 #ifdef __STDC__
21067 # include <limits.h>
21068 #else
21069 # include <assert.h>
21070 #endif
21071
21072 #undef vasprintf
21073
21074 /* Override any gcc2 internal prototype to avoid an error.  */
21075 #ifdef __cplusplus
21076 extern "C"
21077 {
21078 #endif
21079 /* We use char because int might match the return type of a gcc2
21080    builtin and then its argument prototype would still apply.  */
21081 char vasprintf ();
21082 /* The GNU C library defines this for functions which it implements
21083     to always fail with ENOSYS.  Some functions are actually named
21084     something starting with __ and the normal name is an alias.  */
21085 #if defined (__stub_vasprintf) || defined (__stub___vasprintf)
21086 choke me
21087 #else
21088 char (*f) () = vasprintf;
21089 #endif
21090 #ifdef __cplusplus
21091 }
21092 #endif
21093
21094 int
21095 main ()
21096 {
21097 return f != vasprintf;
21098   ;
21099   return 0;
21100 }
21101 _ACEOF
21102 rm -f conftest.$ac_objext conftest$ac_exeext
21103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21104   (eval $ac_link) 2>conftest.er1
21105   ac_status=$?
21106   grep -v '^ *+' conftest.er1 >conftest.err
21107   rm -f conftest.er1
21108   cat conftest.err >&5
21109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21110   (exit $ac_status); } &&
21111          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21113   (eval $ac_try) 2>&5
21114   ac_status=$?
21115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21116   (exit $ac_status); }; } &&
21117          { ac_try='test -s conftest$ac_exeext'
21118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21119   (eval $ac_try) 2>&5
21120   ac_status=$?
21121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122   (exit $ac_status); }; }; then
21123   ac_cv_func_vasprintf=yes
21124 else
21125   echo "$as_me: failed program was:" >&5
21126 sed 's/^/| /' conftest.$ac_ext >&5
21127
21128 ac_cv_func_vasprintf=no
21129 fi
21130 rm -f conftest.err conftest.$ac_objext \
21131       conftest$ac_exeext conftest.$ac_ext
21132 fi
21133 echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf" >&5
21134 echo "${ECHO_T}$ac_cv_func_vasprintf" >&6
21135 if test $ac_cv_func_vasprintf = yes; then
21136   :
21137 else
21138
21139 cat >>confdefs.h <<\_ACEOF
21140 #define NEED_VASPRINTF 1
21141 _ACEOF
21142
21143 fi
21144
21145
21146 # Checks for typedefs, structures, and compiler characteristics.
21147 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21148 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
21149 if test "${ac_cv_c_const+set}" = set; then
21150   echo $ECHO_N "(cached) $ECHO_C" >&6
21151 else
21152   cat >conftest.$ac_ext <<_ACEOF
21153 /* confdefs.h.  */
21154 _ACEOF
21155 cat confdefs.h >>conftest.$ac_ext
21156 cat >>conftest.$ac_ext <<_ACEOF
21157 /* end confdefs.h.  */
21158
21159 int
21160 main ()
21161 {
21162 /* FIXME: Include the comments suggested by Paul. */
21163 #ifndef __cplusplus
21164   /* Ultrix mips cc rejects this.  */
21165   typedef int charset[2];
21166   const charset x;
21167   /* SunOS 4.1.1 cc rejects this.  */
21168   char const *const *ccp;
21169   char **p;
21170   /* NEC SVR4.0.2 mips cc rejects this.  */
21171   struct point {int x, y;};
21172   static struct point const zero = {0,0};
21173   /* AIX XL C 1.02.0.0 rejects this.
21174      It does not let you subtract one const X* pointer from another in
21175      an arm of an if-expression whose if-part is not a constant
21176      expression */
21177   const char *g = "string";
21178   ccp = &g + (g ? g-g : 0);
21179   /* HPUX 7.0 cc rejects these. */
21180   ++ccp;
21181   p = (char**) ccp;
21182   ccp = (char const *const *) p;
21183   { /* SCO 3.2v4 cc rejects this.  */
21184     char *t;
21185     char const *s = 0 ? (char *) 0 : (char const *) 0;
21186
21187     *t++ = 0;
21188   }
21189   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21190     int x[] = {25, 17};
21191     const int *foo = &x[0];
21192     ++foo;
21193   }
21194   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21195     typedef const int *iptr;
21196     iptr p = 0;
21197     ++p;
21198   }
21199   { /* AIX XL C 1.02.0.0 rejects this saying
21200        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21201     struct s { int j; const int *ap[3]; };
21202     struct s *b; b->j = 5;
21203   }
21204   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21205     const int foo = 10;
21206   }
21207 #endif
21208
21209   ;
21210   return 0;
21211 }
21212 _ACEOF
21213 rm -f conftest.$ac_objext
21214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21215   (eval $ac_compile) 2>conftest.er1
21216   ac_status=$?
21217   grep -v '^ *+' conftest.er1 >conftest.err
21218   rm -f conftest.er1
21219   cat conftest.err >&5
21220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21221   (exit $ac_status); } &&
21222          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21224   (eval $ac_try) 2>&5
21225   ac_status=$?
21226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227   (exit $ac_status); }; } &&
21228          { ac_try='test -s conftest.$ac_objext'
21229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21230   (eval $ac_try) 2>&5
21231   ac_status=$?
21232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233   (exit $ac_status); }; }; then
21234   ac_cv_c_const=yes
21235 else
21236   echo "$as_me: failed program was:" >&5
21237 sed 's/^/| /' conftest.$ac_ext >&5
21238
21239 ac_cv_c_const=no
21240 fi
21241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21242 fi
21243 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21244 echo "${ECHO_T}$ac_cv_c_const" >&6
21245 if test $ac_cv_c_const = no; then
21246
21247 cat >>confdefs.h <<\_ACEOF
21248 #define const
21249 _ACEOF
21250
21251 fi
21252
21253 echo "$as_me:$LINENO: checking for inline" >&5
21254 echo $ECHO_N "checking for inline... $ECHO_C" >&6
21255 if test "${ac_cv_c_inline+set}" = set; then
21256   echo $ECHO_N "(cached) $ECHO_C" >&6
21257 else
21258   ac_cv_c_inline=no
21259 for ac_kw in inline __inline__ __inline; do
21260   cat >conftest.$ac_ext <<_ACEOF
21261 /* confdefs.h.  */
21262 _ACEOF
21263 cat confdefs.h >>conftest.$ac_ext
21264 cat >>conftest.$ac_ext <<_ACEOF
21265 /* end confdefs.h.  */
21266 #ifndef __cplusplus
21267 typedef int foo_t;
21268 static $ac_kw foo_t static_foo () {return 0; }
21269 $ac_kw foo_t foo () {return 0; }
21270 #endif
21271
21272 _ACEOF
21273 rm -f conftest.$ac_objext
21274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21275   (eval $ac_compile) 2>conftest.er1
21276   ac_status=$?
21277   grep -v '^ *+' conftest.er1 >conftest.err
21278   rm -f conftest.er1
21279   cat conftest.err >&5
21280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281   (exit $ac_status); } &&
21282          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21284   (eval $ac_try) 2>&5
21285   ac_status=$?
21286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287   (exit $ac_status); }; } &&
21288          { ac_try='test -s conftest.$ac_objext'
21289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21290   (eval $ac_try) 2>&5
21291   ac_status=$?
21292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293   (exit $ac_status); }; }; then
21294   ac_cv_c_inline=$ac_kw; break
21295 else
21296   echo "$as_me: failed program was:" >&5
21297 sed 's/^/| /' conftest.$ac_ext >&5
21298
21299 fi
21300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21301 done
21302
21303 fi
21304 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21305 echo "${ECHO_T}$ac_cv_c_inline" >&6
21306
21307
21308 case $ac_cv_c_inline in
21309   inline | yes) ;;
21310   *)
21311     case $ac_cv_c_inline in
21312       no) ac_val=;;
21313       *) ac_val=$ac_cv_c_inline;;
21314     esac
21315     cat >>confdefs.h <<_ACEOF
21316 #ifndef __cplusplus
21317 #define inline $ac_val
21318 #endif
21319 _ACEOF
21320     ;;
21321 esac
21322
21323 echo "$as_me:$LINENO: checking for size_t" >&5
21324 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21325 if test "${ac_cv_type_size_t+set}" = set; then
21326   echo $ECHO_N "(cached) $ECHO_C" >&6
21327 else
21328   cat >conftest.$ac_ext <<_ACEOF
21329 /* confdefs.h.  */
21330 _ACEOF
21331 cat confdefs.h >>conftest.$ac_ext
21332 cat >>conftest.$ac_ext <<_ACEOF
21333 /* end confdefs.h.  */
21334 $ac_includes_default
21335 int
21336 main ()
21337 {
21338 if ((size_t *) 0)
21339   return 0;
21340 if (sizeof (size_t))
21341   return 0;
21342   ;
21343   return 0;
21344 }
21345 _ACEOF
21346 rm -f conftest.$ac_objext
21347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21348   (eval $ac_compile) 2>conftest.er1
21349   ac_status=$?
21350   grep -v '^ *+' conftest.er1 >conftest.err
21351   rm -f conftest.er1
21352   cat conftest.err >&5
21353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354   (exit $ac_status); } &&
21355          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21357   (eval $ac_try) 2>&5
21358   ac_status=$?
21359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360   (exit $ac_status); }; } &&
21361          { ac_try='test -s conftest.$ac_objext'
21362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21363   (eval $ac_try) 2>&5
21364   ac_status=$?
21365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366   (exit $ac_status); }; }; then
21367   ac_cv_type_size_t=yes
21368 else
21369   echo "$as_me: failed program was:" >&5
21370 sed 's/^/| /' conftest.$ac_ext >&5
21371
21372 ac_cv_type_size_t=no
21373 fi
21374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21375 fi
21376 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21377 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21378 if test $ac_cv_type_size_t = yes; then
21379   :
21380 else
21381
21382 cat >>confdefs.h <<_ACEOF
21383 #define size_t unsigned
21384 _ACEOF
21385
21386 fi
21387
21388
21389 ###################################
21390 ## SimGrid and GRAS specific checks
21391 ##
21392
21393
21394   echo "$as_me:$LINENO: result: " >&5
21395 echo "${ECHO_T}" >&6
21396   echo "$as_me:$LINENO: result: ${T_MD}Checking GRAS architecture signature...${T_ME}" >&5
21397 echo "${ECHO_T}${T_MD}Checking GRAS architecture signature...${T_ME}" >&6
21398
21399 # Check architecture signature begin
21400
21401 # Check for the architecture
21402 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21403 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
21404 if test "${ac_cv_c_bigendian+set}" = set; then
21405   echo $ECHO_N "(cached) $ECHO_C" >&6
21406 else
21407   # See if sys/param.h defines the BYTE_ORDER macro.
21408 cat >conftest.$ac_ext <<_ACEOF
21409 /* confdefs.h.  */
21410 _ACEOF
21411 cat confdefs.h >>conftest.$ac_ext
21412 cat >>conftest.$ac_ext <<_ACEOF
21413 /* end confdefs.h.  */
21414 #include <sys/types.h>
21415 #include <sys/param.h>
21416
21417 int
21418 main ()
21419 {
21420 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21421  bogus endian macros
21422 #endif
21423
21424   ;
21425   return 0;
21426 }
21427 _ACEOF
21428 rm -f conftest.$ac_objext
21429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21430   (eval $ac_compile) 2>conftest.er1
21431   ac_status=$?
21432   grep -v '^ *+' conftest.er1 >conftest.err
21433   rm -f conftest.er1
21434   cat conftest.err >&5
21435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21436   (exit $ac_status); } &&
21437          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21439   (eval $ac_try) 2>&5
21440   ac_status=$?
21441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442   (exit $ac_status); }; } &&
21443          { ac_try='test -s conftest.$ac_objext'
21444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21445   (eval $ac_try) 2>&5
21446   ac_status=$?
21447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448   (exit $ac_status); }; }; then
21449   # It does; now see whether it defined to BIG_ENDIAN or not.
21450 cat >conftest.$ac_ext <<_ACEOF
21451 /* confdefs.h.  */
21452 _ACEOF
21453 cat confdefs.h >>conftest.$ac_ext
21454 cat >>conftest.$ac_ext <<_ACEOF
21455 /* end confdefs.h.  */
21456 #include <sys/types.h>
21457 #include <sys/param.h>
21458
21459 int
21460 main ()
21461 {
21462 #if BYTE_ORDER != BIG_ENDIAN
21463  not big endian
21464 #endif
21465
21466   ;
21467   return 0;
21468 }
21469 _ACEOF
21470 rm -f conftest.$ac_objext
21471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21472   (eval $ac_compile) 2>conftest.er1
21473   ac_status=$?
21474   grep -v '^ *+' conftest.er1 >conftest.err
21475   rm -f conftest.er1
21476   cat conftest.err >&5
21477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21478   (exit $ac_status); } &&
21479          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21481   (eval $ac_try) 2>&5
21482   ac_status=$?
21483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21484   (exit $ac_status); }; } &&
21485          { ac_try='test -s conftest.$ac_objext'
21486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21487   (eval $ac_try) 2>&5
21488   ac_status=$?
21489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21490   (exit $ac_status); }; }; then
21491   ac_cv_c_bigendian=yes
21492 else
21493   echo "$as_me: failed program was:" >&5
21494 sed 's/^/| /' conftest.$ac_ext >&5
21495
21496 ac_cv_c_bigendian=no
21497 fi
21498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21499 else
21500   echo "$as_me: failed program was:" >&5
21501 sed 's/^/| /' conftest.$ac_ext >&5
21502
21503 # It does not; compile a test program.
21504 if test "$cross_compiling" = yes; then
21505   # try to guess the endianness by grepping values into an object file
21506   ac_cv_c_bigendian=unknown
21507   cat >conftest.$ac_ext <<_ACEOF
21508 /* confdefs.h.  */
21509 _ACEOF
21510 cat confdefs.h >>conftest.$ac_ext
21511 cat >>conftest.$ac_ext <<_ACEOF
21512 /* end confdefs.h.  */
21513 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21514 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21515 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21516 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21517 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21518 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21519 int
21520 main ()
21521 {
21522  _ascii (); _ebcdic ();
21523   ;
21524   return 0;
21525 }
21526 _ACEOF
21527 rm -f conftest.$ac_objext
21528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21529   (eval $ac_compile) 2>conftest.er1
21530   ac_status=$?
21531   grep -v '^ *+' conftest.er1 >conftest.err
21532   rm -f conftest.er1
21533   cat conftest.err >&5
21534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535   (exit $ac_status); } &&
21536          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21538   (eval $ac_try) 2>&5
21539   ac_status=$?
21540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21541   (exit $ac_status); }; } &&
21542          { ac_try='test -s conftest.$ac_objext'
21543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21544   (eval $ac_try) 2>&5
21545   ac_status=$?
21546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21547   (exit $ac_status); }; }; then
21548   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21549   ac_cv_c_bigendian=yes
21550 fi
21551 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21552   if test "$ac_cv_c_bigendian" = unknown; then
21553     ac_cv_c_bigendian=no
21554   else
21555     # finding both strings is unlikely to happen, but who knows?
21556     ac_cv_c_bigendian=unknown
21557   fi
21558 fi
21559 else
21560   echo "$as_me: failed program was:" >&5
21561 sed 's/^/| /' conftest.$ac_ext >&5
21562
21563 fi
21564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21565 else
21566   cat >conftest.$ac_ext <<_ACEOF
21567 /* confdefs.h.  */
21568 _ACEOF
21569 cat confdefs.h >>conftest.$ac_ext
21570 cat >>conftest.$ac_ext <<_ACEOF
21571 /* end confdefs.h.  */
21572 int
21573 main ()
21574 {
21575   /* Are we little or big endian?  From Harbison&Steele.  */
21576   union
21577   {
21578     long l;
21579     char c[sizeof (long)];
21580   } u;
21581   u.l = 1;
21582   exit (u.c[sizeof (long) - 1] == 1);
21583 }
21584 _ACEOF
21585 rm -f conftest$ac_exeext
21586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21587   (eval $ac_link) 2>&5
21588   ac_status=$?
21589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21592   (eval $ac_try) 2>&5
21593   ac_status=$?
21594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595   (exit $ac_status); }; }; then
21596   ac_cv_c_bigendian=no
21597 else
21598   echo "$as_me: program exited with status $ac_status" >&5
21599 echo "$as_me: failed program was:" >&5
21600 sed 's/^/| /' conftest.$ac_ext >&5
21601
21602 ( exit $ac_status )
21603 ac_cv_c_bigendian=yes
21604 fi
21605 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21606 fi
21607 fi
21608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21609 fi
21610 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21611 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21612 case $ac_cv_c_bigendian in
21613   yes)
21614     endian=1 ;;
21615   no)
21616     endian=0 ;;
21617   *)
21618     { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
21619 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
21620    { (exit 1); exit 1; }; } ;;
21621 esac
21622
21623
21624 cat >>confdefs.h <<_ACEOF
21625 #define GRAS_BIGENDIAN $endian
21626 _ACEOF
21627
21628
21629 echo "$as_me:$LINENO: checking size of char" >&5
21630 echo $ECHO_N "checking size of char... $ECHO_C" >&6
21631     if test "${ac_cv_sizeof_char+set}" = set; then
21632   echo $ECHO_N "(cached) $ECHO_C" >&6
21633 else
21634   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
21635    cat >conftest.$ac_ext <<_ACEOF
21636 /* confdefs.h.  */
21637 _ACEOF
21638 cat confdefs.h >>conftest.$ac_ext
21639 cat >>conftest.$ac_ext <<_ACEOF
21640 /* end confdefs.h.  */
21641 #include "confdefs.h"
21642    #include <sys/types.h>
21643
21644
21645 int
21646 main ()
21647 {
21648 switch (0) case 0: case (sizeof (char) == $ac_size):;
21649   ;
21650   return 0;
21651 }
21652 _ACEOF
21653 rm -f conftest.$ac_objext
21654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21655   (eval $ac_compile) 2>conftest.er1
21656   ac_status=$?
21657   grep -v '^ *+' conftest.er1 >conftest.err
21658   rm -f conftest.er1
21659   cat conftest.err >&5
21660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21661   (exit $ac_status); } &&
21662          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21664   (eval $ac_try) 2>&5
21665   ac_status=$?
21666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21667   (exit $ac_status); }; } &&
21668          { ac_try='test -s conftest.$ac_objext'
21669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21670   (eval $ac_try) 2>&5
21671   ac_status=$?
21672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673   (exit $ac_status); }; }; then
21674   ac_cv_sizeof_char=$ac_size
21675 else
21676   echo "$as_me: failed program was:" >&5
21677 sed 's/^/| /' conftest.$ac_ext >&5
21678
21679 fi
21680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21681    if test x$ac_cv_sizeof_char != x ; then break; fi
21682   done
21683
21684 fi
21685
21686
21687 unspecif=$ac_cv_sizeof_char
21688 if test x$unspecif = x ; then
21689   { { echo "$as_me:$LINENO: error: cannot determine a size for char" >&5
21690 echo "$as_me: error: cannot determine a size for char" >&2;}
21691    { (exit 1); exit 1; }; }
21692 fi
21693
21694     if test "${ac_cv_sizeof_signed_char+set}" = set; then
21695   echo $ECHO_N "(cached) $ECHO_C" >&6
21696 else
21697   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
21698    cat >conftest.$ac_ext <<_ACEOF
21699 /* confdefs.h.  */
21700 _ACEOF
21701 cat confdefs.h >>conftest.$ac_ext
21702 cat >>conftest.$ac_ext <<_ACEOF
21703 /* end confdefs.h.  */
21704 #include "confdefs.h"
21705    #include <sys/types.h>
21706
21707
21708 int
21709 main ()
21710 {
21711 switch (0) case 0: case (sizeof (signed char) == $ac_size):;
21712   ;
21713   return 0;
21714 }
21715 _ACEOF
21716 rm -f conftest.$ac_objext
21717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21718   (eval $ac_compile) 2>conftest.er1
21719   ac_status=$?
21720   grep -v '^ *+' conftest.er1 >conftest.err
21721   rm -f conftest.er1
21722   cat conftest.err >&5
21723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724   (exit $ac_status); } &&
21725          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21727   (eval $ac_try) 2>&5
21728   ac_status=$?
21729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730   (exit $ac_status); }; } &&
21731          { ac_try='test -s conftest.$ac_objext'
21732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21733   (eval $ac_try) 2>&5
21734   ac_status=$?
21735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736   (exit $ac_status); }; }; then
21737   ac_cv_sizeof_signed_char=$ac_size
21738 else
21739   echo "$as_me: failed program was:" >&5
21740 sed 's/^/| /' conftest.$ac_ext >&5
21741
21742 fi
21743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21744    if test x$ac_cv_sizeof_signed_char != x ; then break; fi
21745   done
21746
21747 fi
21748
21749
21750 signed=$ac_cv_sizeof_signed_char
21751 if test x$signed = x ; then
21752   { { echo "$as_me:$LINENO: error: cannot determine a size for signed char" >&5
21753 echo "$as_me: error: cannot determine a size for signed char" >&2;}
21754    { (exit 1); exit 1; }; }
21755 fi
21756 if test x$unspecif != x$signed ; then
21757   { { echo "$as_me:$LINENO: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&5
21758 echo "$as_me: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&2;}
21759    { (exit 1); exit 1; }; }
21760 fi
21761
21762     if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
21763   echo $ECHO_N "(cached) $ECHO_C" >&6
21764 else
21765   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
21766    cat >conftest.$ac_ext <<_ACEOF
21767 /* confdefs.h.  */
21768 _ACEOF
21769 cat confdefs.h >>conftest.$ac_ext
21770 cat >>conftest.$ac_ext <<_ACEOF
21771 /* end confdefs.h.  */
21772 #include "confdefs.h"
21773    #include <sys/types.h>
21774
21775
21776 int
21777 main ()
21778 {
21779 switch (0) case 0: case (sizeof (unsigned char) == $ac_size):;
21780   ;
21781   return 0;
21782 }
21783 _ACEOF
21784 rm -f conftest.$ac_objext
21785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21786   (eval $ac_compile) 2>conftest.er1
21787   ac_status=$?
21788   grep -v '^ *+' conftest.er1 >conftest.err
21789   rm -f conftest.er1
21790   cat conftest.err >&5
21791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21792   (exit $ac_status); } &&
21793          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21795   (eval $ac_try) 2>&5
21796   ac_status=$?
21797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798   (exit $ac_status); }; } &&
21799          { ac_try='test -s conftest.$ac_objext'
21800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21801   (eval $ac_try) 2>&5
21802   ac_status=$?
21803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804   (exit $ac_status); }; }; then
21805   ac_cv_sizeof_unsigned_char=$ac_size
21806 else
21807   echo "$as_me: failed program was:" >&5
21808 sed 's/^/| /' conftest.$ac_ext >&5
21809
21810 fi
21811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21812    if test x$ac_cv_sizeof_unsigned_char != x ; then break; fi
21813   done
21814
21815 fi
21816
21817
21818 unsigned=$ac_cv_sizeof_unsigned_char
21819 if test x$unsigned = x ; then
21820   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned char" >&5
21821 echo "$as_me: error: cannot determine a size for unsigned char" >&2;}
21822    { (exit 1); exit 1; }; }
21823 fi
21824 if test x$unsigned != x$signed ; then
21825   { { echo "$as_me:$LINENO: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&5
21826 echo "$as_me: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&2;}
21827    { (exit 1); exit 1; }; }
21828 fi
21829
21830 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
21831 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6
21832                   echo "$as_me:$LINENO: checking for the minimal structure boundary of char" >&5
21833 echo $ECHO_N "checking for the minimal structure boundary of char... $ECHO_C" >&6
21834
21835  if test "${ac_cv_struct_boundary_char+set}" = set; then
21836   echo $ECHO_N "(cached) $ECHO_C" >&6
21837 else
21838   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
21839    cat >conftest.$ac_ext <<_ACEOF
21840 /* confdefs.h.  */
21841 _ACEOF
21842 cat confdefs.h >>conftest.$ac_ext
21843 cat >>conftest.$ac_ext <<_ACEOF
21844 /* end confdefs.h.  */
21845 #include "confdefs.h"
21846      #include <sys/types.h>
21847      struct s { char c; char i; };
21848
21849 int
21850 main ()
21851 {
21852 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(char)):;
21853   ;
21854   return 0;
21855 }
21856 _ACEOF
21857 rm -f conftest.$ac_objext
21858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21859   (eval $ac_compile) 2>conftest.er1
21860   ac_status=$?
21861   grep -v '^ *+' conftest.er1 >conftest.err
21862   rm -f conftest.er1
21863   cat conftest.err >&5
21864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21865   (exit $ac_status); } &&
21866          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21868   (eval $ac_try) 2>&5
21869   ac_status=$?
21870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21871   (exit $ac_status); }; } &&
21872          { ac_try='test -s conftest.$ac_objext'
21873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21874   (eval $ac_try) 2>&5
21875   ac_status=$?
21876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21877   (exit $ac_status); }; }; then
21878   ac_cv_struct_boundary_char=$ac_size
21879 else
21880   echo "$as_me: failed program was:" >&5
21881 sed 's/^/| /' conftest.$ac_ext >&5
21882
21883 fi
21884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21885    if test x$ac_cv_struct_boundary_char != x ; then break; fi
21886   done
21887
21888 fi
21889
21890  echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_char" >&5
21891 echo "${ECHO_T}$ac_cv_struct_boundary_char" >&6
21892  if test x$ac_cv_struct_boundary_char = x ; then
21893    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of char in structures" >&5
21894 echo "$as_me: error: Cannot determine the minimal alignment boundary of char in structures" >&2;}
21895    { (exit 1); exit 1; }; }
21896  fi
21897
21898 echo "$as_me:$LINENO: checking size of short int" >&5
21899 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
21900     if test "${ac_cv_sizeof_short_int+set}" = set; then
21901   echo $ECHO_N "(cached) $ECHO_C" >&6
21902 else
21903   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
21904    cat >conftest.$ac_ext <<_ACEOF
21905 /* confdefs.h.  */
21906 _ACEOF
21907 cat confdefs.h >>conftest.$ac_ext
21908 cat >>conftest.$ac_ext <<_ACEOF
21909 /* end confdefs.h.  */
21910 #include "confdefs.h"
21911    #include <sys/types.h>
21912
21913
21914 int
21915 main ()
21916 {
21917 switch (0) case 0: case (sizeof (short int) == $ac_size):;
21918   ;
21919   return 0;
21920 }
21921 _ACEOF
21922 rm -f conftest.$ac_objext
21923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21924   (eval $ac_compile) 2>conftest.er1
21925   ac_status=$?
21926   grep -v '^ *+' conftest.er1 >conftest.err
21927   rm -f conftest.er1
21928   cat conftest.err >&5
21929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21930   (exit $ac_status); } &&
21931          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21933   (eval $ac_try) 2>&5
21934   ac_status=$?
21935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21936   (exit $ac_status); }; } &&
21937          { ac_try='test -s conftest.$ac_objext'
21938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21939   (eval $ac_try) 2>&5
21940   ac_status=$?
21941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21942   (exit $ac_status); }; }; then
21943   ac_cv_sizeof_short_int=$ac_size
21944 else
21945   echo "$as_me: failed program was:" >&5
21946 sed 's/^/| /' conftest.$ac_ext >&5
21947
21948 fi
21949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21950    if test x$ac_cv_sizeof_short_int != x ; then break; fi
21951   done
21952
21953 fi
21954
21955
21956 unspecif=$ac_cv_sizeof_short_int
21957 if test x$unspecif = x ; then
21958   { { echo "$as_me:$LINENO: error: cannot determine a size for short int" >&5
21959 echo "$as_me: error: cannot determine a size for short int" >&2;}
21960    { (exit 1); exit 1; }; }
21961 fi
21962
21963     if test "${ac_cv_sizeof_signed_short_int+set}" = set; then
21964   echo $ECHO_N "(cached) $ECHO_C" >&6
21965 else
21966   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
21967    cat >conftest.$ac_ext <<_ACEOF
21968 /* confdefs.h.  */
21969 _ACEOF
21970 cat confdefs.h >>conftest.$ac_ext
21971 cat >>conftest.$ac_ext <<_ACEOF
21972 /* end confdefs.h.  */
21973 #include "confdefs.h"
21974    #include <sys/types.h>
21975
21976
21977 int
21978 main ()
21979 {
21980 switch (0) case 0: case (sizeof (signed short int) == $ac_size):;
21981   ;
21982   return 0;
21983 }
21984 _ACEOF
21985 rm -f conftest.$ac_objext
21986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21987   (eval $ac_compile) 2>conftest.er1
21988   ac_status=$?
21989   grep -v '^ *+' conftest.er1 >conftest.err
21990   rm -f conftest.er1
21991   cat conftest.err >&5
21992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21993   (exit $ac_status); } &&
21994          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21996   (eval $ac_try) 2>&5
21997   ac_status=$?
21998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999   (exit $ac_status); }; } &&
22000          { ac_try='test -s conftest.$ac_objext'
22001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22002   (eval $ac_try) 2>&5
22003   ac_status=$?
22004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22005   (exit $ac_status); }; }; then
22006   ac_cv_sizeof_signed_short_int=$ac_size
22007 else
22008   echo "$as_me: failed program was:" >&5
22009 sed 's/^/| /' conftest.$ac_ext >&5
22010
22011 fi
22012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22013    if test x$ac_cv_sizeof_signed_short_int != x ; then break; fi
22014   done
22015
22016 fi
22017
22018
22019 signed=$ac_cv_sizeof_signed_short_int
22020 if test x$signed = x ; then
22021   { { echo "$as_me:$LINENO: error: cannot determine a size for signed short int" >&5
22022 echo "$as_me: error: cannot determine a size for signed short int" >&2;}
22023    { (exit 1); exit 1; }; }
22024 fi
22025 if test x$unspecif != x$signed ; then
22026   { { echo "$as_me:$LINENO: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&5
22027 echo "$as_me: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&2;}
22028    { (exit 1); exit 1; }; }
22029 fi
22030
22031     if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
22032   echo $ECHO_N "(cached) $ECHO_C" >&6
22033 else
22034   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22035    cat >conftest.$ac_ext <<_ACEOF
22036 /* confdefs.h.  */
22037 _ACEOF
22038 cat confdefs.h >>conftest.$ac_ext
22039 cat >>conftest.$ac_ext <<_ACEOF
22040 /* end confdefs.h.  */
22041 #include "confdefs.h"
22042    #include <sys/types.h>
22043
22044
22045 int
22046 main ()
22047 {
22048 switch (0) case 0: case (sizeof (unsigned short int) == $ac_size):;
22049   ;
22050   return 0;
22051 }
22052 _ACEOF
22053 rm -f conftest.$ac_objext
22054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22055   (eval $ac_compile) 2>conftest.er1
22056   ac_status=$?
22057   grep -v '^ *+' conftest.er1 >conftest.err
22058   rm -f conftest.er1
22059   cat conftest.err >&5
22060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22061   (exit $ac_status); } &&
22062          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22064   (eval $ac_try) 2>&5
22065   ac_status=$?
22066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067   (exit $ac_status); }; } &&
22068          { ac_try='test -s conftest.$ac_objext'
22069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22070   (eval $ac_try) 2>&5
22071   ac_status=$?
22072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22073   (exit $ac_status); }; }; then
22074   ac_cv_sizeof_unsigned_short_int=$ac_size
22075 else
22076   echo "$as_me: failed program was:" >&5
22077 sed 's/^/| /' conftest.$ac_ext >&5
22078
22079 fi
22080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22081    if test x$ac_cv_sizeof_unsigned_short_int != x ; then break; fi
22082   done
22083
22084 fi
22085
22086
22087 unsigned=$ac_cv_sizeof_unsigned_short_int
22088 if test x$unsigned = x ; then
22089   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned short int" >&5
22090 echo "$as_me: error: cannot determine a size for unsigned short int" >&2;}
22091    { (exit 1); exit 1; }; }
22092 fi
22093 if test x$unsigned != x$signed ; then
22094   { { echo "$as_me:$LINENO: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&5
22095 echo "$as_me: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&2;}
22096    { (exit 1); exit 1; }; }
22097 fi
22098
22099 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
22100 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6
22101              echo "$as_me:$LINENO: checking for the minimal structure boundary of short int" >&5
22102 echo $ECHO_N "checking for the minimal structure boundary of short int... $ECHO_C" >&6
22103
22104  if test "${ac_cv_struct_boundary_short_int+set}" = set; then
22105   echo $ECHO_N "(cached) $ECHO_C" >&6
22106 else
22107   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22108    cat >conftest.$ac_ext <<_ACEOF
22109 /* confdefs.h.  */
22110 _ACEOF
22111 cat confdefs.h >>conftest.$ac_ext
22112 cat >>conftest.$ac_ext <<_ACEOF
22113 /* end confdefs.h.  */
22114 #include "confdefs.h"
22115      #include <sys/types.h>
22116      struct s { char c; short int i; };
22117
22118 int
22119 main ()
22120 {
22121 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(short int)):;
22122   ;
22123   return 0;
22124 }
22125 _ACEOF
22126 rm -f conftest.$ac_objext
22127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22128   (eval $ac_compile) 2>conftest.er1
22129   ac_status=$?
22130   grep -v '^ *+' conftest.er1 >conftest.err
22131   rm -f conftest.er1
22132   cat conftest.err >&5
22133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22134   (exit $ac_status); } &&
22135          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22137   (eval $ac_try) 2>&5
22138   ac_status=$?
22139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140   (exit $ac_status); }; } &&
22141          { ac_try='test -s conftest.$ac_objext'
22142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22143   (eval $ac_try) 2>&5
22144   ac_status=$?
22145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22146   (exit $ac_status); }; }; then
22147   ac_cv_struct_boundary_short_int=$ac_size
22148 else
22149   echo "$as_me: failed program was:" >&5
22150 sed 's/^/| /' conftest.$ac_ext >&5
22151
22152 fi
22153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22154    if test x$ac_cv_struct_boundary_short_int != x ; then break; fi
22155   done
22156
22157 fi
22158
22159  echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_short_int" >&5
22160 echo "${ECHO_T}$ac_cv_struct_boundary_short_int" >&6
22161  if test x$ac_cv_struct_boundary_short_int = x ; then
22162    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of short int in structures" >&5
22163 echo "$as_me: error: Cannot determine the minimal alignment boundary of short int in structures" >&2;}
22164    { (exit 1); exit 1; }; }
22165  fi
22166
22167 echo "$as_me:$LINENO: checking size of int" >&5
22168 echo $ECHO_N "checking size of int... $ECHO_C" >&6
22169     if test "${ac_cv_sizeof_int+set}" = set; then
22170   echo $ECHO_N "(cached) $ECHO_C" >&6
22171 else
22172   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22173    cat >conftest.$ac_ext <<_ACEOF
22174 /* confdefs.h.  */
22175 _ACEOF
22176 cat confdefs.h >>conftest.$ac_ext
22177 cat >>conftest.$ac_ext <<_ACEOF
22178 /* end confdefs.h.  */
22179 #include "confdefs.h"
22180    #include <sys/types.h>
22181
22182
22183 int
22184 main ()
22185 {
22186 switch (0) case 0: case (sizeof (int) == $ac_size):;
22187   ;
22188   return 0;
22189 }
22190 _ACEOF
22191 rm -f conftest.$ac_objext
22192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22193   (eval $ac_compile) 2>conftest.er1
22194   ac_status=$?
22195   grep -v '^ *+' conftest.er1 >conftest.err
22196   rm -f conftest.er1
22197   cat conftest.err >&5
22198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22199   (exit $ac_status); } &&
22200          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22202   (eval $ac_try) 2>&5
22203   ac_status=$?
22204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22205   (exit $ac_status); }; } &&
22206          { ac_try='test -s conftest.$ac_objext'
22207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22208   (eval $ac_try) 2>&5
22209   ac_status=$?
22210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22211   (exit $ac_status); }; }; then
22212   ac_cv_sizeof_int=$ac_size
22213 else
22214   echo "$as_me: failed program was:" >&5
22215 sed 's/^/| /' conftest.$ac_ext >&5
22216
22217 fi
22218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22219    if test x$ac_cv_sizeof_int != x ; then break; fi
22220   done
22221
22222 fi
22223
22224
22225 unspecif=$ac_cv_sizeof_int
22226 if test x$unspecif = x ; then
22227   { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
22228 echo "$as_me: error: cannot determine a size for int" >&2;}
22229    { (exit 1); exit 1; }; }
22230 fi
22231
22232     if test "${ac_cv_sizeof_signed_int+set}" = set; then
22233   echo $ECHO_N "(cached) $ECHO_C" >&6
22234 else
22235   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22236    cat >conftest.$ac_ext <<_ACEOF
22237 /* confdefs.h.  */
22238 _ACEOF
22239 cat confdefs.h >>conftest.$ac_ext
22240 cat >>conftest.$ac_ext <<_ACEOF
22241 /* end confdefs.h.  */
22242 #include "confdefs.h"
22243    #include <sys/types.h>
22244
22245
22246 int
22247 main ()
22248 {
22249 switch (0) case 0: case (sizeof (signed int) == $ac_size):;
22250   ;
22251   return 0;
22252 }
22253 _ACEOF
22254 rm -f conftest.$ac_objext
22255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22256   (eval $ac_compile) 2>conftest.er1
22257   ac_status=$?
22258   grep -v '^ *+' conftest.er1 >conftest.err
22259   rm -f conftest.er1
22260   cat conftest.err >&5
22261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22262   (exit $ac_status); } &&
22263          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22265   (eval $ac_try) 2>&5
22266   ac_status=$?
22267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22268   (exit $ac_status); }; } &&
22269          { ac_try='test -s conftest.$ac_objext'
22270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22271   (eval $ac_try) 2>&5
22272   ac_status=$?
22273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22274   (exit $ac_status); }; }; then
22275   ac_cv_sizeof_signed_int=$ac_size
22276 else
22277   echo "$as_me: failed program was:" >&5
22278 sed 's/^/| /' conftest.$ac_ext >&5
22279
22280 fi
22281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22282    if test x$ac_cv_sizeof_signed_int != x ; then break; fi
22283   done
22284
22285 fi
22286
22287
22288 signed=$ac_cv_sizeof_signed_int
22289 if test x$signed = x ; then
22290   { { echo "$as_me:$LINENO: error: cannot determine a size for signed int" >&5
22291 echo "$as_me: error: cannot determine a size for signed int" >&2;}
22292    { (exit 1); exit 1; }; }
22293 fi
22294 if test x$unspecif != x$signed ; then
22295   { { echo "$as_me:$LINENO: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&5
22296 echo "$as_me: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&2;}
22297    { (exit 1); exit 1; }; }
22298 fi
22299
22300     if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
22301   echo $ECHO_N "(cached) $ECHO_C" >&6
22302 else
22303   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22304    cat >conftest.$ac_ext <<_ACEOF
22305 /* confdefs.h.  */
22306 _ACEOF
22307 cat confdefs.h >>conftest.$ac_ext
22308 cat >>conftest.$ac_ext <<_ACEOF
22309 /* end confdefs.h.  */
22310 #include "confdefs.h"
22311    #include <sys/types.h>
22312
22313
22314 int
22315 main ()
22316 {
22317 switch (0) case 0: case (sizeof (unsigned int) == $ac_size):;
22318   ;
22319   return 0;
22320 }
22321 _ACEOF
22322 rm -f conftest.$ac_objext
22323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22324   (eval $ac_compile) 2>conftest.er1
22325   ac_status=$?
22326   grep -v '^ *+' conftest.er1 >conftest.err
22327   rm -f conftest.er1
22328   cat conftest.err >&5
22329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22330   (exit $ac_status); } &&
22331          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22333   (eval $ac_try) 2>&5
22334   ac_status=$?
22335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22336   (exit $ac_status); }; } &&
22337          { ac_try='test -s conftest.$ac_objext'
22338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22339   (eval $ac_try) 2>&5
22340   ac_status=$?
22341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22342   (exit $ac_status); }; }; then
22343   ac_cv_sizeof_unsigned_int=$ac_size
22344 else
22345   echo "$as_me: failed program was:" >&5
22346 sed 's/^/| /' conftest.$ac_ext >&5
22347
22348 fi
22349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22350    if test x$ac_cv_sizeof_unsigned_int != x ; then break; fi
22351   done
22352
22353 fi
22354
22355
22356 unsigned=$ac_cv_sizeof_unsigned_int
22357 if test x$unsigned = x ; then
22358   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned int" >&5
22359 echo "$as_me: error: cannot determine a size for unsigned int" >&2;}
22360    { (exit 1); exit 1; }; }
22361 fi
22362 if test x$unsigned != x$signed ; then
22363   { { echo "$as_me:$LINENO: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&5
22364 echo "$as_me: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&2;}
22365    { (exit 1); exit 1; }; }
22366 fi
22367
22368 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
22369 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6
22370                    echo "$as_me:$LINENO: checking for the minimal structure boundary of int" >&5
22371 echo $ECHO_N "checking for the minimal structure boundary of int... $ECHO_C" >&6
22372
22373  if test "${ac_cv_struct_boundary_int+set}" = set; then
22374   echo $ECHO_N "(cached) $ECHO_C" >&6
22375 else
22376   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22377    cat >conftest.$ac_ext <<_ACEOF
22378 /* confdefs.h.  */
22379 _ACEOF
22380 cat confdefs.h >>conftest.$ac_ext
22381 cat >>conftest.$ac_ext <<_ACEOF
22382 /* end confdefs.h.  */
22383 #include "confdefs.h"
22384      #include <sys/types.h>
22385      struct s { char c; int i; };
22386
22387 int
22388 main ()
22389 {
22390 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(int)):;
22391   ;
22392   return 0;
22393 }
22394 _ACEOF
22395 rm -f conftest.$ac_objext
22396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22397   (eval $ac_compile) 2>conftest.er1
22398   ac_status=$?
22399   grep -v '^ *+' conftest.er1 >conftest.err
22400   rm -f conftest.er1
22401   cat conftest.err >&5
22402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403   (exit $ac_status); } &&
22404          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22406   (eval $ac_try) 2>&5
22407   ac_status=$?
22408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22409   (exit $ac_status); }; } &&
22410          { ac_try='test -s conftest.$ac_objext'
22411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22412   (eval $ac_try) 2>&5
22413   ac_status=$?
22414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22415   (exit $ac_status); }; }; then
22416   ac_cv_struct_boundary_int=$ac_size
22417 else
22418   echo "$as_me: failed program was:" >&5
22419 sed 's/^/| /' conftest.$ac_ext >&5
22420
22421 fi
22422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22423    if test x$ac_cv_struct_boundary_int != x ; then break; fi
22424   done
22425
22426 fi
22427
22428  echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_int" >&5
22429 echo "${ECHO_T}$ac_cv_struct_boundary_int" >&6
22430  if test x$ac_cv_struct_boundary_int = x ; then
22431    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of int in structures" >&5
22432 echo "$as_me: error: Cannot determine the minimal alignment boundary of int in structures" >&2;}
22433    { (exit 1); exit 1; }; }
22434  fi
22435
22436 echo "$as_me:$LINENO: checking size of long int" >&5
22437 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
22438     if test "${ac_cv_sizeof_long_int+set}" = set; then
22439   echo $ECHO_N "(cached) $ECHO_C" >&6
22440 else
22441   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22442    cat >conftest.$ac_ext <<_ACEOF
22443 /* confdefs.h.  */
22444 _ACEOF
22445 cat confdefs.h >>conftest.$ac_ext
22446 cat >>conftest.$ac_ext <<_ACEOF
22447 /* end confdefs.h.  */
22448 #include "confdefs.h"
22449    #include <sys/types.h>
22450
22451
22452 int
22453 main ()
22454 {
22455 switch (0) case 0: case (sizeof (long int) == $ac_size):;
22456   ;
22457   return 0;
22458 }
22459 _ACEOF
22460 rm -f conftest.$ac_objext
22461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22462   (eval $ac_compile) 2>conftest.er1
22463   ac_status=$?
22464   grep -v '^ *+' conftest.er1 >conftest.err
22465   rm -f conftest.er1
22466   cat conftest.err >&5
22467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22468   (exit $ac_status); } &&
22469          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22471   (eval $ac_try) 2>&5
22472   ac_status=$?
22473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474   (exit $ac_status); }; } &&
22475          { ac_try='test -s conftest.$ac_objext'
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_sizeof_long_int=$ac_size
22482 else
22483   echo "$as_me: failed program was:" >&5
22484 sed 's/^/| /' conftest.$ac_ext >&5
22485
22486 fi
22487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22488    if test x$ac_cv_sizeof_long_int != x ; then break; fi
22489   done
22490
22491 fi
22492
22493
22494 unspecif=$ac_cv_sizeof_long_int
22495 if test x$unspecif = x ; then
22496   { { echo "$as_me:$LINENO: error: cannot determine a size for long int" >&5
22497 echo "$as_me: error: cannot determine a size for long int" >&2;}
22498    { (exit 1); exit 1; }; }
22499 fi
22500
22501     if test "${ac_cv_sizeof_signed_long_int+set}" = set; then
22502   echo $ECHO_N "(cached) $ECHO_C" >&6
22503 else
22504   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22505    cat >conftest.$ac_ext <<_ACEOF
22506 /* confdefs.h.  */
22507 _ACEOF
22508 cat confdefs.h >>conftest.$ac_ext
22509 cat >>conftest.$ac_ext <<_ACEOF
22510 /* end confdefs.h.  */
22511 #include "confdefs.h"
22512    #include <sys/types.h>
22513
22514
22515 int
22516 main ()
22517 {
22518 switch (0) case 0: case (sizeof (signed long int) == $ac_size):;
22519   ;
22520   return 0;
22521 }
22522 _ACEOF
22523 rm -f conftest.$ac_objext
22524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22525   (eval $ac_compile) 2>conftest.er1
22526   ac_status=$?
22527   grep -v '^ *+' conftest.er1 >conftest.err
22528   rm -f conftest.er1
22529   cat conftest.err >&5
22530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22531   (exit $ac_status); } &&
22532          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22534   (eval $ac_try) 2>&5
22535   ac_status=$?
22536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22537   (exit $ac_status); }; } &&
22538          { ac_try='test -s conftest.$ac_objext'
22539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22540   (eval $ac_try) 2>&5
22541   ac_status=$?
22542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22543   (exit $ac_status); }; }; then
22544   ac_cv_sizeof_signed_long_int=$ac_size
22545 else
22546   echo "$as_me: failed program was:" >&5
22547 sed 's/^/| /' conftest.$ac_ext >&5
22548
22549 fi
22550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22551    if test x$ac_cv_sizeof_signed_long_int != x ; then break; fi
22552   done
22553
22554 fi
22555
22556
22557 signed=$ac_cv_sizeof_signed_long_int
22558 if test x$signed = x ; then
22559   { { echo "$as_me:$LINENO: error: cannot determine a size for signed long int" >&5
22560 echo "$as_me: error: cannot determine a size for signed long int" >&2;}
22561    { (exit 1); exit 1; }; }
22562 fi
22563 if test x$unspecif != x$signed ; then
22564   { { echo "$as_me:$LINENO: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&5
22565 echo "$as_me: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&2;}
22566    { (exit 1); exit 1; }; }
22567 fi
22568
22569     if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
22570   echo $ECHO_N "(cached) $ECHO_C" >&6
22571 else
22572   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22573    cat >conftest.$ac_ext <<_ACEOF
22574 /* confdefs.h.  */
22575 _ACEOF
22576 cat confdefs.h >>conftest.$ac_ext
22577 cat >>conftest.$ac_ext <<_ACEOF
22578 /* end confdefs.h.  */
22579 #include "confdefs.h"
22580    #include <sys/types.h>
22581
22582
22583 int
22584 main ()
22585 {
22586 switch (0) case 0: case (sizeof (unsigned long int) == $ac_size):;
22587   ;
22588   return 0;
22589 }
22590 _ACEOF
22591 rm -f conftest.$ac_objext
22592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22593   (eval $ac_compile) 2>conftest.er1
22594   ac_status=$?
22595   grep -v '^ *+' conftest.er1 >conftest.err
22596   rm -f conftest.er1
22597   cat conftest.err >&5
22598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22599   (exit $ac_status); } &&
22600          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22602   (eval $ac_try) 2>&5
22603   ac_status=$?
22604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22605   (exit $ac_status); }; } &&
22606          { ac_try='test -s conftest.$ac_objext'
22607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22608   (eval $ac_try) 2>&5
22609   ac_status=$?
22610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22611   (exit $ac_status); }; }; then
22612   ac_cv_sizeof_unsigned_long_int=$ac_size
22613 else
22614   echo "$as_me: failed program was:" >&5
22615 sed 's/^/| /' conftest.$ac_ext >&5
22616
22617 fi
22618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22619    if test x$ac_cv_sizeof_unsigned_long_int != x ; then break; fi
22620   done
22621
22622 fi
22623
22624
22625 unsigned=$ac_cv_sizeof_unsigned_long_int
22626 if test x$unsigned = x ; then
22627   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long int" >&5
22628 echo "$as_me: error: cannot determine a size for unsigned long int" >&2;}
22629    { (exit 1); exit 1; }; }
22630 fi
22631 if test x$unsigned != x$signed ; then
22632   { { echo "$as_me:$LINENO: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&5
22633 echo "$as_me: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&2;}
22634    { (exit 1); exit 1; }; }
22635 fi
22636
22637 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
22638 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6
22639               echo "$as_me:$LINENO: checking for the minimal structure boundary of long int" >&5
22640 echo $ECHO_N "checking for the minimal structure boundary of long int... $ECHO_C" >&6
22641
22642  if test "${ac_cv_struct_boundary_long_int+set}" = set; then
22643   echo $ECHO_N "(cached) $ECHO_C" >&6
22644 else
22645   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22646    cat >conftest.$ac_ext <<_ACEOF
22647 /* confdefs.h.  */
22648 _ACEOF
22649 cat confdefs.h >>conftest.$ac_ext
22650 cat >>conftest.$ac_ext <<_ACEOF
22651 /* end confdefs.h.  */
22652 #include "confdefs.h"
22653      #include <sys/types.h>
22654      struct s { char c; long int i; };
22655
22656 int
22657 main ()
22658 {
22659 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long int)):;
22660   ;
22661   return 0;
22662 }
22663 _ACEOF
22664 rm -f conftest.$ac_objext
22665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22666   (eval $ac_compile) 2>conftest.er1
22667   ac_status=$?
22668   grep -v '^ *+' conftest.er1 >conftest.err
22669   rm -f conftest.er1
22670   cat conftest.err >&5
22671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22672   (exit $ac_status); } &&
22673          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22675   (eval $ac_try) 2>&5
22676   ac_status=$?
22677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22678   (exit $ac_status); }; } &&
22679          { ac_try='test -s conftest.$ac_objext'
22680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22681   (eval $ac_try) 2>&5
22682   ac_status=$?
22683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22684   (exit $ac_status); }; }; then
22685   ac_cv_struct_boundary_long_int=$ac_size
22686 else
22687   echo "$as_me: failed program was:" >&5
22688 sed 's/^/| /' conftest.$ac_ext >&5
22689
22690 fi
22691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22692    if test x$ac_cv_struct_boundary_long_int != x ; then break; fi
22693   done
22694
22695 fi
22696
22697  echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_int" >&5
22698 echo "${ECHO_T}$ac_cv_struct_boundary_long_int" >&6
22699  if test x$ac_cv_struct_boundary_long_int = x ; then
22700    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long int in structures" >&5
22701 echo "$as_me: error: Cannot determine the minimal alignment boundary of long int in structures" >&2;}
22702    { (exit 1); exit 1; }; }
22703  fi
22704
22705 echo "$as_me:$LINENO: checking size of long long int" >&5
22706 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
22707     if test "${ac_cv_sizeof_long_long_int+set}" = set; then
22708   echo $ECHO_N "(cached) $ECHO_C" >&6
22709 else
22710   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22711    cat >conftest.$ac_ext <<_ACEOF
22712 /* confdefs.h.  */
22713 _ACEOF
22714 cat confdefs.h >>conftest.$ac_ext
22715 cat >>conftest.$ac_ext <<_ACEOF
22716 /* end confdefs.h.  */
22717 #include "confdefs.h"
22718    #include <sys/types.h>
22719
22720
22721 int
22722 main ()
22723 {
22724 switch (0) case 0: case (sizeof (long long int) == $ac_size):;
22725   ;
22726   return 0;
22727 }
22728 _ACEOF
22729 rm -f conftest.$ac_objext
22730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22731   (eval $ac_compile) 2>conftest.er1
22732   ac_status=$?
22733   grep -v '^ *+' conftest.er1 >conftest.err
22734   rm -f conftest.er1
22735   cat conftest.err >&5
22736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737   (exit $ac_status); } &&
22738          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22740   (eval $ac_try) 2>&5
22741   ac_status=$?
22742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22743   (exit $ac_status); }; } &&
22744          { ac_try='test -s conftest.$ac_objext'
22745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22746   (eval $ac_try) 2>&5
22747   ac_status=$?
22748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22749   (exit $ac_status); }; }; then
22750   ac_cv_sizeof_long_long_int=$ac_size
22751 else
22752   echo "$as_me: failed program was:" >&5
22753 sed 's/^/| /' conftest.$ac_ext >&5
22754
22755 fi
22756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22757    if test x$ac_cv_sizeof_long_long_int != x ; then break; fi
22758   done
22759
22760 fi
22761
22762
22763 unspecif=$ac_cv_sizeof_long_long_int
22764 if test x$unspecif = x ; then
22765   { { echo "$as_me:$LINENO: error: cannot determine a size for long long int" >&5
22766 echo "$as_me: error: cannot determine a size for long long int" >&2;}
22767    { (exit 1); exit 1; }; }
22768 fi
22769
22770     if test "${ac_cv_sizeof_signed_long_long_int+set}" = set; then
22771   echo $ECHO_N "(cached) $ECHO_C" >&6
22772 else
22773   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22774    cat >conftest.$ac_ext <<_ACEOF
22775 /* confdefs.h.  */
22776 _ACEOF
22777 cat confdefs.h >>conftest.$ac_ext
22778 cat >>conftest.$ac_ext <<_ACEOF
22779 /* end confdefs.h.  */
22780 #include "confdefs.h"
22781    #include <sys/types.h>
22782
22783
22784 int
22785 main ()
22786 {
22787 switch (0) case 0: case (sizeof (signed long long int) == $ac_size):;
22788   ;
22789   return 0;
22790 }
22791 _ACEOF
22792 rm -f conftest.$ac_objext
22793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22794   (eval $ac_compile) 2>conftest.er1
22795   ac_status=$?
22796   grep -v '^ *+' conftest.er1 >conftest.err
22797   rm -f conftest.er1
22798   cat conftest.err >&5
22799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22800   (exit $ac_status); } &&
22801          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22803   (eval $ac_try) 2>&5
22804   ac_status=$?
22805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22806   (exit $ac_status); }; } &&
22807          { ac_try='test -s conftest.$ac_objext'
22808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22809   (eval $ac_try) 2>&5
22810   ac_status=$?
22811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22812   (exit $ac_status); }; }; then
22813   ac_cv_sizeof_signed_long_long_int=$ac_size
22814 else
22815   echo "$as_me: failed program was:" >&5
22816 sed 's/^/| /' conftest.$ac_ext >&5
22817
22818 fi
22819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22820    if test x$ac_cv_sizeof_signed_long_long_int != x ; then break; fi
22821   done
22822
22823 fi
22824
22825
22826 signed=$ac_cv_sizeof_signed_long_long_int
22827 if test x$signed = x ; then
22828   { { echo "$as_me:$LINENO: error: cannot determine a size for signed long long int" >&5
22829 echo "$as_me: error: cannot determine a size for signed long long int" >&2;}
22830    { (exit 1); exit 1; }; }
22831 fi
22832 if test x$unspecif != x$signed ; then
22833   { { echo "$as_me:$LINENO: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&5
22834 echo "$as_me: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&2;}
22835    { (exit 1); exit 1; }; }
22836 fi
22837
22838     if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then
22839   echo $ECHO_N "(cached) $ECHO_C" >&6
22840 else
22841   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22842    cat >conftest.$ac_ext <<_ACEOF
22843 /* confdefs.h.  */
22844 _ACEOF
22845 cat confdefs.h >>conftest.$ac_ext
22846 cat >>conftest.$ac_ext <<_ACEOF
22847 /* end confdefs.h.  */
22848 #include "confdefs.h"
22849    #include <sys/types.h>
22850
22851
22852 int
22853 main ()
22854 {
22855 switch (0) case 0: case (sizeof (unsigned long long int) == $ac_size):;
22856   ;
22857   return 0;
22858 }
22859 _ACEOF
22860 rm -f conftest.$ac_objext
22861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22862   (eval $ac_compile) 2>conftest.er1
22863   ac_status=$?
22864   grep -v '^ *+' conftest.er1 >conftest.err
22865   rm -f conftest.er1
22866   cat conftest.err >&5
22867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22868   (exit $ac_status); } &&
22869          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22871   (eval $ac_try) 2>&5
22872   ac_status=$?
22873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22874   (exit $ac_status); }; } &&
22875          { ac_try='test -s conftest.$ac_objext'
22876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22877   (eval $ac_try) 2>&5
22878   ac_status=$?
22879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22880   (exit $ac_status); }; }; then
22881   ac_cv_sizeof_unsigned_long_long_int=$ac_size
22882 else
22883   echo "$as_me: failed program was:" >&5
22884 sed 's/^/| /' conftest.$ac_ext >&5
22885
22886 fi
22887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22888    if test x$ac_cv_sizeof_unsigned_long_long_int != x ; then break; fi
22889   done
22890
22891 fi
22892
22893
22894 unsigned=$ac_cv_sizeof_unsigned_long_long_int
22895 if test x$unsigned = x ; then
22896   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long long int" >&5
22897 echo "$as_me: error: cannot determine a size for unsigned long long int" >&2;}
22898    { (exit 1); exit 1; }; }
22899 fi
22900 if test x$unsigned != x$signed ; then
22901   { { echo "$as_me:$LINENO: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&5
22902 echo "$as_me: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&2;}
22903    { (exit 1); exit 1; }; }
22904 fi
22905
22906 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
22907 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long_int" >&6
22908          echo "$as_me:$LINENO: checking for the minimal structure boundary of long long int" >&5
22909 echo $ECHO_N "checking for the minimal structure boundary of long long int... $ECHO_C" >&6
22910
22911  if test "${ac_cv_struct_boundary_long_long_int+set}" = set; then
22912   echo $ECHO_N "(cached) $ECHO_C" >&6
22913 else
22914   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22915    cat >conftest.$ac_ext <<_ACEOF
22916 /* confdefs.h.  */
22917 _ACEOF
22918 cat confdefs.h >>conftest.$ac_ext
22919 cat >>conftest.$ac_ext <<_ACEOF
22920 /* end confdefs.h.  */
22921 #include "confdefs.h"
22922      #include <sys/types.h>
22923      struct s { char c; long long int i; };
22924
22925 int
22926 main ()
22927 {
22928 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long long int)):;
22929   ;
22930   return 0;
22931 }
22932 _ACEOF
22933 rm -f conftest.$ac_objext
22934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22935   (eval $ac_compile) 2>conftest.er1
22936   ac_status=$?
22937   grep -v '^ *+' conftest.er1 >conftest.err
22938   rm -f conftest.er1
22939   cat conftest.err >&5
22940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22941   (exit $ac_status); } &&
22942          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22944   (eval $ac_try) 2>&5
22945   ac_status=$?
22946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22947   (exit $ac_status); }; } &&
22948          { ac_try='test -s conftest.$ac_objext'
22949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22950   (eval $ac_try) 2>&5
22951   ac_status=$?
22952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22953   (exit $ac_status); }; }; then
22954   ac_cv_struct_boundary_long_long_int=$ac_size
22955 else
22956   echo "$as_me: failed program was:" >&5
22957 sed 's/^/| /' conftest.$ac_ext >&5
22958
22959 fi
22960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22961    if test x$ac_cv_struct_boundary_long_long_int != x ; then break; fi
22962   done
22963
22964 fi
22965
22966  echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_long_int" >&5
22967 echo "${ECHO_T}$ac_cv_struct_boundary_long_long_int" >&6
22968  if test x$ac_cv_struct_boundary_long_long_int = x ; then
22969    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long long int in structures" >&5
22970 echo "$as_me: error: Cannot determine the minimal alignment boundary of long long int in structures" >&2;}
22971    { (exit 1); exit 1; }; }
22972  fi
22973
22974
22975     echo "$as_me:$LINENO: checking for the minimal structure boundary of float" >&5
22976 echo $ECHO_N "checking for the minimal structure boundary of float... $ECHO_C" >&6
22977
22978  if test "${ac_cv_struct_boundary_float+set}" = set; then
22979   echo $ECHO_N "(cached) $ECHO_C" >&6
22980 else
22981   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22982    cat >conftest.$ac_ext <<_ACEOF
22983 /* confdefs.h.  */
22984 _ACEOF
22985 cat confdefs.h >>conftest.$ac_ext
22986 cat >>conftest.$ac_ext <<_ACEOF
22987 /* end confdefs.h.  */
22988 #include "confdefs.h"
22989      #include <sys/types.h>
22990      struct s { char c; float i; };
22991
22992 int
22993 main ()
22994 {
22995 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(float)):;
22996   ;
22997   return 0;
22998 }
22999 _ACEOF
23000 rm -f conftest.$ac_objext
23001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23002   (eval $ac_compile) 2>conftest.er1
23003   ac_status=$?
23004   grep -v '^ *+' conftest.er1 >conftest.err
23005   rm -f conftest.er1
23006   cat conftest.err >&5
23007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23008   (exit $ac_status); } &&
23009          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23011   (eval $ac_try) 2>&5
23012   ac_status=$?
23013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23014   (exit $ac_status); }; } &&
23015          { ac_try='test -s conftest.$ac_objext'
23016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23017   (eval $ac_try) 2>&5
23018   ac_status=$?
23019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23020   (exit $ac_status); }; }; then
23021   ac_cv_struct_boundary_float=$ac_size
23022 else
23023   echo "$as_me: failed program was:" >&5
23024 sed 's/^/| /' conftest.$ac_ext >&5
23025
23026 fi
23027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23028    if test x$ac_cv_struct_boundary_float != x ; then break; fi
23029   done
23030
23031 fi
23032
23033  echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_float" >&5
23034 echo "${ECHO_T}$ac_cv_struct_boundary_float" >&6
23035  if test x$ac_cv_struct_boundary_float = x ; then
23036    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of float in structures" >&5
23037 echo "$as_me: error: Cannot determine the minimal alignment boundary of float in structures" >&2;}
23038    { (exit 1); exit 1; }; }
23039  fi
23040                echo "$as_me:$LINENO: checking for the minimal structure boundary of double" >&5
23041 echo $ECHO_N "checking for the minimal structure boundary of double... $ECHO_C" >&6
23042
23043  if test "${ac_cv_struct_boundary_double+set}" = set; then
23044   echo $ECHO_N "(cached) $ECHO_C" >&6
23045 else
23046   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23047    cat >conftest.$ac_ext <<_ACEOF
23048 /* confdefs.h.  */
23049 _ACEOF
23050 cat confdefs.h >>conftest.$ac_ext
23051 cat >>conftest.$ac_ext <<_ACEOF
23052 /* end confdefs.h.  */
23053 #include "confdefs.h"
23054      #include <sys/types.h>
23055      struct s { char c; double i; };
23056
23057 int
23058 main ()
23059 {
23060 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(double)):;
23061   ;
23062   return 0;
23063 }
23064 _ACEOF
23065 rm -f conftest.$ac_objext
23066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23067   (eval $ac_compile) 2>conftest.er1
23068   ac_status=$?
23069   grep -v '^ *+' conftest.er1 >conftest.err
23070   rm -f conftest.er1
23071   cat conftest.err >&5
23072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23073   (exit $ac_status); } &&
23074          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23076   (eval $ac_try) 2>&5
23077   ac_status=$?
23078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23079   (exit $ac_status); }; } &&
23080          { ac_try='test -s conftest.$ac_objext'
23081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23082   (eval $ac_try) 2>&5
23083   ac_status=$?
23084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23085   (exit $ac_status); }; }; then
23086   ac_cv_struct_boundary_double=$ac_size
23087 else
23088   echo "$as_me: failed program was:" >&5
23089 sed 's/^/| /' conftest.$ac_ext >&5
23090
23091 fi
23092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23093    if test x$ac_cv_struct_boundary_double != x ; then break; fi
23094   done
23095
23096 fi
23097
23098  echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_double" >&5
23099 echo "${ECHO_T}$ac_cv_struct_boundary_double" >&6
23100  if test x$ac_cv_struct_boundary_double = x ; then
23101    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of double in structures" >&5
23102 echo "$as_me: error: Cannot determine the minimal alignment boundary of double in structures" >&2;}
23103    { (exit 1); exit 1; }; }
23104  fi
23105
23106
23107 echo "$as_me:$LINENO: checking size of void *" >&5
23108 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
23109     if test "${ac_cv_sizeof_void_p+set}" = set; then
23110   echo $ECHO_N "(cached) $ECHO_C" >&6
23111 else
23112   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23113    cat >conftest.$ac_ext <<_ACEOF
23114 /* confdefs.h.  */
23115 _ACEOF
23116 cat confdefs.h >>conftest.$ac_ext
23117 cat >>conftest.$ac_ext <<_ACEOF
23118 /* end confdefs.h.  */
23119 #include "confdefs.h"
23120    #include <sys/types.h>
23121
23122
23123 int
23124 main ()
23125 {
23126 switch (0) case 0: case (sizeof (void *) == $ac_size):;
23127   ;
23128   return 0;
23129 }
23130 _ACEOF
23131 rm -f conftest.$ac_objext
23132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23133   (eval $ac_compile) 2>conftest.er1
23134   ac_status=$?
23135   grep -v '^ *+' conftest.er1 >conftest.err
23136   rm -f conftest.er1
23137   cat conftest.err >&5
23138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23139   (exit $ac_status); } &&
23140          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23142   (eval $ac_try) 2>&5
23143   ac_status=$?
23144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23145   (exit $ac_status); }; } &&
23146          { ac_try='test -s conftest.$ac_objext'
23147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23148   (eval $ac_try) 2>&5
23149   ac_status=$?
23150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23151   (exit $ac_status); }; }; then
23152   ac_cv_sizeof_void_p=$ac_size
23153 else
23154   echo "$as_me: failed program was:" >&5
23155 sed 's/^/| /' conftest.$ac_ext >&5
23156
23157 fi
23158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23159    if test x$ac_cv_sizeof_void_p != x ; then break; fi
23160   done
23161
23162 fi
23163
23164
23165 if test x$ac_cv_sizeof_void_p = x ; then
23166   { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
23167 echo "$as_me: error: cannot determine a size for void *" >&2;}
23168    { (exit 1); exit 1; }; }
23169 fi
23170 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
23171 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
23172                  echo "$as_me:$LINENO: checking for the minimal structure boundary of void *" >&5
23173 echo $ECHO_N "checking for the minimal structure boundary of void *... $ECHO_C" >&6
23174
23175  if test "${ac_cv_struct_boundary_void_p+set}" = set; then
23176   echo $ECHO_N "(cached) $ECHO_C" >&6
23177 else
23178   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23179    cat >conftest.$ac_ext <<_ACEOF
23180 /* confdefs.h.  */
23181 _ACEOF
23182 cat confdefs.h >>conftest.$ac_ext
23183 cat >>conftest.$ac_ext <<_ACEOF
23184 /* end confdefs.h.  */
23185 #include "confdefs.h"
23186      #include <sys/types.h>
23187      struct s { char c; void * i; };
23188
23189 int
23190 main ()
23191 {
23192 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(void *)):;
23193   ;
23194   return 0;
23195 }
23196 _ACEOF
23197 rm -f conftest.$ac_objext
23198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23199   (eval $ac_compile) 2>conftest.er1
23200   ac_status=$?
23201   grep -v '^ *+' conftest.er1 >conftest.err
23202   rm -f conftest.er1
23203   cat conftest.err >&5
23204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23205   (exit $ac_status); } &&
23206          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23208   (eval $ac_try) 2>&5
23209   ac_status=$?
23210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23211   (exit $ac_status); }; } &&
23212          { ac_try='test -s conftest.$ac_objext'
23213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23214   (eval $ac_try) 2>&5
23215   ac_status=$?
23216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23217   (exit $ac_status); }; }; then
23218   ac_cv_struct_boundary_void_p=$ac_size
23219 else
23220   echo "$as_me: failed program was:" >&5
23221 sed 's/^/| /' conftest.$ac_ext >&5
23222
23223 fi
23224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23225    if test x$ac_cv_struct_boundary_void_p != x ; then break; fi
23226   done
23227
23228 fi
23229
23230  echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_void_p" >&5
23231 echo "${ECHO_T}$ac_cv_struct_boundary_void_p" >&6
23232  if test x$ac_cv_struct_boundary_void_p = x ; then
23233    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of void * in structures" >&5
23234 echo "$as_me: error: Cannot determine the minimal alignment boundary of void * in structures" >&2;}
23235    { (exit 1); exit 1; }; }
23236  fi
23237
23238 echo "$as_me:$LINENO: checking size of void (*) (void)" >&5
23239 echo $ECHO_N "checking size of void (*) (void)... $ECHO_C" >&6
23240     if test "${ac_cv_sizeof_void_LpR_LvoidR+set}" = set; then
23241   echo $ECHO_N "(cached) $ECHO_C" >&6
23242 else
23243   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23244    cat >conftest.$ac_ext <<_ACEOF
23245 /* confdefs.h.  */
23246 _ACEOF
23247 cat confdefs.h >>conftest.$ac_ext
23248 cat >>conftest.$ac_ext <<_ACEOF
23249 /* end confdefs.h.  */
23250 #include "confdefs.h"
23251    #include <sys/types.h>
23252
23253
23254 int
23255 main ()
23256 {
23257 switch (0) case 0: case (sizeof (void (*) (void)) == $ac_size):;
23258   ;
23259   return 0;
23260 }
23261 _ACEOF
23262 rm -f conftest.$ac_objext
23263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23264   (eval $ac_compile) 2>conftest.er1
23265   ac_status=$?
23266   grep -v '^ *+' conftest.er1 >conftest.err
23267   rm -f conftest.er1
23268   cat conftest.err >&5
23269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23270   (exit $ac_status); } &&
23271          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23273   (eval $ac_try) 2>&5
23274   ac_status=$?
23275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23276   (exit $ac_status); }; } &&
23277          { ac_try='test -s conftest.$ac_objext'
23278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23279   (eval $ac_try) 2>&5
23280   ac_status=$?
23281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23282   (exit $ac_status); }; }; then
23283   ac_cv_sizeof_void_LpR_LvoidR=$ac_size
23284 else
23285   echo "$as_me: failed program was:" >&5
23286 sed 's/^/| /' conftest.$ac_ext >&5
23287
23288 fi
23289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23290    if test x$ac_cv_sizeof_void_LpR_LvoidR != x ; then break; fi
23291   done
23292
23293 fi
23294
23295
23296 if test x$ac_cv_sizeof_void_LpR_LvoidR = x ; then
23297   { { echo "$as_me:$LINENO: error: cannot determine a size for void (*) (void)" >&5
23298 echo "$as_me: error: cannot determine a size for void (*) (void)" >&2;}
23299    { (exit 1); exit 1; }; }
23300 fi
23301 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_LpR_LvoidR" >&5
23302 echo "${ECHO_T}$ac_cv_sizeof_void_LpR_LvoidR" >&6
23303
23304
23305
23306 echo "$as_me:$LINENO: checking the GRAS signature of this architecture" >&5
23307 echo $ECHO_N "checking the GRAS signature of this architecture... $ECHO_C" >&6
23308 if test x$endian = x1 ; then
23309   trace_endian=B
23310 else
23311   trace_endian=l
23312 fi
23313 gras_arch=unknown
23314 trace="$trace_endian"
23315
23316 trace="${trace}_C:${ac_cv_sizeof_char}/${ac_cv_struct_boundary_char}:"
23317
23318 trace="${trace}_I:${ac_cv_sizeof_short_int}/${ac_cv_struct_boundary_short_int}"
23319 trace="${trace}:${ac_cv_sizeof_int}/${ac_cv_struct_boundary_int}"
23320 trace="${trace}:${ac_cv_sizeof_long_int}/${ac_cv_struct_boundary_long_int}"
23321 trace="${trace}:${ac_cv_sizeof_long_long_int}/${ac_cv_struct_boundary_long_long_int}:"
23322
23323 trace="${trace}_P:${ac_cv_sizeof_void_p}/${ac_cv_struct_boundary_void_p}"
23324 trace="${trace}:${ac_cv_sizeof_void_LpR_LvoidR}/${ac_cv_struct_boundary_void_p}:"
23325
23326 trace="${trace}_D:4/${ac_cv_struct_boundary_float}:8/${ac_cv_struct_boundary_double}:"
23327
23328 # sizeof float/double are not tested since IEEE 754 is assumed.
23329 # Check README.IEEE for rational.
23330
23331 # The numbers after the _ in the arch name are the maximal packing boundary.
23332 # big32_2   means that all data are aligned on a 2 bytes boundary.              (ARM)
23333 # big32_8_4 means that some or them are aligned on 8 bytes, some are on 4 bytes (AIX)
23334 case $trace in
23335   l_C:1/1:_I:2/1:4/1:4/1:8/1:_P:4/1:4/1:_D:4/1:8/1:) gras_arch=0; gras_arch_name=little32_1;;
23336   l_C:1/1:_I:2/2:4/2:4/2:8/2:_P:4/2:4/2:_D:4/2:8/2:) gras_arch=1; gras_arch_name=little32_2;;
23337   l_C:1/1:_I:2/2:4/4:4/4:8/4:_P:4/4:4/4:_D:4/4:8/4:) gras_arch=2; gras_arch_name=little32_4;;
23338   l_C:1/1:_I:2/2:4/4:4/4:8/8:_P:4/4:4/4:_D:4/4:8/8:) gras_arch=3; gras_arch_name=little32_8;;
23339
23340   l_C:1/1:_I:2/2:4/4:8/8:8/8:_P:8/8:8/8:_D:4/4:8/8:) gras_arch=4; gras_arch_name=little64;;
23341
23342   B_C:1/1:_I:2/2:4/4:4/4:8/8:_P:4/4:4/4:_D:4/4:8/8:) gras_arch=5; gras_arch_name=big32;;
23343   B_C:1/1:_I:2/2:4/4:4/4:8/8:_P:4/4:4/4:_D:4/4:8/4:) gras_arch=6; gras_arch_name=big32_8_4;;
23344   B_C:1/1:_I:2/2:4/4:4/4:8/4:_P:4/4:4/4:_D:4/4:8/4:) gras_arch=7; gras_arch_name=big32_4;;
23345   B_C:1/1:_I:2/2:4/2:4/2:8/2:_P:4/2:4/2:_D:4/2:8/2:) gras_arch=8; gras_arch_name=big32_2;;
23346
23347   B_C:1/1:_I:2/2:4/4:8/8:8/8:_P:8/8:8/8:_D:4/4:8/8:) gras_arch=9; gras_arch_name=big64;;
23348   B_C:1/1:_I:2/2:4/4:8/8:8/8:_P:8/8:8/8:_D:4/4:8/4:) gras_arch=10;gras_arch_name=big64_8_4;;
23349 esac
23350 if test x$gras_arch = xunknown ; then
23351   echo "$as_me:$LINENO: result: damnit ($trace)" >&5
23352 echo "${ECHO_T}damnit ($trace)" >&6
23353   { { echo "$as_me:$LINENO: error: Impossible to determine the GRAS architecture signature.
23354 Please report this architecture trace ($trace) and what it corresponds to." >&5
23355 echo "$as_me: error: Impossible to determine the GRAS architecture signature.
23356 Please report this architecture trace ($trace) and what it corresponds to." >&2;}
23357    { (exit 1); exit 1; }; }
23358 fi
23359 echo "$as_me:$LINENO: GRAS trace of this machine: $trace" >&5
23360
23361 cat >>confdefs.h <<_ACEOF
23362 #define GRAS_THISARCH $gras_arch
23363 _ACEOF
23364
23365 echo "$as_me:$LINENO: result: $gras_arch ($gras_arch_name)" >&5
23366 echo "${ECHO_T}$gras_arch ($gras_arch_name)" >&6
23367
23368 echo "$as_me:$LINENO: checking the maximal size of scalar" >&5
23369 echo $ECHO_N "checking the maximal size of scalar... $ECHO_C" >&6
23370 ac_cv_sizeof_max=0
23371 for s in $ac_cv_sizeof_char \
23372          $ac_cv_sizeof_short_int $ac_cv_sizeof_int $ac_cv_sizeof_long_int $ac_cv_sizeof_long_long_int \
23373          $ac_cv_sizeof_void_p $ac_cv_sizeof_void_LpR_LvoidR \
23374          4 8; do
23375
23376   if test $ac_cv_sizeof_max -lt $s ; then
23377     ac_cv_sizeof_max=$s
23378   fi
23379 done
23380 echo "$as_me:$LINENO: result: $ac_cv_sizeof_max" >&5
23381 echo "${ECHO_T}$ac_cv_sizeof_max" >&6
23382
23383 cat >>confdefs.h <<_ACEOF
23384 #define SIZEOF_MAX $ac_cv_sizeof_max
23385 _ACEOF
23386
23387
23388
23389 # Check architecture signature end
23390   echo "$as_me:$LINENO: checking whether the struct gets packed" >&5
23391 echo $ECHO_N "checking whether the struct gets packed... $ECHO_C" >&6
23392    cat >conftest.$ac_ext <<_ACEOF
23393 /* confdefs.h.  */
23394 _ACEOF
23395 cat confdefs.h >>conftest.$ac_ext
23396 cat >>conftest.$ac_ext <<_ACEOF
23397 /* end confdefs.h.  */
23398 #include "confdefs.h"
23399         #include <sys/types.h>
23400         #include <stddef.h> /* offsetof() */
23401         struct s {char c; double d;};
23402
23403 int
23404 main ()
23405 {
23406 switch (0)
23407         case 0:
23408         case (sizeof(struct s) == sizeof(double)+sizeof(char)):;
23409
23410   ;
23411   return 0;
23412 }
23413 _ACEOF
23414 rm -f conftest.$ac_objext
23415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23416   (eval $ac_compile) 2>conftest.er1
23417   ac_status=$?
23418   grep -v '^ *+' conftest.er1 >conftest.err
23419   rm -f conftest.er1
23420   cat conftest.err >&5
23421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23422   (exit $ac_status); } &&
23423          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23425   (eval $ac_try) 2>&5
23426   ac_status=$?
23427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23428   (exit $ac_status); }; } &&
23429          { ac_try='test -s conftest.$ac_objext'
23430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23431   (eval $ac_try) 2>&5
23432   ac_status=$?
23433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23434   (exit $ac_status); }; }; then
23435   gras_struct_packed=yes
23436 else
23437   echo "$as_me: failed program was:" >&5
23438 sed 's/^/| /' conftest.$ac_ext >&5
23439
23440 gras_struct_packed=no
23441 fi
23442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23443
23444    echo "$as_me:$LINENO: result: $gras_struct_packed" >&5
23445 echo "${ECHO_T}$gras_struct_packed" >&6
23446    if test x$gras_struct_packed = "xyes" ; then
23447      { { echo "$as_me:$LINENO: error: GRAS does not support packed structures since it leads to nasty misalignments" >&5
23448 echo "$as_me: error: GRAS does not support packed structures since it leads to nasty misalignments" >&2;}
23449    { (exit 1); exit 1; }; }
23450    fi
23451
23452    echo "$as_me:$LINENO: checking whether the struct gets compacted" >&5
23453 echo $ECHO_N "checking whether the struct gets compacted... $ECHO_C" >&6
23454    cat >conftest.$ac_ext <<_ACEOF
23455 /* confdefs.h.  */
23456 _ACEOF
23457 cat confdefs.h >>conftest.$ac_ext
23458 cat >>conftest.$ac_ext <<_ACEOF
23459 /* end confdefs.h.  */
23460 #include "confdefs.h"
23461         #include <sys/types.h>
23462         #include <stddef.h> /* offsetof() */
23463         struct s {double d; int i; char c;};
23464
23465 int
23466 main ()
23467 {
23468 switch (0)
23469         case 0:
23470         case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
23471
23472   ;
23473   return 0;
23474 }
23475 _ACEOF
23476 rm -f conftest.$ac_objext
23477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23478   (eval $ac_compile) 2>conftest.er1
23479   ac_status=$?
23480   grep -v '^ *+' conftest.er1 >conftest.err
23481   rm -f conftest.er1
23482   cat conftest.err >&5
23483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23484   (exit $ac_status); } &&
23485          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23487   (eval $ac_try) 2>&5
23488   ac_status=$?
23489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23490   (exit $ac_status); }; } &&
23491          { ac_try='test -s conftest.$ac_objext'
23492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23493   (eval $ac_try) 2>&5
23494   ac_status=$?
23495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23496   (exit $ac_status); }; }; then
23497   gras_struct_compact=yes
23498 else
23499   echo "$as_me: failed program was:" >&5
23500 sed 's/^/| /' conftest.$ac_ext >&5
23501
23502 gras_struct_compact=no
23503 fi
23504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23505
23506    echo "$as_me:$LINENO: result: $gras_struct_compact" >&5
23507 echo "${ECHO_T}$gras_struct_compact" >&6
23508
23509    if test x$gras_struct_compact != xyes ; then
23510      { { echo "$as_me:$LINENO: error: GRAS works only on structure compacting architectures (yet)" >&5
23511 echo "$as_me: error: GRAS works only on structure compacting architectures (yet)" >&2;}
23512    { (exit 1); exit 1; }; }
23513    fi
23514
23515 cat >>confdefs.h <<_ACEOF
23516 #define GRAS_STRUCT_COMPACT 1
23517 _ACEOF
23518
23519    echo "$as_me:$LINENO: checking whether arrays can straddle struct alignment boundaries" >&5
23520 echo $ECHO_N "checking whether arrays can straddle struct alignment boundaries... $ECHO_C" >&6
23521
23522    cat >conftest.$ac_ext <<_ACEOF
23523 /* confdefs.h.  */
23524 _ACEOF
23525 cat confdefs.h >>conftest.$ac_ext
23526 cat >>conftest.$ac_ext <<_ACEOF
23527 /* end confdefs.h.  */
23528 #include "confdefs.h"
23529       #include <sys/types.h>
23530         #include <stddef.h> /* offsetof() */
23531         struct s { double d; int i; char c[6]; };
23532
23533 int
23534 main ()
23535 {
23536 switch (0)
23537       case 0:
23538       case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
23539
23540   ;
23541   return 0;
23542 }
23543 _ACEOF
23544 rm -f conftest.$ac_objext
23545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23546   (eval $ac_compile) 2>conftest.er1
23547   ac_status=$?
23548   grep -v '^ *+' conftest.er1 >conftest.err
23549   rm -f conftest.er1
23550   cat conftest.err >&5
23551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23552   (exit $ac_status); } &&
23553          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23555   (eval $ac_try) 2>&5
23556   ac_status=$?
23557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23558   (exit $ac_status); }; } &&
23559          { ac_try='test -s conftest.$ac_objext'
23560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23561   (eval $ac_try) 2>&5
23562   ac_status=$?
23563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23564   (exit $ac_status); }; }; then
23565   gras_array_straddle_struct=yes
23566 else
23567   echo "$as_me: failed program was:" >&5
23568 sed 's/^/| /' conftest.$ac_ext >&5
23569
23570 gras_array_straddle_struct=no
23571 fi
23572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23573
23574    echo "$as_me:$LINENO: result: $gras_array_straddle_struct" >&5
23575 echo "${ECHO_T}$gras_array_straddle_struct" >&6
23576
23577    if test x$gras_array_straddle_struct = xyes ; then
23578
23579 cat >>confdefs.h <<_ACEOF
23580 #define GRAS_ARRAY_STRADDLE_STRUCT 1
23581 _ACEOF
23582
23583    else
23584      { { echo "$as_me:$LINENO: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&5
23585 echo "$as_me: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&2;}
23586    { (exit 1); exit 1; }; }
23587    fi
23588
23589
23590
23591
23592
23593   echo "$as_me:$LINENO: result: " >&5
23594 echo "${ECHO_T}" >&6
23595   echo "$as_me:$LINENO: result: ${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&5
23596 echo "${ECHO_T}${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&6
23597
23598
23599
23600
23601 echo "$as_me:$LINENO: checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)" >&5
23602 echo $ECHO_N "checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)... $ECHO_C" >&6
23603 if test "${ac_cv_check_mcsc+set}" = set; then
23604   echo $ECHO_N "(cached) $ECHO_C" >&6
23605 else
23606
23607 if test "$cross_compiling" = yes; then
23608   ac_cv_check_mcsc=no
23609
23610 else
23611   cat >conftest.$ac_ext <<_ACEOF
23612 /* confdefs.h.  */
23613 _ACEOF
23614 cat confdefs.h >>conftest.$ac_ext
23615 cat >>conftest.$ac_ext <<_ACEOF
23616 /* end confdefs.h.  */
23617
23618
23619 #include <stdio.h>
23620 #include <stdlib.h>
23621 #include <ucontext.h>
23622
23623 ucontext_t uc_child;
23624 ucontext_t uc_main;
23625
23626 void child(void *arg)
23627 {
23628     if (arg != (void *)12345)
23629         exit(1);
23630     if (swapcontext(&uc_child, &uc_main) != 0)
23631         exit(2);
23632 }
23633
23634 int main(int argc, char *argv[])
23635 {
23636     FILE *fp;
23637     void *stack;
23638
23639     /* the default is that it fails */
23640     if ((fp = fopen("conftestval", "w")) == NULL)
23641         exit(3);
23642     fprintf(fp, "no\n");
23643     fclose(fp);
23644
23645     /* configure a child user-space context */
23646     if ((stack = malloc(64*1024)) == NULL)
23647         exit(4);
23648     if (getcontext(&uc_child) != 0)
23649         exit(5);
23650     uc_child.uc_link = NULL;
23651     uc_child.uc_stack.ss_sp = (char *)stack+(32*1024);
23652     uc_child.uc_stack.ss_size = 32*1024;
23653     uc_child.uc_stack.ss_flags = 0;
23654     makecontext(&uc_child, child, 2, (void *)12345);
23655
23656     /* switch into the user context */
23657     if (swapcontext(&uc_main, &uc_child) != 0)
23658         exit(6);
23659
23660     /* Fine, child came home */
23661     if ((fp = fopen("conftestval", "w")) == NULL)
23662         exit(7);
23663     fprintf(fp, "yes\n");
23664     fclose(fp);
23665
23666     /* die successfully */
23667     exit(0);
23668 }
23669
23670 _ACEOF
23671 rm -f conftest$ac_exeext
23672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23673   (eval $ac_link) 2>&5
23674   ac_status=$?
23675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23676   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23678   (eval $ac_try) 2>&5
23679   ac_status=$?
23680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23681   (exit $ac_status); }; }; then
23682   ac_cv_check_mcsc=`cat conftestval`
23683 else
23684   echo "$as_me: program exited with status $ac_status" >&5
23685 echo "$as_me: failed program was:" >&5
23686 sed 's/^/| /' conftest.$ac_ext >&5
23687
23688 ( exit $ac_status )
23689 ac_cv_check_mcsc=no
23690 fi
23691 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23692 fi
23693 fi
23694 echo "$as_me:$LINENO: result: $ac_cv_check_mcsc" >&5
23695 echo "${ECHO_T}$ac_cv_check_mcsc" >&6
23696 if test ".$ac_cv_check_mcsc" = .yes; then
23697     mcsc=yes
23698 else
23699     mcsc=no
23700 fi
23701
23702
23703
23704 for ac_header in pthread.h
23705 do
23706 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23707 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23708   echo "$as_me:$LINENO: checking for $ac_header" >&5
23709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23711   echo $ECHO_N "(cached) $ECHO_C" >&6
23712 fi
23713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23714 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23715 else
23716   # Is the header compilable?
23717 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23718 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23719 cat >conftest.$ac_ext <<_ACEOF
23720 /* confdefs.h.  */
23721 _ACEOF
23722 cat confdefs.h >>conftest.$ac_ext
23723 cat >>conftest.$ac_ext <<_ACEOF
23724 /* end confdefs.h.  */
23725 $ac_includes_default
23726 #include <$ac_header>
23727 _ACEOF
23728 rm -f conftest.$ac_objext
23729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23730   (eval $ac_compile) 2>conftest.er1
23731   ac_status=$?
23732   grep -v '^ *+' conftest.er1 >conftest.err
23733   rm -f conftest.er1
23734   cat conftest.err >&5
23735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23736   (exit $ac_status); } &&
23737          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23739   (eval $ac_try) 2>&5
23740   ac_status=$?
23741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23742   (exit $ac_status); }; } &&
23743          { ac_try='test -s conftest.$ac_objext'
23744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23745   (eval $ac_try) 2>&5
23746   ac_status=$?
23747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23748   (exit $ac_status); }; }; then
23749   ac_header_compiler=yes
23750 else
23751   echo "$as_me: failed program was:" >&5
23752 sed 's/^/| /' conftest.$ac_ext >&5
23753
23754 ac_header_compiler=no
23755 fi
23756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23757 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23758 echo "${ECHO_T}$ac_header_compiler" >&6
23759
23760 # Is the header present?
23761 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23762 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23763 cat >conftest.$ac_ext <<_ACEOF
23764 /* confdefs.h.  */
23765 _ACEOF
23766 cat confdefs.h >>conftest.$ac_ext
23767 cat >>conftest.$ac_ext <<_ACEOF
23768 /* end confdefs.h.  */
23769 #include <$ac_header>
23770 _ACEOF
23771 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23772   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23773   ac_status=$?
23774   grep -v '^ *+' conftest.er1 >conftest.err
23775   rm -f conftest.er1
23776   cat conftest.err >&5
23777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23778   (exit $ac_status); } >/dev/null; then
23779   if test -s conftest.err; then
23780     ac_cpp_err=$ac_c_preproc_warn_flag
23781     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23782   else
23783     ac_cpp_err=
23784   fi
23785 else
23786   ac_cpp_err=yes
23787 fi
23788 if test -z "$ac_cpp_err"; then
23789   ac_header_preproc=yes
23790 else
23791   echo "$as_me: failed program was:" >&5
23792 sed 's/^/| /' conftest.$ac_ext >&5
23793
23794   ac_header_preproc=no
23795 fi
23796 rm -f conftest.err conftest.$ac_ext
23797 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23798 echo "${ECHO_T}$ac_header_preproc" >&6
23799
23800 # So?  What about this header?
23801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23802   yes:no: )
23803     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23804 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23805     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23806 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23807     ac_header_preproc=yes
23808     ;;
23809   no:yes:* )
23810     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23811 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23812     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23813 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23814     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23815 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23816     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23817 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23818     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23819 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23820     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23821 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23822     (
23823       cat <<\_ASBOX
23824 ## -------------------------------------------------- ##
23825 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
23826 ## -------------------------------------------------- ##
23827 _ASBOX
23828     ) |
23829       sed "s/^/$as_me: WARNING:     /" >&2
23830     ;;
23831 esac
23832 echo "$as_me:$LINENO: checking for $ac_header" >&5
23833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23835   echo $ECHO_N "(cached) $ECHO_C" >&6
23836 else
23837   eval "$as_ac_Header=\$ac_header_preproc"
23838 fi
23839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23840 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23841
23842 fi
23843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23844   cat >>confdefs.h <<_ACEOF
23845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23846 _ACEOF
23847
23848 fi
23849
23850 done
23851
23852 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
23853 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
23854 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
23855   echo $ECHO_N "(cached) $ECHO_C" >&6
23856 else
23857   ac_check_lib_save_LIBS=$LIBS
23858 LIBS="-lpthread  $LIBS"
23859 cat >conftest.$ac_ext <<_ACEOF
23860 /* confdefs.h.  */
23861 _ACEOF
23862 cat confdefs.h >>conftest.$ac_ext
23863 cat >>conftest.$ac_ext <<_ACEOF
23864 /* end confdefs.h.  */
23865
23866 /* Override any gcc2 internal prototype to avoid an error.  */
23867 #ifdef __cplusplus
23868 extern "C"
23869 #endif
23870 /* We use char because int might match the return type of a gcc2
23871    builtin and then its argument prototype would still apply.  */
23872 char pthread_create ();
23873 int
23874 main ()
23875 {
23876 pthread_create ();
23877   ;
23878   return 0;
23879 }
23880 _ACEOF
23881 rm -f conftest.$ac_objext conftest$ac_exeext
23882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23883   (eval $ac_link) 2>conftest.er1
23884   ac_status=$?
23885   grep -v '^ *+' conftest.er1 >conftest.err
23886   rm -f conftest.er1
23887   cat conftest.err >&5
23888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23889   (exit $ac_status); } &&
23890          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23892   (eval $ac_try) 2>&5
23893   ac_status=$?
23894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23895   (exit $ac_status); }; } &&
23896          { ac_try='test -s conftest$ac_exeext'
23897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23898   (eval $ac_try) 2>&5
23899   ac_status=$?
23900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23901   (exit $ac_status); }; }; then
23902   ac_cv_lib_pthread_pthread_create=yes
23903 else
23904   echo "$as_me: failed program was:" >&5
23905 sed 's/^/| /' conftest.$ac_ext >&5
23906
23907 ac_cv_lib_pthread_pthread_create=no
23908 fi
23909 rm -f conftest.err conftest.$ac_objext \
23910       conftest$ac_exeext conftest.$ac_ext
23911 LIBS=$ac_check_lib_save_LIBS
23912 fi
23913 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
23914 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
23915 if test $ac_cv_lib_pthread_pthread_create = yes; then
23916   pthread=yes
23917 else
23918   pthread=no
23919 fi
23920
23921
23922
23923 if test ".$mcsc" = .yes; then
23924    mcsc=yes
23925 elif test ".$pthread" = .yes; then
23926    pthread=yes
23927 else
23928     ac_header=windows.h
23929     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23930     if test `eval echo '${'$as_ac_Header'}'` = yes; then
23931       windows_context=yes
23932     else
23933       { { echo "$as_me:$LINENO: error: no appropriate backend found" >&5
23934 echo "$as_me: error: no appropriate backend found" >&2;}
23935    { (exit 1); exit 1; }; }
23936     fi
23937 fi
23938
23939
23940 echo "$as_me:$LINENO: checking what kind of backend should we use" >&5
23941 echo $ECHO_N "checking what kind of backend should we use... $ECHO_C" >&6
23942
23943
23944 # Check whether --with-pthread or --without-pthread was given.
23945 if test "${with_pthread+set}" = set; then
23946   withval="$with_pthread"
23947   with_context=pthread
23948 fi;
23949
23950 # Check whether --with-pthread or --without-pthread was given.
23951 if test "${with_pthread+set}" = set; then
23952   withval="$with_pthread"
23953   with_context=pthread
23954 fi;
23955
23956
23957 # Check whether --with-context or --without-context was given.
23958 if test "${with_context+set}" = set; then
23959   withval="$with_context"
23960
23961 else
23962   with_context=auto
23963 fi;
23964
23965 if test "x$with_context$mcsc" = "xucontextno" ; then
23966   { { echo "$as_me:$LINENO: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&5
23967 echo "$as_me: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&2;}
23968    { (exit 77); exit 77; }; }
23969 fi
23970
23971 case $with_context in
23972  ucontext) ;;
23973  pthread) ;;
23974  pthreads) ;;
23975  windows) ;;
23976  auto) with_context=ucontext;;
23977  *) { { echo "$as_me:$LINENO: error: --with-context must be either ucontext or pthread" >&5
23978 echo "$as_me: error: --with-context must be either ucontext or pthread" >&2;}
23979    { (exit 1); exit 1; }; } ;;
23980 esac
23981
23982 if test "x$with_context" = "xucontext" ; then
23983   if test ".$mcsc" = .yes; then
23984     echo "$as_me:$LINENO: result: found working ucontext. Great!" >&5
23985 echo "${ECHO_T}found working ucontext. Great!" >&6
23986
23987 cat >>confdefs.h <<\_ACEOF
23988 #define CONTEXT_UCONTEXT 1
23989 _ACEOF
23990
23991   else
23992     if test ".$windows_context" = .yes ; then
23993       echo "$as_me:$LINENO: result: use windows context portability layer." >&5
23994 echo "${ECHO_T}use windows context portability layer." >&6
23995       with_context=windows
23996     else
23997       echo "$as_me:$LINENO: result: no working ucontext found. Try pthreads as a fallback" >&5
23998 echo "${ECHO_T}no working ucontext found. Try pthreads as a fallback" >&6
23999       with_context=pthread
24000     fi
24001   fi
24002 fi
24003
24004 if test "x$with_context" = "xpthreads"; then
24005   with_context=pthread
24006 fi
24007 if test "x$with_context" = "xpthread"; then
24008
24009 for ac_header in pthread.h
24010 do
24011 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24012 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24013   echo "$as_me:$LINENO: checking for $ac_header" >&5
24014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24016   echo $ECHO_N "(cached) $ECHO_C" >&6
24017 fi
24018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24020 else
24021   # Is the header compilable?
24022 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24023 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24024 cat >conftest.$ac_ext <<_ACEOF
24025 /* confdefs.h.  */
24026 _ACEOF
24027 cat confdefs.h >>conftest.$ac_ext
24028 cat >>conftest.$ac_ext <<_ACEOF
24029 /* end confdefs.h.  */
24030 $ac_includes_default
24031 #include <$ac_header>
24032 _ACEOF
24033 rm -f conftest.$ac_objext
24034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24035   (eval $ac_compile) 2>conftest.er1
24036   ac_status=$?
24037   grep -v '^ *+' conftest.er1 >conftest.err
24038   rm -f conftest.er1
24039   cat conftest.err >&5
24040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24041   (exit $ac_status); } &&
24042          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24044   (eval $ac_try) 2>&5
24045   ac_status=$?
24046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24047   (exit $ac_status); }; } &&
24048          { ac_try='test -s conftest.$ac_objext'
24049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24050   (eval $ac_try) 2>&5
24051   ac_status=$?
24052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24053   (exit $ac_status); }; }; then
24054   ac_header_compiler=yes
24055 else
24056   echo "$as_me: failed program was:" >&5
24057 sed 's/^/| /' conftest.$ac_ext >&5
24058
24059 ac_header_compiler=no
24060 fi
24061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24062 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24063 echo "${ECHO_T}$ac_header_compiler" >&6
24064
24065 # Is the header present?
24066 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24067 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24068 cat >conftest.$ac_ext <<_ACEOF
24069 /* confdefs.h.  */
24070 _ACEOF
24071 cat confdefs.h >>conftest.$ac_ext
24072 cat >>conftest.$ac_ext <<_ACEOF
24073 /* end confdefs.h.  */
24074 #include <$ac_header>
24075 _ACEOF
24076 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24077   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24078   ac_status=$?
24079   grep -v '^ *+' conftest.er1 >conftest.err
24080   rm -f conftest.er1
24081   cat conftest.err >&5
24082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24083   (exit $ac_status); } >/dev/null; then
24084   if test -s conftest.err; then
24085     ac_cpp_err=$ac_c_preproc_warn_flag
24086     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24087   else
24088     ac_cpp_err=
24089   fi
24090 else
24091   ac_cpp_err=yes
24092 fi
24093 if test -z "$ac_cpp_err"; then
24094   ac_header_preproc=yes
24095 else
24096   echo "$as_me: failed program was:" >&5
24097 sed 's/^/| /' conftest.$ac_ext >&5
24098
24099   ac_header_preproc=no
24100 fi
24101 rm -f conftest.err conftest.$ac_ext
24102 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24103 echo "${ECHO_T}$ac_header_preproc" >&6
24104
24105 # So?  What about this header?
24106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24107   yes:no: )
24108     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24109 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24110     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24111 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24112     ac_header_preproc=yes
24113     ;;
24114   no:yes:* )
24115     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24116 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24117     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24118 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24119     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24120 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24121     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24122 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24123     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24125     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24126 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24127     (
24128       cat <<\_ASBOX
24129 ## -------------------------------------------------- ##
24130 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
24131 ## -------------------------------------------------- ##
24132 _ASBOX
24133     ) |
24134       sed "s/^/$as_me: WARNING:     /" >&2
24135     ;;
24136 esac
24137 echo "$as_me:$LINENO: checking for $ac_header" >&5
24138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24140   echo $ECHO_N "(cached) $ECHO_C" >&6
24141 else
24142   eval "$as_ac_Header=\$ac_header_preproc"
24143 fi
24144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24145 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24146
24147 fi
24148 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24149   cat >>confdefs.h <<_ACEOF
24150 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24151 _ACEOF
24152
24153 fi
24154
24155 done
24156
24157
24158 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24159 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
24160 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24161   echo $ECHO_N "(cached) $ECHO_C" >&6
24162 else
24163   ac_check_lib_save_LIBS=$LIBS
24164 LIBS="-lpthread  $LIBS"
24165 cat >conftest.$ac_ext <<_ACEOF
24166 /* confdefs.h.  */
24167 _ACEOF
24168 cat confdefs.h >>conftest.$ac_ext
24169 cat >>conftest.$ac_ext <<_ACEOF
24170 /* end confdefs.h.  */
24171
24172 /* Override any gcc2 internal prototype to avoid an error.  */
24173 #ifdef __cplusplus
24174 extern "C"
24175 #endif
24176 /* We use char because int might match the return type of a gcc2
24177    builtin and then its argument prototype would still apply.  */
24178 char pthread_create ();
24179 int
24180 main ()
24181 {
24182 pthread_create ();
24183   ;
24184   return 0;
24185 }
24186 _ACEOF
24187 rm -f conftest.$ac_objext conftest$ac_exeext
24188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24189   (eval $ac_link) 2>conftest.er1
24190   ac_status=$?
24191   grep -v '^ *+' conftest.er1 >conftest.err
24192   rm -f conftest.er1
24193   cat conftest.err >&5
24194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24195   (exit $ac_status); } &&
24196          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24198   (eval $ac_try) 2>&5
24199   ac_status=$?
24200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24201   (exit $ac_status); }; } &&
24202          { ac_try='test -s conftest$ac_exeext'
24203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24204   (eval $ac_try) 2>&5
24205   ac_status=$?
24206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24207   (exit $ac_status); }; }; then
24208   ac_cv_lib_pthread_pthread_create=yes
24209 else
24210   echo "$as_me: failed program was:" >&5
24211 sed 's/^/| /' conftest.$ac_ext >&5
24212
24213 ac_cv_lib_pthread_pthread_create=no
24214 fi
24215 rm -f conftest.err conftest.$ac_objext \
24216       conftest$ac_exeext conftest.$ac_ext
24217 LIBS=$ac_check_lib_save_LIBS
24218 fi
24219 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24220 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
24221 if test $ac_cv_lib_pthread_pthread_create = yes; then
24222   cat >>confdefs.h <<_ACEOF
24223 #define HAVE_LIBPTHREAD 1
24224 _ACEOF
24225
24226   LIBS="-lpthread $LIBS"
24227
24228 else
24229   { { echo "$as_me:$LINENO: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&5
24230 echo "$as_me: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&2;}
24231    { (exit 1); exit 1; }; }
24232 fi
24233
24234
24235 cat >>confdefs.h <<\_ACEOF
24236 #define CONTEXT_THREADS 1
24237 _ACEOF
24238
24239   echo "$as_me:$LINENO: result: You have pthreads. Let's use them." >&5
24240 echo "${ECHO_T}You have pthreads. Let's use them." >&6
24241 fi
24242
24243
24244 if test "x$with_context" = "xucontext" ; then
24245   echo "$as_me:$LINENO: checking for direction of stack growth" >&5
24246 echo $ECHO_N "checking for direction of stack growth... $ECHO_C" >&6
24247 if test "${ac_cv_check_stackgrowth+set}" = set; then
24248   echo $ECHO_N "(cached) $ECHO_C" >&6
24249 else
24250
24251 cross_compiling=no
24252 if test "$cross_compiling" = yes; then
24253   ac_cv_check_stackgrowth=down
24254
24255 else
24256   cat >conftest.$ac_ext <<_ACEOF
24257 /* confdefs.h.  */
24258 _ACEOF
24259 cat confdefs.h >>conftest.$ac_ext
24260 cat >>conftest.$ac_ext <<_ACEOF
24261 /* end confdefs.h.  */
24262
24263 #include <stdio.h>
24264 #include <stdlib.h>
24265 static int iterate = 10;
24266 static int growsdown(int *x)
24267 {
24268     auto int y;
24269     y = (x > &y);
24270     if (--iterate > 0)
24271         y = growsdown(&y);
24272     if (y != (x > &y))
24273         exit(1);
24274     return y;
24275 }
24276 int main(int argc, char *argv[])
24277 {
24278     FILE *f;
24279     auto int x;
24280     if ((f = fopen("conftestval", "w")) == NULL)
24281         exit(1);
24282     fprintf(f, "%s\n", growsdown(&x) ? "down" : "up");;
24283     fclose(f);
24284     exit(0);
24285 }
24286
24287
24288 _ACEOF
24289 rm -f conftest$ac_exeext
24290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24291   (eval $ac_link) 2>&5
24292   ac_status=$?
24293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24294   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24296   (eval $ac_try) 2>&5
24297   ac_status=$?
24298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24299   (exit $ac_status); }; }; then
24300   ac_cv_check_stackgrowth=`cat conftestval`
24301 else
24302   echo "$as_me: program exited with status $ac_status" >&5
24303 echo "$as_me: failed program was:" >&5
24304 sed 's/^/| /' conftest.$ac_ext >&5
24305
24306 ( exit $ac_status )
24307 ac_cv_check_stackgrowth=down
24308 fi
24309 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24310 fi
24311 fi
24312 echo "$as_me:$LINENO: result: $ac_cv_check_stackgrowth" >&5
24313 echo "${ECHO_T}$ac_cv_check_stackgrowth" >&6
24314 if test ".$ac_cv_check_stackgrowth" = ".down"; then
24315     val="-1"
24316 else
24317     val="+1"
24318 fi
24319
24320 cat >>confdefs.h <<_ACEOF
24321 #define PTH_STACKGROWTH $val
24322 _ACEOF
24323
24324
24325   if test ".$ac_cv_check_stackgrowth" = ".down"; then
24326       PTH_STACK_GROWTH="down"
24327   else
24328       PTH_STACK_GROWTH="up"
24329   fi
24330
24331
24332
24333
24334
24335
24336 for ac_func in makecontext
24337 do
24338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24339 echo "$as_me:$LINENO: checking for $ac_func" >&5
24340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24341 if eval "test \"\${$as_ac_var+set}\" = set"; then
24342   echo $ECHO_N "(cached) $ECHO_C" >&6
24343 else
24344   cat >conftest.$ac_ext <<_ACEOF
24345 /* confdefs.h.  */
24346 _ACEOF
24347 cat confdefs.h >>conftest.$ac_ext
24348 cat >>conftest.$ac_ext <<_ACEOF
24349 /* end confdefs.h.  */
24350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24351    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24352 #define $ac_func innocuous_$ac_func
24353
24354 /* System header to define __stub macros and hopefully few prototypes,
24355     which can conflict with char $ac_func (); below.
24356     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24357     <limits.h> exists even on freestanding compilers.  */
24358
24359 #ifdef __STDC__
24360 # include <limits.h>
24361 #else
24362 # include <assert.h>
24363 #endif
24364
24365 #undef $ac_func
24366
24367 /* Override any gcc2 internal prototype to avoid an error.  */
24368 #ifdef __cplusplus
24369 extern "C"
24370 {
24371 #endif
24372 /* We use char because int might match the return type of a gcc2
24373    builtin and then its argument prototype would still apply.  */
24374 char $ac_func ();
24375 /* The GNU C library defines this for functions which it implements
24376     to always fail with ENOSYS.  Some functions are actually named
24377     something starting with __ and the normal name is an alias.  */
24378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24379 choke me
24380 #else
24381 char (*f) () = $ac_func;
24382 #endif
24383 #ifdef __cplusplus
24384 }
24385 #endif
24386
24387 int
24388 main ()
24389 {
24390 return f != $ac_func;
24391   ;
24392   return 0;
24393 }
24394 _ACEOF
24395 rm -f conftest.$ac_objext conftest$ac_exeext
24396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24397   (eval $ac_link) 2>conftest.er1
24398   ac_status=$?
24399   grep -v '^ *+' conftest.er1 >conftest.err
24400   rm -f conftest.er1
24401   cat conftest.err >&5
24402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24403   (exit $ac_status); } &&
24404          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24406   (eval $ac_try) 2>&5
24407   ac_status=$?
24408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24409   (exit $ac_status); }; } &&
24410          { ac_try='test -s conftest$ac_exeext'
24411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24412   (eval $ac_try) 2>&5
24413   ac_status=$?
24414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24415   (exit $ac_status); }; }; then
24416   eval "$as_ac_var=yes"
24417 else
24418   echo "$as_me: failed program was:" >&5
24419 sed 's/^/| /' conftest.$ac_ext >&5
24420
24421 eval "$as_ac_var=no"
24422 fi
24423 rm -f conftest.err conftest.$ac_objext \
24424       conftest$ac_exeext conftest.$ac_ext
24425 fi
24426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24427 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24428 if test `eval echo '${'$as_ac_var'}'` = yes; then
24429   cat >>confdefs.h <<_ACEOF
24430 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24431 _ACEOF
24432
24433 fi
24434 done
24435
24436
24437 echo "$as_me:$LINENO: checking for stack setup via makecontext" >&5
24438 echo $ECHO_N "checking for stack setup via makecontext... $ECHO_C" >&6
24439 if test "${ac_cv_stacksetup_makecontext+set}" = set; then
24440   echo $ECHO_N "(cached) $ECHO_C" >&6
24441 else
24442
24443 if test ".$ac_cv_func_makecontext" = .no; then
24444         ac_cv_stacksetup_makecontext="N.A.:/*N.A.*/,/*N.A.*/"
24445 else
24446         OCFLAGS="$CFLAGS"
24447     CFLAGS="$CFLAGS -DTEST_makecontext"
24448     cross_compiling=no
24449         if test "$cross_compiling" = yes; then
24450
24451 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
24452
24453 else
24454   cat >conftest.$ac_ext <<_ACEOF
24455 /* confdefs.h.  */
24456 _ACEOF
24457 cat confdefs.h >>conftest.$ac_ext
24458 cat >>conftest.$ac_ext <<_ACEOF
24459 /* end confdefs.h.  */
24460
24461 #include <stdio.h>
24462 #include <stdlib.h>
24463 #include <string.h>
24464 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
24465 #include <sys/types.h>
24466 #include <signal.h>
24467 #include <unistd.h>
24468 #endif
24469 #if defined(TEST_makecontext)
24470 #include <ucontext.h>
24471 #endif
24472 union alltypes {
24473     long   l;
24474     double d;
24475     void  *vp;
24476     void (*fp)(void);
24477     char  *cp;
24478 };
24479 static volatile char *handler_addr = (char *)0xDEAD;
24480 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
24481 static volatile int handler_done = 0;
24482 void handler(int sig)
24483 {
24484     char garbage[1024];
24485     int i;
24486     auto int dummy;
24487     for (i = 0; i < 1024; i++)
24488         garbage[i] = 'X';
24489     handler_addr = (char *)&dummy;
24490     handler_done = 1;
24491     return;
24492 }
24493 #endif
24494 #if defined(TEST_makecontext)
24495 static ucontext_t uc_handler;
24496 static ucontext_t uc_main;
24497 void handler(void)
24498 {
24499     char garbage[1024];
24500     int i;
24501     auto int dummy;
24502     for (i = 0; i < 1024; i++)
24503         garbage[i] = 'X';
24504     handler_addr = (char *)&dummy;
24505     swapcontext(&uc_handler, &uc_main);
24506     return;
24507 }
24508 #endif
24509 int main(int argc, char *argv[])
24510 {
24511     FILE *f;
24512     char *skaddr;
24513     char *skbuf;
24514     int sksize;
24515     char result[1024];
24516     int i;
24517     sksize = 32768;
24518     skbuf = (char *)malloc(sksize*2+2*sizeof(union alltypes));
24519     if (skbuf == NULL)
24520         exit(1);
24521     for (i = 0; i < sksize*2+2*sizeof(union alltypes); i++)
24522         skbuf[i] = 'A';
24523     skaddr = skbuf+sizeof(union alltypes);
24524 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
24525     {
24526         struct sigaction sa;
24527 #if defined(TEST_sigstack)
24528         struct sigstack ss;
24529 #elif defined(TEST_sigaltstack) && defined(HAVE_STACK_T)
24530         stack_t ss;
24531 #else
24532         struct sigaltstack ss;
24533 #endif
24534 #if defined(TEST_sigstack)
24535         ss.ss_sp      = (void *)(skaddr + sksize);
24536         ss.ss_onstack = 0;
24537         if (sigstack(&ss, NULL) < 0)
24538             exit(1);
24539 #elif defined(TEST_sigaltstack)
24540         ss.ss_sp    = (void *)(skaddr + sksize);
24541         ss.ss_size  = sksize;
24542         ss.ss_flags = 0;
24543         if (sigaltstack(&ss, NULL) < 0)
24544             exit(1);
24545 #endif
24546         memset((void *)&sa, 0, sizeof(struct sigaction));
24547         sa.sa_handler = handler;
24548         sa.sa_flags = SA_ONSTACK;
24549         sigemptyset(&sa.sa_mask);
24550         sigaction(SIGUSR1, &sa, NULL);
24551         kill(getpid(), SIGUSR1);
24552         while (!handler_done)
24553             /*nop*/;
24554     }
24555 #endif
24556 #if defined(TEST_makecontext)
24557     {
24558         if (getcontext(&uc_handler) != 0)
24559             exit(1);
24560         uc_handler.uc_link = NULL;
24561         uc_handler.uc_stack.ss_sp    = (void *)(skaddr + sksize);
24562         uc_handler.uc_stack.ss_size  = sksize;
24563         uc_handler.uc_stack.ss_flags = 0;
24564         makecontext(&uc_handler, handler, 1);
24565         swapcontext(&uc_main, &uc_handler);
24566     }
24567 #endif
24568     if (handler_addr == (char *)0xDEAD)
24569         exit(1);
24570     if (handler_addr < skaddr+sksize) {
24571         /* stack was placed into lower area */
24572         if (*(skaddr+sksize) != 'A')
24573              sprintf(result, "(skaddr)+(sksize)-%d,(sksize)-%d",
24574                      sizeof(union alltypes), sizeof(union alltypes));
24575         else
24576              strcpy(result, "(skaddr)+(sksize),(sksize)");
24577     }
24578     else {
24579         /* stack was placed into higher area */
24580         if (*(skaddr+sksize*2) != 'A')
24581             sprintf(result, "(skaddr),(sksize)-%d", sizeof(union alltypes));
24582         else
24583             strcpy(result, "(skaddr),(sksize)");
24584     }
24585     if ((f = fopen("conftestval", "w")) == NULL)
24586         exit(1);
24587     fprintf(f, "%s\n", result);
24588     fclose(f);
24589     exit(0);
24590 }
24591
24592 _ACEOF
24593 rm -f conftest$ac_exeext
24594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24595   (eval $ac_link) 2>&5
24596   ac_status=$?
24597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24598   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24600   (eval $ac_try) 2>&5
24601   ac_status=$?
24602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24603   (exit $ac_status); }; }; then
24604
24605 ac_cv_stacksetup_makecontext=`cat conftestval`
24606 ac_cv_stacksetup_makecontext="ok:$ac_cv_stacksetup_makecontext"
24607
24608 else
24609   echo "$as_me: program exited with status $ac_status" >&5
24610 echo "$as_me: failed program was:" >&5
24611 sed 's/^/| /' conftest.$ac_ext >&5
24612
24613 ( exit $ac_status )
24614
24615 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
24616
24617 fi
24618 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24619 fi
24620 CFLAGS="$OCFLAGS"
24621
24622 fi
24623 fi
24624 type=`echo $ac_cv_stacksetup_makecontext | sed -e 's;:.*$;;'`
24625 addr=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;,.*$;;'`
24626 size=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;^.*,;;'`
24627 pth_skaddr_makecontext="#define pth_skaddr_makecontext(skaddr,sksize) ($addr)"
24628 pth_sksize_makecontext="#define pth_sksize_makecontext(skaddr,sksize) ($size)"
24629 echo "$as_me:$LINENO: result: $type" >&5
24630 echo "${ECHO_T}$type" >&6
24631 if test ".$verbose" = .yes; then
24632     echo "$as_me:$LINENO: result:   $pth_skaddr_makecontext" >&5
24633 echo "${ECHO_T}  $pth_skaddr_makecontext" >&6
24634 fi
24635
24636 if test ".$verbose" = .yes; then
24637     echo "$as_me:$LINENO: result:   $pth_sksize_makecontext" >&5
24638 echo "${ECHO_T}  $pth_sksize_makecontext" >&6
24639 fi
24640
24641
24642 fi
24643
24644
24645 #########################################
24646 ## Build optional modules (simix)
24647 ##
24648
24649   echo "$as_me:$LINENO: result: " >&5
24650 echo "${ECHO_T}" >&6
24651   echo "$as_me:$LINENO: result: ${T_MD}Optional modules${T_ME}" >&5
24652 echo "${ECHO_T}${T_MD}Optional modules${T_ME}" >&6
24653
24654 # Check whether --enable-simix or --disable-simix was given.
24655 if test "${enable_simix+set}" = set; then
24656   enableval="$enable_simix"
24657   enable_simix=$enableval
24658 else
24659   enable_simix=no
24660 fi;
24661 if test "x$enable_simix" = "xyes" ; then
24662   echo "$as_me:$LINENO: result: \"***** You have decided to use the experimental SimIX. We hope you know what you're doing.. ****\"" >&5
24663 echo "${ECHO_T}\"***** You have decided to use the experimental SimIX. We hope you know what you're doing.. ****\"" >&6
24664
24665 cat >>confdefs.h <<\_ACEOF
24666 #define USE_SIMIX 1
24667 _ACEOF
24668
24669 else
24670   echo "$as_me:$LINENO: result: Eventually you will come to SimIX: x$enable_simix" >&5
24671 echo "${ECHO_T}Eventually you will come to SimIX: x$enable_simix" >&6
24672 fi
24673
24674
24675 if test x$enable_simix != xno; then
24676   USE_SIMIX_TRUE=
24677   USE_SIMIX_FALSE='#'
24678 else
24679   USE_SIMIX_TRUE='#'
24680   USE_SIMIX_FALSE=
24681 fi
24682
24683
24684 #########################################
24685 ## Check for libraries extra-dependencies
24686 ##
24687
24688
24689   echo "$as_me:$LINENO: result: " >&5
24690 echo "${ECHO_T}" >&6
24691   echo "$as_me:$LINENO: result: ${T_MD}Checking extra libraries dependencies...${T_ME}" >&5
24692 echo "${ECHO_T}${T_MD}Checking extra libraries dependencies...${T_ME}" >&6
24693
24694
24695 SIMGRID_DEP=""
24696 GRAS_DEP=""
24697 if test xpthread=xyes ; then
24698   # if the pthreads are usable
24699   if test "x$with_context" = "xpthread" ; then
24700     # if we use them to implement the xbt_context
24701     SIMGRID_DEP="-lpthread"
24702   fi
24703   # we need them in any case for the gras lib (which is multithreaded)
24704   GRAS_DEP="-lpthread"
24705 fi
24706
24707 echo "$as_me:$LINENO: checking for csdp" >&5
24708 echo $ECHO_N "checking for csdp... $ECHO_C" >&6
24709 sdp=no
24710 echo "$as_me:$LINENO: checking for sdp in -lsdp" >&5
24711 echo $ECHO_N "checking for sdp in -lsdp... $ECHO_C" >&6
24712 if test "${ac_cv_lib_sdp_sdp+set}" = set; then
24713   echo $ECHO_N "(cached) $ECHO_C" >&6
24714 else
24715   ac_check_lib_save_LIBS=$LIBS
24716 LIBS="-lsdp -llapack -lblas -lm $LIBS"
24717 cat >conftest.$ac_ext <<_ACEOF
24718 /* confdefs.h.  */
24719 _ACEOF
24720 cat confdefs.h >>conftest.$ac_ext
24721 cat >>conftest.$ac_ext <<_ACEOF
24722 /* end confdefs.h.  */
24723
24724 /* Override any gcc2 internal prototype to avoid an error.  */
24725 #ifdef __cplusplus
24726 extern "C"
24727 #endif
24728 /* We use char because int might match the return type of a gcc2
24729    builtin and then its argument prototype would still apply.  */
24730 char sdp ();
24731 int
24732 main ()
24733 {
24734 sdp ();
24735   ;
24736   return 0;
24737 }
24738 _ACEOF
24739 rm -f conftest.$ac_objext conftest$ac_exeext
24740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24741   (eval $ac_link) 2>conftest.er1
24742   ac_status=$?
24743   grep -v '^ *+' conftest.er1 >conftest.err
24744   rm -f conftest.er1
24745   cat conftest.err >&5
24746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24747   (exit $ac_status); } &&
24748          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24750   (eval $ac_try) 2>&5
24751   ac_status=$?
24752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24753   (exit $ac_status); }; } &&
24754          { ac_try='test -s conftest$ac_exeext'
24755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24756   (eval $ac_try) 2>&5
24757   ac_status=$?
24758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24759   (exit $ac_status); }; }; then
24760   ac_cv_lib_sdp_sdp=yes
24761 else
24762   echo "$as_me: failed program was:" >&5
24763 sed 's/^/| /' conftest.$ac_ext >&5
24764
24765 ac_cv_lib_sdp_sdp=no
24766 fi
24767 rm -f conftest.err conftest.$ac_objext \
24768       conftest$ac_exeext conftest.$ac_ext
24769 LIBS=$ac_check_lib_save_LIBS
24770 fi
24771 echo "$as_me:$LINENO: result: $ac_cv_lib_sdp_sdp" >&5
24772 echo "${ECHO_T}$ac_cv_lib_sdp_sdp" >&6
24773 if test $ac_cv_lib_sdp_sdp = yes; then
24774   csdp=yes
24775 else
24776   csdp=no
24777 fi
24778
24779 if test "x$csdp" = xyes; then
24780   SIMGRID_DEP="$SIMGRID_DEP -lsdp -llapack -lblas -lm"
24781   echo "$as_me:$LINENO: result: Found working sdp library." >&5
24782 echo "${ECHO_T}Found working sdp library." >&6
24783
24784 cat >>confdefs.h <<\_ACEOF
24785 #define HAVE_SDP 1
24786 _ACEOF
24787
24788 else
24789   echo "$as_me:$LINENO: result: Could not find any working sdp library." >&5
24790 echo "${ECHO_T}Could not find any working sdp library." >&6
24791 fi;
24792
24793
24794 if test x$csdp != xno; then
24795   HAVE_SDP_TRUE=
24796   HAVE_SDP_FALSE='#'
24797 else
24798   HAVE_SDP_TRUE='#'
24799   HAVE_SDP_FALSE=
24800 fi
24801
24802
24803
24804
24805 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
24806 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
24807 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
24808   echo $ECHO_N "(cached) $ECHO_C" >&6
24809 else
24810   ac_check_lib_save_LIBS=$LIBS
24811 LIBS="-lnsl  $LIBS"
24812 cat >conftest.$ac_ext <<_ACEOF
24813 /* confdefs.h.  */
24814 _ACEOF
24815 cat confdefs.h >>conftest.$ac_ext
24816 cat >>conftest.$ac_ext <<_ACEOF
24817 /* end confdefs.h.  */
24818
24819 /* Override any gcc2 internal prototype to avoid an error.  */
24820 #ifdef __cplusplus
24821 extern "C"
24822 #endif
24823 /* We use char because int might match the return type of a gcc2
24824    builtin and then its argument prototype would still apply.  */
24825 char gethostbyname ();
24826 int
24827 main ()
24828 {
24829 gethostbyname ();
24830   ;
24831   return 0;
24832 }
24833 _ACEOF
24834 rm -f conftest.$ac_objext conftest$ac_exeext
24835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24836   (eval $ac_link) 2>conftest.er1
24837   ac_status=$?
24838   grep -v '^ *+' conftest.er1 >conftest.err
24839   rm -f conftest.er1
24840   cat conftest.err >&5
24841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24842   (exit $ac_status); } &&
24843          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24845   (eval $ac_try) 2>&5
24846   ac_status=$?
24847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24848   (exit $ac_status); }; } &&
24849          { ac_try='test -s conftest$ac_exeext'
24850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24851   (eval $ac_try) 2>&5
24852   ac_status=$?
24853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24854   (exit $ac_status); }; }; then
24855   ac_cv_lib_nsl_gethostbyname=yes
24856 else
24857   echo "$as_me: failed program was:" >&5
24858 sed 's/^/| /' conftest.$ac_ext >&5
24859
24860 ac_cv_lib_nsl_gethostbyname=no
24861 fi
24862 rm -f conftest.err conftest.$ac_objext \
24863       conftest$ac_exeext conftest.$ac_ext
24864 LIBS=$ac_check_lib_save_LIBS
24865 fi
24866 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
24867 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
24868 if test $ac_cv_lib_nsl_gethostbyname = yes; then
24869   GRAS_DEP="$GRAS_DEP -lnsl"
24870 fi
24871
24872 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24873 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
24874 if test "${ac_cv_lib_socket_connect+set}" = set; then
24875   echo $ECHO_N "(cached) $ECHO_C" >&6
24876 else
24877   ac_check_lib_save_LIBS=$LIBS
24878 LIBS="-lsocket  $LIBS"
24879 cat >conftest.$ac_ext <<_ACEOF
24880 /* confdefs.h.  */
24881 _ACEOF
24882 cat confdefs.h >>conftest.$ac_ext
24883 cat >>conftest.$ac_ext <<_ACEOF
24884 /* end confdefs.h.  */
24885
24886 /* Override any gcc2 internal prototype to avoid an error.  */
24887 #ifdef __cplusplus
24888 extern "C"
24889 #endif
24890 /* We use char because int might match the return type of a gcc2
24891    builtin and then its argument prototype would still apply.  */
24892 char connect ();
24893 int
24894 main ()
24895 {
24896 connect ();
24897   ;
24898   return 0;
24899 }
24900 _ACEOF
24901 rm -f conftest.$ac_objext conftest$ac_exeext
24902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24903   (eval $ac_link) 2>conftest.er1
24904   ac_status=$?
24905   grep -v '^ *+' conftest.er1 >conftest.err
24906   rm -f conftest.er1
24907   cat conftest.err >&5
24908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24909   (exit $ac_status); } &&
24910          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24912   (eval $ac_try) 2>&5
24913   ac_status=$?
24914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24915   (exit $ac_status); }; } &&
24916          { ac_try='test -s conftest$ac_exeext'
24917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24918   (eval $ac_try) 2>&5
24919   ac_status=$?
24920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24921   (exit $ac_status); }; }; then
24922   ac_cv_lib_socket_connect=yes
24923 else
24924   echo "$as_me: failed program was:" >&5
24925 sed 's/^/| /' conftest.$ac_ext >&5
24926
24927 ac_cv_lib_socket_connect=no
24928 fi
24929 rm -f conftest.err conftest.$ac_objext \
24930       conftest$ac_exeext conftest.$ac_ext
24931 LIBS=$ac_check_lib_save_LIBS
24932 fi
24933 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24934 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
24935 if test $ac_cv_lib_socket_connect = yes; then
24936   GRAS_DEP="$GRAS_DEP -lsocket"
24937 fi
24938
24939
24940 echo "$as_me:$LINENO: checking for extra dependencies of libgras" >&5
24941 echo $ECHO_N "checking for extra dependencies of libgras... $ECHO_C" >&6
24942 case $host_os in
24943   *mingw* ) GRAS_DEP="$GRAS_DEP -lws2_32" ; SIMGRID_DEP="$SIMGRID_DEP -lws2_32";
24944             AM_CFLAGS=-DDLL_EXPORT
24945
24946             cat >>confdefs.h <<\_ACEOF
24947 #define CONTEXT_THREADS 1
24948 _ACEOF
24949 ;;
24950 esac
24951
24952 if test "x$GRAS_DEP" = x; then
24953    echo "$as_me:$LINENO: result: none" >&5
24954 echo "${ECHO_T}none" >&6
24955 else
24956    echo "$as_me:$LINENO: result: $GRAS_DEP" >&5
24957 echo "${ECHO_T}$GRAS_DEP" >&6
24958 fi
24959
24960
24961
24962 ##############################################
24963 ## Enhance maintainer mode and SUBST variables
24964 ## (must be placed after any compilation tests since our overprotective flags
24965 ##  let some tests fail)
24966
24967 # Check whether we are doing a regular build or a GRAMINE (minimal) one
24968 # Next line is modified by sed when building gramine source tree
24969 gramine_mode=no
24970 if test x$gramine_mode = xyes
24971 then
24972   USE_MAINTAINER_MODE=no
24973 fi
24974
24975
24976 if test x$gramine_mode != xno; then
24977   GRAMINE_MODE_TRUE=
24978   GRAMINE_MODE_FALSE='#'
24979 else
24980   GRAMINE_MODE_TRUE='#'
24981   GRAMINE_MODE_FALSE=
24982 fi
24983
24984
24985
24986 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
24987 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
24988     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
24989 if test "${enable_maintainer_mode+set}" = set; then
24990   enableval="$enable_maintainer_mode"
24991   USE_MAINTAINER_MODE=$enableval
24992 else
24993   USE_MAINTAINER_MODE=no
24994 fi;
24995   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
24996 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
24997
24998
24999 if test $USE_MAINTAINER_MODE = yes; then
25000   MAINTAINER_MODE_TRUE=
25001   MAINTAINER_MODE_FALSE='#'
25002 else
25003   MAINTAINER_MODE_TRUE='#'
25004   MAINTAINER_MODE_FALSE=
25005 fi
25006
25007   MAINT=$MAINTAINER_MODE_TRUE
25008
25009
25010 if test x$USE_MAINTAINER_MODE = xyes
25011 then
25012    # Maintainers have no choice ! I'm a BOFH, and I plainly assume. [Mt]
25013    enable_compile_warnings=yes
25014 fi
25015
25016   # Check whether --enable-compile-warnings or --disable-compile-warnings was given.
25017 if test "${enable_compile_warnings+set}" = set; then
25018   enableval="$enable_compile_warnings"
25019   enable_compile_warnings=$enableval
25020 else
25021   enable_compile_warnings=no
25022 fi;
25023
25024   # Check whether --enable-compile-optimizations or --disable-compile-optimizations was given.
25025 if test "${enable_compile_optimizations+set}" = set; then
25026   enableval="$enable_compile_optimizations"
25027   enable_compile_optimizations=$enableval
25028 else
25029   enable_compile_optimizations=auto
25030 fi;
25031
25032   if test "x$cflags_set" != "xyes" ; then
25033     # if user didn't specify CFLAGS explicitely
25034
25035     # AC PROG CC tests whether -g is accepted.
25036     # Cool, but it also tries to set -O2. I don't want it with gcc
25037     saveCFLAGS="$CFLAGS"
25038     CFLAGS=
25039     case " $saveCFLAGS " in
25040     *-g*) CFLAGS="-g" ;;
25041     esac
25042     case " $saveCFLAGS " in
25043     *-O2*) test "x$CC" = xgcc || CFLAGS="$CFLAGS -O2" ;;
25044     esac
25045
25046     # damn AC PROG CC, why did you set -O??
25047     CFLAGS="-g"
25048   fi
25049
25050   if test "x$enable_compile_warnings" = "xyes" ; then
25051     echo "$as_me:$LINENO: checking the warning flags for this compiler" >&5
25052 echo $ECHO_N "checking the warning flags for this compiler... $ECHO_C" >&6
25053     warnCFLAGS=
25054     if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
25055       case " $CFLAGS " in
25056       *-Wall*) ;;
25057       *) warnCFLAGS="-Wall -Wunused" ;;
25058       esac
25059
25060       ## -W is not all that useful.  And it cannot be controlled
25061       ## with individual -Wno-xxx flags, unlike -Wall
25062
25063       ## -Wformat=2 chokes on the snprintf replacement because the format is passed to real sprintf
25064       ## -Wshadow chokes on try{ try{} } constructs
25065       if test "x$enable_compile_warnings" = "xyes"; then
25066         warnCFLAGS=`echo $warnCFLAGS  -Wmissing-prototypes -Wmissing-declarations \
25067         -Wpointer-arith -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings \
25068         -Wno-unused-function  \
25069         -Werror \
25070         | sed 's/ +/ /g'`
25071         # -Wno-unused-variable  -Wno-unused-label
25072       fi
25073     fi
25074     echo "$as_me:$LINENO: result: $warnCFLAGS" >&5
25075 echo "${ECHO_T}$warnCFLAGS" >&6
25076     # placed before since gcc remembers the last one on conflict
25077     CFLAGS="$warnCFLAGS $CFLAGS"
25078   fi
25079
25080   if test "x$enable_compile_optimizations" = "xyes" ||
25081      test "x$enable_compile_optimizations" = "xauto" ; then
25082     echo "$as_me:$LINENO: checking the optimization flags for this compiler" >&5
25083 echo $ECHO_N "checking the optimization flags for this compiler... $ECHO_C" >&6
25084     optCFLAGS=
25085     if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
25086         case " $CFLAGS " in
25087         *-O*) ;;
25088         *) optCFLAGS="$optCFLAGS -O3" ;;
25089         esac
25090         optCFLAGS="$optCFLAGS -finline-functions -ffast-math -funroll-loops -fno-strict-aliasing"
25091
25092         GCC_VER=`gcc --version | head -n 1 | sed 's/^^0-9*\(^ *\).*$/\1/'`
25093         GCC_VER_MAJ=`echo $GCC_VER | sed 's/^\(.\).*$/\1/'`
25094         if test "x$target_cpu" = "xpowerpc" && test "x$GCC_VER_MAJ" != "x2" ; then
25095           # avoid gcc bug #12828, which is fixed in 3.4.0, but this version
25096           # isn't propagated enough to desserve an extra check
25097
25098           # Note that the flag didn't exist before gcc 3.0
25099           optCFLAGS="$optCFLAGS -fno-loop-optimize"
25100         fi
25101             fi
25102     echo "$as_me:$LINENO: result: $optCFLAGS" >&5
25103 echo "${ECHO_T}$optCFLAGS" >&6
25104     # Take it only if CFLAGS not explicitly set. Unless the flag was explicitly given
25105     if test "x$cflags_set" != "xyes" ; then
25106       CFLAGS="$optCFLAGS $CFLAGS"
25107     fi
25108   fi
25109
25110   if test x$lt_cv_prog_gnu_ld = xyes ; then
25111     LD_DYNAMIC_FLAGS=-Wl,--export-dynamic
25112   else
25113     LD_DYNAMIC_FLAGS=
25114   fi
25115
25116
25117
25118
25119
25120
25121
25122
25123
25124
25125
25126
25127 #####################
25128 ## Check for programs
25129 ##
25130
25131
25132   echo "$as_me:$LINENO: result: " >&5
25133 echo "${ECHO_T}" >&6
25134   echo "$as_me:$LINENO: result: ${T_MD}Check for programs...${T_ME}" >&5
25135 echo "${ECHO_T}${T_MD}Check for programs...${T_ME}" >&6
25136
25137 # Extract the first word of "bash", so it can be a program name with args.
25138 set dummy bash; ac_word=$2
25139 echo "$as_me:$LINENO: checking for $ac_word" >&5
25140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25141 if test "${ac_cv_prog_BASH+set}" = set; then
25142   echo $ECHO_N "(cached) $ECHO_C" >&6
25143 else
25144   if test -n "$BASH"; then
25145   ac_cv_prog_BASH="$BASH" # Let the user override the test.
25146 else
25147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25148 for as_dir in $PATH
25149 do
25150   IFS=$as_save_IFS
25151   test -z "$as_dir" && as_dir=.
25152   for ac_exec_ext in '' $ac_executable_extensions; do
25153   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25154     ac_cv_prog_BASH="`which bash`"
25155     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25156     break 2
25157   fi
25158 done
25159 done
25160
25161   test -z "$ac_cv_prog_BASH" && ac_cv_prog_BASH="/bin/sh"
25162 fi
25163 fi
25164 BASH=$ac_cv_prog_BASH
25165 if test -n "$BASH"; then
25166   echo "$as_me:$LINENO: result: $BASH" >&5
25167 echo "${ECHO_T}$BASH" >&6
25168 else
25169   echo "$as_me:$LINENO: result: no" >&5
25170 echo "${ECHO_T}no" >&6
25171 fi
25172
25173 WARNING="This file is generated, do not edit"
25174
25175
25176
25177 # Can we rebuild the parsers?
25178 # We really want flex and refuse other lex. So, the parser is portable and
25179 # does not induce extra lib dependency
25180 for ac_prog in flex lex
25181 do
25182   # Extract the first word of "$ac_prog", so it can be a program name with args.
25183 set dummy $ac_prog; ac_word=$2
25184 echo "$as_me:$LINENO: checking for $ac_word" >&5
25185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25186 if test "${ac_cv_prog_LEX+set}" = set; then
25187   echo $ECHO_N "(cached) $ECHO_C" >&6
25188 else
25189   if test -n "$LEX"; then
25190   ac_cv_prog_LEX="$LEX" # Let the user override the test.
25191 else
25192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25193 for as_dir in $PATH
25194 do
25195   IFS=$as_save_IFS
25196   test -z "$as_dir" && as_dir=.
25197   for ac_exec_ext in '' $ac_executable_extensions; do
25198   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25199     ac_cv_prog_LEX="$ac_prog"
25200     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25201     break 2
25202   fi
25203 done
25204 done
25205
25206 fi
25207 fi
25208 LEX=$ac_cv_prog_LEX
25209 if test -n "$LEX"; then
25210   echo "$as_me:$LINENO: result: $LEX" >&5
25211 echo "${ECHO_T}$LEX" >&6
25212 else
25213   echo "$as_me:$LINENO: result: no" >&5
25214 echo "${ECHO_T}no" >&6
25215 fi
25216
25217   test -n "$LEX" && break
25218 done
25219 test -n "$LEX" || LEX=":"
25220
25221 if test -z "$LEXLIB"
25222 then
25223   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
25224 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
25225 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
25226   echo $ECHO_N "(cached) $ECHO_C" >&6
25227 else
25228   ac_check_lib_save_LIBS=$LIBS
25229 LIBS="-lfl  $LIBS"
25230 cat >conftest.$ac_ext <<_ACEOF
25231 /* confdefs.h.  */
25232 _ACEOF
25233 cat confdefs.h >>conftest.$ac_ext
25234 cat >>conftest.$ac_ext <<_ACEOF
25235 /* end confdefs.h.  */
25236
25237 /* Override any gcc2 internal prototype to avoid an error.  */
25238 #ifdef __cplusplus
25239 extern "C"
25240 #endif
25241 /* We use char because int might match the return type of a gcc2
25242    builtin and then its argument prototype would still apply.  */
25243 char yywrap ();
25244 int
25245 main ()
25246 {
25247 yywrap ();
25248   ;
25249   return 0;
25250 }
25251 _ACEOF
25252 rm -f conftest.$ac_objext conftest$ac_exeext
25253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25254   (eval $ac_link) 2>conftest.er1
25255   ac_status=$?
25256   grep -v '^ *+' conftest.er1 >conftest.err
25257   rm -f conftest.er1
25258   cat conftest.err >&5
25259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25260   (exit $ac_status); } &&
25261          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25263   (eval $ac_try) 2>&5
25264   ac_status=$?
25265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25266   (exit $ac_status); }; } &&
25267          { ac_try='test -s conftest$ac_exeext'
25268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25269   (eval $ac_try) 2>&5
25270   ac_status=$?
25271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25272   (exit $ac_status); }; }; then
25273   ac_cv_lib_fl_yywrap=yes
25274 else
25275   echo "$as_me: failed program was:" >&5
25276 sed 's/^/| /' conftest.$ac_ext >&5
25277
25278 ac_cv_lib_fl_yywrap=no
25279 fi
25280 rm -f conftest.err conftest.$ac_objext \
25281       conftest$ac_exeext conftest.$ac_ext
25282 LIBS=$ac_check_lib_save_LIBS
25283 fi
25284 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
25285 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
25286 if test $ac_cv_lib_fl_yywrap = yes; then
25287   LEXLIB="-lfl"
25288 else
25289   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
25290 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
25291 if test "${ac_cv_lib_l_yywrap+set}" = set; then
25292   echo $ECHO_N "(cached) $ECHO_C" >&6
25293 else
25294   ac_check_lib_save_LIBS=$LIBS
25295 LIBS="-ll  $LIBS"
25296 cat >conftest.$ac_ext <<_ACEOF
25297 /* confdefs.h.  */
25298 _ACEOF
25299 cat confdefs.h >>conftest.$ac_ext
25300 cat >>conftest.$ac_ext <<_ACEOF
25301 /* end confdefs.h.  */
25302
25303 /* Override any gcc2 internal prototype to avoid an error.  */
25304 #ifdef __cplusplus
25305 extern "C"
25306 #endif
25307 /* We use char because int might match the return type of a gcc2
25308    builtin and then its argument prototype would still apply.  */
25309 char yywrap ();
25310 int
25311 main ()
25312 {
25313 yywrap ();
25314   ;
25315   return 0;
25316 }
25317 _ACEOF
25318 rm -f conftest.$ac_objext conftest$ac_exeext
25319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25320   (eval $ac_link) 2>conftest.er1
25321   ac_status=$?
25322   grep -v '^ *+' conftest.er1 >conftest.err
25323   rm -f conftest.er1
25324   cat conftest.err >&5
25325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25326   (exit $ac_status); } &&
25327          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25329   (eval $ac_try) 2>&5
25330   ac_status=$?
25331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25332   (exit $ac_status); }; } &&
25333          { ac_try='test -s conftest$ac_exeext'
25334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25335   (eval $ac_try) 2>&5
25336   ac_status=$?
25337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25338   (exit $ac_status); }; }; then
25339   ac_cv_lib_l_yywrap=yes
25340 else
25341   echo "$as_me: failed program was:" >&5
25342 sed 's/^/| /' conftest.$ac_ext >&5
25343
25344 ac_cv_lib_l_yywrap=no
25345 fi
25346 rm -f conftest.err conftest.$ac_objext \
25347       conftest$ac_exeext conftest.$ac_ext
25348 LIBS=$ac_check_lib_save_LIBS
25349 fi
25350 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
25351 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
25352 if test $ac_cv_lib_l_yywrap = yes; then
25353   LEXLIB="-ll"
25354 fi
25355
25356 fi
25357
25358 fi
25359
25360 if test "x$LEX" != "x:"; then
25361   echo "$as_me:$LINENO: checking lex output file root" >&5
25362 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
25363 if test "${ac_cv_prog_lex_root+set}" = set; then
25364   echo $ECHO_N "(cached) $ECHO_C" >&6
25365 else
25366   # The minimal lex program is just a single line: %%.  But some broken lexes
25367 # (Solaris, I think it was) want two %% lines, so accommodate them.
25368 cat >conftest.l <<_ACEOF
25369 %%
25370 %%
25371 _ACEOF
25372 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
25373   (eval $LEX conftest.l) 2>&5
25374   ac_status=$?
25375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25376   (exit $ac_status); }
25377 if test -f lex.yy.c; then
25378   ac_cv_prog_lex_root=lex.yy
25379 elif test -f lexyy.c; then
25380   ac_cv_prog_lex_root=lexyy
25381 else
25382   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
25383 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
25384    { (exit 1); exit 1; }; }
25385 fi
25386 fi
25387 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
25388 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
25389 rm -f conftest.l
25390 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
25391
25392 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
25393 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
25394 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
25395   echo $ECHO_N "(cached) $ECHO_C" >&6
25396 else
25397   # POSIX says lex can declare yytext either as a pointer or an array; the
25398 # default is implementation-dependent. Figure out which it is, since
25399 # not all implementations provide the %pointer and %array declarations.
25400 ac_cv_prog_lex_yytext_pointer=no
25401 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
25402 ac_save_LIBS=$LIBS
25403 LIBS="$LIBS $LEXLIB"
25404 cat >conftest.$ac_ext <<_ACEOF
25405 `cat $LEX_OUTPUT_ROOT.c`
25406 _ACEOF
25407 rm -f conftest.$ac_objext conftest$ac_exeext
25408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25409   (eval $ac_link) 2>conftest.er1
25410   ac_status=$?
25411   grep -v '^ *+' conftest.er1 >conftest.err
25412   rm -f conftest.er1
25413   cat conftest.err >&5
25414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25415   (exit $ac_status); } &&
25416          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25418   (eval $ac_try) 2>&5
25419   ac_status=$?
25420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25421   (exit $ac_status); }; } &&
25422          { ac_try='test -s conftest$ac_exeext'
25423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25424   (eval $ac_try) 2>&5
25425   ac_status=$?
25426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25427   (exit $ac_status); }; }; then
25428   ac_cv_prog_lex_yytext_pointer=yes
25429 else
25430   echo "$as_me: failed program was:" >&5
25431 sed 's/^/| /' conftest.$ac_ext >&5
25432
25433 fi
25434 rm -f conftest.err conftest.$ac_objext \
25435       conftest$ac_exeext conftest.$ac_ext
25436 LIBS=$ac_save_LIBS
25437 rm -f "${LEX_OUTPUT_ROOT}.c"
25438
25439 fi
25440 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
25441 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
25442 if test $ac_cv_prog_lex_yytext_pointer = yes; then
25443
25444 cat >>confdefs.h <<\_ACEOF
25445 #define YYTEXT_POINTER 1
25446 _ACEOF
25447
25448 fi
25449
25450 fi
25451
25452   if test "$LEX" != flex; then
25453     { echo "$as_me:$LINENO: Flex not found. Parsers won't get updated." >&5
25454 echo "$as_me: Flex not found. Parsers won't get updated." >&6;}
25455     LEX=${am_missing_run}flex
25456     LEXLIB=''
25457
25458   else
25459     if test "x2.5.30" != "x" ; then
25460                               FLEX_VERSION=`flex --version | sed -e 's/^[^0-9]*//' -e 's/[^0-9]*$//'`
25461
25462       FLEX_VER_MAJ=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
25463       FLEX_VER_MED=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
25464       FLEX_VER_MIN=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
25465
25466       WANT_VER_MAJ=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`;
25467       WANT_VER_MED=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`;
25468       WANT_VER_MIN=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`;
25469
25470       if test "$FLEX_VER_MAJ" -lt "$WANT_VER_MAJ" ||
25471          test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -lt "$WANT_VER_MED"  ||
25472          test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -eq "$WANT_VER_MED" -a "$FLEX_VER_MIN" -lt "$WANT_VER_MIN" ;
25473       then
25474         { echo "$as_me:$LINENO: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&5
25475 echo "$as_me: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&6;}
25476         LEX=${am_missing_run}flex
25477         LEXLIB=''
25478
25479       else
25480         { echo "$as_me:$LINENO: Flex found. Parsers will get updated" >&5
25481 echo "$as_me: Flex found. Parsers will get updated" >&6;}
25482       fi
25483     fi
25484   fi
25485
25486
25487 # Can we rebuild the xml-lexers from the XML specification?
25488 # if not, simply touch the flex source files (which are distributed in
25489 #  tarballs even if generated by flexml) and hope for the best.
25490 # Extract the first word of "flexml", so it can be a program name with args.
25491 set dummy flexml; ac_word=$2
25492 echo "$as_me:$LINENO: checking for $ac_word" >&5
25493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25494 if test "${ac_cv_prog_FLEXML+set}" = set; then
25495   echo $ECHO_N "(cached) $ECHO_C" >&6
25496 else
25497   if test -n "$FLEXML"; then
25498   ac_cv_prog_FLEXML="$FLEXML" # Let the user override the test.
25499 else
25500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25501 for as_dir in $PATH
25502 do
25503   IFS=$as_save_IFS
25504   test -z "$as_dir" && as_dir=.
25505   for ac_exec_ext in '' $ac_executable_extensions; do
25506   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25507     ac_cv_prog_FLEXML="`which flexml`"
25508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25509     break 2
25510   fi
25511 done
25512 done
25513
25514   test -z "$ac_cv_prog_FLEXML" && ac_cv_prog_FLEXML="NOTFOUND"
25515 fi
25516 fi
25517 FLEXML=$ac_cv_prog_FLEXML
25518 if test -n "$FLEXML"; then
25519   echo "$as_me:$LINENO: result: $FLEXML" >&5
25520 echo "${ECHO_T}$FLEXML" >&6
25521 else
25522   echo "$as_me:$LINENO: result: no" >&5
25523 echo "${ECHO_T}no" >&6
25524 fi
25525
25526
25527
25528 if test x$FLEXML != xNOTFOUND; then
25529   HAVE_FLEXML_TRUE=
25530   HAVE_FLEXML_FALSE='#'
25531 else
25532   HAVE_FLEXML_TRUE='#'
25533   HAVE_FLEXML_FALSE=
25534 fi
25535
25536
25537 if test x$USE_MAINTAINER_MODE = xyes
25538 then
25539    # Check for doxygen when in maintainer mode since dist* targets fail
25540    # without it
25541    # Extract the first word of "doxygen", so it can be a program name with args.
25542 set dummy doxygen; ac_word=$2
25543 echo "$as_me:$LINENO: checking for $ac_word" >&5
25544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25545 if test "${ac_cv_path_DOXYGEN+set}" = set; then
25546   echo $ECHO_N "(cached) $ECHO_C" >&6
25547 else
25548   case $DOXYGEN in
25549   [\\/]* | ?:[\\/]*)
25550   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
25551   ;;
25552   *)
25553   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25554 for as_dir in $PATH
25555 do
25556   IFS=$as_save_IFS
25557   test -z "$as_dir" && as_dir=.
25558   for ac_exec_ext in '' $ac_executable_extensions; do
25559   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25560     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
25561     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25562     break 2
25563   fi
25564 done
25565 done
25566
25567   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="`which doxygen`"
25568   ;;
25569 esac
25570 fi
25571 DOXYGEN=$ac_cv_path_DOXYGEN
25572
25573 if test -n "$DOXYGEN"; then
25574   echo "$as_me:$LINENO: result: $DOXYGEN" >&5
25575 echo "${ECHO_T}$DOXYGEN" >&6
25576 else
25577   echo "$as_me:$LINENO: result: no" >&5
25578 echo "${ECHO_T}no" >&6
25579 fi
25580
25581    if test x$DOXYGEN = x ; then
25582      { { echo "$as_me:$LINENO: error: doxygen is mandatory in maintainer mode" >&5
25583 echo "$as_me: error: doxygen is mandatory in maintainer mode" >&2;}
25584    { (exit 1); exit 1; }; }
25585    fi
25586 fi
25587
25588 # Can we extract really usable backtraces? (also need the popen function)
25589 # Extract the first word of "addr2line", so it can be a program name with args.
25590 set dummy addr2line; ac_word=$2
25591 echo "$as_me:$LINENO: checking for $ac_word" >&5
25592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25593 if test "${ac_cv_path_ADDR2LINE+set}" = set; then
25594   echo $ECHO_N "(cached) $ECHO_C" >&6
25595 else
25596   case $ADDR2LINE in
25597   [\\/]* | ?:[\\/]*)
25598   ac_cv_path_ADDR2LINE="$ADDR2LINE" # Let the user override the test with a path.
25599   ;;
25600   *)
25601   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25602 for as_dir in $PATH
25603 do
25604   IFS=$as_save_IFS
25605   test -z "$as_dir" && as_dir=.
25606   for ac_exec_ext in '' $ac_executable_extensions; do
25607   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25608     ac_cv_path_ADDR2LINE="$as_dir/$ac_word$ac_exec_ext"
25609     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25610     break 2
25611   fi
25612 done
25613 done
25614
25615   ;;
25616 esac
25617 fi
25618 ADDR2LINE=$ac_cv_path_ADDR2LINE
25619
25620 if test -n "$ADDR2LINE"; then
25621   echo "$as_me:$LINENO: result: $ADDR2LINE" >&5
25622 echo "${ECHO_T}$ADDR2LINE" >&6
25623 else
25624   echo "$as_me:$LINENO: result: no" >&5
25625 echo "${ECHO_T}no" >&6
25626 fi
25627
25628 if test x$ADDR2LINE != x ; then
25629
25630 cat >>confdefs.h <<_ACEOF
25631 #define ADDR2LINE "$ADDR2LINE"
25632 _ACEOF
25633
25634 fi
25635
25636
25637 # Can we make status line about the compilation result?
25638 # Extract the first word of "md5sum", so it can be a program name with args.
25639 set dummy md5sum; ac_word=$2
25640 echo "$as_me:$LINENO: checking for $ac_word" >&5
25641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25642 if test "${ac_cv_prog_MD5SUM+set}" = set; then
25643   echo $ECHO_N "(cached) $ECHO_C" >&6
25644 else
25645   if test -n "$MD5SUM"; then
25646   ac_cv_prog_MD5SUM="$MD5SUM" # Let the user override the test.
25647 else
25648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25649 for as_dir in $PATH
25650 do
25651   IFS=$as_save_IFS
25652   test -z "$as_dir" && as_dir=.
25653   for ac_exec_ext in '' $ac_executable_extensions; do
25654   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25655     ac_cv_prog_MD5SUM="`which md5sum`"
25656     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25657     break 2
25658   fi
25659 done
25660 done
25661
25662 fi
25663 fi
25664 MD5SUM=$ac_cv_prog_MD5SUM
25665 if test -n "$MD5SUM"; then
25666   echo "$as_me:$LINENO: result: $MD5SUM" >&5
25667 echo "${ECHO_T}$MD5SUM" >&6
25668 else
25669   echo "$as_me:$LINENO: result: no" >&5
25670 echo "${ECHO_T}no" >&6
25671 fi
25672
25673 if test x$MD5SUM != xno ; then
25674   build_version=`find -name '*.ch' |grep -v src/ucontext_stack.h | grep -v src/gras_config.h |\
25675                  xargs cat| $MD5SUM | sed 's/ .*$//'`
25676 else
25677   build_version="no_md5sum_binary"
25678 fi
25679 build_id="$PACKAGE ver=$VERSION build=$build_version args=\"$ac_configure_args\""
25680
25681
25682 ###################
25683 ## Makes the output
25684 ##
25685
25686
25687 #
25688 #      examples/gras/chord/Makefile  examples/gras/chord/test_sg examples/gras/chord/test_rl
25689 #  src/amok/Makefile
25690
25691
25692   echo "$as_me:$LINENO: result: " >&5
25693 echo "${ECHO_T}" >&6
25694   echo "$as_me:$LINENO: result: ${T_MD}Generating files...${T_ME}" >&5
25695 echo "${ECHO_T}${T_MD}Generating files...${T_ME}" >&6
25696
25697
25698 # Core of the libraries
25699
25700                                         ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile src/ucontext_stack.h"
25701
25702
25703 # Tools being embeeded in gramine (stub generator)
25704                               ac_config_files="$ac_config_files tools/Makefile tools/gras/Makefile tools/tesh/Makefile"
25705
25706
25707
25708 # GRAMINE_CUT_BEGIN
25709
25710 # Tools NOT being embeeded in gramine
25711           ac_config_files="$ac_config_files tools/graspe-slave"
25712
25713
25714 # Testsuite
25715
25716                                         ac_config_files="$ac_config_files testsuite/Makefile testsuite/run_tests testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage"
25717
25718
25719 # Documentation
25720                     ac_config_files="$ac_config_files doc/Makefile doc/Doxyfile"
25721
25722
25723 # Examples
25724
25725                                                                                                                                                                                                                                                                                                                                                                                                                                                         ac_config_files="$ac_config_files examples/Makefile examples/msg/Makefile examples/msg/run_msg_test examples/simdag/Makefile examples/simdag/test_simdag examples/gras/Makefile examples/gras/ping/Makefile examples/gras/ping/test_sg examples/gras/ping/test_rl examples/gras/rpc/Makefile examples/gras/rpc/test_sg examples/gras/rpc/test_rl examples/gras/timer/Makefile examples/gras/timer/test_sg examples/gras/timer/test_rl examples/gras/chrono/Makefile examples/gras/chrono/test_sg examples/gras/chrono/test_rl examples/gras/mutual_exclusion/simple_token/Makefile examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl examples/gras/mmrpc/Makefile examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl examples/gras/pmm/Makefile examples/gras/pmm/test_sg examples/gras/pmm/test_rl examples/gras/all2all/Makefile examples/gras/all2all/test_sg examples/gras/all2all/test_rl examples/gras/p2p/Makefile examples/gras/p2p/chord/Makefile examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl examples/gras/p2p/can/Makefile examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl examples/amok/Makefile examples/amok/bandwidth/Makefile examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl examples/amok/saturate/Makefile examples/amok/saturate/test_sg examples/amok/saturate/test_rl"
25726
25727
25728 #     examples/gras/chord/test_sg  examples/gras/chord/test_rl   \
25729 #    examples/gras/pastry/test_sg
25730
25731
25732
25733 #    examples/gras/saturate/Makefile  examples/gras/saturate/test_sg
25734 #    examples/gras/alnem/Makefile     examples/gras/alnem/test_sg
25735
25736
25737 # GRAMINE_CUT_END
25738
25739 cat >confcache <<\_ACEOF
25740 # This file is a shell script that caches the results of configure
25741 # tests run on this system so they can be shared between configure
25742 # scripts and configure runs, see configure's option --config-cache.
25743 # It is not useful on other systems.  If it contains results you don't
25744 # want to keep, you may remove or edit it.
25745 #
25746 # config.status only pays attention to the cache file if you give it
25747 # the --recheck option to rerun configure.
25748 #
25749 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25750 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25751 # following values.
25752
25753 _ACEOF
25754
25755 # The following way of writing the cache mishandles newlines in values,
25756 # but we know of no workaround that is simple, portable, and efficient.
25757 # So, don't put newlines in cache variables' values.
25758 # Ultrix sh set writes to stderr and can't be redirected directly,
25759 # and sets the high bit in the cache file unless we assign to the vars.
25760 {
25761   (set) 2>&1 |
25762     case `(ac_space=' '; set | grep ac_space) 2>&1` in
25763     *ac_space=\ *)
25764       # `set' does not quote correctly, so add quotes (double-quote
25765       # substitution turns \\\\ into \\, and sed turns \\ into \).
25766       sed -n \
25767         "s/'/'\\\\''/g;
25768           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25769       ;;
25770     *)
25771       # `set' quotes correctly as required by POSIX, so do not add quotes.
25772       sed -n \
25773         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
25774       ;;
25775     esac;
25776 } |
25777   sed '
25778      t clear
25779      : clear
25780      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25781      t end
25782      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25783      : end' >>confcache
25784 if diff $cache_file confcache >/dev/null 2>&1; then :; else
25785   if test -w $cache_file; then
25786     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
25787     cat confcache >$cache_file
25788   else
25789     echo "not updating unwritable cache $cache_file"
25790   fi
25791 fi
25792 rm -f confcache
25793
25794 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25795 # Let make expand exec_prefix.
25796 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25797
25798 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25799 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25800 # trailing colons and then remove the whole line if VPATH becomes empty
25801 # (actually we leave an empty line to preserve line numbers).
25802 if test "x$srcdir" = x.; then
25803   ac_vpsub='/^[  ]*VPATH[        ]*=/{
25804 s/:*\$(srcdir):*/:/;
25805 s/:*\${srcdir}:*/:/;
25806 s/:*@srcdir@:*/:/;
25807 s/^\([^=]*=[     ]*\):*/\1/;
25808 s/:*$//;
25809 s/^[^=]*=[       ]*$//;
25810 }'
25811 fi
25812
25813 DEFS=-DHAVE_CONFIG_H
25814
25815 ac_libobjs=
25816 ac_ltlibobjs=
25817 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25818   # 1. Remove the extension, and $U if already installed.
25819   ac_i=`echo "$ac_i" |
25820          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
25821   # 2. Add them.
25822   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
25823   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
25824 done
25825 LIBOBJS=$ac_libobjs
25826
25827 LTLIBOBJS=$ac_ltlibobjs
25828
25829
25830 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25831   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25832 Usually this means the macro was only invoked conditionally." >&5
25833 echo "$as_me: error: conditional \"AMDEP\" was never defined.
25834 Usually this means the macro was only invoked conditionally." >&2;}
25835    { (exit 1); exit 1; }; }
25836 fi
25837 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25838   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25839 Usually this means the macro was only invoked conditionally." >&5
25840 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25841 Usually this means the macro was only invoked conditionally." >&2;}
25842    { (exit 1); exit 1; }; }
25843 fi
25844 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25845   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
25846 Usually this means the macro was only invoked conditionally." >&5
25847 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
25848 Usually this means the macro was only invoked conditionally." >&2;}
25849    { (exit 1); exit 1; }; }
25850 fi
25851 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25852   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25853 Usually this means the macro was only invoked conditionally." >&5
25854 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25855 Usually this means the macro was only invoked conditionally." >&2;}
25856    { (exit 1); exit 1; }; }
25857 fi
25858 if test -z "${USE_SIMIX_TRUE}" && test -z "${USE_SIMIX_FALSE}"; then
25859   { { echo "$as_me:$LINENO: error: conditional \"USE_SIMIX\" was never defined.
25860 Usually this means the macro was only invoked conditionally." >&5
25861 echo "$as_me: error: conditional \"USE_SIMIX\" was never defined.
25862 Usually this means the macro was only invoked conditionally." >&2;}
25863    { (exit 1); exit 1; }; }
25864 fi
25865 if test -z "${HAVE_SDP_TRUE}" && test -z "${HAVE_SDP_FALSE}"; then
25866   { { echo "$as_me:$LINENO: error: conditional \"HAVE_SDP\" was never defined.
25867 Usually this means the macro was only invoked conditionally." >&5
25868 echo "$as_me: error: conditional \"HAVE_SDP\" was never defined.
25869 Usually this means the macro was only invoked conditionally." >&2;}
25870    { (exit 1); exit 1; }; }
25871 fi
25872 if test -z "${GRAMINE_MODE_TRUE}" && test -z "${GRAMINE_MODE_FALSE}"; then
25873   { { echo "$as_me:$LINENO: error: conditional \"GRAMINE_MODE\" was never defined.
25874 Usually this means the macro was only invoked conditionally." >&5
25875 echo "$as_me: error: conditional \"GRAMINE_MODE\" was never defined.
25876 Usually this means the macro was only invoked conditionally." >&2;}
25877    { (exit 1); exit 1; }; }
25878 fi
25879 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25880   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
25881 Usually this means the macro was only invoked conditionally." >&5
25882 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
25883 Usually this means the macro was only invoked conditionally." >&2;}
25884    { (exit 1); exit 1; }; }
25885 fi
25886 if test -z "${HAVE_FLEXML_TRUE}" && test -z "${HAVE_FLEXML_FALSE}"; then
25887   { { echo "$as_me:$LINENO: error: conditional \"HAVE_FLEXML\" was never defined.
25888 Usually this means the macro was only invoked conditionally." >&5
25889 echo "$as_me: error: conditional \"HAVE_FLEXML\" was never defined.
25890 Usually this means the macro was only invoked conditionally." >&2;}
25891    { (exit 1); exit 1; }; }
25892 fi
25893
25894 : ${CONFIG_STATUS=./config.status}
25895 ac_clean_files_save=$ac_clean_files
25896 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25897 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25898 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25899 cat >$CONFIG_STATUS <<_ACEOF
25900 #! $SHELL
25901 # Generated by $as_me.
25902 # Run this file to recreate the current configuration.
25903 # Compiler output produced by configure, useful for debugging
25904 # configure, is in config.log if it exists.
25905
25906 debug=false
25907 ac_cs_recheck=false
25908 ac_cs_silent=false
25909 SHELL=\${CONFIG_SHELL-$SHELL}
25910 _ACEOF
25911
25912 cat >>$CONFIG_STATUS <<\_ACEOF
25913 ## --------------------- ##
25914 ## M4sh Initialization.  ##
25915 ## --------------------- ##
25916
25917 # Be Bourne compatible
25918 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25919   emulate sh
25920   NULLCMD=:
25921   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25922   # is contrary to our usage.  Disable this feature.
25923   alias -g '${1+"$@"}'='"$@"'
25924 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25925   set -o posix
25926 fi
25927 DUALCASE=1; export DUALCASE # for MKS sh
25928
25929 # Support unset when possible.
25930 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25931   as_unset=unset
25932 else
25933   as_unset=false
25934 fi
25935
25936
25937 # Work around bugs in pre-3.0 UWIN ksh.
25938 $as_unset ENV MAIL MAILPATH
25939 PS1='$ '
25940 PS2='> '
25941 PS4='+ '
25942
25943 # NLS nuisances.
25944 for as_var in \
25945   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25946   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25947   LC_TELEPHONE LC_TIME
25948 do
25949   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25950     eval $as_var=C; export $as_var
25951   else
25952     $as_unset $as_var
25953   fi
25954 done
25955
25956 # Required to use basename.
25957 if expr a : '\(a\)' >/dev/null 2>&1; then
25958   as_expr=expr
25959 else
25960   as_expr=false
25961 fi
25962
25963 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
25964   as_basename=basename
25965 else
25966   as_basename=false
25967 fi
25968
25969
25970 # Name of the executable.
25971 as_me=`$as_basename "$0" ||
25972 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25973          X"$0" : 'X\(//\)$' \| \
25974          X"$0" : 'X\(/\)$' \| \
25975          .     : '\(.\)' 2>/dev/null ||
25976 echo X/"$0" |
25977     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25978           /^X\/\(\/\/\)$/{ s//\1/; q; }
25979           /^X\/\(\/\).*/{ s//\1/; q; }
25980           s/.*/./; q'`
25981
25982
25983 # PATH needs CR, and LINENO needs CR and PATH.
25984 # Avoid depending upon Character Ranges.
25985 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25986 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25987 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25988 as_cr_digits='0123456789'
25989 as_cr_alnum=$as_cr_Letters$as_cr_digits
25990
25991 # The user is always right.
25992 if test "${PATH_SEPARATOR+set}" != set; then
25993   echo "#! /bin/sh" >conf$$.sh
25994   echo  "exit 0"   >>conf$$.sh
25995   chmod +x conf$$.sh
25996   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25997     PATH_SEPARATOR=';'
25998   else
25999     PATH_SEPARATOR=:
26000   fi
26001   rm -f conf$$.sh
26002 fi
26003
26004
26005   as_lineno_1=$LINENO
26006   as_lineno_2=$LINENO
26007   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26008   test "x$as_lineno_1" != "x$as_lineno_2" &&
26009   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
26010   # Find who we are.  Look in the path if we contain no path at all
26011   # relative or not.
26012   case $0 in
26013     *[\\/]* ) as_myself=$0 ;;
26014     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26015 for as_dir in $PATH
26016 do
26017   IFS=$as_save_IFS
26018   test -z "$as_dir" && as_dir=.
26019   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26020 done
26021
26022        ;;
26023   esac
26024   # We did not find ourselves, most probably we were run as `sh COMMAND'
26025   # in which case we are not to be found in the path.
26026   if test "x$as_myself" = x; then
26027     as_myself=$0
26028   fi
26029   if test ! -f "$as_myself"; then
26030     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
26031 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
26032    { (exit 1); exit 1; }; }
26033   fi
26034   case $CONFIG_SHELL in
26035   '')
26036     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26037 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
26038 do
26039   IFS=$as_save_IFS
26040   test -z "$as_dir" && as_dir=.
26041   for as_base in sh bash ksh sh5; do
26042          case $as_dir in
26043          /*)
26044            if ("$as_dir/$as_base" -c '
26045   as_lineno_1=$LINENO
26046   as_lineno_2=$LINENO
26047   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26048   test "x$as_lineno_1" != "x$as_lineno_2" &&
26049   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
26050              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
26051              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
26052              CONFIG_SHELL=$as_dir/$as_base
26053              export CONFIG_SHELL
26054              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
26055            fi;;
26056          esac
26057        done
26058 done
26059 ;;
26060   esac
26061
26062   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26063   # uniformly replaced by the line number.  The first 'sed' inserts a
26064   # line-number line before each line; the second 'sed' does the real
26065   # work.  The second script uses 'N' to pair each line-number line
26066   # with the numbered line, and appends trailing '-' during
26067   # substitution so that $LINENO is not a special case at line end.
26068   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26069   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
26070   sed '=' <$as_myself |
26071     sed '
26072       N
26073       s,$,-,
26074       : loop
26075       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
26076       t loop
26077       s,-$,,
26078       s,^['$as_cr_digits']*\n,,
26079     ' >$as_me.lineno &&
26080   chmod +x $as_me.lineno ||
26081     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
26082 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
26083    { (exit 1); exit 1; }; }
26084
26085   # Don't try to exec as it changes $[0], causing all sort of problems
26086   # (the dirname of $[0] is not the place where we might find the
26087   # original and so on.  Autoconf is especially sensible to this).
26088   . ./$as_me.lineno
26089   # Exit status is that of the last command.
26090   exit
26091 }
26092
26093
26094 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
26095   *c*,-n*) ECHO_N= ECHO_C='
26096 ' ECHO_T='      ' ;;
26097   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
26098   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
26099 esac
26100
26101 if expr a : '\(a\)' >/dev/null 2>&1; then
26102   as_expr=expr
26103 else
26104   as_expr=false
26105 fi
26106
26107 rm -f conf$$ conf$$.exe conf$$.file
26108 echo >conf$$.file
26109 if ln -s conf$$.file conf$$ 2>/dev/null; then
26110   # We could just check for DJGPP; but this test a) works b) is more generic
26111   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
26112   if test -f conf$$.exe; then
26113     # Don't use ln at all; we don't have any links
26114     as_ln_s='cp -p'
26115   else
26116     as_ln_s='ln -s'
26117   fi
26118 elif ln conf$$.file conf$$ 2>/dev/null; then
26119   as_ln_s=ln
26120 else
26121   as_ln_s='cp -p'
26122 fi
26123 rm -f conf$$ conf$$.exe conf$$.file
26124
26125 if mkdir -p . 2>/dev/null; then
26126   as_mkdir_p=:
26127 else
26128   test -d ./-p && rmdir ./-p
26129   as_mkdir_p=false
26130 fi
26131
26132 as_executable_p="test -f"
26133
26134 # Sed expression to map a string onto a valid CPP name.
26135 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26136
26137 # Sed expression to map a string onto a valid variable name.
26138 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26139
26140
26141 # IFS
26142 # We need space, tab and new line, in precisely that order.
26143 as_nl='
26144 '
26145 IFS="   $as_nl"
26146
26147 # CDPATH.
26148 $as_unset CDPATH
26149
26150 exec 6>&1
26151
26152 # Open the log real soon, to keep \$[0] and so on meaningful, and to
26153 # report actual input values of CONFIG_FILES etc. instead of their
26154 # values after options handling.  Logging --version etc. is OK.
26155 exec 5>>config.log
26156 {
26157   echo
26158   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26159 ## Running $as_me. ##
26160 _ASBOX
26161 } >&5
26162 cat >&5 <<_CSEOF
26163
26164 This file was extended by simgrid $as_me 3.3-cvs, which was
26165 generated by GNU Autoconf 2.59.  Invocation command line was
26166
26167   CONFIG_FILES    = $CONFIG_FILES
26168   CONFIG_HEADERS  = $CONFIG_HEADERS
26169   CONFIG_LINKS    = $CONFIG_LINKS
26170   CONFIG_COMMANDS = $CONFIG_COMMANDS
26171   $ $0 $@
26172
26173 _CSEOF
26174 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
26175 echo >&5
26176 _ACEOF
26177
26178 # Files that config.status was made for.
26179 if test -n "$ac_config_files"; then
26180   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
26181 fi
26182
26183 if test -n "$ac_config_headers"; then
26184   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
26185 fi
26186
26187 if test -n "$ac_config_links"; then
26188   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
26189 fi
26190
26191 if test -n "$ac_config_commands"; then
26192   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
26193 fi
26194
26195 cat >>$CONFIG_STATUS <<\_ACEOF
26196
26197 ac_cs_usage="\
26198 \`$as_me' instantiates files from templates according to the
26199 current configuration.
26200
26201 Usage: $0 [OPTIONS] [FILE]...
26202
26203   -h, --help       print this help, then exit
26204   -V, --version    print version number, then exit
26205   -q, --quiet      do not print progress messages
26206   -d, --debug      don't remove temporary files
26207       --recheck    update $as_me by reconfiguring in the same conditions
26208   --file=FILE[:TEMPLATE]
26209                    instantiate the configuration file FILE
26210   --header=FILE[:TEMPLATE]
26211                    instantiate the configuration header FILE
26212
26213 Configuration files:
26214 $config_files
26215
26216 Configuration headers:
26217 $config_headers
26218
26219 Configuration commands:
26220 $config_commands
26221
26222 Report bugs to <bug-autoconf@gnu.org>."
26223 _ACEOF
26224
26225 cat >>$CONFIG_STATUS <<_ACEOF
26226 ac_cs_version="\\
26227 simgrid config.status 3.3-cvs
26228 configured by $0, generated by GNU Autoconf 2.59,
26229   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
26230
26231 Copyright (C) 2003 Free Software Foundation, Inc.
26232 This config.status script is free software; the Free Software Foundation
26233 gives unlimited permission to copy, distribute and modify it."
26234 srcdir=$srcdir
26235 INSTALL="$INSTALL"
26236 _ACEOF
26237
26238 cat >>$CONFIG_STATUS <<\_ACEOF
26239 # If no file are specified by the user, then we need to provide default
26240 # value.  By we need to know if files were specified by the user.
26241 ac_need_defaults=:
26242 while test $# != 0
26243 do
26244   case $1 in
26245   --*=*)
26246     ac_option=`expr "x$1" : 'x\([^=]*\)='`
26247     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
26248     ac_shift=:
26249     ;;
26250   -*)
26251     ac_option=$1
26252     ac_optarg=$2
26253     ac_shift=shift
26254     ;;
26255   *) # This is not an option, so the user has probably given explicit
26256      # arguments.
26257      ac_option=$1
26258      ac_need_defaults=false;;
26259   esac
26260
26261   case $ac_option in
26262   # Handling of the options.
26263 _ACEOF
26264 cat >>$CONFIG_STATUS <<\_ACEOF
26265   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26266     ac_cs_recheck=: ;;
26267   --version | --vers* | -V )
26268     echo "$ac_cs_version"; exit 0 ;;
26269   --he | --h)
26270     # Conflict between --help and --header
26271     { { echo "$as_me:$LINENO: error: ambiguous option: $1
26272 Try \`$0 --help' for more information." >&5
26273 echo "$as_me: error: ambiguous option: $1
26274 Try \`$0 --help' for more information." >&2;}
26275    { (exit 1); exit 1; }; };;
26276   --help | --hel | -h )
26277     echo "$ac_cs_usage"; exit 0 ;;
26278   --debug | --d* | -d )
26279     debug=: ;;
26280   --file | --fil | --fi | --f )
26281     $ac_shift
26282     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26283     ac_need_defaults=false;;
26284   --header | --heade | --head | --hea )
26285     $ac_shift
26286     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26287     ac_need_defaults=false;;
26288   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26289   | -silent | --silent | --silen | --sile | --sil | --si | --s)
26290     ac_cs_silent=: ;;
26291
26292   # This is an error.
26293   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
26294 Try \`$0 --help' for more information." >&5
26295 echo "$as_me: error: unrecognized option: $1
26296 Try \`$0 --help' for more information." >&2;}
26297    { (exit 1); exit 1; }; } ;;
26298
26299   *) ac_config_targets="$ac_config_targets $1" ;;
26300
26301   esac
26302   shift
26303 done
26304
26305 ac_configure_extra_args=
26306
26307 if $ac_cs_silent; then
26308   exec 6>/dev/null
26309   ac_configure_extra_args="$ac_configure_extra_args --silent"
26310 fi
26311
26312 _ACEOF
26313 cat >>$CONFIG_STATUS <<_ACEOF
26314 if \$ac_cs_recheck; then
26315   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26316   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26317 fi
26318
26319 _ACEOF
26320
26321 cat >>$CONFIG_STATUS <<_ACEOF
26322 #
26323 # INIT-COMMANDS section.
26324 #
26325
26326 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26327
26328 _ACEOF
26329
26330
26331
26332 cat >>$CONFIG_STATUS <<\_ACEOF
26333 for ac_config_target in $ac_config_targets
26334 do
26335   case "$ac_config_target" in
26336   # Handling of arguments.
26337   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26338   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
26339   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
26340   "src/ucontext_stack.h" ) CONFIG_FILES="$CONFIG_FILES src/ucontext_stack.h" ;;
26341   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
26342   "tools/gras/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/gras/Makefile" ;;
26343   "tools/tesh/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/tesh/Makefile" ;;
26344   "tools/graspe-slave" ) CONFIG_FILES="$CONFIG_FILES tools/graspe-slave" ;;
26345   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
26346   "testsuite/run_tests" ) CONFIG_FILES="$CONFIG_FILES testsuite/run_tests" ;;
26347   "testsuite/gras/trp_tcp_usage" ) CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_tcp_usage" ;;
26348   "testsuite/gras/trp_file_usage" ) CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_file_usage" ;;
26349   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
26350   "doc/Doxyfile" ) CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
26351   "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
26352   "examples/msg/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/msg/Makefile" ;;
26353   "examples/msg/run_msg_test" ) CONFIG_FILES="$CONFIG_FILES examples/msg/run_msg_test" ;;
26354   "examples/simdag/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/simdag/Makefile" ;;
26355   "examples/simdag/test_simdag" ) CONFIG_FILES="$CONFIG_FILES examples/simdag/test_simdag" ;;
26356   "examples/gras/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/Makefile" ;;
26357   "examples/gras/ping/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/ping/Makefile" ;;
26358   "examples/gras/ping/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/ping/test_sg" ;;
26359   "examples/gras/ping/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/ping/test_rl" ;;
26360   "examples/gras/rpc/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/Makefile" ;;
26361   "examples/gras/rpc/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/test_sg" ;;
26362   "examples/gras/rpc/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/test_rl" ;;
26363   "examples/gras/timer/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/timer/Makefile" ;;
26364   "examples/gras/timer/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/timer/test_sg" ;;
26365   "examples/gras/timer/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/timer/test_rl" ;;
26366   "examples/gras/chrono/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/Makefile" ;;
26367   "examples/gras/chrono/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/test_sg" ;;
26368   "examples/gras/chrono/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/test_rl" ;;
26369   "examples/gras/mutual_exclusion/simple_token/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/Makefile" ;;
26370   "examples/gras/mutual_exclusion/simple_token/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/test_sg" ;;
26371   "examples/gras/mutual_exclusion/simple_token/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/test_rl" ;;
26372   "examples/gras/mmrpc/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/Makefile" ;;
26373   "examples/gras/mmrpc/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/test_sg" ;;
26374   "examples/gras/mmrpc/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/test_rl" ;;
26375   "examples/gras/pmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/Makefile" ;;
26376   "examples/gras/pmm/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/test_sg" ;;
26377   "examples/gras/pmm/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/test_rl" ;;
26378   "examples/gras/all2all/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/Makefile" ;;
26379   "examples/gras/all2all/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/test_sg" ;;
26380   "examples/gras/all2all/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/test_rl" ;;
26381   "examples/gras/p2p/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/Makefile" ;;
26382   "examples/gras/p2p/chord/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/chord/Makefile" ;;
26383   "examples/gras/p2p/chord/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/chord/test_sg" ;;
26384   "examples/gras/p2p/chord/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/chord/test_rl" ;;
26385   "examples/gras/p2p/can/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/can/Makefile" ;;
26386   "examples/gras/p2p/can/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/can/test_sg" ;;
26387   "examples/gras/p2p/can/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/can/test_rl" ;;
26388   "examples/amok/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/amok/Makefile" ;;
26389   "examples/amok/bandwidth/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/Makefile" ;;
26390   "examples/amok/bandwidth/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_sg" ;;
26391   "examples/amok/bandwidth/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_rl" ;;
26392   "examples/amok/saturate/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/Makefile" ;;
26393   "examples/amok/saturate/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_sg" ;;
26394   "examples/amok/saturate/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_rl" ;;
26395   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26396   "src/gras_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/gras_config.h" ;;
26397   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26398 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26399    { (exit 1); exit 1; }; };;
26400   esac
26401 done
26402
26403 # If the user did not use the arguments to specify the items to instantiate,
26404 # then the envvar interface is used.  Set only those that are not.
26405 # We use the long form for the default assignment because of an extremely
26406 # bizarre bug on SunOS 4.1.3.
26407 if $ac_need_defaults; then
26408   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26409   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26410   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26411 fi
26412
26413 # Have a temporary directory for convenience.  Make it in the build tree
26414 # simply because there is no reason to put it here, and in addition,
26415 # creating and moving files from /tmp can sometimes cause problems.
26416 # Create a temporary directory, and hook for its removal unless debugging.
26417 $debug ||
26418 {
26419   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
26420   trap '{ (exit 1); exit 1; }' 1 2 13 15
26421 }
26422
26423 # Create a (secure) tmp directory for tmp files.
26424
26425 {
26426   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
26427   test -n "$tmp" && test -d "$tmp"
26428 }  ||
26429 {
26430   tmp=./confstat$$-$RANDOM
26431   (umask 077 && mkdir $tmp)
26432 } ||
26433 {
26434    echo "$me: cannot create a temporary directory in ." >&2
26435    { (exit 1); exit 1; }
26436 }
26437
26438 _ACEOF
26439
26440 cat >>$CONFIG_STATUS <<_ACEOF
26441
26442 #
26443 # CONFIG_FILES section.
26444 #
26445
26446 # No need to generate the scripts if there are no CONFIG_FILES.
26447 # This happens for instance when ./config.status config.h
26448 if test -n "\$CONFIG_FILES"; then
26449   # Protect against being on the right side of a sed subst in config.status.
26450   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
26451    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
26452 s,@SHELL@,$SHELL,;t t
26453 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
26454 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
26455 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
26456 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
26457 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
26458 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
26459 s,@exec_prefix@,$exec_prefix,;t t
26460 s,@prefix@,$prefix,;t t
26461 s,@program_transform_name@,$program_transform_name,;t t
26462 s,@bindir@,$bindir,;t t
26463 s,@sbindir@,$sbindir,;t t
26464 s,@libexecdir@,$libexecdir,;t t
26465 s,@datadir@,$datadir,;t t
26466 s,@sysconfdir@,$sysconfdir,;t t
26467 s,@sharedstatedir@,$sharedstatedir,;t t
26468 s,@localstatedir@,$localstatedir,;t t
26469 s,@libdir@,$libdir,;t t
26470 s,@includedir@,$includedir,;t t
26471 s,@oldincludedir@,$oldincludedir,;t t
26472 s,@infodir@,$infodir,;t t
26473 s,@mandir@,$mandir,;t t
26474 s,@build_alias@,$build_alias,;t t
26475 s,@host_alias@,$host_alias,;t t
26476 s,@target_alias@,$target_alias,;t t
26477 s,@DEFS@,$DEFS,;t t
26478 s,@ECHO_C@,$ECHO_C,;t t
26479 s,@ECHO_N@,$ECHO_N,;t t
26480 s,@ECHO_T@,$ECHO_T,;t t
26481 s,@LIBS@,$LIBS,;t t
26482 s,@build@,$build,;t t
26483 s,@build_cpu@,$build_cpu,;t t
26484 s,@build_vendor@,$build_vendor,;t t
26485 s,@build_os@,$build_os,;t t
26486 s,@host@,$host,;t t
26487 s,@host_cpu@,$host_cpu,;t t
26488 s,@host_vendor@,$host_vendor,;t t
26489 s,@host_os@,$host_os,;t t
26490 s,@target@,$target,;t t
26491 s,@target_cpu@,$target_cpu,;t t
26492 s,@target_vendor@,$target_vendor,;t t
26493 s,@target_os@,$target_os,;t t
26494 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
26495 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
26496 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
26497 s,@CYGPATH_W@,$CYGPATH_W,;t t
26498 s,@PACKAGE@,$PACKAGE,;t t
26499 s,@VERSION@,$VERSION,;t t
26500 s,@ACLOCAL@,$ACLOCAL,;t t
26501 s,@AUTOCONF@,$AUTOCONF,;t t
26502 s,@AUTOMAKE@,$AUTOMAKE,;t t
26503 s,@AUTOHEADER@,$AUTOHEADER,;t t
26504 s,@MAKEINFO@,$MAKEINFO,;t t
26505 s,@install_sh@,$install_sh,;t t
26506 s,@STRIP@,$STRIP,;t t
26507 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
26508 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
26509 s,@mkdir_p@,$mkdir_p,;t t
26510 s,@AWK@,$AWK,;t t
26511 s,@SET_MAKE@,$SET_MAKE,;t t
26512 s,@am__leading_dot@,$am__leading_dot,;t t
26513 s,@AMTAR@,$AMTAR,;t t
26514 s,@am__tar@,$am__tar,;t t
26515 s,@am__untar@,$am__untar,;t t
26516 s,@CC@,$CC,;t t
26517 s,@CFLAGS@,$CFLAGS,;t t
26518 s,@LDFLAGS@,$LDFLAGS,;t t
26519 s,@CPPFLAGS@,$CPPFLAGS,;t t
26520 s,@ac_ct_CC@,$ac_ct_CC,;t t
26521 s,@EXEEXT@,$EXEEXT,;t t
26522 s,@OBJEXT@,$OBJEXT,;t t
26523 s,@DEPDIR@,$DEPDIR,;t t
26524 s,@am__include@,$am__include,;t t
26525 s,@am__quote@,$am__quote,;t t
26526 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
26527 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
26528 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
26529 s,@CCDEPMODE@,$CCDEPMODE,;t t
26530 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
26531 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
26532 s,@EGREP@,$EGREP,;t t
26533 s,@LN_S@,$LN_S,;t t
26534 s,@ECHO@,$ECHO,;t t
26535 s,@AR@,$AR,;t t
26536 s,@ac_ct_AR@,$ac_ct_AR,;t t
26537 s,@RANLIB@,$RANLIB,;t t
26538 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
26539 s,@DLLTOOL@,$DLLTOOL,;t t
26540 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
26541 s,@AS@,$AS,;t t
26542 s,@ac_ct_AS@,$ac_ct_AS,;t t
26543 s,@OBJDUMP@,$OBJDUMP,;t t
26544 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
26545 s,@CPP@,$CPP,;t t
26546 s,@CXX@,$CXX,;t t
26547 s,@CXXFLAGS@,$CXXFLAGS,;t t
26548 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
26549 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
26550 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
26551 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
26552 s,@CXXCPP@,$CXXCPP,;t t
26553 s,@F77@,$F77,;t t
26554 s,@FFLAGS@,$FFLAGS,;t t
26555 s,@ac_ct_F77@,$ac_ct_F77,;t t
26556 s,@LIBTOOL@,$LIBTOOL,;t t
26557 s,@LIBOBJS@,$LIBOBJS,;t t
26558 s,@PTH_STACK_GROWTH@,$PTH_STACK_GROWTH,;t t
26559 s,@pth_skaddr_makecontext@,$pth_skaddr_makecontext,;t t
26560 s,@pth_sksize_makecontext@,$pth_sksize_makecontext,;t t
26561 s,@USE_SIMIX_TRUE@,$USE_SIMIX_TRUE,;t t
26562 s,@USE_SIMIX_FALSE@,$USE_SIMIX_FALSE,;t t
26563 s,@HAVE_SDP_TRUE@,$HAVE_SDP_TRUE,;t t
26564 s,@HAVE_SDP_FALSE@,$HAVE_SDP_FALSE,;t t
26565 s,@SIMGRID_DEP@,$SIMGRID_DEP,;t t
26566 s,@AM_CFLAGS@,$AM_CFLAGS,;t t
26567 s,@GRAS_DEP@,$GRAS_DEP,;t t
26568 s,@GRAMINE_MODE_TRUE@,$GRAMINE_MODE_TRUE,;t t
26569 s,@GRAMINE_MODE_FALSE@,$GRAMINE_MODE_FALSE,;t t
26570 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
26571 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
26572 s,@MAINT@,$MAINT,;t t
26573 s,@LD_DYNAMIC_FLAGS@,$LD_DYNAMIC_FLAGS,;t t
26574 s,@abs_builddir@,$abs_builddir,;t t
26575 s,@abs_srcdir@,$abs_srcdir,;t t
26576 s,@abs_top_builddir@,$abs_top_builddir,;t t
26577 s,@abs_top_srcdir@,$abs_top_srcdir,;t t
26578 s,@BASH@,$BASH,;t t
26579 s,@WARNING@,$WARNING,;t t
26580 s,@LEX@,$LEX,;t t
26581 s,@LEXLIB@,$LEXLIB,;t t
26582 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
26583 s,@FLEXML@,$FLEXML,;t t
26584 s,@HAVE_FLEXML_TRUE@,$HAVE_FLEXML_TRUE,;t t
26585 s,@HAVE_FLEXML_FALSE@,$HAVE_FLEXML_FALSE,;t t
26586 s,@DOXYGEN@,$DOXYGEN,;t t
26587 s,@ADDR2LINE@,$ADDR2LINE,;t t
26588 s,@ac_configure_args@,$ac_configure_args,;t t
26589 s,@MD5SUM@,$MD5SUM,;t t
26590 s,@build_id@,$build_id,;t t
26591 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
26592 CEOF
26593
26594 _ACEOF
26595
26596   cat >>$CONFIG_STATUS <<\_ACEOF
26597   # Split the substitutions into bite-sized pieces for seds with
26598   # small command number limits, like on Digital OSF/1 and HP-UX.
26599   ac_max_sed_lines=48
26600   ac_sed_frag=1 # Number of current file.
26601   ac_beg=1 # First line for current file.
26602   ac_end=$ac_max_sed_lines # Line after last line for current file.
26603   ac_more_lines=:
26604   ac_sed_cmds=
26605   while $ac_more_lines; do
26606     if test $ac_beg -gt 1; then
26607       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26608     else
26609       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26610     fi
26611     if test ! -s $tmp/subs.frag; then
26612       ac_more_lines=false
26613     else
26614       # The purpose of the label and of the branching condition is to
26615       # speed up the sed processing (if there are no `@' at all, there
26616       # is no need to browse any of the substitutions).
26617       # These are the two extra sed commands mentioned above.
26618       (echo ':t
26619   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
26620       if test -z "$ac_sed_cmds"; then
26621         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
26622       else
26623         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
26624       fi
26625       ac_sed_frag=`expr $ac_sed_frag + 1`
26626       ac_beg=$ac_end
26627       ac_end=`expr $ac_end + $ac_max_sed_lines`
26628     fi
26629   done
26630   if test -z "$ac_sed_cmds"; then
26631     ac_sed_cmds=cat
26632   fi
26633 fi # test -n "$CONFIG_FILES"
26634
26635 _ACEOF
26636 cat >>$CONFIG_STATUS <<\_ACEOF
26637 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
26638   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26639   case $ac_file in
26640   - | *:- | *:-:* ) # input from stdin
26641         cat >$tmp/stdin
26642         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26643         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26644   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26645         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26646   * )   ac_file_in=$ac_file.in ;;
26647   esac
26648
26649   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
26650   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26651 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26652          X"$ac_file" : 'X\(//\)[^/]' \| \
26653          X"$ac_file" : 'X\(//\)$' \| \
26654          X"$ac_file" : 'X\(/\)' \| \
26655          .     : '\(.\)' 2>/dev/null ||
26656 echo X"$ac_file" |
26657     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26658           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26659           /^X\(\/\/\)$/{ s//\1/; q; }
26660           /^X\(\/\).*/{ s//\1/; q; }
26661           s/.*/./; q'`
26662   { if $as_mkdir_p; then
26663     mkdir -p "$ac_dir"
26664   else
26665     as_dir="$ac_dir"
26666     as_dirs=
26667     while test ! -d "$as_dir"; do
26668       as_dirs="$as_dir $as_dirs"
26669       as_dir=`(dirname "$as_dir") 2>/dev/null ||
26670 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26671          X"$as_dir" : 'X\(//\)[^/]' \| \
26672          X"$as_dir" : 'X\(//\)$' \| \
26673          X"$as_dir" : 'X\(/\)' \| \
26674          .     : '\(.\)' 2>/dev/null ||
26675 echo X"$as_dir" |
26676     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26677           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26678           /^X\(\/\/\)$/{ s//\1/; q; }
26679           /^X\(\/\).*/{ s//\1/; q; }
26680           s/.*/./; q'`
26681     done
26682     test ! -n "$as_dirs" || mkdir $as_dirs
26683   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26684 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26685    { (exit 1); exit 1; }; }; }
26686
26687   ac_builddir=.
26688
26689 if test "$ac_dir" != .; then
26690   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26691   # A "../" for each directory in $ac_dir_suffix.
26692   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26693 else
26694   ac_dir_suffix= ac_top_builddir=
26695 fi
26696
26697 case $srcdir in
26698   .)  # No --srcdir option.  We are building in place.
26699     ac_srcdir=.
26700     if test -z "$ac_top_builddir"; then
26701        ac_top_srcdir=.
26702     else
26703        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26704     fi ;;
26705   [\\/]* | ?:[\\/]* )  # Absolute path.
26706     ac_srcdir=$srcdir$ac_dir_suffix;
26707     ac_top_srcdir=$srcdir ;;
26708   *) # Relative path.
26709     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26710     ac_top_srcdir=$ac_top_builddir$srcdir ;;
26711 esac
26712
26713 # Do not use `cd foo && pwd` to compute absolute paths, because
26714 # the directories may not exist.
26715 case `pwd` in
26716 .) ac_abs_builddir="$ac_dir";;
26717 *)
26718   case "$ac_dir" in
26719   .) ac_abs_builddir=`pwd`;;
26720   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26721   *) ac_abs_builddir=`pwd`/"$ac_dir";;
26722   esac;;
26723 esac
26724 case $ac_abs_builddir in
26725 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26726 *)
26727   case ${ac_top_builddir}. in
26728   .) ac_abs_top_builddir=$ac_abs_builddir;;
26729   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26730   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26731   esac;;
26732 esac
26733 case $ac_abs_builddir in
26734 .) ac_abs_srcdir=$ac_srcdir;;
26735 *)
26736   case $ac_srcdir in
26737   .) ac_abs_srcdir=$ac_abs_builddir;;
26738   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26739   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26740   esac;;
26741 esac
26742 case $ac_abs_builddir in
26743 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26744 *)
26745   case $ac_top_srcdir in
26746   .) ac_abs_top_srcdir=$ac_abs_builddir;;
26747   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26748   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26749   esac;;
26750 esac
26751
26752
26753   case $INSTALL in
26754   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26755   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
26756   esac
26757
26758   # Let's still pretend it is `configure' which instantiates (i.e., don't
26759   # use $as_me), people would be surprised to read:
26760   #    /* config.h.  Generated by config.status.  */
26761   if test x"$ac_file" = x-; then
26762     configure_input=
26763   else
26764     configure_input="$ac_file.  "
26765   fi
26766   configure_input=$configure_input"Generated from `echo $ac_file_in |
26767                                      sed 's,.*/,,'` by configure."
26768
26769   # First look for the input files in the build tree, otherwise in the
26770   # src tree.
26771   ac_file_inputs=`IFS=:
26772     for f in $ac_file_in; do
26773       case $f in
26774       -) echo $tmp/stdin ;;
26775       [\\/$]*)
26776          # Absolute (can't be DOS-style, as IFS=:)
26777          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26778 echo "$as_me: error: cannot find input file: $f" >&2;}
26779    { (exit 1); exit 1; }; }
26780          echo "$f";;
26781       *) # Relative
26782          if test -f "$f"; then
26783            # Build tree
26784            echo "$f"
26785          elif test -f "$srcdir/$f"; then
26786            # Source tree
26787            echo "$srcdir/$f"
26788          else
26789            # /dev/null tree
26790            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26791 echo "$as_me: error: cannot find input file: $f" >&2;}
26792    { (exit 1); exit 1; }; }
26793          fi;;
26794       esac
26795     done` || { (exit 1); exit 1; }
26796
26797   if test x"$ac_file" != x-; then
26798     { echo "$as_me:$LINENO: creating $ac_file" >&5
26799 echo "$as_me: creating $ac_file" >&6;}
26800     rm -f "$ac_file"
26801   fi
26802 _ACEOF
26803 cat >>$CONFIG_STATUS <<_ACEOF
26804   sed "$ac_vpsub
26805 $extrasub
26806 _ACEOF
26807 cat >>$CONFIG_STATUS <<\_ACEOF
26808 :t
26809 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26810 s,@configure_input@,$configure_input,;t t
26811 s,@srcdir@,$ac_srcdir,;t t
26812 s,@abs_srcdir@,$ac_abs_srcdir,;t t
26813 s,@top_srcdir@,$ac_top_srcdir,;t t
26814 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
26815 s,@builddir@,$ac_builddir,;t t
26816 s,@abs_builddir@,$ac_abs_builddir,;t t
26817 s,@top_builddir@,$ac_top_builddir,;t t
26818 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
26819 s,@INSTALL@,$ac_INSTALL,;t t
26820 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26821   rm -f $tmp/stdin
26822   if test x"$ac_file" != x-; then
26823     mv $tmp/out $ac_file
26824   else
26825     cat $tmp/out
26826     rm -f $tmp/out
26827   fi
26828
26829   # Run the commands associated with the file.
26830   case $ac_file in
26831     tools/graspe-slave )
26832     for file in                                                 \
26833      tools/graspe-slave           tools/graspe-master           \
26834     ; do                                                        \
26835       test -e $file && chmod +x $file;                          \
26836     done
26837  ;;
26838     testsuite/Makefile )
26839     for file in                                                 \
26840      testsuite/run_tests                                        \
26841      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
26842     ; do                                                        \
26843       test -e $file && chmod +x $file;                          \
26844     done
26845  ;;
26846     testsuite/run_tests )
26847     for file in                                                 \
26848      testsuite/run_tests                                        \
26849      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
26850     ; do                                                        \
26851       test -e $file && chmod +x $file;                          \
26852     done
26853  ;;
26854     testsuite/gras/trp_tcp_usage )
26855     for file in                                                 \
26856      testsuite/run_tests                                        \
26857      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
26858     ; do                                                        \
26859       test -e $file && chmod +x $file;                          \
26860     done
26861  ;;
26862     testsuite/gras/trp_file_usage )
26863     for file in                                                 \
26864      testsuite/run_tests                                        \
26865      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
26866     ; do                                                        \
26867       test -e $file && chmod +x $file;                          \
26868     done
26869  ;;
26870     examples/Makefile )
26871     for file in                                                 \
26872      \
26873      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
26874      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
26875      \
26876      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
26877      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
26878      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
26879      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
26880      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
26881      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
26882      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
26883      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
26884      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
26885      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
26886      examples/msg/run_msg_test                                  \
26887      examples/simdag/test_simdag                                \
26888     ; do                                                        \
26889       test -e $file && chmod +x $file;                          \
26890     done
26891  ;;
26892     examples/msg/Makefile )
26893     for file in                                                 \
26894      \
26895      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
26896      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
26897      \
26898      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
26899      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
26900      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
26901      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
26902      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
26903      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
26904      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
26905      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
26906      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
26907      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
26908      examples/msg/run_msg_test                                  \
26909      examples/simdag/test_simdag                                \
26910     ; do                                                        \
26911       test -e $file && chmod +x $file;                          \
26912     done
26913  ;;
26914     examples/msg/run_msg_test )
26915     for file in                                                 \
26916      \
26917      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
26918      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
26919      \
26920      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
26921      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
26922      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
26923      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
26924      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
26925      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
26926      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
26927      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
26928      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
26929      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
26930      examples/msg/run_msg_test                                  \
26931      examples/simdag/test_simdag                                \
26932     ; do                                                        \
26933       test -e $file && chmod +x $file;                          \
26934     done
26935  ;;
26936     examples/simdag/Makefile )
26937     for file in                                                 \
26938      \
26939      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
26940      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
26941      \
26942      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
26943      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
26944      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
26945      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
26946      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
26947      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
26948      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
26949      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
26950      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
26951      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
26952      examples/msg/run_msg_test                                  \
26953      examples/simdag/test_simdag                                \
26954     ; do                                                        \
26955       test -e $file && chmod +x $file;                          \
26956     done
26957  ;;
26958     examples/simdag/test_simdag )
26959     for file in                                                 \
26960      \
26961      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
26962      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
26963      \
26964      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
26965      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
26966      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
26967      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
26968      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
26969      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
26970      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
26971      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
26972      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
26973      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
26974      examples/msg/run_msg_test                                  \
26975      examples/simdag/test_simdag                                \
26976     ; do                                                        \
26977       test -e $file && chmod +x $file;                          \
26978     done
26979  ;;
26980     examples/gras/Makefile )
26981     for file in                                                 \
26982      \
26983      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
26984      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
26985      \
26986      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
26987      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
26988      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
26989      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
26990      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
26991      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
26992      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
26993      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
26994      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
26995      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
26996      examples/msg/run_msg_test                                  \
26997      examples/simdag/test_simdag                                \
26998     ; do                                                        \
26999       test -e $file && chmod +x $file;                          \
27000     done
27001  ;;
27002     examples/gras/ping/Makefile )
27003     for file in                                                 \
27004      \
27005      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27006      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27007      \
27008      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27009      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27010      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27011      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27012      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27013      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27014      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27015      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27016      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27017      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27018      examples/msg/run_msg_test                                  \
27019      examples/simdag/test_simdag                                \
27020     ; do                                                        \
27021       test -e $file && chmod +x $file;                          \
27022     done
27023  ;;
27024     examples/gras/ping/test_sg )
27025     for file in                                                 \
27026      \
27027      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27028      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27029      \
27030      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27031      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27032      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27033      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27034      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27035      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27036      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27037      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27038      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27039      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27040      examples/msg/run_msg_test                                  \
27041      examples/simdag/test_simdag                                \
27042     ; do                                                        \
27043       test -e $file && chmod +x $file;                          \
27044     done
27045  ;;
27046     examples/gras/ping/test_rl )
27047     for file in                                                 \
27048      \
27049      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27050      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27051      \
27052      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27053      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27054      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27055      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27056      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27057      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27058      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27059      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27060      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27061      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27062      examples/msg/run_msg_test                                  \
27063      examples/simdag/test_simdag                                \
27064     ; do                                                        \
27065       test -e $file && chmod +x $file;                          \
27066     done
27067  ;;
27068     examples/gras/rpc/Makefile )
27069     for file in                                                 \
27070      \
27071      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27072      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27073      \
27074      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27075      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27076      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27077      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27078      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27079      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27080      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27081      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27082      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27083      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27084      examples/msg/run_msg_test                                  \
27085      examples/simdag/test_simdag                                \
27086     ; do                                                        \
27087       test -e $file && chmod +x $file;                          \
27088     done
27089  ;;
27090     examples/gras/rpc/test_sg )
27091     for file in                                                 \
27092      \
27093      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27094      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27095      \
27096      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27097      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27098      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27099      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27100      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27101      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27102      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27103      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27104      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27105      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27106      examples/msg/run_msg_test                                  \
27107      examples/simdag/test_simdag                                \
27108     ; do                                                        \
27109       test -e $file && chmod +x $file;                          \
27110     done
27111  ;;
27112     examples/gras/rpc/test_rl )
27113     for file in                                                 \
27114      \
27115      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27116      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27117      \
27118      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27119      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27120      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27121      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27122      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27123      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27124      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27125      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27126      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27127      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27128      examples/msg/run_msg_test                                  \
27129      examples/simdag/test_simdag                                \
27130     ; do                                                        \
27131       test -e $file && chmod +x $file;                          \
27132     done
27133  ;;
27134     examples/gras/timer/Makefile )
27135     for file in                                                 \
27136      \
27137      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27138      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27139      \
27140      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27141      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27142      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27143      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27144      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27145      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27146      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27147      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27148      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27149      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27150      examples/msg/run_msg_test                                  \
27151      examples/simdag/test_simdag                                \
27152     ; do                                                        \
27153       test -e $file && chmod +x $file;                          \
27154     done
27155  ;;
27156     examples/gras/timer/test_sg )
27157     for file in                                                 \
27158      \
27159      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27160      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27161      \
27162      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27163      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27164      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27165      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27166      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27167      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27168      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27169      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27170      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27171      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27172      examples/msg/run_msg_test                                  \
27173      examples/simdag/test_simdag                                \
27174     ; do                                                        \
27175       test -e $file && chmod +x $file;                          \
27176     done
27177  ;;
27178     examples/gras/timer/test_rl )
27179     for file in                                                 \
27180      \
27181      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27182      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27183      \
27184      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27185      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27186      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27187      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27188      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27189      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27190      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27191      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27192      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27193      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27194      examples/msg/run_msg_test                                  \
27195      examples/simdag/test_simdag                                \
27196     ; do                                                        \
27197       test -e $file && chmod +x $file;                          \
27198     done
27199  ;;
27200     examples/gras/chrono/Makefile )
27201     for file in                                                 \
27202      \
27203      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27204      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27205      \
27206      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27207      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27208      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27209      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27210      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27211      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27212      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27213      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27214      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27215      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27216      examples/msg/run_msg_test                                  \
27217      examples/simdag/test_simdag                                \
27218     ; do                                                        \
27219       test -e $file && chmod +x $file;                          \
27220     done
27221  ;;
27222     examples/gras/chrono/test_sg )
27223     for file in                                                 \
27224      \
27225      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27226      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27227      \
27228      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27229      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27230      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27231      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27232      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27233      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27234      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27235      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27236      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27237      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27238      examples/msg/run_msg_test                                  \
27239      examples/simdag/test_simdag                                \
27240     ; do                                                        \
27241       test -e $file && chmod +x $file;                          \
27242     done
27243  ;;
27244     examples/gras/chrono/test_rl )
27245     for file in                                                 \
27246      \
27247      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27248      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27249      \
27250      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27251      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27252      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27253      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27254      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27255      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27256      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27257      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27258      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27259      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27260      examples/msg/run_msg_test                                  \
27261      examples/simdag/test_simdag                                \
27262     ; do                                                        \
27263       test -e $file && chmod +x $file;                          \
27264     done
27265  ;;
27266     examples/gras/mutual_exclusion/simple_token/Makefile )
27267     for file in                                                 \
27268      \
27269      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27270      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27271      \
27272      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27273      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27274      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27275      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27276      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27277      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27278      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27279      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27280      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27281      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27282      examples/msg/run_msg_test                                  \
27283      examples/simdag/test_simdag                                \
27284     ; do                                                        \
27285       test -e $file && chmod +x $file;                          \
27286     done
27287  ;;
27288     examples/gras/mutual_exclusion/simple_token/test_sg )
27289     for file in                                                 \
27290      \
27291      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27292      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27293      \
27294      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27295      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27296      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27297      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27298      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27299      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27300      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27301      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27302      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27303      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27304      examples/msg/run_msg_test                                  \
27305      examples/simdag/test_simdag                                \
27306     ; do                                                        \
27307       test -e $file && chmod +x $file;                          \
27308     done
27309  ;;
27310     examples/gras/mutual_exclusion/simple_token/test_rl )
27311     for file in                                                 \
27312      \
27313      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27314      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27315      \
27316      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27317      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27318      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27319      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27320      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27321      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27322      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27323      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27324      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27325      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27326      examples/msg/run_msg_test                                  \
27327      examples/simdag/test_simdag                                \
27328     ; do                                                        \
27329       test -e $file && chmod +x $file;                          \
27330     done
27331  ;;
27332     examples/gras/mmrpc/Makefile )
27333     for file in                                                 \
27334      \
27335      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27336      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27337      \
27338      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27339      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27340      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27341      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27342      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27343      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27344      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27345      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27346      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27347      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27348      examples/msg/run_msg_test                                  \
27349      examples/simdag/test_simdag                                \
27350     ; do                                                        \
27351       test -e $file && chmod +x $file;                          \
27352     done
27353  ;;
27354     examples/gras/mmrpc/test_sg )
27355     for file in                                                 \
27356      \
27357      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27358      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27359      \
27360      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27361      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27362      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27363      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27364      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27365      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27366      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27367      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27368      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27369      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27370      examples/msg/run_msg_test                                  \
27371      examples/simdag/test_simdag                                \
27372     ; do                                                        \
27373       test -e $file && chmod +x $file;                          \
27374     done
27375  ;;
27376     examples/gras/mmrpc/test_rl )
27377     for file in                                                 \
27378      \
27379      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27380      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27381      \
27382      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27383      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27384      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27385      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27386      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27387      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27388      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27389      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27390      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27391      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27392      examples/msg/run_msg_test                                  \
27393      examples/simdag/test_simdag                                \
27394     ; do                                                        \
27395       test -e $file && chmod +x $file;                          \
27396     done
27397  ;;
27398     examples/gras/pmm/Makefile )
27399     for file in                                                 \
27400      \
27401      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27402      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27403      \
27404      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27405      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27406      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27407      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27408      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27409      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27410      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27411      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27412      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27413      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27414      examples/msg/run_msg_test                                  \
27415      examples/simdag/test_simdag                                \
27416     ; do                                                        \
27417       test -e $file && chmod +x $file;                          \
27418     done
27419  ;;
27420     examples/gras/pmm/test_sg )
27421     for file in                                                 \
27422      \
27423      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27424      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27425      \
27426      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27427      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27428      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27429      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27430      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27431      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27432      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27433      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27434      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27435      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27436      examples/msg/run_msg_test                                  \
27437      examples/simdag/test_simdag                                \
27438     ; do                                                        \
27439       test -e $file && chmod +x $file;                          \
27440     done
27441  ;;
27442     examples/gras/pmm/test_rl )
27443     for file in                                                 \
27444      \
27445      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27446      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27447      \
27448      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27449      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27450      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27451      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27452      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27453      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27454      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27455      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27456      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27457      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27458      examples/msg/run_msg_test                                  \
27459      examples/simdag/test_simdag                                \
27460     ; do                                                        \
27461       test -e $file && chmod +x $file;                          \
27462     done
27463  ;;
27464     examples/gras/all2all/Makefile )
27465     for file in                                                 \
27466      \
27467      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27468      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27469      \
27470      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27471      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27472      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27473      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27474      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27475      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27476      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27477      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27478      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27479      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27480      examples/msg/run_msg_test                                  \
27481      examples/simdag/test_simdag                                \
27482     ; do                                                        \
27483       test -e $file && chmod +x $file;                          \
27484     done
27485  ;;
27486     examples/gras/all2all/test_sg )
27487     for file in                                                 \
27488      \
27489      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27490      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27491      \
27492      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27493      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27494      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27495      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27496      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27497      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27498      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27499      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27500      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27501      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27502      examples/msg/run_msg_test                                  \
27503      examples/simdag/test_simdag                                \
27504     ; do                                                        \
27505       test -e $file && chmod +x $file;                          \
27506     done
27507  ;;
27508     examples/gras/all2all/test_rl )
27509     for file in                                                 \
27510      \
27511      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27512      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27513      \
27514      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27515      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27516      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27517      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27518      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27519      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27520      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27521      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27522      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27523      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27524      examples/msg/run_msg_test                                  \
27525      examples/simdag/test_simdag                                \
27526     ; do                                                        \
27527       test -e $file && chmod +x $file;                          \
27528     done
27529  ;;
27530     examples/gras/p2p/Makefile )
27531     for file in                                                 \
27532      \
27533      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27534      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27535      \
27536      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27537      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27538      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27539      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27540      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27541      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27542      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27543      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27544      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27545      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27546      examples/msg/run_msg_test                                  \
27547      examples/simdag/test_simdag                                \
27548     ; do                                                        \
27549       test -e $file && chmod +x $file;                          \
27550     done
27551  ;;
27552     examples/gras/p2p/chord/Makefile )
27553     for file in                                                 \
27554      \
27555      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27556      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27557      \
27558      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27559      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27560      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27561      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27562      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27563      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27564      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27565      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27566      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27567      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27568      examples/msg/run_msg_test                                  \
27569      examples/simdag/test_simdag                                \
27570     ; do                                                        \
27571       test -e $file && chmod +x $file;                          \
27572     done
27573  ;;
27574     examples/gras/p2p/chord/test_sg )
27575     for file in                                                 \
27576      \
27577      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27578      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27579      \
27580      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27581      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27582      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27583      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27584      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27585      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27586      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27587      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27588      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27589      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27590      examples/msg/run_msg_test                                  \
27591      examples/simdag/test_simdag                                \
27592     ; do                                                        \
27593       test -e $file && chmod +x $file;                          \
27594     done
27595  ;;
27596     examples/gras/p2p/chord/test_rl )
27597     for file in                                                 \
27598      \
27599      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27600      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27601      \
27602      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27603      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27604      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27605      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27606      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27607      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27608      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27609      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27610      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27611      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27612      examples/msg/run_msg_test                                  \
27613      examples/simdag/test_simdag                                \
27614     ; do                                                        \
27615       test -e $file && chmod +x $file;                          \
27616     done
27617  ;;
27618     examples/gras/p2p/can/Makefile )
27619     for file in                                                 \
27620      \
27621      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27622      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27623      \
27624      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27625      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27626      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27627      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27628      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27629      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27630      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27631      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27632      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27633      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27634      examples/msg/run_msg_test                                  \
27635      examples/simdag/test_simdag                                \
27636     ; do                                                        \
27637       test -e $file && chmod +x $file;                          \
27638     done
27639  ;;
27640     examples/gras/p2p/can/test_sg )
27641     for file in                                                 \
27642      \
27643      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27644      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27645      \
27646      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27647      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27648      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27649      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27650      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27651      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27652      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27653      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27654      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27655      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27656      examples/msg/run_msg_test                                  \
27657      examples/simdag/test_simdag                                \
27658     ; do                                                        \
27659       test -e $file && chmod +x $file;                          \
27660     done
27661  ;;
27662     examples/gras/p2p/can/test_rl )
27663     for file in                                                 \
27664      \
27665      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27666      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27667      \
27668      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27669      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27670      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27671      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27672      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27673      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27674      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27675      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27676      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27677      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27678      examples/msg/run_msg_test                                  \
27679      examples/simdag/test_simdag                                \
27680     ; do                                                        \
27681       test -e $file && chmod +x $file;                          \
27682     done
27683  ;;
27684     examples/amok/Makefile )
27685     for file in                                                 \
27686      \
27687      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27688      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27689      \
27690      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27691      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27692      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27693      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27694      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27695      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27696      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27697      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27698      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27699      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27700      examples/msg/run_msg_test                                  \
27701      examples/simdag/test_simdag                                \
27702     ; do                                                        \
27703       test -e $file && chmod +x $file;                          \
27704     done
27705  ;;
27706     examples/amok/bandwidth/Makefile )
27707     for file in                                                 \
27708      \
27709      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27710      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27711      \
27712      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27713      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27714      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27715      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27716      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27717      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27718      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27719      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27720      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27721      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27722      examples/msg/run_msg_test                                  \
27723      examples/simdag/test_simdag                                \
27724     ; do                                                        \
27725       test -e $file && chmod +x $file;                          \
27726     done
27727  ;;
27728     examples/amok/bandwidth/test_sg )
27729     for file in                                                 \
27730      \
27731      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27732      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27733      \
27734      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27735      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27736      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27737      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27738      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27739      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27740      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27741      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27742      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27743      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27744      examples/msg/run_msg_test                                  \
27745      examples/simdag/test_simdag                                \
27746     ; do                                                        \
27747       test -e $file && chmod +x $file;                          \
27748     done
27749  ;;
27750     examples/amok/bandwidth/test_rl )
27751     for file in                                                 \
27752      \
27753      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27754      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27755      \
27756      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27757      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27758      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27759      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27760      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27761      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27762      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27763      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27764      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27765      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27766      examples/msg/run_msg_test                                  \
27767      examples/simdag/test_simdag                                \
27768     ; do                                                        \
27769       test -e $file && chmod +x $file;                          \
27770     done
27771  ;;
27772     examples/amok/saturate/Makefile )
27773     for file in                                                 \
27774      \
27775      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27776      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27777      \
27778      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27779      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27780      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27781      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27782      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27783      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27784      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27785      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27786      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27787      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27788      examples/msg/run_msg_test                                  \
27789      examples/simdag/test_simdag                                \
27790     ; do                                                        \
27791       test -e $file && chmod +x $file;                          \
27792     done
27793  ;;
27794     examples/amok/saturate/test_sg )
27795     for file in                                                 \
27796      \
27797      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27798      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27799      \
27800      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27801      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27802      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27803      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27804      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27805      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27806      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27807      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27808      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27809      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27810      examples/msg/run_msg_test                                  \
27811      examples/simdag/test_simdag                                \
27812     ; do                                                        \
27813       test -e $file && chmod +x $file;                          \
27814     done
27815  ;;
27816     examples/amok/saturate/test_rl )
27817     for file in                                                 \
27818      \
27819      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27820      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27821      \
27822      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27823      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27824      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27825      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27826      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27827      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27828      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27829      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27830      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27831      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27832      examples/msg/run_msg_test                                  \
27833      examples/simdag/test_simdag                                \
27834     ; do                                                        \
27835       test -e $file && chmod +x $file;                          \
27836     done
27837  ;;
27838   esac
27839 done
27840 _ACEOF
27841 cat >>$CONFIG_STATUS <<\_ACEOF
27842
27843 #
27844 # CONFIG_HEADER section.
27845 #
27846
27847 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
27848 # NAME is the cpp macro being defined and VALUE is the value it is being given.
27849 #
27850 # ac_d sets the value in "#define NAME VALUE" lines.
27851 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
27852 ac_dB='[         ].*$,\1#\2'
27853 ac_dC=' '
27854 ac_dD=',;t'
27855 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
27856 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
27857 ac_uB='$,\1#\2define\3'
27858 ac_uC=' '
27859 ac_uD=',;t'
27860
27861 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
27862   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27863   case $ac_file in
27864   - | *:- | *:-:* ) # input from stdin
27865         cat >$tmp/stdin
27866         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27867         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27868   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27869         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27870   * )   ac_file_in=$ac_file.in ;;
27871   esac
27872
27873   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
27874 echo "$as_me: creating $ac_file" >&6;}
27875
27876   # First look for the input files in the build tree, otherwise in the
27877   # src tree.
27878   ac_file_inputs=`IFS=:
27879     for f in $ac_file_in; do
27880       case $f in
27881       -) echo $tmp/stdin ;;
27882       [\\/$]*)
27883          # Absolute (can't be DOS-style, as IFS=:)
27884          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27885 echo "$as_me: error: cannot find input file: $f" >&2;}
27886    { (exit 1); exit 1; }; }
27887          # Do quote $f, to prevent DOS paths from being IFS'd.
27888          echo "$f";;
27889       *) # Relative
27890          if test -f "$f"; then
27891            # Build tree
27892            echo "$f"
27893          elif test -f "$srcdir/$f"; then
27894            # Source tree
27895            echo "$srcdir/$f"
27896          else
27897            # /dev/null tree
27898            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27899 echo "$as_me: error: cannot find input file: $f" >&2;}
27900    { (exit 1); exit 1; }; }
27901          fi;;
27902       esac
27903     done` || { (exit 1); exit 1; }
27904   # Remove the trailing spaces.
27905   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
27906
27907 _ACEOF
27908
27909 # Transform confdefs.h into two sed scripts, `conftest.defines' and
27910 # `conftest.undefs', that substitutes the proper values into
27911 # config.h.in to produce config.h.  The first handles `#define'
27912 # templates, and the second `#undef' templates.
27913 # And first: Protect against being on the right side of a sed subst in
27914 # config.status.  Protect against being in an unquoted here document
27915 # in config.status.
27916 rm -f conftest.defines conftest.undefs
27917 # Using a here document instead of a string reduces the quoting nightmare.
27918 # Putting comments in sed scripts is not portable.
27919 #
27920 # `end' is used to avoid that the second main sed command (meant for
27921 # 0-ary CPP macros) applies to n-ary macro definitions.
27922 # See the Autoconf documentation for `clear'.
27923 cat >confdef2sed.sed <<\_ACEOF
27924 s/[\\&,]/\\&/g
27925 s,[\\$`],\\&,g
27926 t clear
27927 : clear
27928 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
27929 t end
27930 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
27931 : end
27932 _ACEOF
27933 # If some macros were called several times there might be several times
27934 # the same #defines, which is useless.  Nevertheless, we may not want to
27935 # sort them, since we want the *last* AC-DEFINE to be honored.
27936 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
27937 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
27938 rm -f confdef2sed.sed
27939
27940 # This sed command replaces #undef with comments.  This is necessary, for
27941 # example, in the case of _POSIX_SOURCE, which is predefined and required
27942 # on some systems where configure will not decide to define it.
27943 cat >>conftest.undefs <<\_ACEOF
27944 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
27945 _ACEOF
27946
27947 # Break up conftest.defines because some shells have a limit on the size
27948 # of here documents, and old seds have small limits too (100 cmds).
27949 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
27950 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
27951 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
27952 echo '  :' >>$CONFIG_STATUS
27953 rm -f conftest.tail
27954 while grep . conftest.defines >/dev/null
27955 do
27956   # Write a limited-size here document to $tmp/defines.sed.
27957   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
27958   # Speed up: don't consider the non `#define' lines.
27959   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
27960   # Work around the forget-to-reset-the-flag bug.
27961   echo 't clr' >>$CONFIG_STATUS
27962   echo ': clr' >>$CONFIG_STATUS
27963   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
27964   echo 'CEOF
27965   sed -f $tmp/defines.sed $tmp/in >$tmp/out
27966   rm -f $tmp/in
27967   mv $tmp/out $tmp/in
27968 ' >>$CONFIG_STATUS
27969   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
27970   rm -f conftest.defines
27971   mv conftest.tail conftest.defines
27972 done
27973 rm -f conftest.defines
27974 echo '  fi # grep' >>$CONFIG_STATUS
27975 echo >>$CONFIG_STATUS
27976
27977 # Break up conftest.undefs because some shells have a limit on the size
27978 # of here documents, and old seds have small limits too (100 cmds).
27979 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
27980 rm -f conftest.tail
27981 while grep . conftest.undefs >/dev/null
27982 do
27983   # Write a limited-size here document to $tmp/undefs.sed.
27984   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
27985   # Speed up: don't consider the non `#undef'
27986   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
27987   # Work around the forget-to-reset-the-flag bug.
27988   echo 't clr' >>$CONFIG_STATUS
27989   echo ': clr' >>$CONFIG_STATUS
27990   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
27991   echo 'CEOF
27992   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
27993   rm -f $tmp/in
27994   mv $tmp/out $tmp/in
27995 ' >>$CONFIG_STATUS
27996   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
27997   rm -f conftest.undefs
27998   mv conftest.tail conftest.undefs
27999 done
28000 rm -f conftest.undefs
28001
28002 cat >>$CONFIG_STATUS <<\_ACEOF
28003   # Let's still pretend it is `configure' which instantiates (i.e., don't
28004   # use $as_me), people would be surprised to read:
28005   #    /* config.h.  Generated by config.status.  */
28006   if test x"$ac_file" = x-; then
28007     echo "/* Generated by configure.  */" >$tmp/config.h
28008   else
28009     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
28010   fi
28011   cat $tmp/in >>$tmp/config.h
28012   rm -f $tmp/in
28013   if test x"$ac_file" != x-; then
28014     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
28015       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28016 echo "$as_me: $ac_file is unchanged" >&6;}
28017     else
28018       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
28019 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28020          X"$ac_file" : 'X\(//\)[^/]' \| \
28021          X"$ac_file" : 'X\(//\)$' \| \
28022          X"$ac_file" : 'X\(/\)' \| \
28023          .     : '\(.\)' 2>/dev/null ||
28024 echo X"$ac_file" |
28025     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28026           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28027           /^X\(\/\/\)$/{ s//\1/; q; }
28028           /^X\(\/\).*/{ s//\1/; q; }
28029           s/.*/./; q'`
28030       { if $as_mkdir_p; then
28031     mkdir -p "$ac_dir"
28032   else
28033     as_dir="$ac_dir"
28034     as_dirs=
28035     while test ! -d "$as_dir"; do
28036       as_dirs="$as_dir $as_dirs"
28037       as_dir=`(dirname "$as_dir") 2>/dev/null ||
28038 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28039          X"$as_dir" : 'X\(//\)[^/]' \| \
28040          X"$as_dir" : 'X\(//\)$' \| \
28041          X"$as_dir" : 'X\(/\)' \| \
28042          .     : '\(.\)' 2>/dev/null ||
28043 echo X"$as_dir" |
28044     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28045           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28046           /^X\(\/\/\)$/{ s//\1/; q; }
28047           /^X\(\/\).*/{ s//\1/; q; }
28048           s/.*/./; q'`
28049     done
28050     test ! -n "$as_dirs" || mkdir $as_dirs
28051   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28052 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28053    { (exit 1); exit 1; }; }; }
28054
28055       rm -f $ac_file
28056       mv $tmp/config.h $ac_file
28057     fi
28058   else
28059     cat $tmp/config.h
28060     rm -f $tmp/config.h
28061   fi
28062 # Compute $ac_file's index in $config_headers.
28063 _am_stamp_count=1
28064 for _am_header in $config_headers :; do
28065   case $_am_header in
28066     $ac_file | $ac_file:* )
28067       break ;;
28068     * )
28069       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28070   esac
28071 done
28072 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
28073 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28074          X$ac_file : 'X\(//\)[^/]' \| \
28075          X$ac_file : 'X\(//\)$' \| \
28076          X$ac_file : 'X\(/\)' \| \
28077          .     : '\(.\)' 2>/dev/null ||
28078 echo X$ac_file |
28079     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28080           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28081           /^X\(\/\/\)$/{ s//\1/; q; }
28082           /^X\(\/\).*/{ s//\1/; q; }
28083           s/.*/./; q'`/stamp-h$_am_stamp_count
28084 done
28085 _ACEOF
28086 cat >>$CONFIG_STATUS <<\_ACEOF
28087
28088 #
28089 # CONFIG_COMMANDS section.
28090 #
28091 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
28092   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
28093   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
28094   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
28095 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28096          X"$ac_dest" : 'X\(//\)[^/]' \| \
28097          X"$ac_dest" : 'X\(//\)$' \| \
28098          X"$ac_dest" : 'X\(/\)' \| \
28099          .     : '\(.\)' 2>/dev/null ||
28100 echo X"$ac_dest" |
28101     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28102           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28103           /^X\(\/\/\)$/{ s//\1/; q; }
28104           /^X\(\/\).*/{ s//\1/; q; }
28105           s/.*/./; q'`
28106   { if $as_mkdir_p; then
28107     mkdir -p "$ac_dir"
28108   else
28109     as_dir="$ac_dir"
28110     as_dirs=
28111     while test ! -d "$as_dir"; do
28112       as_dirs="$as_dir $as_dirs"
28113       as_dir=`(dirname "$as_dir") 2>/dev/null ||
28114 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28115          X"$as_dir" : 'X\(//\)[^/]' \| \
28116          X"$as_dir" : 'X\(//\)$' \| \
28117          X"$as_dir" : 'X\(/\)' \| \
28118          .     : '\(.\)' 2>/dev/null ||
28119 echo X"$as_dir" |
28120     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28121           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28122           /^X\(\/\/\)$/{ s//\1/; q; }
28123           /^X\(\/\).*/{ s//\1/; q; }
28124           s/.*/./; q'`
28125     done
28126     test ! -n "$as_dirs" || mkdir $as_dirs
28127   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28128 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28129    { (exit 1); exit 1; }; }; }
28130
28131   ac_builddir=.
28132
28133 if test "$ac_dir" != .; then
28134   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28135   # A "../" for each directory in $ac_dir_suffix.
28136   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28137 else
28138   ac_dir_suffix= ac_top_builddir=
28139 fi
28140
28141 case $srcdir in
28142   .)  # No --srcdir option.  We are building in place.
28143     ac_srcdir=.
28144     if test -z "$ac_top_builddir"; then
28145        ac_top_srcdir=.
28146     else
28147        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28148     fi ;;
28149   [\\/]* | ?:[\\/]* )  # Absolute path.
28150     ac_srcdir=$srcdir$ac_dir_suffix;
28151     ac_top_srcdir=$srcdir ;;
28152   *) # Relative path.
28153     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28154     ac_top_srcdir=$ac_top_builddir$srcdir ;;
28155 esac
28156
28157 # Do not use `cd foo && pwd` to compute absolute paths, because
28158 # the directories may not exist.
28159 case `pwd` in
28160 .) ac_abs_builddir="$ac_dir";;
28161 *)
28162   case "$ac_dir" in
28163   .) ac_abs_builddir=`pwd`;;
28164   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28165   *) ac_abs_builddir=`pwd`/"$ac_dir";;
28166   esac;;
28167 esac
28168 case $ac_abs_builddir in
28169 .) ac_abs_top_builddir=${ac_top_builddir}.;;
28170 *)
28171   case ${ac_top_builddir}. in
28172   .) ac_abs_top_builddir=$ac_abs_builddir;;
28173   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28174   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28175   esac;;
28176 esac
28177 case $ac_abs_builddir in
28178 .) ac_abs_srcdir=$ac_srcdir;;
28179 *)
28180   case $ac_srcdir in
28181   .) ac_abs_srcdir=$ac_abs_builddir;;
28182   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28183   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28184   esac;;
28185 esac
28186 case $ac_abs_builddir in
28187 .) ac_abs_top_srcdir=$ac_top_srcdir;;
28188 *)
28189   case $ac_top_srcdir in
28190   .) ac_abs_top_srcdir=$ac_abs_builddir;;
28191   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28192   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28193   esac;;
28194 esac
28195
28196
28197   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
28198 echo "$as_me: executing $ac_dest commands" >&6;}
28199   case $ac_dest in
28200     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
28201   # Strip MF so we end up with the name of the file.
28202   mf=`echo "$mf" | sed -e 's/:.*$//'`
28203   # Check whether this is an Automake generated Makefile or not.
28204   # We used to match only the files named `Makefile.in', but
28205   # some people rename them; so instead we look at the file content.
28206   # Grep'ing the first line is not enough: some people post-process
28207   # each Makefile.in and add a new line on top of each file to say so.
28208   # So let's grep whole file.
28209   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
28210     dirpart=`(dirname "$mf") 2>/dev/null ||
28211 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28212          X"$mf" : 'X\(//\)[^/]' \| \
28213          X"$mf" : 'X\(//\)$' \| \
28214          X"$mf" : 'X\(/\)' \| \
28215          .     : '\(.\)' 2>/dev/null ||
28216 echo X"$mf" |
28217     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28218           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28219           /^X\(\/\/\)$/{ s//\1/; q; }
28220           /^X\(\/\).*/{ s//\1/; q; }
28221           s/.*/./; q'`
28222   else
28223     continue
28224   fi
28225   # Extract the definition of DEPDIR, am__include, and am__quote
28226   # from the Makefile without running `make'.
28227   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28228   test -z "$DEPDIR" && continue
28229   am__include=`sed -n 's/^am__include = //p' < "$mf"`
28230   test -z "am__include" && continue
28231   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28232   # When using ansi2knr, U may be empty or an underscore; expand it
28233   U=`sed -n 's/^U = //p' < "$mf"`
28234   # Find all dependency output files, they are included files with
28235   # $(DEPDIR) in their names.  We invoke sed twice because it is the
28236   # simplest approach to changing $(DEPDIR) to its actual value in the
28237   # expansion.
28238   for file in `sed -n "
28239     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28240        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28241     # Make sure the directory exists.
28242     test -f "$dirpart/$file" && continue
28243     fdir=`(dirname "$file") 2>/dev/null ||
28244 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28245          X"$file" : 'X\(//\)[^/]' \| \
28246          X"$file" : 'X\(//\)$' \| \
28247          X"$file" : 'X\(/\)' \| \
28248          .     : '\(.\)' 2>/dev/null ||
28249 echo X"$file" |
28250     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28251           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28252           /^X\(\/\/\)$/{ s//\1/; q; }
28253           /^X\(\/\).*/{ s//\1/; q; }
28254           s/.*/./; q'`
28255     { if $as_mkdir_p; then
28256     mkdir -p $dirpart/$fdir
28257   else
28258     as_dir=$dirpart/$fdir
28259     as_dirs=
28260     while test ! -d "$as_dir"; do
28261       as_dirs="$as_dir $as_dirs"
28262       as_dir=`(dirname "$as_dir") 2>/dev/null ||
28263 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28264          X"$as_dir" : 'X\(//\)[^/]' \| \
28265          X"$as_dir" : 'X\(//\)$' \| \
28266          X"$as_dir" : 'X\(/\)' \| \
28267          .     : '\(.\)' 2>/dev/null ||
28268 echo X"$as_dir" |
28269     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28270           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28271           /^X\(\/\/\)$/{ s//\1/; q; }
28272           /^X\(\/\).*/{ s//\1/; q; }
28273           s/.*/./; q'`
28274     done
28275     test ! -n "$as_dirs" || mkdir $as_dirs
28276   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
28277 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
28278    { (exit 1); exit 1; }; }; }
28279
28280     # echo "creating $dirpart/$file"
28281     echo '# dummy' > "$dirpart/$file"
28282   done
28283 done
28284  ;;
28285   esac
28286 done
28287 _ACEOF
28288
28289 cat >>$CONFIG_STATUS <<\_ACEOF
28290
28291 { (exit 0); exit 0; }
28292 _ACEOF
28293 chmod +x $CONFIG_STATUS
28294 ac_clean_files=$ac_clean_files_save
28295
28296
28297 # configure is writing to config.log, and then calls config.status.
28298 # config.status does its own redirection, appending to config.log.
28299 # Unfortunately, on DOS this fails, as config.log is still kept open
28300 # by configure, so config.status won't be able to write to it; its
28301 # output is simply discarded.  So we exec the FD to /dev/null,
28302 # effectively closing config.log, so it can be properly (re)opened and
28303 # appended to by config.status.  When coming back to configure, we
28304 # need to make the FD available again.
28305 if test "$no_create" != yes; then
28306   ac_cs_success=:
28307   ac_config_status_args=
28308   test "$silent" = yes &&
28309     ac_config_status_args="$ac_config_status_args --quiet"
28310   exec 5>/dev/null
28311   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28312   exec 5>>config.log
28313   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28314   # would make configure fail if this is the last instruction.
28315   $ac_cs_success || { (exit 1); exit 1; }
28316 fi
28317
28318
28319 echo "
28320
28321 Configuration of package \`${PACKAGE}' (version ${VERSION}) on $gras_arch_name (=$gras_arch):
28322
28323         Compiler:        ${CC} (version: ${GCC_VERSION})
28324
28325         CFlags:          ${CFLAGS}
28326         CPPFlags:        ${CPPFLAGS}
28327         LDFlags:         ${LDFLAGS}
28328
28329         Context backend: ${with_context}
28330 "
28331
28332 if test -e CVS && test x$USE_MAINTAINER_MODE != xyes ; then
28333   echo "WARNING:"
28334   echo "WARNING: you seem to compile the CVS version without the maintainer mode."
28335   echo "WARNING: You may want to enable this by specifying:"
28336   echo "WARNING:"
28337   echo "WARNING: ./configure --enable-maintainer-mode  $ac_configure_args"
28338   echo "WARNING:"
28339 fi
28340 echo $build_id > stamp.configure
28341
28342 exit 0;